[HD2 Android NAND Development] dorimanx:
CRON TASK and WIFI driver!

Hello :)

i have finally cooked the CROND task service configuration, thanks to LIT!

i have uploaded file CRON-TASKS.zip to mirror.

SO HOW TO CONFIGURE IT BEFORE INSTALL!!!!

Open the zip!

in folder /system/etc/int.d

open file 991cron with notepad ++ of EditPlus (not with notepad)

find this:

TZ=PDT2PDT

This is the TIME ZONE! it's important!

my setting set it to +2 (israel time)

set it to yours! you can use -1,-2,-3,-4... or 1,2,3,4,...

then save and install

WHAT IS IT DO?

First it's will remove the Phone prioritizer app, and save you 60MB ram,

Then CRON will RUN this:

Run the prioritizer script every 10 minutes to speed up the phone!

1-59/10 * * * * sh /mnt/sdcard/phonePrioritizer/script.txt;date > /data/cron-renice;echo "runing script.txt every 10MIN" >> /data/cron-renice

Run Clear file Cache every 4AM!

0 4 * * * sh /mnt/sdcard/phonePrioritizer/reboot.txt;date > /data/cron-clear-file-cache;echo "runing reboot.txt to clear cache without reboot every 4:00AM" >> /data/cron-clear-file-cache

Run Clear RAM Cache every 6 hours day/night to speed up the phone!

0 0-23/6 * * * sync;sysctl -w vm.drop_caches=1;sleep 3;sysctl -w vm.drop_caches=0;date > /data/cron-clear-ram-cache;echo "runing clear ram cache every 6 Hours" >> /data/cron-clear-ram-cache

Clear SWAP and re-enable it back! Release all the LAG cache :) (works for HIGH END, no change for LIGHT ROM)

20 4 * * * swapoff -a;sleep 5;swapon -a;date > /data/cron-clear-swap;echo "runing clear swap every 4:20AM" >> /data/cron-clear-swap

Script that hold the tsks above is in /data/data/cron/root (in install ZIP)

when in phone then in /data/cron/root

Examples:

* * * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every minute!)

0 5 * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 5:00AM)

30 5 * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 5:30AM)

1-59/30 * * * * sh /sdcard/SOMESCRIPT.sh (this will run the script every 30 minutes!)

there are too many combinations, search google :) for crontab settings

Also i have packed small script name cron-check.sh it's will go to /sdcard/gscript

so load it with gscript and then you can check the status of CRON!

this is what you will see!

/data/cron-clear-file-cache:Thu Aug 11 04:00:01 PDT 2011

/data/cron-clear-file-cache:runing reboot.txt to clear cache without reboot every 4:00AM

/data/cron-clear-ram-cache:Thu Aug 11 18:06:56 PDT 2011

/data/cron-clear-ram-cache:runing clear ram cache every 6 Hours

/data/cron-clear-swap:Thu Aug 11 04:20:06 PDT 2011

/data/cron-clear-swap:runing clear swap every 4:20AM

/data/cron-renice:Thu Aug 11 21:21:01 PDT 2011

/data/cron-renice:runing script.txt every 10MIN

if you see this with your time, then all ok!

But you need to wait till it's will be executed!

so first you will see the:

/data/cron-renice:Thu Aug 11 21:21:01 PDT 2011

/data/cron-renice:runing script.txt every 10MIN

after 10 minutes,

all the rest after first execution!

So have fun with it :)

Also i have uploaded new WIFI WPA driver from latest nightly, it's solved my problem with WIFi stack at switching off.. and only reboot helped,

now 3 days with no reboot or stuck wifi :)

Please try and report back.!

I will move the guide about CRON to page 3 :)