Jump to content

[Q] Executing pm setInstallLocation in init.d script doesn't work


Recommended Posts

Guest mike1986
Posted

Hello all developers,

Since a long time I'm trying to implement one feature into my ROM - http://forum.xda-developers.com/showthread.php?t=840040

I've already tried the following:

1. I created init.d script called 90setlocation with following commands:

#!/system/bin/sh

pm setinstallLocation 1

but it doesn't work. Default InstallLocation is still 0 [auto]

2. I created install-recovery.sh file which I placed in etc folder. install-recovery.sh has the following commands:

#!/system/bin/sh

pm setInstallLocation 1

also I tried with:

#!/system/bin/pm

pm setInstallLocation 1

but non of them works. install-recovery.sh should be executed from init.rc in boot.img but even if I add it to init.d script "/system/etc/install-recovery.sh" the default InstallLocation is still 0.

I know I can do it with adb shell by typing pm setInstallLocation 1 or I can use e.g. Move2SD Enabler app but I want to have it set to 1 by default from the very beginning without need to change it after flashing ROM.

Any ideas?

Thanks!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.