[Android Software/Hacking General [Developers Only]] gu5t3r:
ps -w | grep -i matic gives nothing =(

dcard' ; exec /system/bin/sh" <
root@android:/sdcard # ps -w | grep -i fast
12166 root 1204 S grep -i fast
root@android:/sdcard # ps -w | grep -i flush
4782 root 0 SW [kdmflush]
4818 root 0 SW [kdmflush]
+ echo zOOM... zOOM...
zOOM... zOOM...
+ echo ================================================
================================================
+ echo -=Engine Flush-O-Matic=- by -=zeppelinrox=-
-=Engine Flush-O-Matic=- by -=zeppelinrox=-
+ echo ================================================
================================================
+ echo

+ busybox sleep 1
+ id
+ id=uid=0(root) gid=0(root)
+ id=0(root) gid=0(root)
+ id=0
+ [ 0 != 0 ]
+ wc -l
+ grep /!FastEngineFlush.sh
+ busybox ps -w
+ [ 3 -lt 3 ]
+ wc -l
+ busybox ps -w
+ grep /!FastEngineFlush.sh
+ [ 3 -gt 2 ]
+ echo -=Engine Flush-O-Matic=- is already in memory!
-=Engine Flush-O-Matic=- is already in memory!
+ echo

+ sleep 1
+ echo Do you want to flush now anyway?
Do you want to flush now anyway?
+ echo

+ sleep 1
+ echo If you do, you can access Options too...
If you do, you can access Options too...
+ echo

+ sleep 1
+ echo ...but you can't enter another "Flush Cycle".
...but you can't enter another "Flush Cycle".
+ echo

+ sleep 1
+ echo -n Enter Y for Yes, any key for No:
Enter Y for Yes, any key for No: + stty -icanon min 0 time 200
+ read FOMactive
Y^J+ stty sane
+ [ ! Y ]
+ echo

+ echo ================================================
================================================
+ echo Alrighty Then!
Alrighty Then!
+ echo ================================================
================================================
+ echo

+ sleep 1
+ :
+ sed -n 2p
+ awk { print $2 }
+ free
+ ram=341
+ free
+ awk { print $3 }
+ sed -n 2p
+ ramused=312
+ free
+ awk { print $4 }
+ sed -n 2p
+ ramkbytesfree=30524
+ cat /proc/meminfo
+ sed -n 1p
+ awk {print $2}
+ grep Cached
+ ramkbytescached=53668
+ ramfree=29
+ ramcached=52
+ ramreportedfree=81
+ echo Note that "Used RAM" INCLUDES Cached Apps!!
Note that "Used RAM" INCLUDES Cached Apps!!
+ echo

+ sleep 1
+ echo ================================================
================================================
+ echo RAM Stats BEFORE Engine Flush...
RAM Stats BEFORE Engine Flush...
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo Total: 341 MB Used: 312 MB True Free: 29 MB
Total: 341 MB Used: 312 MB True Free: 29 MB
+ echo

+ sleep 1
+ echo Reported Free by most tools: 81 MB Free RAM!
Reported Free by most tools: 81 MB Free RAM!
+ echo

+ sleep 1
+ echo ================================================
================================================
+ echo True Free 29 MB = "Free" 81 - Cached Apps 52
True Free 29 MB = "Free" 81 - Cached Apps 52
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo ...OR... True Free RAM 29
...OR... True Free RAM 29
+ echo Cached Apps + 52
Cached Apps + 52
+ echo ========
========
+ echo Reported "Free" RAM = 81 MB
Reported "Free" RAM = 81 MB
+ echo

+ sleep 1
+ busybox sync
+ echo ================================================
================================================
+ echo -n Engine Flush In Progress...
Engine Flush In Progress... + busybox sysctl -w vm.drop_caches=3
vm.drop_caches = 3
+ echo ================================================
================================================
+ echo

+ sleep 3
+ busybox sysctl -w vm.drop_caches=1
+ awk { print $3 }
+ free
+ sed -n 2p
+ ramused=301
+ sed -n 2p
+ awk { print $4 }
+ free
+ ramkbytesfree=40688
+ grep Cached
+ cat /proc/meminfo
+ awk {print $2}
+ sed -n 1p
+ ramkbytescached=44600
+ ramfree=39
+ ramcached=43
+ ramreportedfree=82
+ echo ================================================
================================================
+ echo ...RAM Stats AFTER Engine Flush
...RAM Stats AFTER Engine Flush
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo Total: 341 MB Used: 301 MB True Free: 39 MB
Total: 341 MB Used: 301 MB True Free: 39 MB
+ echo

+ sleep 1
+ echo Reported Free by most tools: 82 MB Free RAM!
Reported Free by most tools: 82 MB Free RAM!
+ echo

+ sleep 1
+ echo ================================================
================================================
+ echo True Free 39 MB = "Free" 82 - Cached Apps 43
True Free 39 MB = "Free" 82 - Cached Apps 43
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo ...OR... True Free RAM 39
...OR... True Free RAM 39
+ echo Cached Apps + 43
Cached Apps + 43
+ echo ========
========
+ echo Reported "Free" RAM = 82 MB
Reported "Free" RAM = 82 MB
+ echo

+ sleep 1
+ echo ================================================
================================================
+ echo ...Enjoy Your Quick Boost ;^]
...Enjoy Your Quick Boost ;^]
+ echo ================================================
================================================
+ echo

+ sleep 1
+ [ 4 -ne 0 ]
+ echo =====================================
=====================================
+ echo ) Engine Flush-O-Matic Completed! (
) Engine Flush-O-Matic Completed! (
+ echo =====================================
=====================================
+ echo

+ sleep 1
+ echo If desired, you can change options for...
If desired, you can change options for...
+ echo

+ sleep 1
+ echo ================================================
================================================
+ echo -=Engine Flush-O-Matic=-
-=Engine Flush-O-Matic=-
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo Current Status...
Current Status...
+ echo

+ sleep 1
+ [ 4 -ne 0 ]
+ echo Engine Flush-O-Matic is ON @ 4 hour intervals!
Engine Flush-O-Matic is ON @ 4 hour intervals!
+ echo ==============================================
==============================================
+ echo

+ sleep 1
+ echo You can turn it on or off...
You can turn it on or off...
+ echo

+ sleep 1
+ echo ...or just change how often it runs ;^]
...or just change how often it runs ;^]
+ echo

+ sleep 1
Note that when it's enabled...

================================================
-=Engine Flush-O-Matic=- on boot is AUTOMATIC!
================================================

Since it is loaded via *99SuperCharger... heh.

+ echo Change Options? You have 20 seconds to decide!
Change Options? You have 20 seconds to decide!
+ echo

+ sleep 1
+ echo -n Enter Y for Yes, any key for No:
Enter Y for Yes, any key for No: + [ Y ]
+ changeoptions=Y
+ echo Y
Y
+ echo

+ echo ================================================
================================================
+ changedopt=yes
+ mount -o remount,rw /system
+ busybox mount -o remount,rw /system
+ busybox mount
+ grep system
+ awk {print $1,$3}
+ sed -n 1p
+ busybox mount -o remount,rw /dev/block/mtdblock0 /system
+ echo -=Engine Flush-O-Matic=- Options
-=Engine Flush-O-Matic=- Options
+ :
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo -n Enter E to Enable, D to Disable:
Enter E to Enable, D to Disable: + read able
E
+ echo

+ echo ================================================
================================================
+ echo -=Engine Flush-O-Matic=- ENABLED!!
-=Engine Flush-O-Matic=- ENABLED!!
+ echo ================================================
================================================
+ echo

+ sleep 1
+ echo How often do you want it to flush?
How often do you want it to flush?
+ :
+ echo

+ sleep 1
+ echo -n Enter a value from 1 to 24 (hours):
Enter a value from 1 to 24 (hours): + read flushOmaticHours
4
+ echo

+ echo ================================================
================================================
+ echo Engine Flush-O-Matic Set To Run Every 4 Hours!
Engine Flush-O-Matic Set To Run Every 4 Hours!
+ break 2
+ sed -i s/^flushOmaticHours=.*/flushOmaticHours=4/ /data/V6_SuperCharger/!FastEngineFlush.sh
+ mount -o remount,ro /system
+ busybox mount -o remount,ro /system
+ grep system
+ awk {print $1,$3}
+ sed -n 1p
+ busybox mount
+ busybox mount -o remount,ro /dev/block/mtdblock0 /system
+ echo ================================================
================================================
+ echo

+ sleep 1
+ [ 4 -eq 0 ]
+ echo ================================================
================================================
-=Engine Flush-O-Matic=- is already in memory!
================================================

69|root@android:/sdcard # ps -w | grep -i fast
12477 root 1204 S grep -i fast
root@android:/sdcard # ps -w | grep -i flush
4782 root 0 SW [kdmflush]
4818 root 0 SW [kdmflush]
4827 root 0 SW [kdmflush]
4854 root 0 SW [kdmflush]
4872 root 0 SW [kdmflush]
4882 root 0 SW [kdmflush]
4899 root 0 SW [kdmflush]
4921 root 0 SW [kdmflush]
4977 root 0 SW [kdmflush]
5039 root 0 SW [kdmflush]
5063 root 0 SW [kdmflush]
5076 root 0 SW [kdmflush]
5138 root 0 SW [kdmflush]
5168 root 0 SW [kdmflush]
5227 root 0 SW [kdmflush]
5248 root 0 SW [kdmflush]
5291 root 0 SW [kdmflush]
5300 root 0 SW [kdmflush]
5322 root 0 SW [kdmflush]
5328 root 0 SW [kdmflush]
11829 root 0 SW [flush-179:0]
12116 root 0 SW [flush-31:0]
12493 root 1204 S grep -i flush
root@android:/sdcard #