Moving apps from SD card to internal doesn't work - Moto Z3 Play Questions & Answers

I have a stock, unrooted, factory unlocked Z3 running Pie (PPW29.183-29-1).
My SD card is a brand new Sandisk Extreme 128GB V30/U3/A2 formatted as adoptable storage. I have one app in particular that I'd like to move from the SD card to internal storage so I can use the widget it provides.
I go to the app info and hit the CHANGE button, select the internal storage option to move it to, and then hit the Move button on the next screen. It does nothing but produce the following logcat messages, every time I hit the button:
E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
D StorageSettings: User 11 is currently locked; requesting unlock​
In fact I get the same thing for any app I try to move from SD card to internal. Any ideas?

Faced and successfully resolved the issue today. Will share the solution just in case someone will have similar problem.
The issue was in currently active (or used to be active) Guest account. Error message is referencing it as "User 11". To confirm, go to the adb shell and execute
$ pm list users
You will see something like
UserInfo{11:Guest:14}
in the output.
Make sure you have Guest user disabled in the settings. After this execute
$ pm remove-user 11
Which will delete user and all it's content. After this migration start working properly for me.

Related

new sd card, apps not working, how to mass reinstall?

I got a new sd card, a 16GB class 6 instead of the 8GB class 2 I'd been using. I had apps to sd set up previously. I used dd to backup the ext3 partition off the sd card, then I created an ext3 partition on the new card and restored the dd image. All my apps are there, but none of them WORK. Some won't even launch, some launch and then force close as soon as I try to actually do something.
I have close to 100 apps installed. I REALLY don't want to manually uninstall and reinstall them. Is there a way to mass reinstall currently installed apps?
Edit-Ended up forced to wipe for an unrelated issue anyway. Thanks for the suggestions!
In Cyanogens build he has a fix_permissions app you should look into it. I'd almost bet its a permission problem.
heldc said:
I got a new sd card, a 16GB class 6 instead of the 8GB class 2 I'd been using. I had apps to sd set up previously. I used dd to backup the ext3 partition off the sd card, then I created an ext3 partition on the new card and restored the dd image. All my apps are there, but none of them WORK. Some won't even launch, some launch and then force close as soon as I try to actually do something.
I have close to 100 apps installed. I REALLY don't want to manually uninstall and reinstall them. Is there a way to mass reinstall currently installed apps?
Edit-Is this the wrong forum for this question? It seemed right, since I'm asking how to mass reinstall. I did search the entire forum for mass reinstall, and didn't find any info. Is this a topic already covered?
Click to expand...
Click to collapse
use adb. Put all of the .apk into one folder.
open a command terminal and cd into the directory with all the .apk in it.
type:
adb remount
adb install *.apk
Click to expand...
Click to collapse
it will install all the .apk that was in the folder you cd into.

Switch Memory Card with Apps to SD

HI guys,
Last night, got my new 8gb class 6 card, and took it into ubuntu and recreated all my partitions. Then did a copy from the old partition to new one...
Then did a reset ext security thing from the recovery console, however one issue is still out there... 4 apps didn't copy across correctly. They can't be uninstalled or reinstalled and are just refusing to work at all anymore.
When I try to reinstall from ADB, it spits out:
INSTALL_PARSE_FAILED_NO_CERTIFICATES
Any ideas how I can fix it?
they should just auto delete any new thread that ends with a question mark in the dev forums....
gunigugu if your too dull to get what im saying, POST IN TH PROPER PLACE
( Capslock is cruise control to success)
I've had issues of not being able to uninstall something, the only solution I found was download the apk file off the internet then installing, then uninstalling.
How did you copy it over?
The *right* way is to use the "dd" command.
dd if=/path/to/sdcard-device-file of=/path/to/store-image-in
switch the card
dd if=/path/to/store-image-in of=/path/to/sdcard-device-file
Now you can move and resize your partitions, and its done.
lbcoder said:
How did you copy it over?
The *right* way is to use the "dd" command.
dd if=/path/to/sdcard-device-file of=/path/to/store-image-in
switch the card
dd if=/path/to/store-image-in of=/path/to/sdcard-device-file
Now you can move and resize your partitions, and its done.
Click to expand...
Click to collapse
I just did a copy and paste within the ubuntu explorer
Everything works, except I think the protected apps.... and I would uninstall / reinstall them, but the option to uninstall the apps is grayed out.

froyo apps to SD help please.

hello all, I've installed froyo(paul's release) and I've executed
"1.adb shell 2.adb setinstalllocation 2" (thanks henchman). Move to SD card isn't greyed out anymore however once I press it, my phone seems to reboot and the app doesn't move to the SD card :c
I've tried several apps including free apps, and game apps not written by google (ex. google earth)
euki69 said:
hello all, I've installed froyo(paul's release) and I've executed
"1.adb shell 2.adb setinstalllocation 2" (thanks henchman). Move to SD card isn't greyed out anymore however once I press it, my phone seems to reboot and the app doesn't move to the SD card :c
I've tried several apps including free apps, and game apps not written by google (ex. google earth)
Click to expand...
Click to collapse
I've got the same issue, still looking for an answer.
1. adb devices --to make sure your device is recognized
2. adb remount
3. adb shell
4. setInstallLocation 2
5. exit
well, you can move to SD, but once you reboot, it takes about a minute or so for the apps (that are moved to SD) to start working
best option is to wait for the developers to give permission for move to SD for Froyo
jblazea50 said:
1. adb devices --to make sure your device is recognized
2. adb remount
3. adb shell
4. setInstallLocation 2
5. exit
well, you can move to SD, but once you reboot, it takes about a minute or so for the apps (that are moved to SD) to start working
best option is to wait for the developers to give permission for move to SD for Froyo
Click to expand...
Click to collapse
I've run the setInstallLocation 2 command but when I try to move the apps, my phone restarts. Same when I try to install an app.
jblazea50 said:
1. adb devices --to make sure your device is recognized
2. adb remount
3. adb shell
4. setInstallLocation 2
5. exit
well, you can move to SD, but once you reboot, it takes about a minute or so for the apps (that are moved to SD) to start working
best option is to wait for the developers to give permission for move to SD for Froyo
Click to expand...
Click to collapse
thank you for the help but I've done all that (even have 2.2 SDKs), even did it multiple times.. however my phone still goes to Boot animation after pressing move to sd card. :c
euki69 said:
thank you for the help but I've done all that (even have 2.2 SDKs), even did it multiple times.. however my phone still goes to Boot animation after pressing move to sd card. :c
Click to expand...
Click to collapse
In Froyo, don't you just move the apps to the sdcard via Menu -> Settings -> Applications -> {relevant app}?
In the app's settings (after you install it) you just touch "Move to SD". So you're moving them to sdcard one at a time. This way, you have the option of moving each - or any - app to sdcard (or not).
Why would Paul's version not support the Froyo way of doing it?
I have Froyo here on a stock N1. Just beginning at how to get it flashed onto an N1 currently running CM v5.0.6. Was wondering if it might even relock the bootloader. Ya neva know!
It works fine on mine. All my apps downloaded automatically even though I have made absolutely sure that the setting to save them was unticked. Thats a different issue though. At any rate I toggled over to 2 and rebooted and then went through and moved them all over to sd one by one. After I did so I rebooted again and performance is fine. Same as on cm and there is no discernable difference in the apps performance whether on phone or sd. No issues whatsoever with it. I partitioned the drive to get rid of ext4 since I wouldnt need it anymore and then wiped everything before I flashed froyo. Not sure if either would be a factor.

[Bounty] $125 if someone can make me a Nookie Froyo SD image that works with 16gb

I am absolutely pulling my hair out here. I have 3 16GB sd cards - 2 16gb ridata class 6, and one patriot class 4.
No matter what I do, I cannot get any of them to work with Froyo. ONLY my 16gb cards fail - I have various other 4 and 8gb cards floating around that work 100% fine.
With this image, I can boot the first time, run the makepart.sh command (which gives a "too many cylinders on disk error), and reboot fine again. When I go to finish formatting the SD card partition using formatpart.sh, it completes the process but never reboots - it just gets stuck on the Android... text in the bottom corner of the screen.
http://forum.xda-developers.com/showthread.php?t=922324
With these images, both 6.6 and 5.9, I can boot initially just fine but the sd card is only seen as 884mb. When I expand the partition to take up the rest of the free space (about 14gb) using EASEUS partition manager, I can boot fine next time but get literally hundreds of force closes to the point where I can't do anything. I've tried everything - creating new partitions as both logical and primary, resizing existing partitions, formatting from terminal and windows 7 x64, etc, etc.
http://forum.xda-developers.com/showthread.php?t=883175
So I've had it. If someone can make me a flashable and bootable SD card image (preferably 6.6, but 5.9 works too) that simply works with the 16GB cards (so I can actually utilize the extra space) and includes the below I will paypal them $125.
-Google Apps
-Market
-Camera and Voice apps removed
-Dropbox added
-Mount/System added (if the app does not take up the full screen force close it once)
-Nook Reader
-Phone and TelephonyProvider removed
-SetupWizard renamed (Can't get it to work. Go into Setting>Accounts & sync to add gmail account after your wireless has been setup)
-Flash installed and updated
-Default Launcher removed
-Zeam added
-Button Savior
-Angry Birds
-Astro File Manager
-Gingerbread keyboard
I basically want a version of the customized Nookie, but with Angry birds, astro, and button savior instead of softkeys (I can't stand softkeys).
To clarify, it only has to work with 16GB cards to get the $125. If it can work with 4 and/or 8GB size cards too, I'll add another $50.
Thanks for looking.
$500 if someone can de-expand my snookie "wife" from 16GB to 2GB and isolate her to sit in her fixed emcc and cook me up some gingerbread. lol. and yes i have used the search function already.
Edit: I did my own research and came to this, I did not create it but I read that some people are using it on 16gb SD cards and it works perfectly. So I decided to put it here.
Updated 2/6 new version! Pandora, YouTube, MP3's all play now. Flash might work w/o choppiness now too(?) - let us know.
Installing Nookie Froyo custom Android 2.2 ROM to boot off of an SD card:
The first thing you're going to need is a micro-SD card:
*at least 2GB in size
*at least 4GB is recommended, in order to have several GB's of storage on the SD Card partition (what Android reads as actual SD card storage)
*Class 6 or 10 is preferred
*Class 4 may be fine, 2 will likely be slow
Be aware that some companies claim to be offering a higher-class card than they really are (as there's no independent third-party that monitors the Class specification). So researching the brand you're considering is recommended.
You'll also need an SD card reader
If you have an Android phone, you may also be able to use it by placing the SD in your phone, selecting Mount as USB Drive on your phone, and proceeding from there.
First, download the latest version of Nookie
Unzip the .gz file (Winrar, 7zip, etc. Should work for that) so that you have an .img file that you're working with.
If you're on a PC, you're going to want to get a program called Win32DiskImager.
If you're on a Mac or Linux machine, you'll want dd.
Connect the SD card to your computer.
For PC Users:
open Win32DiskImager, select (using the button with the dots) the image file for Nookie that you downloaded, then select the drive of your SD Card (be very careful you're choosing your SD Card drive and not another!), then choose Write Image. *After a few minutes, you're all done!
For Mac Users (instructions credit nookdevs.com)
Open a terminal window.
Find which drive the sd card is mapped to: type in the terminal this:
diskutil list
Be very careful to identify the SD card and not your hard disk. Be VERY careful.
Now unmount that drive typing this:
diskutil unmountDisk /dev/disk#
(My computer is was disk2 replace # with your number.)
The computer should say:*Unmount of all volumes on disk was successful
dd if=NameOfNookieFroYoImage of=/dev/disk# bs=1m
Again, replace # with the number of your card. Everything needed should copy right over to the card.
RUNNING NOOKIE:
Simply insert your Nookie Froyo SD card into your nook and power on. As long as your SD card is in your NOOKcolor when you power it on or reboot, it will boot into Nookie Froyo. Everything that would normally be on an Android phone or tablet's internal memory (plus what would normally be on an SD card) is all going to be on your SD (this is why we recommended a card of 4GB or more).
One of the first things you'll notice is that there aren't any Google apps installed. You'll need to do this yourself (I would have loved to include them, but there are legalities, yadda yadda...).
ADB Installation of Google Apps:
1. You'll need to have adb (Android Debug Bridge) installed on your computer. This link explains in relatively easy terms how to get this going . . .http://forum.xda-developers.com/showthread.php?t=502010
Basically, you'll want to install the Android SDK and become familiar with the location of the directory it was installed in.
If you want to make it easy, move the 'Tools' directory (inside the SDK directory) onto c:/ . . . (or whatever your main hard drive's letter is) then, to get there, you'll simply type cd c:/tools
2. Having installed the SDK for adb access to your nook, now download the google apps files, and unzip the file so that it extracts the folder called 'system' into the 'Tools' directory in the SDK folder you downloaded.
3. Now you'll open a command prompt in Windows (start menu>run>type 'cmd') and navigate to the correct folder (cd [folder directory's path]). On Mac, this would be done via Terminal.
4. Now, with your NOOKcolor connected to your computer's USB port, type the following (of course, hit enter after each line):
adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system
adb push [here, enter the path to your SDK tools folder]\system system/
adb reboot
5. Now your NC will reboot. When it boots, you'll have Market, Gmail, Google Maps, and many more Google apps.
* If you're getting a "device not found" error when running adb, first, reboot your Nook and your computer and see if it changes.
If that fails, download and unzip this file, open install.exe, and follow the on-screen prompts (this will install drivers so your computer will recognize the nook).
If that doesn't work, try opening the Super User app on your nook and then issuing the commands.
If that still doesn't work, refer to the steps in this thread, repeating if necessary.
One of the first things to do:
Before you start, one of the most important things to remember with the current version of nookie is to turn the screen off/on (do this each time you boot your nook). There's some serious touchscreen lag by default, and this is the very simple solution to make it go away. Nothing fancy, just put the screen to sleep for a sec, and when you turn it back on, it'll be plenty responsive.
Click to expand...
Click to collapse
Here is a comment a user posted regarding the 16gb SD cards
I bought a class 10 16GB from Wintek, a brand I've never heard of and not only was the card unbearably slow -- so massive lag a points, it ended up corrupting itself... Anyways, I put in a 16 GB class 4 Kingston I have and not only is it faster than the supposed class 10 -- rarely any lag, I've not had any problems.
Click to expand...
Click to collapse
Source: (all credit for creating the rom)
Android Central
Edit 2: Since you also wanted to delete any signs of cell phone options, use this theme.
http://forum.xda-developers.com/showthread.php?t=944278
Hope this helps
So... since someone did end up "fixing" your problem, although not directly in response to your thread, are they going to get a nice surprise?
Chirp....Chirp....Chirp....Chirp...
(Just Kiding)
"computerpro", have you looked to see if the FAT is FAT16 or FAT32? Pretty sure a 14G FAT16 isn't going to fly.
khaytsus said:
"computerpro", have you looked to see if the FAT is FAT16 or FAT32? Pretty sure a 14G FAT16 isn't going to fly.
Click to expand...
Click to collapse
It's Fat32. I'll try that solution posted above when I get home from class, but brian said he is working on an update that should work with all cards and it should be out today. What's weird is that I can even boot with a 10GB partition with 4gb unallocated space. IT's just once I get up in the 12-14gb partition size range when things start corrupting themselves. And again, what's weird is that this happens across different brand and class cards. They are not defective. I am convinced it has something to do with the too many cylinder error I get while running makepart.sh
We shall see!

[Q] KF1 - SD card vs. Phone vs. USB storage (Issues w/ Default Installation Location)

OK I have rooted KF1 and I am confused about the storage mediums. I want my apps to install the the phone by default and not my microsd card (because its faster and widgets work). So while investigating it i came across some discrepancies.
1. Under "Manage Applications" the microsd card is referred to as "USB Storage". I can manually more apps from "USB Storage" to "Phone".
2. But, under "SD Card and phone storage" the internal phone memory is denoted as "USB Storage" while my microsd card is referred to as "SD Card".
What is going on. I do think I left my microsd card in the phone when I installed KF1, but I've never had this problem before. Any suggestions other than reflashing (because I have everything nicely set right now).
hashish16 said:
OK I have rooted KF1 and I am confused about the storage mediums. I want my apps to install the the phone by default and not my microsd card (because its faster and widgets work). So while investigating it i came across some discrepancies.
1. Under "Manage Applications" the microsd card is referred to as "USB Storage". I can manually more apps from "USB Storage" to "Phone".
2. But, under "SD Card and phone storage" the internal phone memory is denoted as "USB Storage" while my microsd card is referred to as "SD Card".
What is going on. I do think I left my microsd card in the phone when I installed KF1, but I've never had this problem before. Any suggestions other than reflashing (because I have everything nicely set right now).
Click to expand...
Click to collapse
In my opinion, since you're concerned about where your apps and widgets are located, pay more attention to what it says under "Manage Applications".
I agree that it's a little backwards to use the USB Storage monicker to refer to two opposite situations, but as long as your applications are showing up in the right place in the "Manage Applications" dialog, you should be in good shape.
If you're really worried about it, un-mount and remove your micro SD card and make sure all of your apps and widgets still show up in "Manage Applications" - if they do, you're in good shape. (In my experience, you usually have to get an application that moves apps/widgets to the microSD.)
(duplicate)
jmtheiss said:
In my opinion, since you're concerned about where your apps and widgets are located, pay more attention to what it says under "Manage Applications".
I agree that it's a little backwards to use the USB Storage monicker to refer to two opposite situations, but as long as your applications are showing up in the right place in the "Manage Applications" dialog, you should be in good shape.
If you're really worried about it, un-mount and remove your micro SD card and make sure all of your apps and widgets still show up in "Manage Applications" - if they do, you're in good shape. (In my experience, you usually have to get an application that moves apps/widgets to the microSD.)
Click to expand...
Click to collapse
All of my apps are installing to the microsd card. I have to manually move them to the phone storage after they install. I thought that the phone storage was always the default. I want to fix it but I can't find how because every time I search for it I get the opposite, people wanting to move from phone to microsd and set that as the default.
Perhaps as a test you could try removing your microSD card and trying to install an app. See what happens, and maybe an option will come up to change the default install location.
I have no idea if this will work, but it's something to try.
jmtheiss said:
Perhaps as a test you could try removing your microSD card and trying to install an app. See what happens, and maybe an option will come up to change the default install location.
I have no idea if this will work, but it's something to try.
Click to expand...
Click to collapse
Installed two apps. Without the microsd card it installed to the phone. But right after that I installed the microsd card and it reverted back to the USB storage.
Something else to try, if you have access to ADB, is this command:
adb shell pm setInstallLocation 0
(see this page for reference on that command).
jmtheiss said:
Something else to try, if you have access to ADB, is this command:
adb shell pm setInstallLocation 0
(see this page for reference on that command).
Click to expand...
Click to collapse
Thanks I'll give that a try.
jmtheiss said:
Something else to try, if you have access to ADB, is this command:
adb shell pm setInstallLocation 0
(see this page for reference on that command).
Click to expand...
Click to collapse
didn't work, but when I tried to use adb i didn't get the usual "shell started" display. The phone is in debugging mode, I even restarted. The shell worked fine once, and now it won't work at all.... ugh.
I even tried "setInstallLocation 1" to force the phone instead of auto. I am going to try "2"
*So far no good, should I restart after I set install location.
** I've tried everything. I even installed an app that sets the install location and not matter what it still installs to the USB Storage.
try rebooting to recovery mode (if you have CWM) and starting adb from there like this:
adb root
adb shell
and make sure you have the # prompt, not the $. If you get the $ prompt, you can try using "sudo" before the command.
jmtheiss said:
try rebooting to recovery mode (if you have CWM) and starting adb from there like this:
adb root
adb shell
and make sure you have the # prompt, not the $. If you get the $ prompt, you can try using "sudo" before the command.
Click to expand...
Click to collapse
There is no CWM for KF1 yet, but I will try your commands in recovery.
*Update: ADB didn't work in recovery (no CWM yet), so tried while in debug mode. sudo didn't work, but got the # prompt with su. Tried to set the install location and still no luck. The applications still install to the microsd card.
At this point, I think my only option is to reflash the ROM (without the microsd card installed).
Sorry I couldn't offer a better solution. Hopefully the reflash will fix things. Just make sure you Tibu first, and your restoration shouldn't be too painful.
jmtheiss said:
Sorry I couldn't offer a better solution. Hopefully the reflash will fix things. Just make sure you Tibu first, and your restoration shouldn't be too painful.
Click to expand...
Click to collapse
Thanks for taking the time to help out.
I'm on Cognition 5 Beta 2 (that is based on the Leaked i897uckf1)...
There is an option under Menu/ Settings/ Applications/ "Preferred location"
Do you have this option ? If so, ur choice is there--- "Internal memory"
Not sure if after u choose that option u would have to reboot for it to take.
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
It doesn't matter whether you had a microsd card installed. I removed microsd +sim before flash and also ran the adb shell from command prompt... didn't seem to make a difference.
Let me know if someone finds a fix for this!
For2ndtwin said:
I'm on Cognition 5 Beta 2 (that is based on the Leaked i897uckf1)...
There is an option under Menu/ Settings/ Applications/ "Preferred location"
Do you have this option ? If so, ur choice is there--- "Internal memory"
Not sure if after u choose that option u would have to reboot for it to take.
Sent from my SAMSUNG-SGH-I897 using XDA Premium App
Click to expand...
Click to collapse
I believe i'm having the same issue described by OP, and i am running Cognition 5 v2 stock kernel, but I do NOT see the 'Preferred Location' setting anywhere.
Help?
The install location setting was present in Cog 5v1, but did not function properly. I have not personally installed v2, but I believe the setting was removed for this reason.

Categories

Resources