FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[MOD][APK+SCRIPT+ZIP] Enable Init.d for Any Phones w/o Need of Custom Kernels!!!

3,548 posts
Thanks Meter: 7,213
 
Post Reply Email Thread
2nd November 2012, 02:36 AM |#101  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,213
 
Donate to Me
More
No prob...just hit the thanks button...
The Following User Says Thank You to Ryuinferno For This Useful Post: [ View ] Gift Ryuinferno Ad-Free
 
 
2nd November 2012, 07:39 PM |#102  
Junior Member
Flag Warner Robins,Ga
Thanks Meter: 0
 
More
Red face oldretiredman
Quote:
Originally Posted by Ryuinferno

**Term-init is also used in Droid Manager!!!**

**Featured in the XDA News Portal: Init.d Support for Any Rooted Phone (Thanks to the_scotsman!)


Hi guys...as stated in the title above, I have created a script to be ran in terminal emulator so that it will enable the support of init.d scripts!!!

**Note...this is only for those who do not have init.d support...if you are using custom kernels (cyanogen mod original kernel etc.) that already supports init.d, you shouldn't run this......but if you accidentally ran this, it is ok...won't mess up anything...



init.d support through terminal emulator!!!



What is init.d:


But how?
Concept:
I have recently learnt some linux scripting and was searching for a method to enable init.d scripts support for my phone which has a stock kernel. Inspired by this thread by iridaki, I finally managed to get init.d working in my phone!!! However, I thought of the other users who still do not have a proper custom recovery...how are they gonna flash zip packages? And if it has to be done manually, it requires a lot of typing, changing file permissions etc....a very tedious process...

Therefore, I've decided to come up with a script to automate this process!!! *Drum rolls*...lol


Features:
- Utilises install-recovery.sh (if your kernel supports that, but of course, but most do...) to enable init.d scripts (busybox run-parts required)
- Will add lines in install-recovery.sh if it already exists (will not replace install-recovery.sh because certain apps such as Link2SD requires that to work), creates it if it doesn't
- Creates the init.d folder with correct permissions
- Adds 2 init.d scripts: one for testing, another to ensure that the scripts in init.d folder always have the correct permissions
- Adds sysint in /system/bin, will add the required lines if it already exists
- Deletes duplicate files and lines to ensure the least of errors



Requirements:

- a rooted phone of course...

- busybox with required applets (especially run-parts), if not sure what is this, just install this by Stericson: BusyBox and please reboot after installing before running this script......use "normal install" method, don't use "smart install"...

- terminal emulator such as this



Instructions:
1. Download the file.
2. Place it in the root of your sdcard directory.
3. Launch terminal emulator.
4. Type: su
5. Grant SuperUser access if prompted
6. Type: sh /sdcard/term-init.sh
7. The script will run and follow the instructions! As simple as that...

Example:


**To check whether init.d is working or not, reboot your phone and navigate to /data...you should find a Test.log in there...If it is present, congrats, you have init.d support!



Download:
If you have already read all the instructions and understand them, then click here to download:




Feel free to posts questions below...I will try my best to help......By the way, those who used my script and found that it works, please leave a post here, stating you phone model, android version and ROM...thanks! but don't just leave comnents saying 'it doesn't work' etc...give more details and screenshots if possible...


Hit the thanks button if you like my work...it gives me a boost!
Please don't mirror / modify my work, ask for permissions first...

Thanks for writing this! Used term-init.sh on a ZTE Z990 Avail and it worked perfectly.
3rd November 2012, 08:29 AM |#103  
janmae's Avatar
Senior Member
Thanks Meter: 106
 
More
Samsung Galaxy Mini..stock XWKTN..
success in 1st attempt by 1st method...
4th November 2012, 06:11 PM |#104  
Worked a treat on stock 587 Xperia Kernel, and I just used Script Manager to run it.
4th November 2012, 06:17 PM |#105  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,213
 
Donate to Me
More
Quote:
Originally Posted by XperienceD

Worked a treat on stock 587 Xperia Kernel, and I just used Script Manager to run it.

Yeah...using script manager is another option...
10th November 2012, 05:25 PM |#106  
Junior Member
Flag lagos
Thanks Meter: 0
 
More
Unhappy help
i mistakenly install busybox using d "smart install". what can i do to correct this please????
10th November 2012, 06:12 PM |#107  
Junior Member
Flag lagos
Thanks Meter: 0
 
More
Talking i've done it!
thanks so much! you're a genius!
Attached Thumbnails
Click image for larger version

Name:	2012-11-10-18-01-19.jpg
Views:	326
Size:	55.8 KB
ID:	1471730  
10th November 2012, 06:12 PM |#108  
CiscoX's Avatar
Senior Member
Thanks Meter: 74
 
More
Run busybox and this time select normal install

Sent from my ST27i using xda premium
12th November 2012, 05:32 PM |#109  
Member
Thanks Meter: 5
 
More
5830i does not work
Hi

I have a galaxy ace 5830i
with stock ROM
Here are the parameters of the ROM:
version of droid: 2.3.6 (it is a normal stock)
Baseband version S5830iXXLA2
Kernel: stock
Build number: GINGERBREAD.XXLA4

A few weeks ago i used your first method succesfully, but that time my kernel was flashed with a custom kernel (Rafael Baugis kernel).
All other parameters was the same.

Now (with stock kernel) does not works any of the methods, neither, with terminal, nor with zip).

Test.log doesn't appears in \data

I does not got any error status... With both of the methods it seems that everything is ok, but it doesn't work.

Can you help me?
13th November 2012, 12:28 PM |#110  
bongbongcong's Avatar
Member
Flag Philadelphia
Thanks Meter: 7
 
More
Question How do i know, if i have already init.d on my custom ROM?
Hi, excuse me. I have Note 2 international with custom ROM. My qustion is how can i check whether i currently(already) have init.d support or not in case i don't know/are not sure. Thank you very much, appreciate.
13th November 2012, 10:39 PM |#111  
CiscoX's Avatar
Senior Member
Thanks Meter: 74
 
More
Quote:
Originally Posted by bongbongcong

Hi, excuse me. I have Note 2 international with custom ROM. My qustion is how can i check whether i currently(already) have init.d support or not in case i don't know/are not sure. Thank you very much, appreciate.

Hi.

You can try and see if you have init.d folder under ./system/etc/init.d (you need a root browser).
If you have init.d folder then i'm sure you have init.d support. Some custom Rom's add init.d support if not i'm sure Term-init & Zip-init would do the tricks
The Following User Says Thank You to CiscoX For This Useful Post: [ View ] Gift CiscoX Ad-Free
Post Reply Subscribe to Thread

Tags
app, init.d, stock kernel, terminal emulator
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes