FROYO Apps to SD? Not working now... - Nexus One General

How about moving apps to SD....we have to wait for permission for each and every app to move it to the SD?
I am running out of space on the phone, but my SD has 7GB free.

the developer of the app has to specify if they want to use apps2sd for their app. (that's what i heard at least, to my knowledge)

do we need an ext partition
will this work without an ext partition

Use `adb shell pm setInstallLocation 2`, move all the apps you want to move. Use `adb shell pm setInstallLocation 0` to change it back unless you want apps to installed by default to the sd card.
Official apps2sd doesn't need an ext partition.

zer0day said:
Use `adb shell pm setInstallLocation 2`, move all the apps you want to move. Use `adb shell pm setInstallLocation 0` to change it back unless you want apps to installed by default to the sd card.
Official apps2sd doesn't need an ext partition.
Click to expand...
Click to collapse
where do we go to type in that command?
is there a terminal like in ubuntu?

I use both Terminal Emulator and Better Terminal Emulator on Android Market
but both of them say "adb: permission denied"
I have not rooted my phone, is it only possible for a rooted Froyo?

cstyle226 said:
where do we go to type in that command?
is there a terminal like in ubuntu?
Click to expand...
Click to collapse
Perhaps we need to install the Android USB driver on our PC first
and then install the Android Debug Bridge (ADB)using its shell UI to enter the command above - `adb shell pm setInstallLocation 2`

Cr1al said:
I use both Terminal Emulator and Better Terminal Emulator on Android Market
but both of them say "adb: permission denied"
I have not rooted my phone, is it only possible for a rooted Froyo?
Click to expand...
Click to collapse
adb is part of the development kit. If you are using a native terminal, skip the "adb shell" part of the command.

I have selected the 'set installLocation 2'
However I am tryin to restore (with Titanium Backup) my 445 apps.
It got to 131 and will go no further.
Everything it has installed is on the SD and I have loads of space left.
I also have not seen the 'tick box' to install apps to SD?
It's never been an option since flashing Froyo unless I have to enable each app under market or something?

not
After putting the command in better terminal with out adb shell command it still says "permission denied"

datnukkapenut187 said:
After putting the command in better terminal with out adb shell command it still says "permission denied"
Click to expand...
Click to collapse
Yes you need to be rooted, the correct course of action would be to start the terminal, type SU then pm setInstallLocation 2 then close term and reboot, same to put back the perm to 0,
make you you do not move more than 100 apps or so, there's a limit I heard somewhere..

Related

How do I get adb shell to work in recovery after root?

I rooted following the 10 minute root video, however forgot to remove a lot of those junk system apps, like CityID. I cannot get back into SU while in recovery, no matter what I do. How do I get back into the shell in recovery so I can remove all the bloatware?
I can get the error message:
- exec '/system/bin/sh' failed: No such file or directory
however i cannot seem to get back into the shell where I can access SU and remove the bloatware, anyone have any ideas on what im missing?
areghas said:
I can get the error message:
- exec '/system/bin/sh' failed: No such file or directory
however i cannot seem to get back into the shell where I can access SU and remove the bloatware, anyone have any ideas on what im missing?
Click to expand...
Click to collapse
I'm in the exact same boat as you. I don't know where to go from here.
run update.zip and let it fail again then you caN adb shell su
hmm doesnt seem to work for me
in order to get the back to adb shell in recovery, you have to go through the whole root process again. Then once you have snuck in the payload-update.zip and it has successfully installed it, you are able to do adb shell.
i had to run do the hole process over again to get su so i could remove cityid after root.
i used the 1.bat file as in the utube video for noobs.
ejlax said:
in order to get the back to adb shell in recovery, you have to go through the whole root process again. Then once you have snuck in the payload-update.zip and it has successfully installed it, you are able to do adb shell.
Click to expand...
Click to collapse
not cool lol, took me 3 hours to get the things to work with my sd card haha not worth it.
that is the only way
They are correct, you must do it all again, but look for a PNY 4gig class 4 sd. I tried hundreds of times over a 3 day period to do it and it worked first time and every time with this card.
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
There is also another terminal app in the market for 1.99, listed as being for that purpose, so, has anyone tried it?
I don't have anything else I want to delete at the moment, since I got rid of cityid at the recovery adb prompt.
qwho said:
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
There is also another terminal app in the market for 1.99, listed as being for that purpose, so, has anyone tried it?
I don't have anything else I want to delete at the moment, since I got rid of cityid at the recovery adb prompt.
Click to expand...
Click to collapse
The nand is locked down when you are in the main OS, so no, it would not work. You would need to do the re-root to gain access to /system/ as recovery is the only place where we are able to access it right now.
qwho said:
when I run terminal emulator in the OS on the phone, and type su, the super user app grants it permission. Would we be able to delete system apps from there?
Click to expand...
Click to collapse
E30kid said:
The nand is locked down when you are in the main OS, so no, it would not work. You would need to do the re-root to gain access to /system/ as recovery is the only place where we are able to access it right now.
Click to expand...
Click to collapse
I can get su access while in the OS. No problem on that. And I tried to delete teeter.apk, but got the "read only" message. So, I mounted it as read-write with
Code:
/system/bin/mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
that went fine too, but when I tried to delete teeter.apk, i got "rm failed, directory not empty"... but I'm not trying to delete a directory...
I guess the "nand is locked" and that's why, but... "the nand is locked" doesn't mean much to me, as I have no clue what that means

[Q] ADB remount issue

First off, I'm fairly new to the Droid X and this is my second android phone(the first was an Eris which should be kinda obvious). I am rooted but, for whatever reason, I cannot run the adb remount command from the prompt. I can run other commands like adb shell bootanimation which runs my boot animation and when i enter in adb shell it returns a $. $ does mean rooted, correct?
Also, when i try to run the sdk manager i get the "java not found in your your path" The weird thing is that it is in the path. So i'm getting frustrated now and I know it is probably something simple that i am overlooking.
If anyone can help out, I would greatly appreciate the help.
DroidEris1981 said:
First off, I'm fairly new to the Droid X and this is my second android phone(the first was an Eris which should be kinda obvious). I am rooted but, for whatever reason, I cannot run the adb remount command from the prompt. I can run other commands like adb shell bootanimation which runs my boot animation and when i enter in adb shell it returns a $. $ does mean rooted, correct?
Also, when i try to run the sdk manager i get the "java not found in your your path" The weird thing is that it is in the path. So i'm getting frustrated now and I know it is probably something simple that i am overlooking.
If anyone can help out, I would greatly appreciate the help.
Click to expand...
Click to collapse
$ does not mean rooted. from that prompt you can enter 'su' and you should get an '#' and then you are using root.
However, by default, the ADB daemon is not running with root privileges. Thus when you try to ADB remount it gets denied.
You need to run a 'Root Elevated' adb daemon. Or you can manually remount the /system partition from adb shell.
Why does the Droid X Recovery Bootstrap start on boot?
As mentioned above, it needs to log that your phone booted successfully and recovery mode is not necessary. It also replaces your "adb daemon" with one that has root permissions, allowing for easier usage of the adb command.
Click to expand...
Click to collapse
I know that if you install/run DroidX Bootstrapper (which installs the ClockworkMod Recovery) it also sets up a root elevated ADB daemon. You will need to reboot after installing before this takes effect.

[Q] ADB "Permission Denied"

hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
mrpanic7 said:
hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
You may have to run visionary and reboot a few more times to make root privileges stick.
My MyGlacier 4G MINE!!!
Try this:
: adb shell (this should give $)
:$ su (next line type su, this should give you prompt on Super user to allow permission)
:# ( once you get this your good)
Sent from my HTC Glacier using Tapatalk
Try to install visionary and then re install open click temp root then permoot super user should ask to approve click yes. After that restart
Sent from my HTC Glacier using XDA App
Please post questions in Q&A forum. Thank you
ok everytime i try adb shell in terminal emulator it says the permission denied, im gonna try the first reply again and then see....any other ideas?
also guys, when i try and run visionary again it says your device is already rooted, along with when i type su in TE, it gives # with superuser permissions quote showing on bottom of screen, but i was trying to run adb commands from pc or from te and they still show permission denied. SetCPU works.
mrpanic7 said:
also guys, when i try and run visionary again it says your device is already rooted, along with when i type su in TE, it gives # with superuser permissions quote showing on bottom of screen, but i was trying to run adb commands from pc or from te and they still show permission denied. SetCPU works.
Click to expand...
Click to collapse
Ok, go into adb shell and type su + enter. Watch your phone when you do this. Superuser should ask if you want to allow "unknown" root privileges. "unknown" is adb. Click allow and your problems should go away.
My MyGlacier 4G MINE!!!
So typing su works and the message terminal emulator is granted permissions, but then any other commands dont work
Sent via MyTouch 4G
Whats a test command I could try?
Sent via MyTouch 4G
mrpanic7 said:
So typing su works and the message terminal emulator is granted permissions, but then any other commands dont work
Sent via MyTouch 4G
Click to expand...
Click to collapse
I ran into this same issue and it drove me crazy. I would not get prompted by the phone to allow su permissions when going through ADB- kept getting "permission denied"
I did finally get SU permissions through ADB, but I dont recall exactly what I did to get prompted to allow access.
I will try to retrace what I did... believe I had ADB shell running (without su permissions "$"), but I also had terminal emulator running on my phone. I entered the su command on my phone, then I did the same from ADB shell.
Finally the phone prompted me to allow access - accepted - and no problems from that point.
Basically, I just had to keep f'n with it.
Yeah thats my problem exactly. Yeah I appreciate any assistance you can provide. I mean my pc reads my device when I adb devices command, but it wont allow nothing past that. Please keep me informed on anything I can try, also im not thag most fluent with using sdk/adb stuff so any additional info with using that is much appreciated thanks again fellow enthusiasts!
Sent via MyTouch 4G
Have you tried to bacup su, then uninstall su. Reinstall su, Then try it again. MIGHT work
Sent from my HTC Glacier using XDA App
yeah i re-installed su and didnt help, @dbiggs-what can i do thru adb to initiate the su permissions to the device like you did?
I wish I could help more specifically, but I dont remember exactly what I did that allowed me access- just kept trying
Maybe try this...(dont be offended if any of these steps are ones that you already know or have tried, I am just trying to be as thorough as I can from memory)
Open up super user, then go back to the terminal emulator and enter the "su" command to gain superuser permissions.
Plug the phone into the computer, select charge only, enter ADB through tools (probably "C:\Android\tools" if your Android folder is in the root of your harddrive).
from the prompt C:\Android\Tools, enter:
adb shell
then you will get the "$" that you mentioned.
enter the "su" command, and hopefully you will get prompted to allow superuser permissions for ADB.
I am pretty sure these are the steps that I took, just had to keep trying.
Lemme know how it works out.
I see some people here asking about getting su privileges in adb, however I do have SU and I can run su in adb shell. My problem is that I am trying to push some files and use Android Commander. I can't run "adb remount" (remount failed: Operation not permitted), I can't copy files in Android Commander (it's says that I do not have ROOT)
How can I get Read-Write in ADB ??
Edit: Oh, now I got it, I don't have root in ADB, when i type "adb root" it says "adbd cannot run as root in production builds"
Did anyone figure this out? I'm being denied on TE and PC also.
I have managed to be able to get around this issue by going into recovery mode on my phone.
If the end result that you are looking for is to adb push files, then the easier way to do this is to flash clockwork recovery to your phone, then start your phone into recovery mode, mount system and you should be able to push files no problem.
Lemke know if this helps.
Sent from my HTC Glacier using XDA App
mrpanic7 said:
hey guys need help so my Mytouch 4G updated and perm rooted, and i keeep gettin gthe permission denied everytime i try and execute a command thru adb thru my pc or on the Terminal Emulator. Did something not go thru on root or am i missing something simple? any help would be greatly appreciated. Thanks
Click to expand...
Click to collapse
I'm pretty sure your issue has nothing to do with SU access. Most likely, your phone is simply mounting as r/o (read only) when it boots up, so ADB is unable to change anything to the system folder. The easiest way to mount as r/w (Read/Write) is to go into Root Explorer and click the r/w button in the top right corner, and then go to ADB and see if it will allow you to do the same commands that it previously denied.
I have the same issue with my phone mounting as r/o by default, but I haven't been able to figure out how to automount as r/w on the MT4G. If anyone knows how, please share.
I had this same issue, on several android phones including MT4G. Here is how I fixed it.
1. Connect phone via usb (I was in "charge only" mode, not disk drive mode)
2. Open command prompt and navigate to the android tools folder
3. type "adb shell"
4. MAKE SURE YOUR PHONE SCREEN IS ON AND UNLOCKED
- The above step is very important otherwise you will not get the SU prompt
5. At the "$" prompt type "su"
6. Your phone should now display the SU screen asking you to allow the connection root access.
7. Once you allow it, you are golden.
I did this on a windows pc. Hope it helps.

[Q] Shell, terminal emulator, how to...?!

Greetings to all!
Can You tell me how can i use shell in WF, what can i do in/with shell, is shell useful for working with, where can i find commands for android shell...?!
I'v installed it but when i type "Su" there is no action only "command not found" also when i type some other commands...
You must be rooted and have Superuser installed to allow terminal emulator to access SU.
Im rooted!
Have you got the Superuser App? Because, at the very least, atleast the "su" command should work on the terminal emulator, irrespective of others.
Anyway, some read through threads for shell and it's commands:
http://forum.xda-developers.com/showthread.php?t=718264
http://forum.xda-developers.com/showthread.php?t=826769
Yes, i have...Thats why is strange for me...
I rooted WF on my Linux Ubuntu 10.10...
You'll need the android development kit from google. Extra the tools to your personal user bin folder. (~/bin) add into your path statement. Open interval in you should not have adb working. In the terminal using adb issue adb shell. You will now be in a shell on your phone through your computer
Sent from my Incredible using Tapatalk
I know about Adb using phone shell with my Pc but i dont want that, i thought that shell can use only with phone without Pc...To bad...
Or i didnt understand you...!?

Apps install on SD Card by default

Is there a setting in missing...? and if not what is the best option you found that doesn't create complications to the system. I am rooted and using xposed.
Sent from my XT1575 using Tapatalk
shoman94 said:
Is there a setting in missing...? and if not what is the best option you found that doesn't create complications to the system. I am rooted and using xposed.
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
There's a command you can issue in Terminal to do that.
adb shell pm set-install-location 2
Click to expand...
Click to collapse
To verify that it worked, run:
adb shell pm get-install-location
Click to expand...
Click to collapse
If it comes back as "2", apps will install to the SD card by default. This will also enable more apps that have "move to SD card" grayed out to being selectable under App Info.
Do do what I did though, and move just about every app to SD. Most of them kept losing their settings and SU access after a reboot. And speaking of reboot, all of your apps moved to SD will have gray colored icons for a minute or so.
To get back to the default setting, move your apps back to the phone and run:
adb shell pm set-install-location 0
Click to expand...
Click to collapse
Hope this helps.
So even if we have apps installed to internal and we use this command does this automatically move every app to sd card or just that's we install after using this adb command? And are there any Superuser issues doing this?? Or is everything stable this way?
Try link2sd
Sent from my XT1575 using Tapatalk
patt2k said:
Try link2sd
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
Did you get this to work on your device? Which file format did you do on your second drive?
Thanks for your assistance!
Do we need root for this? (The adb commands). I know link2sd is root. Lol
I'm not using it no need but I think fat32 or ext4 is OK.
Sent from my XT1575 using Tapatalk
Wait for android 6.0
Sent from my XT1575 using Tapatalk
Spasticdroid said:
There's a command you can issue in Terminal to do that.
To verify that it worked, run:
If it comes back as "2", apps will install to the SD card by default. This will also enable more apps that have "move to SD card" grayed out to being selectable under App Info.
Do do what I did though, and move just about every app to SD. Most of them kept losing their settings and SU access after a reboot. And speaking of reboot, all of your apps moved to SD will have gray colored icons for a minute or so.
To get back to the default setting, move your apps back to the phone and run:
Hope this helps.
Click to expand...
Click to collapse
I am getting the following error in Moto X style Marshmallow rooted( su 2.61 installed). Any Idea how to fix this?
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb devices
List of devices attached
TA083056FQ device
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb shell pm get-install-location
0[auto]
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb shell pm set-install-location 2
Error: java.lang.SecurityException: Package android does not belong to 2000
ovhirup said:
I am getting the following error in Moto X style Marshmallow rooted( su 2.61 installed). Any Idea how to fix this?
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb devices
List of devices attached
TA083056FQ device
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb shell pm get-install-location
0[auto]
C:\Users\abhir\AppData\Local\Android\sdk\platform-tools>adb shell pm set-install-location 2
Error: java.lang.SecurityException: Package android does not belong to 2000
Click to expand...
Click to collapse
You probably need to type this command:
adb root pm set-install-location 2
not
db shell pm set-install-location 2

Categories

Resources