[Droid RAZR M General] ATTACK:
I got "caps lock" happy, sorry!

​

SYSTEM

STOCK KDA20.62-10.1

[*]STOCK 3.4 KERNEL

[*]BL UNLOCKED & ROOTED

[*]TWRP

[*]SUPER SU

[*]BUSYBOX (LATEST)

MODS & APPS

ROOT APPS:

XPOSED

[*]XGELS (DONATE)

[*]HEADS UP NOTIFICATIONS

[*]GREENIFY (DONATE)

[*]TRICKSTERMOD KERNEL SETTINGS (DONATE)

[*]APP OPS

[*]ROOT EXPLORER

[*]SDMAID (DONATE)

[*]QUICK BOOT

[*]ADWAY

MODS:

REPLACED BLUR CAMERA WITH GOOGLE CAMERA

[*]REPLACED STOCK CALCULATOR WITH CM11 CALCULATOR

[*]REPLACED STOCK PHONE AND PEOPLE ICONS WITH AOSP/NEXUS ICONS (PICTURED BELOW)

[*]REPLACED INTERNAL BLUR ICONS WITH AOSP/NEXUS ICONS (A FEW PICTURED BELOW: RED CIRCLED)

[*]REPLACED STOCK LAUNCHER WITH AOSPA LAUNCHER3

[*]ANDROID L FONTS

[*]INIT.D SCRIPTS

[*]TRANSITION ANIMATION SCALE = .5X

[*]MY CUSTOM AOSP STATUS BAR MOD

[*]LCD DENSITY = 247

[*]MY CUSTOM BOOT LOGO (THE COLORS SHOWN ARE A BIT DIFFERENT FROM THE ORINGINAL) - Source

MY CUSTOM BOOT ANIMATION (BASED ON CM)

KERNEL SETTINGS

CUBIC

[*]ROW

[*]ONDEMAND

[*]RAB = 1024

[*]CPU = 384/1512

[*]MULTICORE POWER SETTINGS = 2

[*]LED CONTROL = GREEN CHARGING

[*] INIT.D - INFINITE BATTERY

LAUNCHER SETTINGS

3 SCREENS

[*]#1 [HOME] CLOCK / APPS

[*]#2 POWER CONTROL / MOTO NOTIFICATION LIGHT TOGGLE / VERIZON DATA WIDGET

[*]#3 CM11 CALCULATOR WIDGET

XGEL SETTINGS

SWIPE DOWN (RIGHT) = QUICK SETTINGS

[*]SWIPE DOWN (LEFT) = NOTIFICATION

[*]BACK BUTTON SLEEP

[*]RESIZE ALL WIDGET

[*]DESKTOP ICON TEXT SIZE = 105

INIT.D SCRIPTS

ZIPALIGN

#!/system/bin/sh

LOG_FILE=/data/local/zipalign.log
ZIPALIGNDB=/data/local/zipalign.db

if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

if [ ! -f $ZIPALIGNDB ]; then
touch $ZIPALIGNDB;
fi;

echo "Starting FV Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE

for DIR in /system/app /data/app ; do
cd $DIR
for APK in *.apk ; do
if [ $APK -ot $ZIPALIGNDB ] && [ $(grep "$DIR/$APK" $ZIPALIGNDB|wc -l) -gt 0 ] ; then
echo "Already checked: $DIR/$APK" | tee -a $LOG_FILE
else
zipalign -c 4 $APK
if [ $? -eq 0 ] ; then
echo "Already aligned: $DIR/$APK" | tee -a $LOG_FILE
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB
else
echo "Now aligning: $DIR/$APK" | tee -a $LOG_FILE
zipalign -f 4 $APK /cache/$APK
busybox mount -o rw,remount /system
cp -f -p /cache/$APK $APK
busybox rm -f /cache/$APK
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB
fi
fi
done
done

busybox mount -o ro,remount /system
touch $ZIPALIGNDB
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE

AUTO FSTRIM

#!/system/bin/sh

#Interval between Fstrim runs, in seconds, 54000=15 hours

RUN_EVERY=54000

LOG_FILE=/data/local/FstrimAuto.txt
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "Starting Automatic Fstrim $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

fstrim -v /cache | tee -a $LOG_FILE;
fstrim -v /data | tee -a $LOG_FILE;
fstrim -v /system | tee -a $LOG_FILE;

echo "Automatic Fstrim finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

INFINITE BATTERY- MODIFIED

#!/system/bin/sh

# InfiniteBattery

echo "Installing the script..."
AWAKE_GOVERNOR="ondemand"
AWAKE_GOVERNOR_FREQENCY_MAX="1512000"
AWAKE_GOVERNOR_FREQENCY_MIN="384000"
AWAKE_GOVERNOR_UP_THRESHOLD="96"
AWAKE_GOVERNOR_SAMPLING_RATE="300000"

SLEEP_GOVERNOR="ondemand"
SLEEP_GOVERNOR_FREQENCY_MAX="384000"
SLEEP_GOVERNOR_FREQENCY_MIN="384000"
SLEEP_GOVERNOR_FREQ_STEP="2"
SLEEP_GOVERNOR_UP_THRESHOLD="96"
SLEEP_GOVERNOR_SAMPLING_RATE="120000"
SLEEP_GOVERNOR_SAMPLING_DOWN_FACTOR="1"

echo "Setting AWAKE Governor..."
(while [ 1 ]
do
AWAKE=`cat /sys/power/wait_for_fb_wake`
if [ $AWAKE = "awake" ]; then
echo $AWAKE_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $AWAKE_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $AWAKE_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $AWAKE_GOVERNOR_UP_THRESHOLD > /sys/devices/system/cpu/cpufreq/interactive/up_threshold
echo $AWAKE_GOVERNOR_SAMPLING_RATE > /sys/devices/system/cpu/cpufreq/interactive/sampling_rate
AWAKE=
fi
echo "Setting SLEEPING Governor..."
SLEEPING=`cat /sys/power/wait_for_fb_sleep`
if [ $SLEEPING = "sleeping" ]; then
echo $SLEEP_GOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo $SLEEP_GOVERNOR_FREQENCY_MAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo $SLEEP_GOVERNOR_FREQENCY_MIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo $SLEEP_GOVERNOR_UP_THRESHOLD > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $SLEEP_GOVERNOR_FREQ_STEP > /sys/devices/system/cpu/cpufreq/ondemand/freq_step
echo $SLEEP_GOVERNOR_SAMPLING_RATE > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo $SLEEP_GOVERNOR_SAMPLING_DOWN_FACTOR > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
SLEEPING=
fi
done &)

echo "Done!"

VMSETTINGS

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d

# disable sysctl.conf to prevent ROM interference
if [ -e /system/etc/sysctl.conf ]; then
mount -o remount,rw /system;
mv /system/etc/sysctl.conf /system/etc/sysctl.conf.fkbak;
mount -o remount,ro /system;
fi;

# vm tweaks
echo 5 > /proc/sys/vm/dirty_background_ratio;
echo 200 > /proc/sys/vm/dirty_expire_centisecs;
echo 20 > /proc/sys/vm/dirty_ratio;
echo 500 > /proc/sys/vm/dirty_writeback_centisecs;
echo 2884 > /proc/sys/vm/min_free_kbytes;
echo 4 > /proc/sys/vm/min_free_order_shift;
echo 3 > /proc/sys/vm/page-cluster;
echo 0 > /proc/sys/vm/swappiness;
echo 100 > /proc/sys/vm/vfs_cache_pressure;

# lmk tweaks
minfree=6144,8192,12288,16384,24576,40960;
lmk=/sys/module/lowmemorykiller/parameters/minfree;
minboot=`cat $lmk`;
while sleep 1; do
if [ `cat $lmk` != $minboot ]; then
[ `cat $lmk` != $minfree ] && echo $minfree > $lmk || exit;
fi;
done&

# fs tweaks
echo 10 > /proc/sys/fs/lease-break-time;

# entropy tweaks
echo 128 > /proc/sys/kernel/random/read_wakeup_threshold;
echo 256 > /proc/sys/kernel/random/write_wakeup_threshold;

# tcp tweaks
echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control;

IOSETTINGS

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d

# disable sysctl.conf to prevent ROM interference
if [ -e /system/etc/sysctl.conf ]; then
mount -o remount,rw /system;
mv /system/etc/sysctl.conf /system/etc/sysctl.conf.fkbak;
mount -o remount,ro /system;
fi;

# general queue tweaks
for i in /sys/block/*/queue; do
echo 512 > $i/nr_requests;
echo 512 > $i/read_ahead_kb;
echo 2 > $i/rq_affinity;
echo 0 > $i/nomerges;
echo 0 > $i/add_random;
echo 0 > $i/rotational;
done;

# override scheduler defaults with tweaked values
scheduler=reset;
while sleep 1; do
current=`cut -d\[ -f2 /sys/block/mmcblk0/queue/scheduler | cut -d\] -f1`;
if [ $scheduler != $current ]; then
scheduler=$current;
if [ $scheduler == "deadline" ]; then

# deadline tweaks
echo 250 > /sys/block/mmcblk0/queue/iosched/read_expire;
echo 2500 > /sys/block/mmcblk0/queue/iosched/write_expire;
echo 1 > /sys/block/mmcblk0/queue/iosched/writes_starved;
echo 1 > /sys/block/mmcblk0/queue/iosched/front_merges;
echo 8 > /sys/block/mmcblk0/queue/iosched/fifo_batch;

elif [ $scheduler == "row" ]; then

# row tweaks
echo 100 > /sys/block/mmcblk0/queue/iosched/hp_read_quantum;
echo 75 > /sys/block/mmcblk0/queue/iosched/rp_read_quantum;
echo 5 > /sys/block/mmcblk0/queue/iosched/hp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_write_quantum;
echo 3 > /sys/block/mmcblk0/queue/iosched/lp_read_quantum;
echo 12 > /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk0/queue/iosched/read_idle;
echo 25 > /sys/block/mmcblk0/queue/iosched/read_idle_freq;
## N4 and N10 row adds lsl and rsl, which were hardcoded previously
echo 10000 > /sys/block/mmcblk0/queue/iosched/low_starv_limit;
echo 5000 > /sys/block/mmcblk0/queue/iosched/reg_starv_limit;
## N4 and N10 have a new version of row with corrected entry for lsq and renamed ri and rif
[ `cat /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum` != "2" ] && echo 2 > /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk0/queue/iosched/rd_idle_data;
echo 25 > /sys/block/mmcblk0/queue/iosched/rd_idle_data_freq;

elif [ $scheduler == "cfq" ]; then

# cfq tweaks
echo 4 > /sys/block/mmcblk0/queue/iosched/quantum;
echo 80 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync;
echo 330 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async;
echo 12582912 > /sys/block/mmcblk0/queue/iosched/back_seek_max;
echo 1 > /sys/block/mmcblk0/queue/iosched/back_seek_penalty;
echo 60 > /sys/block/mmcblk0/queue/iosched/slice_sync;
echo 50 > /sys/block/mmcblk0/queue/iosched/slice_async;
echo 2 > /sys/block/mmcblk0/queue/iosched/slice_async_rq;
echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle;
echo 0 > /sys/block/mmcblk0/queue/iosched/group_idle;
echo 1 > /sys/block/mmcblk0/queue/iosched/low_latency;
## N4 and N10 cfq adds tl, which was hardcoded previously
echo 300 > /sys/block/mmcblk0/queue/iosched/target_latency;

fi;
fi;
# loop forever independently
done&