yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Not sure yet as I do not have a 4.4 ROM yet...no Superuser changes yet so I guess it should be the same...
[Android Software/Hacking General [Developers Only]] sniperkill:
One thing you gotta check is make sure the permissions are right on the init.d folder. All of the boxes should be checked if you use Root Explorer and longpress the init.d folder and select permissions. Make sure all the boxes are checked. I had the same problem you are having and I fixed it by doing this. Also, I had to use the file that you gotta flash in recovery for it to work. I tried all the others but none would work except for the file you flash in recovery. Do that and check your permissions and you should be good...
[Android Software/Hacking General [Developers Only]] HSD-Pilot:
Working flawless here on 4.4 :thumbup:

(I used the term-init.sh)

Gesendet von meinem Full Android on C6603 mit Tapatalk
[Android Software/Hacking General [Developers Only]] sandroidnz01:
Hi

---------- Post added at 12:48 PM ---------- Previous post was at 12:26 PM ----------
[Android Software/Hacking General [Developers Only]] mustasusi:
Excellent script!
[Android Software/Hacking General [Developers Only]] Cyboy:
Oh thank you

do all do the same?

so whats the diffrence ?

:cool:
[Android Software/Hacking General [Developers Only]] silverbios:
run-parts link dead!!!
[Android Software/Hacking General [Developers Only]] themadproducer:
Link is working for me. Open the link in play store if you are still having problems, or search for Stericson busybox.
[Android Software/Hacking General [Developers Only]] aidebe1:
s5830i ot stock rom and kernel tried everything didnt work the problem was that the sd card was on read only mod used this:https://play.google.com/store/apps/details?id=com.beansoft.mount_system.... and than I used the terminal method and everything worked out fine thanks a lot...;)
[Android Software/Hacking General [Developers Only]] blackhawk_LA:
I have tried the apk and it didn't work on my Xiaomi M2S running MIUI V5 4.1.1

But the script worked! So I'm happy!

Thank you very much to the developers! And even when I know my device is not always welcome on xda :o I can try to provide any log or something that could help the devs to make the app work.
[Android Software/Hacking General [Developers Only]] leonardoroza:
Thanks

Enviado de meu XT1033 usando Tapatalk
[Android Software/Hacking General [Developers Only]] lateral18:
Thanks for the script and your work,

The script installed and everything says ITA working , but after reboot none of the values stick from the scripts in the unit.d folder stick . I have to run them qoth script manager

The permissions are set to

xwr x-r x-r

The only one that seem to work it was a script that I put the s in front like s99....

Any help will be appreciate,

Happy new years

---------- Post added at 03:17 PM ---------- Previous post was at 03:16 PM ----------

Thanks for the script and your work,

The script installed and everything says ITA working , but after reboot none of the values stick from the scripts in the unit.d folder stick . I have to run them qoth script manager

The permissions are set to

xwr x-r x-r

The only one that seem to work it was a script that I put the s in front like s99....

Any help will be appreciate,

Happy new years
[Android Software/Hacking General [Developers Only]] wkobaint:
Did you see test.log result on data folder?
[Android Software/Hacking General [Developers Only]] lateral18:
Thanks for answering

That is a yes , I saw it is there

---------- Post added at 06:56 PM ---------- Previous post was at 06:56 PM ----------

Thanks for answering

That is a yes , I saw it is there
[Android Software/Hacking General [Developers Only]] wkobaint:
Did you re-try to install the script? I think if you see test.log on folder data it mean thats your init.d has been activated. Btw, I'm using universal init apk to do this.

Please see my entry init.d folder below ;
[Android Software/Hacking General [Developers Only]] Ryuinferno:
No if you don't have root...and please do not spam everywhere with the #offtopic tag, thinking that it's acceptable...sorry, it's still not...please do not repeat...being patient here...
[Android Software/Hacking General [Developers Only]] draexo:
Which init.d install works for 4.3? Where can I find zip-init?

Sent from my Lovely S3!! via Tap Talk
[Android Software/Hacking General [Developers Only]] wkobaint:
Are you dare to see 1st post?
[Android Software/Hacking General [Developers Only]] shazzl:
I put the script at init.qcom.post_boot.sh

# init.d support

/system/etc/init.d/*

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin

run-parts /system/etc/init.d

mount -o remount,rw -t auto /system

chmod -R 777 /system/etc/init.d

mount -o remount,ro -t auto /system
[Android Software/Hacking General [Developers Only]] mom4ence:
Problem with Android 4.4.2

Not working on S4 I9505 with Android 4.4.2 , I try with term-init , successful installation but not init.d support

Any ideas how to made it to work
[Android Software/Hacking General [Developers Only]] shazzl:
[MENTION=1933616]mom4ence[/MENTION] try my solution..search for system/etc/init.qcom.post_boot.sh

This will run the init.d. if you can't fine the init.qcom.post_boot.sh search for xxxx_boot.sh this because the kernel will run this script at boot
[Android Software/Hacking General [Developers Only]] mom4ence:
Will try.

Must keep sysinit in bin folder or not?

Edit:

You made my day.Works like charm.Thank's mate.
[Android Software/Hacking General [Developers Only]] shazzl:
You can delete it
[Android Software/Hacking General [Developers Only]] zamzameir:
working great on stock 4.4.2 nexus 4! Thank you! :)
[Android Software/Hacking General [Developers Only]] ViKtory36:
Works great on Karbonn A2+ 4.0.4 stock rom! Thank you.
[Android Software/Hacking General [Developers Only]] mw86:
Still using this even on 4.4.2 tw or aosp :) thanks for the great app Ryu Inferno. Been long time user :)
[Android Software/Hacking General [Developers Only]] microzee:
so term init for 4.4 as well?
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Yup
[Android Software/Hacking General [Developers Only]] leonardoroza:
Thanks for this. Worked pretty well on Moto G KK.

Enviado de meu XT1033 usando Tapatalk
[Android Software/Hacking General [Developers Only]] padhu1989:
Used term-init.sh and works fine in my Motog xt1033 Indian version
[Android Software/Hacking General [Developers Only]] jpeps:
Help on kitkat stock rom to install init.d script

---------- Post added at 05:22 PM ---------- Previous post was at 05:21 PM ----------

Did not work
[Android Software/Hacking General [Developers Only]] Dvanzutphenkann:
Didn't work on my stock kernel either.
[Android Software/Hacking General [Developers Only]] HSD-Pilot:
You S5 Guys maybe should try it this way

http://xdaforums.com/showthread.php?p=51474707

Gesendet von meinem SM-N9005
[Android Software/Hacking General [Developers Only]] omair2005:
thanks for this. works great on d2vzw 4.3 ML1 Safestrap
[Android Software/Hacking General [Developers Only]] JovieBrett:
It didn't work on the device with stock 2.3.5 ROM (It's my friend's device, just helping her)

Btw, what I did was:

-Installed busybox then reboot

-Since I do not have 'init.d' folder, I created one then placed the test00 there.

-Set the said permissions then reboot.

-I still haven't found any test.log on /data :(

*Tried term-init

-Entered the syntax on terminal emulator.

-After that it says it have successfully enabled init.d

-Then it showed alot of logs but most of them shows some 'cannot rewrite'

-After all of the stuff going on, the log on terminal emulator says 'reboot twice to make sure init.d is working blah blah blah' it's like it have been successfully enabled init.d

-I have rebooted twice but then again I still haven't found a test.log BUT I have found a 'init.d' file which it doesn't exist before I ran the script, does it mean that init.d is enabled?

Please can someone tell me what am I going to do next asap. Thanks!
[Android Software/Hacking General [Developers Only]] NAZUnlimited:
Check install-recovery.sh (/system/etc/) (if your kernel supports that, but of course, but most do...:)) for an added line containing "run-parts"

- search for sysinit in /system/bin

- seach in /data for test.log

If you have that and the init.d folder and scripts, then you are OK to go
[Android Software/Hacking General [Developers Only]] JovieBrett:
Sweet, thanks man. I will probably see it tomorrow.
[Android Software/Hacking General [Developers Only]] La_Globule:
Hi Ryuinferno,

I'd like to thank you because with the script term-init.sh, I've succeded to enable init.d processing on my phone.

First I wanted to use the zip file method. But although I'm not a specialist, I may have found something weird in the .zip file.

The sysint or sysinit script (depending...) seems to be useless because you launch all init.d scripts directly from install-recovery.sh.

And all the process is not the same as the term-init.sh script.

BTW, I'm wondering why you implemented a three-level of scripts : install-recovery.sh --> sysinit --> init.d/* and not only two ?

Nevertheless, the term-init.sh runs perfectly. Thanks again.
[Android Software/Hacking General [Developers Only]] joseph-:
Can I set permissive to my kernel now and how can I do it
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Zip init had a derp in it, so yeah, it's outdated...I used three levels (actually two, init.d is the final target, could be done in install_recovery without sysinit) because some kernel/mods interfere with install_recovery, so sysinit is called instead...
[Android Software/Hacking General [Developers Only]] btiu:
[MENTION=4576707]Ryuinferno[/MENTION]

Hi! I'm on a Galaxy Y, running 2.3.6 on stock rom and stock kernel. I just tried using you uni-init method. At first, It didn't work for a lot of times. I installed busybox using stericson's app in the normal install way, I rebooted, then I installed your app and pressed activate. A message appears that says done! But when I click Verify, it says no init.d support. I check ES, and nothing happened. No init.d folder, no install-recovery.sh. Nothing.

Then it occurred to me to mount / and /system as R/W. And sure enough, I ran activate again, and verify said SUCCESS. Is this supposed to be one of the steps? Well this time, init.d folder was there, install-recovery.sh was there. All that's left to do is look at the FAQ's because I'm still not getting Test.log yet. Will report soon.

Update 1: Here's what I've done so far: Read troubleshooting and did from 1-6

1. only init.d folder had wrong permissions, so I corrected it using ES.

2. added "busybox" to the line "run-parts /system/etc/init.d" in install-recovery.sh

Still nothing. I'm trying this one post 149

http://xdaforums.com/showpost.php?p=35468610&postcount=149

Update 2: Still nothing. Tried post 374. Nothing. Will try post 379. Still nothing. I'll probably try term-init now. I wonder how other SGY users fared.

here's my orig install-recovery.sh:

#!/system/bin/sh
# init.d support
run-parts /system/etc/init.d/

to which I added "busybox" before run-parts.

Update 3: Tried Term-init. My new install-recovery.sh only contains this

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

still not working
[Android Software/Hacking General [Developers Only]] wkobaint:
After rooted your phone, install adb insecure by chainfire. Choose enabled insecure adbd and run on boot. Reboot your phone,

And than try to install this term-init again.

I'm sure it will working!
[Android Software/Hacking General [Developers Only]] btiu:
adbd insecure giving me FCs.. used the one provided in chainfire's xda thread
[Android Software/Hacking General [Developers Only]] wkobaint:
Have you got phone full rooted?
[Android Software/Hacking General [Developers Only]] btiu:
Yes. It's rooted. I can authorize and deauthorize. I've installed busybox, I can change cpu governor, su works in terminal emulator. Is there such a thing as half-rooted? and when I opened adbd insecure, I did give it root access.
[Android Software/Hacking General [Developers Only]] I_was:
How can I uninstall Term-Init? I installed it in Android 4.4 and tested. Term_Init was able to create Test.log file, but was not able to execute my custom script although I can execute this script in terminal emulator with SU rights. Or maybe I can try something before uninstalling? Android device is Tronsmart Vega S89.

Content of 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, unless SELinux+Enforcing.
# 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, that will
# obviously break root - in your code, just search this file
# for "install-recovery-2.sh", and if present, write there instead.

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

Content of install-recovery-2.sh:

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

/system/bin/sysinit

Script which I tried to execute with Term-Init:

#!/system/bin/sh

echo 2097152 > /proc/sys/net/core/rmem_max
echo 2097152 > /proc/sys/net/core/wmem_max
echo 262144 > /proc/sys/net/core/rmem_default
echo 262144 > /proc/sys/net/core/wmem_default
setprop net.tcp.buffersize.default 4096,1048576,2097152,4096,524288,2097152
setprop net.tcp.buffersize.wifi 4096,1048576,2097152,4096,524288,2097152
setprop net.tcp.buffersize.umts 131072,262144,524288,4096,16384,131072
setprop net.tcp.buffersize.edge 16384,32768,65536,4096,16384,32768
setprop net.tcp.buffersize.gprs 4096,8192,12288,4096,8192,12288
setprop net.tcp.buffersize.lte 4096,1048576,2097152,4096,524288,2097152
echo 4096 1048576 2097152 > /proc/sys/net/ipv4/tcp_rmem
echo 4096 524288 2097152 > /proc/sys/net/ipv4/tcp_wmem
echo 1 > /proc/sys/net/ipv4/route/flush
[Android Software/Hacking General [Developers Only]] Ryuinferno:
How do you know it's not executed? Certain proc files are not available at boot/overwritten at boot, so it depends on what you want to do...to remove init.d support, just flash a ROM over it, it will be clean
[Android Software/Hacking General [Developers Only]] I_was:
1. If I run this script in ordinary way - i. e. after the boot in terminal emulator, I can confirm that values were changed using two apps: https://play.google.com/store/apps/details?id=com.elusev.getprop and https://play.google.com/store/apps/details?id=com.spirilis.bionictcp

2. If I run this script using Term_Init, then after the boot Bionic TCP Buffer Tweak shows only default tcp_rmem and tcp_wmem values. So it very probable that this part of script was executed

echo 4096 1048576 2097152 > /proc/sys/net/ipv4/tcp_rmem

echo 4096 524288 2097152 > /proc/sys/net/ipv4/tcp_wmem

but then was overwritten with default values. Don't you think that the main purpose of init.d support is to overwrite default vaules? I always though, that scipts in init.d folder run in the last row at the very end of the boot. So I think maybe now to try this method: http://xdaforums.com/showthread.php?t=2711680 It is based on modification of init.qcom.post_boot.sh file. "post_boot" sounds very attractive in my case ...
[Android Software/Hacking General [Developers Only]] Ryuinferno:
Yes, it is supposed to run at boot, but it's also device specific (depends on where install-recovery is placed in init.rc), so this is more to a "hack" utilising install-recovery...

Post boot might work for you, provided it has an entry in init.rc or related files

What I can suggest you is to add "sleep xx" (integers) entries, where it delays the execution...
[Android Software/Hacking General [Developers Only]] sscsps:
Please provide me the link for latest version and please tell me how to install it (or direct to post)

Hit thanks if I helped you :) sent from my SM-T211 using XDA Free mobile app
[Android Software/Hacking General [Developers Only]] Silentankit:
is it safe?

i want init.d support in mah phn....

but..is it safe??

i hv a big fear of hard bricks !!

reply soon?
[Android Software/Hacking General [Developers Only]] iZLeeP:
Yes, it is 100% safe provided you are rooted and have busybox.
[Android Software/Hacking General [Developers Only]] Silentankit:
ummm...i am done both !!

tnx man !! :) i am rooted n installed busybox !!
[Android Software/Hacking General [Developers Only]] jeffhutch.412:
i dont know if its been reported but it works flawlessly on my htc one sv- rooted stock 4.2.2.

THANKYOU VERY MUCH SIR :D
[Android Software/Hacking General [Developers Only]] thereassaad:
Is this support kk 4.4.2??
[Android Software/Hacking General [Developers Only]] Spacemonkie4207:
Works on my s4 Google pay edition and Xperia ZL (stock 4.4.2) perfectly
[Android Software/Hacking General [Developers Only]] thereassaad:
Sorry I mean TouchWiz kk 4.4.2??
[Android Software/Hacking General [Developers Only]] Spacemonkie4207:
Should work.
[Android Software/Hacking General [Developers Only]] silverbios:
after flash in xperia zl 4.4.4 bootloop!
[Android Software/Hacking General [Developers Only]] to22ek:
Don't work on galaxy tab 2 p3100

Wysłane z mojego GT-P3100 przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] sscsps:
I tried it on SM-T211 (stock kk 4.4.2 and stock jb 4.1.2 both) and it worked as supposed!

Thanks :)

Did it like 2 month ago, still have it!
[Android Software/Hacking General [Developers Only]] to22ek:
I have installed slimkat 4.4.4 weekly 7.9. I have test.log and see init'd is working and i flash TDT and don't work

Wysłane z mojego GT-P3100 przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] Spacemonkie4207:
Restart phone a couple of times
[Android Software/Hacking General [Developers Only]] chris5s:
Installed term-init on Xiaomi 1S running JB 4.3 - all good, thanks for the work on this!
[Android Software/Hacking General [Developers Only]] kassaaam:
Hi I was using this procedure for quite a long time until I started getting error in cwm 'rom may flash stock recovery at reboot" I always set it to NO. but now I accidently pressed "disable recovery flash" and unfortunately the scripts don't run at boot now even after trying all these three procedures.

Please tell me how to fix and make init.d support again.
[Android Software/Hacking General [Developers Only]] xubairsarwar:
Is there any other way to remove term-init except flashing a new rom...
[Android Software/Hacking General [Developers Only]] ahrion:
Universal init.d free app on play store everyone.
[Android Software/Hacking General [Developers Only]] next_lv2:
Vega stock

Gửi từ IM-A870S của tôi bằng cách sử dụng Tapatalk
[Android Software/Hacking General [Developers Only]] RyTekk:
+1. Same question.
[Android Software/Hacking General [Developers Only]] sscsps:
May be :

Flash stock recovery, then flash custom recovery, then try it again
[Android Software/Hacking General [Developers Only]] vleutmans:
works on acer liquid Z500

As written in subject : works on acer liquid Z500 which runs kitkat 4.4.2

I just used the apk file and ..click..click..done.

I had it already rooted , CMW recovery, and now also "init.d support" is functioning :) .Ready for tweak scripts !!!

Thanks to DEV

Michel
[Android Software/Hacking General [Developers Only]] FirmLearner:
Permission to link your work.

Just DL'd and used your apk and it's working! I'm on myPhone A888g duo a clone of Micromax A88. Can i post your link to our FB page (A888g duo)? Thank you brother. :good:
[Android Software/Hacking General [Developers Only]] HdSht:
Hello guys :). I'd like to know which method should I use on lollipop. Ty in advance :).
[Android Software/Hacking General [Developers Only]] Vagelis1608:
Term-init

Sent from my D620r [Stock 4.4.2]
[Android Software/Hacking General [Developers Only]] :
I just wanted to throw this out there in case anyone hadn't noticed. If you use the Universal Init.d apk, and you change an init.d script and a .bak file is created you need to delete it because the app will still run the script.
[Android Software/Hacking General [Developers Only]] thdervenis:
Crashes on Moto G 2014

Crashes on app startup on rooted Moto G 2014.

Error report submited.
[Android Software/Hacking General [Developers Only]] lucky_515:
thanks for this mod..very nice..im useing the pre installed init app on the rom xnote ported to sprint users on the note 3....i know the op says we can apply mods and scripts that apply on every boot..but can you give us more sripts to add?..how do we add more,i read can add scripts for battery tweaks and ect...how do we add more scripts?..do you have a few mods you can send me? so i can add them..interested in battery consumtion and performance..im useing stock kernal on the x note rom version 16,the latest version ported to sprint users
[Android Software/Hacking General [Developers Only]] ehsanotaku:
+1 yes this is caused some major concerns ,, Does "term-init" cause any problem with universal CronMod ( INTEXT + for instance , after Re-partitioning sd card , which is required for increasing the internal storage ) ?
[Android Software/Hacking General [Developers Only]] lucky_515:
thank you for this..i used the apk on my note 3..im now useing note 4 edge..all stco,rooted..ive got cwm recovery installed..thinking best way for this phone is your cwm zip..looks to me after reading the several diff.ways to do this..the cwm may be my best bet..im not neer as talanted as you..some of your instructions actually scare me a little bit..but im determined to get this done..i want to know what scripts come preinstalled with this zip file,or do we need to add scripts ourself?...gues to put more simple,im not good enough to really understand all this,or tpo add scripts and get the most out my note edge,but i do know i want this on my phone..so im hopeing scripts are jus added by default,like on the xnote rom where i first saw this app ,it had several scripts..im hopeing all i got to do is flash the zip,and check to see if init.d is in fact installed..thank you for this..great work
[Android Software/Hacking General [Developers Only]] alanthehat:
The script checks for

root

busybox

grep

Then modifies (or creates)

/system/bin/sysinit

/system/etc/install-recovery.sh

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

to include instructions to run init scripts

(Only one of these is likely to work, but if more than one work you should clean up the others)

Then creates

/etc/init.d/

Then puts 2 scripts into /etc/init.d/

test script

script to set permissions & ownership of init scripts

Any further scripts you will have to find or write for yourself

---------- Post added at 10:06 AM ---------- Previous post was at 09:26 AM ----------

It seems that the master Busybox at http://busybox.net conains the 'runit' init system that is the default 'init' for some Linuxes.

So some Android builds of 'busybox' also have it.

In my mind there are 2 advantages over 'run_parts'

1) it can be controlled with signals (kill <signal> <pid>)

2) it has a watchdog that restarts crashed scripts

There is one directory per function which contains scripts for 'start', 'stop' etc

See http://smarden.org/runit/ for the full implementation of which this is a viable subset
[Android Software/Hacking General [Developers Only]] tonyafc:
Can someone help im on lollipop rooted busybox stock kernel no matter what i do i cant get testlog in data i get both recoverysh and sysinit but no test log thanks in advance