yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Try opening Test.log and check the date...it should be reasonably recent...
[Android Software/Hacking General [Developers Only]] pvinodnayak:
I used the apk to redo the whole thing and i got it right. :) thank you
[Android Software/Hacking General [Developers Only]] ObrienDave:
The normal install file worked like a champ.

THANKS!
[Android Software/Hacking General [Developers Only]] mw86:
Cool RyuInferno, does this mean the apk is still up to date and the updates were just in the terminal and zip form?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Yeap...:)
[Android Software/Hacking General [Developers Only]] sunu792002:
I confirm this is working in Samsung GT-B5330 Stock ROM
[Android Software/Hacking General [Developers Only]] cire27rn:
thanks!

it worked at my MT6589! :)
[Android Software/Hacking General [Developers Only]] judas1977:
Ok, i think something is messed up in my ROM, but idk what.

Generally universal init.d support apk says that I have Init.d support from beginning.

But testscript does nothing...

Moreover, when I install Rom with confirmed init.d support over my ROM, the other one has problems with support of init.d (not working)

I checked all files and permissions from troubleshooting and it seems to be correct. Idk if busybox I'd installed properly...

So, after switching init.d support via apk - still nothing...

I tried to run install-recovery.sh in script manager and it shows error:

exec /system/bin/sh '/system/etc/install-recovery.sh'

n/sh '/system/etc/install-recovery.sh' <

reloc_library[1306]: 7208 cannot locate '__set_syscall_errno'...

CANNOT LINK EXECUTABLE

And this is content of install-recovery.sh:

#!/system/bin/sh

# Ryuinferno @ XDA 2012

# Init.d support

run-parts /system/etc/init.d/

Do what could be messed up?

Thank you for any help and guidance

Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
[Android Software/Hacking General [Developers Only]] dec0der:
anyone can confirmed if init.d support through CWM is working? thnx
[Android Software/Hacking General [Developers Only]] Ryuinferno:
That error is not caused by my mod...it is because of the scripts in your /etc/init.d folder...remove all the contents inside your init.d folder and run this mod again, then check for /data/Test.log...if fails, then try all the steps stated in the FAQ section again...
[Android Software/Hacking General [Developers Only]] s30ckf:
you might also try edit your install-recovery.sh by adding the 'busybox' in front as above, good luck.
[Android Software/Hacking General [Developers Only]] saintsoh:
i did an overall re-install back to stock.

flash zip-init on my sgw, cant run init.d support (no test.log file in /data).

found install-recovery.sh is rwxr--r-- instead of rwx-r-xr-x.

run su,cant chmod in terminal emulator due to read-only system file.

use script manager run su and boot, it work.

later i use fx explorer with root addon to mount read/write force to install-recovery.sh to rwxr-xr-x.

it now run without the script manager.

hope this will help others might have the same problem on execute problem.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
You can't chmod because you didn't mount /system as rw...and your install-recovery.sh has weird permissions as you must have probably selected disable recovery flash in CWM (which you shouldn't as it is only a false positive)... Thanks for reminding me though...:)

Edit: Added the CWM stuff in FAQ...;)
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Thanks to [MENTION=4429898]bigknowz[/MENTION] for being my very first donator despite the fact that I have already been around for quite some time! :) Really appreciate that man...;)
[Android Software/Hacking General [Developers Only]] bigknowz:
Showing my support

Your app has been with me through many ROM flashes. I really appreciate it, and now with the added security in Android 4.3, I have a feeling more coding will be required in the future. Trying to help you continue development. Anyone with me?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Really appreciate that, I have already been studying through how superuser in 4.3 works...it *might* have some conflicts with my current mod (the su daemon depends on install-recovery.sh too), so trying to do something with it...;)
[Android Software/Hacking General [Developers Only]] bgs_piece:
Works on Galaxy Note 8!

Uni-init v1.0 is awesome! I have tried many other flashable zips that say they enable init.d on stock rom/kernel and nothing worked for the Galaxy Note 8 but this app did the job. Thank you!
[Android Software/Hacking General [Developers Only]] O2Blevel:
I've got the same problem running 4.3 on nexus 7. I tried running script manager to run su and boot but still can't change permission. Did you run any additional arguments in script manager?
[Android Software/Hacking General [Developers Only]] saintsoh:
no, just touch 'on' the two icons, su (it will turn green) and boot (will turn blue). reboot.

if not re-flash zip_init.zip, reboot, select "NO" to disable flash recovery.

things needed for correct working installation:

1) a rooted phone.

2) superusers app (root access) needed for terminal emulator, root explorer (with root access), busybox (normal install) and script manager apps.

use root explorer (with root access) to set file permissions if u do not know linux commands.

use root explorer, look for install-recovery.sh in etc folder or system/etc (both r the same directory).

check install-recovery.sh permissions is rwxr-xr-x, not rwxr--r--.

if not, tap on tool menu, mount system read-write and change install-recovery.sh permissions to rwxr-xr-x.

if u prefer using terminal emulator to change file permission:

check install-recovery.sh permission is rwxr-xr-x, not rwxr--r--.

how2check in emulator, type n press enter:

ls -l etc/inst* ↵

how2change file permission, type n press enter:

su ↵

cd etc ↵

mount -o remount rw /system ↵

chmod 755 install-recovery.sh ↵

exit ↵

exit ↵

done, there shouldnt be any error, reboot.
[Android Software/Hacking General [Developers Only]] JnNn98:
Thank you Ryuinferno for making this mod, it really helps with those on stock roms with no other options (Custom ROMS) like me. Now I won't have to wait for Script Manager to load scripts, because my phone can do it on it's own now. Everything works great now but it took a few tries before I actually got it to work. The run-parts file you have kept messing up my busybox and I had to reflash with RSD Lite multiple times. The real issue I had though was in the install-recovery.sh file your lines:

# Init.d support

run-parts /system/etc/init.d/

were at the bottom of the script and thus the script for some reason did not work properly, so I moved it to the top so it became the second and third lines like so:

#!/system/bin/sh

# Init.d support

run-parts /system/etc/init.d/

And it finally worked! So again thank you very much!
[Android Software/Hacking General [Developers Only]] crash.override:
Tried uni-init and term-init. Why those are not working?
[Android Software/Hacking General [Developers Only]] JnNn98:
Did you do all the troubleshooting steps? I suggest you do them except for the one where you replace the run parts file.
[Android Software/Hacking General [Developers Only]] crash.override:
Solved. Failed on install-recovery method. Worked with script manager method.

But, script manager runs after the phone boots up. So I can't run script like a2sd for linking internal to external. :'(
[Android Software/Hacking General [Developers Only]] JnNn98:
Could you upload the contents of your install-recovery.sh file? I might be able to help cous there might be an issue with that file. (The problem I had which had driven me nuts) (Read my second last post) Cous IMO if you have to use script manager, it kinda defeats the purpose of Init.d support, just my 2 cents.
[Android Software/Hacking General [Developers Only]] htcflyerhc:
i got

cannot create system/etc/install-recovery.sh permission denied

and unable to chmod system/etc/install-recovery.sh

and when i restart i dont have test.log in data :confused:

how to get this working?

---------- Post added at 04:15 PM ---------- Previous post was at 03:38 PM ----------

this is my install-recovery.sh

#!/system/bin/sh

# If you're implementing this in a custom kernel/firmware,

# I suggest you use a different script name, and add a service

# to launch it from init.rc

# Launches SuperSU in daemon mode only on Android 4.3+.

# Nothing will happen on 4.2.x or older.

# If you want to force loading the daemon, use "--daemon" instead

/system/xbin/daemonsu --auto-daemon &

# Some apps like to run stuff from this script as well, but the

# installer will have done "chattr +i" on this file to prevent

# accidental modification and deletion. In your code, just search

# this file for "install-recovery-2.sh", and if present, write

# there instead.

/system/etc/install-recovery-2.sh

from my HTC Flyer P510e using xda app-developers app

---------- Post added at 04:56 PM ---------- Previous post was at 04:15 PM ----------

i found solution i created install-recovery-2.sh and i write inside the file

#!/system/bin/sh

# init.d support

run-parts /system/etc/init.d/

and now it works init.d support enabled on stock kernel in htc flyer:D

from my HTC Flyer P510e using xda app-developers app
[Android Software/Hacking General [Developers Only]] crash.override:
It looks like this:

#/system/bin/sh
# init.d support

run-parts /system/etc/init.d/

Tried to add busybox before run-parts still doesnt work:

#/system/bin/sh
# init.d support

busybox run-parts /system/etc/init.d/

Only works using Script Manager method but really uncomfortable with it, becasuse only runs after the phone start script manager

So i am using a custom kernel now.
[Android Software/Hacking General [Developers Only]] JnNn98:
Try removing the double space between the two lines of code and adding an exclamation mark so it is like this:

#!/system/bin/sh
# init.d support
busybox run-parts /system/etc/init.d/
[Android Software/Hacking General [Developers Only]] saintsoh:
i had the same problem too.

problem is permissions for install-recovery.sh.

please check install-recovery.sh permissions should be rwxr-xr-x and not rwxr--r--.

without execute permissions, scripts in init.d folder will not be able to run (execute), not matter what u change to the script.

follow this instruction:

http://xdaforums.com/showpost.php?p=44314642&postcount=373
[Android Software/Hacking General [Developers Only]] JnNn98:
I did tell the guy to check the troubleshooting guide, and if he's done that, he should already have correct permissions... Unless of course he decided to skip that part. See the first line in the script is missing an exclamation, thus I think that's why the script won't execute on boot... And the init.d lines might also have a problem too since, I too had issues just because the lines weren't in the correct form.
[Android Software/Hacking General [Developers Only]] gius321:
Tried everything but there is no any "init.d_log_test"

Xperia Arc S Stock 404... use uni init.d support , it says that i have init.d support but there is no any log test... what should to do?
[Android Software/Hacking General [Developers Only]] JnNn98:
Have you tried the troubleshooting steps? Have you checked the install-recovery.sh file? In fact, have you even read the last few posts????
[Android Software/Hacking General [Developers Only]] crash.override:
still it didn't work. I've already read the troubleshooting

See number 7. There is no line containing "install-recovery" on my /init.rc file :crying:
[Android Software/Hacking General [Developers Only]] JnNn98:
Nooooooo. :crying: Hm, I wonder what happens if you edit the init.rc so that it does have those lines? [MENTION=4576707]Ryuinferno[/MENTION] Is that possible? Would it get rid of the need of script manager?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Only possible if you edit the ramdisk...
[Android Software/Hacking General [Developers Only]] JnNn98:
Never knew that, I'm still a noob. Learn something new everyday I guess.

Sent From Mobile and Not Desktop
[Android Software/Hacking General [Developers Only]] danbest82:
works for me

All this time I thought I had init.d support but certain things wouldn't work. I used the uni-init.d apk. Thanks for it! It fixed my problems. I'm running ViperLTE2.2.0 android 4.0.4 on my HTC incredible 4g lte with infernal kernel 4(not his latest)
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Term-init updated for Android 4.3 compatibility! Lookie here: https://github.com/Ryuinferno/Term-init/commit/29d564c204617615ae054889ce0b0e3b3993c3a4

Therefore, for now, Term-init is recommended over others! Enjoy guys...;)
[Android Software/Hacking General [Developers Only]] hexer7568:
ok thanks
[Android Software/Hacking General [Developers Only]] Mr_Biggles:
Worked like a million bucks for me. Using an LG C800G running stock GB. One reboot and the Test.log was there. Also confirmed through V6 Supercharger and KAK. Thanks.
[Android Software/Hacking General [Developers Only]] abaaaabbbb63:
Worked for a custom rom that didn't support ini.d properly. Thanks.

Sent from my toaster

yea...my username sucks...deal with it...
[Android Software/Hacking General [Developers Only]] hexer7568:
ok now it works very nice, the failure busybox run-parts was not installed.

Thanks for help
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Lol...luckily you found that out (costed me quite a number of posts...XD)...congrats on obtaining init.d support! :) Just hit thanks if you don't mind...
[Android Software/Hacking General [Developers Only]] eddydc1:
worked with my Huawei Vision! thanks!
[Android Software/Hacking General [Developers Only]] mafiarock93:
work on my pantech sky a820l,thanks so much
[Android Software/Hacking General [Developers Only]] josefaquinojr:
no errors but empty /data/

title says it all.

followed the instructions to the letter, console window says successful install.

restarted 4 times. /data/ folder is still empty.

cherry mobile w100.
[Android Software/Hacking General [Developers Only]] bruce16878:
test.log found in /DATE but init.d folder isn't created on Galaxy tab 7.7, is that ok?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Ok...have you installed busybox with all the applets especially run-parts? Refer to the discussion before this, a user can't get it working because he was lack of run-parts...:)

Hmm...init.d folder is in /system/etc...could you find it? :) If you have Test.log, means that the folder should be present..
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Ok...use the normal install method...as stated there, it is safer and much more effective...:)...and reboot after installing before running the script...
[Android Software/Hacking General [Developers Only]] josefaquinojr:
damn! im terribly sorry about missing the "normal" install mode note.

i am trying it now and will update asap.

---------- Post added at 04:00 AM ---------- Previous post was at 03:26 AM ----------

after installing in "normal mode", rebooted once, run script, rebooted thrice.

there is still nothing in /data/ folder. can you help me out?

---------- Post added at 04:40 AM ---------- Previous post was at 04:00 AM ----------

how do i check if my device kernel supports install-recovery.sh on startup?

My device is a Cherry Mobile W100

Successfully rooted via POOT
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Ok...can you run the script and screenshot the output? And check whether is there any init.d folder in /system/etc, a file named sysint in /system/bin and a file named install-recovery.sh in /system/etc? :)
[Android Software/Hacking General [Developers Only]] josefaquinojr:
yes there is a /system/etc/init.d folder with two files inside.

yes there is a /system/bin/sysinit file

yes there is a /system/etc/install-recovery.sh

run-parts is also installed:

here is the script output:
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Ok...everything seems to be fine...one last check...can you tell me the permissions of the files I ask you to check earlier (rwxrwxrwx etc.)...:)
[Android Software/Hacking General [Developers Only]] josefaquinojr:
ok so this is weird, I was playing around with the terminal, executing run-parts /system/etc/init.d -- it looks like it was executing, but going back to ES Explorer and browsing /data/ folder, it was still empty.

But when i tried to execute

sh /system/etc/init.d/00test

and going back to the /data/ folder, all of these other folders and files(probably created by link2sd) along with the test.log were created right in front of my eyes. am not sure what triggered this but after deleting the test.log and restarting, lo and behold it was re-created.

am trying to delete the test.log again and restart but i am confident that its going to be there when i do.

thank you so much Ryuinferno!
[Android Software/Hacking General [Developers Only]] Ryuinferno:
No prob...just hit the thanks button next time...saves space...:D...actually, since you mentioned that you are using Link2SD, I remembered something...try to view what is inside install-recovery.sh...check whether are these lines present or not:

# init.d support
run-parts /system/etc/init.d/

If no, add them in manually...remember to leave an empty line at the end (press enter after the last line)...then reboot...everything should work fine then...:)...Link2SD is install-recovery.sh dependent, so your case is a bit hard...although my script won't mess it up, but maybe Link2SD will mess up mine...XD...you excecuted 00test manually, of course there will Test.log in /data...the script was supposed to run at boot...:p
[Android Software/Hacking General [Developers Only]] GEKTHEBOSS:
Wooow thanks,work on xu.

I suggest to use geeky and freeky engine!
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Updated the troubleshooting section...most problems should be able to be solved by referring to it...:)
[Android Software/Hacking General [Developers Only]] mw86:
Excellent work Ryu! With a lot of devices updating and coming now with 4.3, plus capable devices jumping on aosp 4.3 you certainly have made an already magnificent resource all the more better and the go to for Initd :)
[Android Software/Hacking General [Developers Only]] Jaishree:
When I used to open the app, It force closed.

(Process com .andoguide.universal.init.d) has stopped unexpectedly.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
I do not maintain that app that you are referring to...It's by Androguide.fr...logcats would be helpful..

but my bet is your phone does not have root...
[Android Software/Hacking General [Developers Only]] Perseus:
I might be digressing from the Op so I apologize in advance.

I used this method to provide init.d on a TV Stick. I had put the 99touch script in the init.d folder just to test. But I realized, whenever there is a script to be executed in the init.d folder, my device (Android version 4.0.4) will show the standard message

"Android is upgrading" with a spinning circle.

What I wish to know is, how'd I get rid of this message ?
[Android Software/Hacking General [Developers Only]] BetA3D:
Woohhaaaa

niceee, :silly::cyclops::good::victory::victory:

Thanks a lot for this work mate..I Finally have init.d support on my Xperia mini pro (sk17i) with Official xxx.587 ROM (4.0.4) (modified by me)... im Fu...ng happy now, haha..Finally i can use the leakage protection in AFWALL+..

Thanks a lot !! works like a charm, with the APK install...
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Hmm...it depends on what your init.d script is doing...I am sure the message won't show if there are no scripts at all in the init.d folder...
[Android Software/Hacking General [Developers Only]] jatin@1:
Seems pretty helpful especially for my phone because now ram can be increased and play games smoothly.

For increasing ram here is a tutorial (not by me). Link: http://xdaforums.com/showthread.php?t=2440383

Hitting thanks is not charged by xda...so wanna try how it feels?;)
[Android Software/Hacking General [Developers Only]] Perseus:
Yes I know. My script is a test script to write a dummy message to another file. I do want to have one or two scripts in there. Is there a way to hide that message from my users ?

Yes I know if I used Script manager, it will execute these scripts at boot but not show this message.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
That dialog box shows that it is running something...do you have anything in /etc/install-recovery.sh at the very first place? Script manager runs right after the phone completed boot, which is why you won't get that...
[Android Software/Hacking General [Developers Only]] Perseus:
Yes I have something at the top of install-recovery.sh. Its a check to see if a new recovery was installed or new file flashed. Its just a check.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Please attach/paste the contents of your install-recovery.sh/install-recovery2.sh and the test scripts you are using...
[Android Software/Hacking General [Developers Only]] thebiggboss180:
work

works with adrinaline engine
[Android Software/Hacking General [Developers Only]] Pos411:
thanks...it works for my andromax ULE stock rom 0h...
[Android Software/Hacking General [Developers Only]] Perseus:
I have attached the Install-Recovery.sh as it exists today. I had to rename it before XDA would allow me to upload it.
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Try removing those lines and use my method again...those commands you used seem to take some time...
[Android Software/Hacking General [Developers Only]] Perseus:
Yes I will. Thank you. Will re-post afterwards.
[Android Software/Hacking General [Developers Only]] Sulaimanshariff:
where to check the test.log file in innternal storage o external??? :confused:
[Android Software/Hacking General [Developers Only]] Ryuinferno:
In /data
[Android Software/Hacking General [Developers Only]] htcflyerhc:
in your phone memory /data folder it should be /data/test.log
[Android Software/Hacking General [Developers Only]] videokid14:
init.d

i have tried a few different things to get init.d support and all have failed so far. i installed busybox normal install and rebooted.i tried your init .d app and term.init.sh files. the apps says success but no /data/test.log. i tried term-init and it said i do have run-parts and it says i already had support and i didn't need this mod. so i delete the files it tells me to (listed below) and try term init again and it creates the files and tells me to reboot twice but all i get is a black screen now and have to battery pull to restart into another black screen. i have an htc OG EVO 4G running 4.2.2 JB Mighty Unicorns 2.0 ROM with smelkus 4.3 recovery

/system/bin/sysint

/system/etc/install-recovery.sh

/system/etc/install-recovery-2.sh (didnt have)
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Must be something weird with your init.d scripts...or something important in install-recovery.sh...
[Android Software/Hacking General [Developers Only]] alkox:
Do u have etc/init folder.?
[Android Software/Hacking General [Developers Only]] matrixzone:
Thanks
[Android Software/Hacking General [Developers Only]] meduza:
Confirming app activated init.d on samsung s3 mini i8190 with stock JB 4.1.2 ROM & kernel.

m.
[Android Software/Hacking General [Developers Only]] MauroSZ:
init.d XT687

Thanks, [MENTION=4576707]Ryuinferno[/MENTION] Universal Init.d v1.0 app works well activating and confirming on my Motorola XT687 ICS dual SIM at first :) I changed my busybox before installing Stericson normal mode. I read your post and checked all using ADB shell.
[Android Software/Hacking General [Developers Only]] mildavidec:
Confirming that script term-init works with new and first stock fw 4.3 for s3.
[Android Software/Hacking General [Developers Only]] bigknowz:
KitKat

[MENTION=4576707]Ryuinferno[/MENTION], any changes requited to get init.d working in KK?