To resolve boot-loop problem after installing Link2SD, I used Init.d Toggler to enable support for the same for my Xperia-L as I mentioned here.
What does Init.d Toggler do?
Just out of curiosity, I renamed the sysinit script, and dropped a script named testinitd inside /etc/init.d folder to test the native init.d support.
To my surprise, /storage/sdcard0/initd.txt file is getting created every time I boot with appropriate contents filled in. I am on stock ROM (15.3A.1.14). Can anybody with a rooted phone please confirm my observation?
What does Init.d Toggler do?
- Appends the following command at the end of /system/etc/install_recovery.sh: /system/bin/sysinit
- Creates /system/bin/sysinit script.
- Creates /system/etc/init.d directory to put the start-up scripts in.
Just out of curiosity, I renamed the sysinit script, and dropped a script named testinitd inside /etc/init.d folder to test the native init.d support.
Code:
#!/system/bin/sh
LOG=/storage/sdcard0/initd.txt
echo `date` > $LOG
echo $PATH >> $LOG
0 commentaires:
Enregistrer un commentaire