What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[Kangerade][bug] can't use pm

oshigeru

Member
Hey there. Trying to turn off apps2sd, and can't. Do it. Here's what I did/got:

/ $
/ # mountsys
/ # sh pm setInstallLocation 1
sh: can't open 'pm'
/ #

Help?
 
also, got a fix for the issue from canvs2321

in root explorer:

"open it, mount r/w, then goto /system/bin, long press pm, and scroll the menu down to edit in text editor, make sure #!/system/bin/sh is the top line if not, add it and save it
same with /system/bin/am"
 
also, got a fix for the issue from canvs2321

in root explorer:

"open it, mount r/w, then goto /system/bin, long press pm, and scroll the menu down to edit in text editor, make sure #!/system/bin/sh is the top line if not, add it and save it
same with /system/bin/am"

This one did the job, thanks. Love your work man. dancedroid
 
@jrummy16 please take a look at my problem.

Since a long time I'm trying to implement one feature into my custom ROM. I want to have InstallLocation 1 by default.

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!
 
Last edited:
Back
Top