yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] dorimanx:
just wait for first activation,

read the manual :)

what you run is script that show files that cron will write if it made some task to work.

you will see what task worked and on what time.

my shows!

/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:Fri Aug 12 00:00:09 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:Fri Aug 12 00:51:58 IDT 2011

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

but its running 2 days now.

so i see the tasks from last night. and from recent and now.

EDIT!

i see that the timezone for crontab needs to be calibrated for each country!

so here is the corrected manual!

Before you install the CROND

open terminal

su

date

you will see something like this.

Fri Aug 12 01:18:27 GMT 2011 (this is my time, you will see different and possible not corrected time!)

I set this for me!

TZ=GMT-2GMT but this is reversed! i am on GMT +2 but i must set it -2 for some strange reason to get corrected time when i type date

so play with changing the numbers in that command till you see correct time and date when you run date

then set the correct setting in my zip in 991cron and install it!

all will work in corrected TIME.

Thanks...
[HD2 Android NAND Development] fhasovic:
Sorry, my bad! Thanks!
[HD2 Android NAND Development] gerardroid:
ok installed the new 1.1 30/45 min ago and still when i run gscript it says:no such file or directory

:confused:it should have worked already/done something?
[HD2 Android NAND Development] fhasovic:
Same here!
[HD2 Android NAND Development] krook6023:
That is my thought exactly, I will give it some time or wait for clarification.

Sent from the mind of a krook using XDA Premium App
[HD2 Android NAND Development] dorimanx:
check if cron run

in terminal

ps | grep cron

should return line with numbers and crond
[HD2 Android NAND Development] fhasovic:
Well, looks like we don't have crond installed. Just checked ROM zip file and couldn't find the crond binary anywhere...
[HD2 Android NAND Development] dorimanx:
Ok found good way to set the Time zone!

GO HERE

Find you country!

look for this line

Friday, August 12, 2011 at 01:49:14 IDT (look at the end, i see IDT you will see something else for your country.)

Current time zone offset:UTC/GMT +3 hours

so for me to set corrected time zone i set

TZ=IDT-3

it's opposite to what site say +3

Do it for your timezone

change file 991cron

zip all back and install.

then run in terminal

date

if the date & time are correct then all will be OK.

========================================

crond is installed with the busybox!

do

ps | grep crond

you get something like this (after you install configured ZIP)

# ps | grep crond

root 4338 1 2188 420 c00bf130 00008a7c S crond
[HD2 Android NAND Development] dublus:
For those of us in the Pacific Time Zone (or equivalent) the original time zone edit is all that is needed. Just Change the "2" to a "-7" and it will work because the PDT represents our time zone.
[HD2 Android NAND Development] dorimanx:
all that really matter is if you run date in terminal you see your real time!

if no then use my guide to set the corrected time zone in phone!

after edit and save, (and delete backup file if you use root explorer)

then run

ps | grep crond

then kill the PID

OR

kill `pidof crond`

Then run to start crond with changes!:

sh /etc/init.d/991crond

good luck.
[HD2 Android NAND Development] gerardroid:
:(:(..rebooted my phone many times today:no probs...followed your latest intructions for the cron...after reboot.my phone got stuck at the white android??cleared chaches booted again ..yes!!but when finished half off my apps didnt show again!! in the phone,when trying to back up with titanium is start to reboot right away....pfff i give up/surrender....

edit:returned to 2.7.2 booted just fine and got all my apps back, data is working(not100% in 2.7.4)and 1market is also working again which didnt work in 2.7.4....so for me ill stay just here till the next update and start/try the cron from 2.7.2 tomorrow...good night:)
[HD2 Android NAND Development] rashidkn:
hi dorimanx .

how can i test my cron installed or not

i hit in terminal : ps | grep crond :(

but no go and return to next line with #

and next question : my time zone set to "tehran with gmt:3.30 "

i already change my gmt in cron zip pack to "3" ". (true or not )????????

how i can set this in "cron" thanks.

and sorry i run this "cron-check" in gscript but return " grep:/data/cron-*:no such file or directory"

whats wrong. i just set my time zone(but not sure true or false) and flashed with CWR.
[HD2 Android NAND Development] krook6023:
Did all this but except could not run,

sh /etc/init.d/991crond

I will try again tomorrow

Sent from the mind of a krook using XDA Premium App
[HD2 Android NAND Development] dorimanx:
did you install the latest cron 1.1 from mirror?

its must run after install.

did you change the busybox? its shuld be 1.17 or more, we have 1.19 by default.
[HD2 Android NAND Development] Visentinel:
Awesome we got cronies :) nice work DM.

Also I have a post on page 212 and 213 but no reply to either >.< how upsetting.
[HD2 Android NAND Development] rashidkn:
i installed latest rom 2.7.4.1 with cron 1.0 and no change to rom defaults.

now i try cron 1.1 and return result to you thanks.

upd :same errors

i run this "cron-check" in gscript but return " grep:/data/cron-*:no such file or directory"

and sorry whats your mean about " its must run after install" i must run it manually or its run automatically????

and how can i set for example 4:30 in cron file .
[HD2 Android NAND Development] SkooterD:
I'm on mag 2.7.4.1 high end. Installed cron zip 1.1 it installed, deleted my prioritizer, when i check cron in gscript it says no such file or directory.

Edit...ok sorry, finally got it to run by running su then ps|grep crond in terminal.

Sent from my Hd2- Eating typhoons and ****ting hyperdroids with my DORIMANX Rom.
[HD2 Android NAND Development] Herk718:
@ DorimanX

Ive Been Trying And Trying To Set The Crond imezone ight And Still Unsuccessful :( On The Chart You Listed In Your Previos Post, My Timezone For U.S.A NewYork Is Listed At -4 EDT. So I Tried With That No Success :( Then I've Tried To Change The "-" Into A "+" Still No Luck, When I Type "Date" In Terimal I Get The Right Date But Wrong Time (Its Actually Wrong By 17 Minutes Ahead) Please Help..... PS: Also Note Im On Light Edition Of Your 2.7.4.1 DorimanX Rom...... Thanks In Advance If U Can Help With This ;)
[HD2 Android NAND Development] dublus:
In the first page it says there can be current drain caused by the default email app (email.apk) and/or caused by the default lock screen (ADW I guess?). Off and on I have 65-70ma drain while the phone should be sleeping so I deleted email.apk but no change.

Is it the default launcher (ADW) that's the likely problem and, if so, how do I verify that? I've tried every tool that's been mentioned here and right at the moment the current drain is happening none of them show anything out of the ordinary. No wake lock, OS Monitor, nothing seems to be able to "catch" the culprit.

How does one find the source of current drain when the tools designed to detect it show no app or service drawing current? Is there a way to temporarily disable ADW? I know this has been discussed to death but none of the standard tools seem to be of any help.
[HD2 Android NAND Development] netson99:
hi dorimanx, i have check it, 991crond is using dos format.

(it's from 1.1 zip file).
[HD2 Android NAND Development] samjunctio:
Hi dorimanx,

When incoming call ends, phone stops responding. Power button does not turn on the screen and after some time phone goes into reboot. This has happened twice.
[HD2 Android NAND Development] Visentinel:
I don't think my crond is working.

I set timezone -10 for GMT+10 Australia EST

Installed the 1.1 and let it run for a few hours.

The status script still says no such file or dir
[HD2 Android NAND Development] feanor91:
Hello

Well big problem with crond...

Ih have no such process in ram, I have save my process in a txt file, but my phone is down, I have to reflash ram.

Has you said crond is in busybox, I try to install it from market, then reboot...Well bad idea : bootloop...

So back to basis, I reflash rom and will not applied crond patch hope it will worked. After all, all was well before your crond operation.
[HD2 Android NAND Development] dorimanx:
if you run

ps | grep crond

do it return something?

i asked to set time zone in 991crond not the time.

look for guide on page 3

if you want to run task script at 4 30

cange line 0 4 * * * at file /data/cron/root
[HD2 Android NAND Development] dorimanx:
ok,

try this,

go to settings, time and date,

remove checked auto time, wait 1 sec and put it back,

now run date

its should sync the minutes.
[HD2 Android NAND Development] dorimanx:
do you wifi can turn on and off ok when high drain?

if no install wifi driver from mirror.
[HD2 Android NAND Development] dorimanx:
really!!!

damm fu@#@#&dos!

i will fix and reupload! ver 1.2

thanks!!!
[HD2 Android NAND Development] Hinnne:
Wifi dis-and reconnect soon

Hi,

I flashed the new wifi wpa driver.like before with the original 2.7.4.1 clk light version my hd2 often loses the wifi for a view seconds, switches to data and reconnects wifi a second later. What could be the problem. I think this is not normal.

battery drain seems to be better as I thought before.
[HD2 Android NAND Development] dorimanx:
this reconnect, thing.. i have it too..

i cant find for now what do it,

maybe it's something in nightly code changed.

all wifi drivers are in place. and now we use the latest wifi drivers from build 159

and before was from tytung kernel, it's probably no longer supported, nightly changes running fast!
[HD2 Android NAND Development] Herk718:
@dorimanx

Ok got the correct time, but now when I go to push " ps | grep crond " in terminal it does nothing at all even when I try your alternative and few post back, the kill something thing... it still does nothing. And I'm run all processes with superuser permissions :(
[HD2 Android NAND Development] feanor91:
@Dorimanx :

Well dude, you conduct me to a beautifull big mess. Part on shame on me because I did not made backup before trying cron....After I have restored rom by flash, I lost almost 80% of my apps(!?) well, I restored them from my last titanium save, all have restarted. But I see something very strange in Titanium : I see an app line : cron striked out, like an non instaled app but, the point is that titanium say I have no backup for cron...? So If I have not cron, I can't use any cron things. Perhaps, it's the same thing for people that have problem with cron.

A track to follow?

Besides t
[HD2 Android NAND Development] dorimanx:
i have reuploaded fixed cron zip 1.2

sorry, the file format was pc and need to be unix.

i fixed that.

please install and see if ok ;-)
[HD2 Android NAND Development] Visentinel:
DM still no

Reply on my post back on page 212?
[HD2 Android NAND Development] dorimanx:
i have no idea why you lost all apps!

this should not happen!

the zipaling not working, there is no app that do that,

sorry, its strange, maybe you have bad blocks on nand?

cron is not app, its service, its will not have backup.
[HD2 Android NAND Development] feanor91:
Don't know, but it's not the point what about cron not installed?
[HD2 Android NAND Development] radar-a:
I install cron ver. 1.2 change time zone but "check cron" script still says no such file or dir. :mad::eek:
[HD2 Android NAND Development] Herk718:
@ DorimanX

Still nothing bro :( its not pushing the command.... quick question, inside the 991crond file, do I have to change all the minus signs into plus signs? or just the one next to timezone inside the 991crond file?
[HD2 Android NAND Development] Herk718:
@ DorimanX

Being that according to my timezone in the chart its -04:00 EDT and you said in previous post put thee opposite RITE?
[HD2 Android NAND Development] GigahurtzUK:
Same here, in terminal emualtor typing su and then ps | grep crond does nothing as well. Any help please as I am loving your ROM at the mo.

Thx
[HD2 Android NAND Development] Visentinel:
Installed 1.2

PS | grep crond

Nothing
[HD2 Android NAND Development] feanor91:
In what folder we must find cron (or crond app)? I have a folder called cron emty, in xbin i have only adb and in bin i have nothing called cron.
[HD2 Android NAND Development] drive1975:
Hi dorimanx, I istalled cron 1.2 but if i try cron_check script see:

stderr: grep: /data/cron-* : no such file or directory

into /data/cron i see only root file
[HD2 Android NAND Development] dorimanx:
repost the question,
[HD2 Android NAND Development] gerardroid:
well glad i was not the only one with the data probs: i went back to 2.7.2 (and updates/ fixes) no more data prob and batt. Life is perfekt: also still have a no go with the cron: well we have a New Fresh Day Ahead of us:)
[HD2 Android NAND Development] dorimanx:
OK, OK, i got it,

i will recheck all again,

please wait!

EDIT!!

Uploaded CRON 1.3

Checked now all ok on boot! and script will work,

changed script name to 99wcrond

change your timezone as in guide,

install,

check that

ps | grep crond

show you the process

and type date

to see if the phone internal time and date are sync!

wait 10 minutes and run the check script.
[HD2 Android NAND Development] Tiger22:
Thanks for your HARD WORK !!!

Here my 2. Donation: 24P47152D8791162K

Greetz...

Tiger22
[HD2 Android NAND Development] feanor91:
Hi, her a screen shot of PS and 2 files showing my runing process just after reboot for the first and now (after trying to run cron) for the second as you can see nothing called cron or crond

Edit

I suppose you applied that : http://www.imoseyon.com/2011/02/cron-on-android-is-awesome.html ?
[HD2 Android NAND Development] dorimanx:
Thanks for support! got it :)
[HD2 Android NAND Development] dorimanx:
crond LINK to busybox

is in /system/xbin

do not change it, or move it , or delete it.
[HD2 Android NAND Development] dorimanx:
yes,

all should work now.

please use cron 1.3 from mirror.

Thanks for testing to all of you!

without you all testing and give feedback, i can never make it really work!

THANKS!!!
[HD2 Android NAND Development] feanor91:
OK, crond is here as you said. Good thing.
[HD2 Android NAND Development] drive1975:
sorry but nothing for me... :(

Update to cron 1.3 (setting correct time zone to -2)

reboot

but if type ps | grep crond response in terminal emulator is nothing...

the internal time and date are sync...

after 10 minute check script responding no souch file or directory
[HD2 Android NAND Development] fhasovic:
I have found an error in updater-script, you haven't updated reference to new script:

set_perm(0, 2000, 0750, "/system/etc/init.d/991crond");

and there should be

set_perm(0, 2000, 0750, "/system/etc/init.d/99wcrond");
[HD2 Android NAND Development] gerardroid:
same here:confused:
[HD2 Android NAND Development] feanor91:
Exactly the same for me. Restoring my backup (yes, this time, I made one...;))

How can I help?
[HD2 Android NAND Development] radar-a:
OK I give up. Still nothing :mad::(
[HD2 Android NAND Development] GigahurtzUK:
1.3 Cron working

1.3 zip has fixed it. Not had chance to see the benefits yet, will probably do a fresh wipe task29 and re install ROM and Cron to have a clean slate. Will report back. Have to say you are the most dedicated cook I have seen and have made HD2 a joy and cutting edge for an ageing device. Will donate A.S.A.P

Thx
[HD2 Android NAND Development] feanor91:
Lucky boy :(
[HD2 Android NAND Development] steptoweb:
Reboot -> AD Recovery -> Install zip from SD card -> Choose zip file -> Install - > Instalation aborted....WTF?
[HD2 Android NAND Development] drive1975:
I have modify updater-scrip and re-install ..

now all ok

ps | grep crond now response with corret process and check script response with runing script.txt every 10 min

thanks

Drive1975
[HD2 Android NAND Development] dorimanx:
cool, thanks

I will update it, cron take 1.4 will be posted soon ;-)
[HD2 Android NAND Development] gerardroid:
set_perm(0, 2000, 0750, "/system/etc/init.d/991crond");

and there should be

set_perm(0, 2000, 0750, "/system/etc/init.d/99wcrond");

did you try to change the above?after trying to change/reflash this i also got a instalation aborted...will wait for dorimanx to post 1.4:D:D
[HD2 Android NAND Development] dorimanx:
POSTED the Cron 1.4

hope this is the last :)

Please look for file 991crond in your system/etc/init.d/ folder and delete it, to clean the old script.

Thanks.
[HD2 Android NAND Development] dorimanx:
Thanks for support and kind words :)

Try my best :)

And i have wonderful team to back be up :)

Real testers and smart users! this is great!
[HD2 Android NAND Development] gerardroid:
hate to be a party pooper but:( :

-removed the old script

-installed cron 1.4(correct time zone to cest /-2)flashed and rebooted

-but if type ps | grep crond no response in terminal emulator

-checked the internal time and date are sync

-after 10 minute check script responding no such file or directory
[HD2 Android NAND Development] Visentinel:
And it gets even worse.

All of the above for me to and the new script name causes 99script to not run. I no longer have swap enabled on boot. So I'm going to remove the new script and reboot.
[HD2 Android NAND Development] Visentinel:
Ok after reboot still no swap, so I typed swapon -a and then swap is working.

Wow. Maybe 99script still isn't auto running, must be something the crond install broke :(
[HD2 Android NAND Development] dorimanx:
this script run after 99script,

this why i name it 99wcrond

i have swap OK, and i have the same script!

try to run it manually and tel me if any errors

su

sh /etc/init.d/99wcrond

then

ps | grep crond

=====================

Another thing!

I have uploaded small fix 2.7.4.2 to reduce LAG on boot and on heavy load.

+ new wifi driver,

+Total mask for our phone to be Google Nexus One

see change log.
[HD2 Android NAND Development] dorimanx:
just install update 2.7.4.1 to fix the script...

then you can install 2.7.4.2

then install cron 1.4

all should work ok.

i have the same phone :)

ps | grep crond
root 1054 1 2188 416 c00bf130 00008a7c S crond

# sh cron-check.sh
/data/cron-clear-file-cache:Fri Aug 12 04:00:02 GMT 2011
/data/cron-clear-file-cache:runing reboot.txt to clear cache without reboot every 4:00AM
/data/cron-clear-ram-cache:Fri Aug 12 12:00:04 IDT 2011
/data/cron-clear-ram-cache:runing clear ram cache every 6 Hours
/data/cron-clear-swap:Fri Aug 12 04:20:38 GMT 2011
/data/cron-clear-swap:runing clear swap every 4:20AM
/data/cron-renice:Fri Aug 12 14:21:02 IDT 2011
/data/cron-renice:runing script.txt every 10MIN
#
#
# free
total used free shared buffers
Mem: 421004 385340 35664 0 10176
-/+ buffers: 375164 45840
Swap: 250392 3628 246764
#
#
# cd /etc/init.d/
# ls
00banner 01sysctl 03firstboot 10apps2sd 20userinit 95cache 99script
01_modules 02_htcleo 05mountsd 11dalviklocation 90ramscript 98cpu_voltage 99wcrond
#
#
[HD2 Android NAND Development] gerardroid:
QUOTE=dorimanx;16579483]this script run after 99script,

this why i name it 99wcrond

i have swap OK, and i have the same script!

try to run it manually and tel me if any errors

su

sh /etc/init.d/99wcrond

after that it says:not found bad variable name

the small update can it also be used when your on 2.7.2?

=====================
[HD2 Android NAND Development] dorimanx:
yes update can be used on 2.7.2 (but you will see in About that you on 2.7.4.2 :)

it's just numbers :)

i know why you get that!

you must edit the 99wcrond file with notepad ++ or EditPlus!

or it's will be saved as PC format, and not as UNIX

do this to check

su -

vi /etc/init.d/99wcrond

if you see ^M on every end of the line then your script damaged!

it's on PC format!
[HD2 Android NAND Development] Visentinel:
I followed your instructions

Flash 2741

Flash 2742

Flash crond 1.4

$ export PATH=/data/local/bin:$PATH

$su

# ps | grep crond

# ps|grep crond

# ps | grep crond

# free

total used free shared buffers

Mem: 421004 396156 24848 0 9268

-/+ buffers: 386888 34116

Swap: 0 0 0

# swapon -a

# free

total used free shared buffers

Mem: 421004 394176 26828 0 9272

-/+ buffers: 384904 36100

Swap: 250188 0 250188

#

Still broken
[HD2 Android NAND Development] feanor91:
I check my swap and I have lost the 250M one in sd-ext, try to rebuild-it right no.

There is something wrong o,n some phone with your last script I think, but what...Didn't no. or perhaps is my restore from this morning that crashed something in.

Edit : OK, I have again all my swap.
[HD2 Android NAND Development] feanor91:
Wht is the right to applied to 99wcrond? I will try the manipulation by hand, to see if I have an error. I supose 777 but for chown?
[HD2 Android NAND Development] gerardroid:
OK installed run it and got:

root 1944 1 2188 416 ffffffffff 0000000 s crond

is it ok now?:D
[HD2 Android NAND Development] gerardroid:
ok ran gscript and says runningscript text every 10 min...so its cool now(i hope):D:D

i think my sd swap is not working anymore also..
[HD2 Android NAND Development] feanor91:
Dude, is good for me now...At least :p

Flash v1.4 and new fix at the same time, and all it's good. crond is running, and I have all my swap.

Good job man
[HD2 Android NAND Development] clio94:
dorimanx it seems that you made the big trick for the new market :D

i have install latest 2.7.4.2 light update rom and now i can install facebook for android,3g watchdog which i couldnt before.
[HD2 Android NAND Development] Visentinel:
This is what I get with I use the VI command

#!/system/bin/sh

#Created By Dorimanx

# enable crond

echo "root:x:0:0::/data/cron:/system/bin/bash" > /etc/passwd

# crond has "/bin/sh" hardcoded

ln -s /system/bin/ /bin

# set timezone

TZ=IDT-10

export TZ

# use /data/cron, call the crontab file "root"

crond -c /data/cron/

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

~

- etc/init.d/99wcrond 2/13 15%
[HD2 Android NAND Development] wbonney4:
System Tuner

With Crond do we still need to run system tuner
[HD2 Android NAND Development] SkooterD:
@ Dorimanx

I set my time zone with editplus before flash. When I run date in terminal it shows my correct time and date, but when I run check crond in gscript lite it shows wrong time and IDT instead of CDT is this a problem?:confused:
[HD2 Android NAND Development] mandrakur:
Cron is working now (time is the same) dual swap too,high-end 2.7.4.2 CLK.
[HD2 Android NAND Development] ORiZorrie:
I finally managed to get a recent battery life out of this ROM by removing a lot of widgets from the home screen. Allthough I also used these widgets on other ROM's and had significantly better battery life. However, this is not a real problem.

The biggest problem for me is the signal strength. Before I flashed this ROM I had 'HyperdroidGBX' ROM, i could easily browse the web from whatever location in the office. Now I don't get signal on some places. I also noticed this during my holiday but expected that it was the environment that had slightly changed. However, I switched back to the old ROM and indeed, I simply have a better signal with that ROM.

So if possible, please look into this problem. If necessary I can test several things of course. At the moment I will have to stick with the other ROM because I cannot be unreachable on my phone. Overall, that's the main purpose of the device ;-)

Edit: Providing a little more feedback. In the past I had H everywhere, except on some places, there signal went to Edge. Now it just goes quite fast from H, to E to no signal at all.
[HD2 Android NAND Development] michie:
Switch to 2G only, you will always have full reception then. It's some sort of problem with android on the HD2....