• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Merit] [MOD] Add init.d Scripting Function to your Device

stayboogy

Android Expert
Add init.d function without custom ROM

(makes it possible to run various relocation and performance scripts or any other kind of script at boot without a custom rom or custom boot.img)

DISCLAIMER: init.d scripting is original to Linux--there is no one in the Android community that can claim it as their creation. also, this is my work. it was not stolen from anyone as someone here on the boards has suggested. all the other implementations of this feature use many more files than what i have given--files that are USELESS btw. for this phone, this is original to me. and the install-recovery.sh file is original to valueforvalue who totally rewrote it and added logging support that was not there to begin with.



**link2sd / apps2sd unsupported**



requirements:

a) rooted phone

b) cwm recovery

(will install on stock recovery if renamed to update.zip)


***download files using a pc--i do not support / suggest using your phone***


initd-signed.zip


1) download "initd-signed" from above and copy to the root of your sdcard

2) reboot phone into cwm recovery

3)
select "install zip from sdcard"

4)
select "choose zip from sdcard"

5)
select
"initd-signed"

6) select "yes - install"

7)
when finished, reboot the phone

8)
verify "init.d_test_log.txt" exists in "/data/local/tmp/" (there will also be another log in the directory but it's not important at this time--it's added by the new install-recovery.sh)



you now have init.d scripting function available to you



hit the thanks button



SPECIAL THANKS


**thanks to valueforvalue for his modified install-recovery.sh**


**thanks to jamespfassett for his inspiration by mentioning init.d scripting in another thread--he was my muse for this project**

 
Hmm, guess I'm still a big noob lol. What is this useful for boogy?


you can run various scripts at boot if you wish.

this is what was needed to get motorhead's davlik-cache move script working correctly, i assume

most of the init.d tweaks you will find are BUNK but some do work.

you can do various things like tweaking the cpu governor without a modded kernel or third party app, relocate files, delete files, edit files, and other things that might be useful

this might help you in finding a way to use /dev partition for something useful ;)
 
you can run various scripts at boot if you wish.

this is what was needed to get motorhead's davlik-cache move script working correctly, i assume

most of the init.d tweaks you will find are BUNK but some do work.

you can do various things like tweaking the cpu governor without a modded kernel or third party app, relocate files, delete files, edit files, and other things that might be useful

this might help you in finding a way to use /dev partition for something useful ;)

I see, I will have to take a look at it then. Maybe we can come up with something. :-)
 
Tried downloading it with stock browser and with dolphin, unfortunately cwm is telling me the zip is bad. Also tried opening it after with my archive app, says its missing the header files.

Havent tried downloading it with my computer and moving it manually to my card. I'll trt that tomorrow before I go into work.
 
Tried downloading it with stock browser and with dolphin, unfortunately cwm is telling me the zip is bad. Also tried opening it after with my archive app, says its missing the header files.

Havent tried downloading it with my computer and moving it manually to my card. I'll trt that tomorrow before I go into work.


none of this stuff should be expected to work when downloading with phone. that is the problem no doubt. i'll have to start mentioning that i guess. but i assure you the files are fine. it's the method that's the problem.

and they're less than a mb so it won't take 2 seconds to download them on pc.
 
none of this stuff should be expected to work when downloading with phone. that is the problem no doubt. i'll have to start mentioning that i guess. but i assure you the files are fine. it's the method that's the problem.

and they're less than a mb so it won't take 2 seconds to download them on pc.
Haa yeah I figured it had something to do with downloading it on my phone. Late and my lazy ass is laying down in bed. I'll just do it in the morning when I feel like moving :D
 
AWWW!

Beat me too it! You win, LOL!

This is quality... undeniable... Congrats!

EDIT, though if I may, now that init.d is so easily flashed on everyones devices, if you are unfamiliar with what init.d can do, some awesome examples of scripts that will transform your machine can be found here...

http://forum.xda-developers.com/showthread.php?t=1808791

i'm going to put you credit above actually. i was reading a thread here earlier and you briefly mentioned it which was got me to wanting to do it and wanting to figure out how it worked and what it did. i didn't purposely leave you out though. it seems appropriate to mention you above now. sorry for that.

did you already do this on your rom? i never installed your rom, only your theme so if you did, i honestly didn't know lol
 
Hahaha, no no you did it for the masses brother, this is good.
SFf 1.1 does not have init.d, but I got it working on my personal copy a few days ago, and figured I would just sandbag, for a bit and release it with 2.0

This is good, I had not even thought of this approach to it, you are an idea man, I like it.
But I dont want credit for this, I have not made it available the way you have. The credit is yours my friend. Very good work.
 
Really enjoying the init.d scripting functions stayboogy, It's literally helped me get rid of numerous apps by replacing them with a few small bash scripts :).
 
Really enjoying the init.d scripting functions stayboogy, It's literally helped me get rid of numerous apps by replacing them with a few small bash scripts :).

like what scripts for example??? i might need them too lol

PM me, if you don't mind.
 
Would someone be kind enough to explain what init.d scripting is/means.

this provides the ability to run scripts at boot, such as relocating dalvik-cache and other things.

many scripts and tweaks for this you will find online are bunk and don't do anything, nor do they speed up your phone. but some do actually help free up space and you can potentially replace some system apps (depending on what you need and do)
 
Add init.d function without custom ROM

**link2sd / apps2sd unsupported**

this will add init.d scripts function to your phone should you desire it.

requirements:
a) rooted phone
b) cwm recovery

**download using a pc--if your download doesn't work or you can't get it to work at all and you used your phone to download the files, that's the problem. use a pc.**

final-add-scripting-to-stock-rom.zip

1) download "final-add-scripting-to-stock-rom.zip" from above and copy to the root of your sdcard

2) reboot phone into cwm recovery

3) select "install zip from sdcard"

4) select "choose zip from sdcard"

5) select "final-add-scripting-to-stock-rom.zip"

6) select "yes - install"

7) when finished, reboot the phone

8) verify "init.d_test_log.txt" exists in "/data/local/tmp/" (there will also be another log in the directory but it's not important at this time--it's added by the new install-recovery.sh)


you now have init.d scripting function available to you on stock rom

hit the thanks button

SPECIAL THANKS

**thanks to valueforvalue for his modified install-recovery.sh**

**thanks to jamespfassett for his inspiration by mentioning init.d scripting in another thread--he was my muse for this project**
Stayboogie, for some reason this script file doesn't work for me. I DL file to my computer , then copied it to my sdcard and ran it from cwm. It doesn't have the init.d_test_iog.txt file in "/data/local/temp/ " either. Any ideas? thanks (I tried three times on rooted ATT Avail)
 
zip updated

stupid busybox always causing problems... such worthless commands.

should work whether you have busybox installed or not
 
I never put busybox on ROM but since I was getting busybox errors I assumed it was already there from the ROM I used so I updated busybox & it worked.
 
I never put busybox on ROM but since I was getting busybox errors I assumed it was already there from the ROM I used so I updated busybox & it worked.

what worked? are you talking about this?

i've removed busybox commands from the updater-script altogether because they are useless and actually prevent some people from getting this installed properly

busybox has been causing a lot of problems in my releases actually and i've since completely removed it from them all (i think)
 
I didn't realize you updated it. When I did it I got Busybox errors. I went to Google Play & got Busybox. It worked perfect after that but Busybox said I had a older version on the phone already. I use Link2SD also & nothing ever broke. It worked perfect for me.

Thanks for sharing your work with us.
 
zip was updated yesterday. confirmed on my end to work both on avail and merit.

has NOTHING at all to do with busybox anymore...
 
Back
Top Bottom