[Android Software/Hacking General [Developers Only]] 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...:D

v1.0

init.d support through an app!!!​

What is init.d:

But how? :confused:

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!!! :D 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! :D

Do I have init.d support?:

Well, here is a way to test:

1. Download the file from here: View 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...:p

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

Uni-init v1.0.apk

Credits:

Thanks to:

Androguide.fr for the android app base! :D

Donators (big thank you! :)):

[MENTION=4429898]bigknowz[/MENTION]

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...;)​