User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nox4developper.blogspot.com/sitemap.xml Nox 4 developper: Xperia-L init.d support topic

Xperia-L init.d support topic






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?
  1. Appends the following command at the end of /system/etc/install_recovery.sh: /system/bin/sysinit

  2. Creates /system/bin/sysinit script.

  3. 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


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?






Aucun commentaire:

Enregistrer un commentaire