[Hero CDMA Android Development] :
Okay since the browser isn't letting me multi-quote basically its like this:

@JM and others interested in helping me with v1.5 - you can use infinite loop scripts as startup init.d scripts BUT you must have the script wait until the phone has booted so that it won't start during the boot process so that it won't cause bootloops or cause the phone to get stuck at the htc white screen. This is the difficult part BECAUSE all phones are different. For instance my phone boot very fast so I have a personal sleep time in the ssgs file of 20. BUT another person might need it to be 30, 40, or even 50! The thing is the higher the sleep value the longer it takes the phone to boot :( The phone tries to execute the script but since the script says it will sleep for a certain amount of time (the number after sleep is in seconds) it won't start the loop until that many seconds have passed. So it looks like oostah and Pyr0TeK phones can't handle a sleep time of 40 seconds. So my advice for oostah and Pyr0TeK since you volunteered to be my testers for v1.5 :D is to do this. Extract the 3 scripts (battery, capped or uncapped performance and balanced zips). Then open the tmp folder and then open the ssgs file using your desktop or note editor in es file explorer or whatever suits you. THEN! change the value after sleep from 40 to 60 or higher. Then backup to the main folder directory and multi-select the three folders (meta-inf, system, and tmp) and compress then into an zip. Then reboot into clockworkmod recovery and wipe data, cache, and dalvik then flash the new zip with a higher sleep time and then wip data, cache, and dalvik again! Now when you boot the phone this time give it at LEAST 5 minutes. This may seem like forever if you're watching your phone so go for a jog around your the neighborhood with it in your pocket or something :D Or you can watch it :D I would personally watch it just because you need to find out what sleep value works for you! Because if you up'd the value to 60 from 40. And it doesn't hang on htc splash screen now and the scripts sleep time ran out and it starts during the boot animation you could now get boot loops!!!! :eek: So I'm thinking about just making the default sleep value 80! Double of 40 and that would make the reboot times VERY long but hey the infinite script would work for everyone :D But personally i use

sleep 30

. that is what i use personally. but again oostah and Pyr0TeK try that if you'd like and jasonmaloney if you want you can try it too, not to say you need my permission to do so because you don't lol :D (i know we've had our differences in the past but this is to better our phones and that's what xda is about :D).

If you need me to explain this more I will. Also JM I promised you a documentation on what all of my values are doing to certain files and I'll get that up whever I get on my desktop. Right now I'm in the library lol :D

EDIT: I develop on my phone when I get bored. I can't do much but it satisfies my need for something to do :D Even though developing on a computer is much better :D :D :D but I'll check to see if i can see that file using adb shell later

And oostah read this post and any others who volunteer to test this for me :D

Remember boot times can take a LONG LONG LONG LONG LONG time with this or at least until you find the lowest sleep value your phone can handle. I optimized my phone to be very fast (I did somethings I personally do to my phone that I don't release). so my boot times are amazingly fast so that's why I can handle a sleep of 30. But oostah try 60 and go up with intervals of 5. Give the phone at LEAST 5 minutes on first boot after script. This post should explain to you why i am able to use infinite loops but why using them might be looked down upon on the heroc because it will raise the boot time so much. I say its worth it because the first boot took a while to boot into phone but afterwards, the 2nd boot and so on were MUCH MUCH MUCH faster :D

Any other questions, comments, help is welcome. Also I'm thinking about opening this up for the public to improve on this script for the heroc. I think we all together can get things solved and stable in this script and improve and implement things much faster if we all work on it together :D What do you all think? Also if enough people are willing to contribute to this how would I set up a github so that we can make commits to the script and so that I can make a web page (i took webdesign for 2 years :D) so that the constant updates will constantly be available on a site and that the github will be the place to do the changes. Idk just throwing out ideas for this script's future.