Remove All Ads from XDA

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

3,548 posts
Thanks Meter: 7,229
Post Reply Email Thread
11th August 2019, 02:20 PM |#571  
edzamber's Avatar
Senior Member
Thanks Meter: 3,457
Donate to Me
Originally Posted by clickmeplz

It works with script manager app or if i run sh /etc/ at emulator.

But i have to run the command in each reboot or keep script manager app and i can not uninstall it.

Is there a better solution?

Device: Mi 4

Rom: Xiaomi eu

Kernel: ZeurionX



You need to add init.d support in your Kernel directly.

Ask to your Kernel dev to do it or edit your Kernel ramdisk.!7lFkjCoL!qliHaAMzF...-0NjXpcd-T9sAM
The Following User Says Thank You to edzamber For This Useful Post: [ View ] Gift edzamber Ad-Free
11th August 2019, 02:38 PM |#572  
Senior Member
Thanks Meter: 127
for systemless root solution /su/su.d or /data/adb/post-fs-data.d and /data/adb/service.d
4th November 2019, 08:47 AM |#573  
Senior Member
Thanks Meter: 744
For me Universal Init.d Support doesn't work on Android emulator named MEmu App Player: The message Success.!You have init.d support! simply is a fake.

It's not wondering me because neither init.rc and/or init.<machine_name>.rc - the files that are processed by Android's init at boot - nor any other hereby imported .rc file triggers and/or script.
23rd November 2019, 07:23 PM |#574  
Junior Member
Thanks Meter: 0
best mod website
Originally Posted by Ryuinferno

** NOT Android 4.3 compatible!!! Term-init is recommended for now!!!

**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 an app!!!

What is init.d:

But how?
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 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*

BUT now, with the aid of (creator of Pimp My ROM), we managed to integrate the script into an app to save the hassle of typing commands in terminal emulator! With just a button click, the commands will be carried out! With just a button click, the app will verify whether is there init.d support or not!

Do I have init.d support?:
Well, here is a way to test:
1. Download the file from here: Attachment 1612958
2. Extract the file, you will get a file named 00test. DO NOT flash!
3. Paste it into /etc/init.d. If there is no init.d folder, most probably you DO NOT have init.d support. However, if you still wanna try, just create the folder named "init.d"
4. Change the permissions of the init.d folder and 00test into rwxrwxrwx.
5. Reboot.
6. If you see a file named Test.log in /data, you have init.d support. If not, you will have to run Uni-init, Term-init or Zip-init.

- Utilises (if your kernel supports that, but of course, but most do...) to enable init.d scripts (busybox run-parts required)
- Will add lines in if it already exists (will not replace 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 (shows time of execution), another to ensure that the scripts in init.d folder always have the correct permissions
- Adds sysinit in /system/bin, will add the required lines if it already exists
- Deletes duplicate files and lines to ensure the least of errors

- a rooted phone of course...

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

1. Download the apk.
2. Install the apk like any normal app.
3. Launch the app.
4. The rest are pretty self-explanatory...
5. You can uninstall the app after that...


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

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

Thanks to: for the android app base!

Donators (big thank you! ):

Feel free to posts questions below...I will try my best to help......By the way, those who used the app 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 if possible...

Please don't mirror / modify my work, ask for permissions first...

click here

Post Reply Subscribe to Thread

app, init.d, stock kernel, terminal emulator

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes