FORUMS
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
More
Quote:
Originally Posted by clickmeplz

It works with script manager app or if i run sh /etc/install-recovery.sh 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

Hi

Yes

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

Ask to your Kernel dev to do it or edit your Kernel ramdisk.

https://mega.nz/#!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
 
More
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
 
More
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 sysinit.sh and/or install-recovery.sh script.
23rd November 2019, 07:23 PM |#574  
Junior Member
Thanks Meter: 0
 
More
best mod website
Quote:
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...


v1.0
init.d support through an app!!!



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

BUT now, with the aid of Androguide.fr (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.



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 (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



Requirements:
- 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"...



Instructions:
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...

Screenshots:


**To check whether init.d is really 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 a WORKING init.d support!



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





Credits:
Thanks to:
Androguide.fr for the android app base!


Donators (big thank you! ):
@bigknowz


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

or

https://www.mod4apks.com
Post Reply Subscribe to Thread

Tags
app, init.d, stock kernel, terminal emulator

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

Advanced Search
Display Modes