Is it possible to backup an app and its data without root? - Android Q&A, Help & Troubleshooting

I got a new phone and there is an app on my old phone that I've lost the login info to. I'd like to try backing up the app and it's data from the old phone and moving it to the new phone but at least in the app I was trying (Swift Backup) this feature requires root. Is there any way to accomplish this without root?
I'm on a Verizon Pixel 5 so I don't think it will be possible for me to root for quite some time.

skytbest said:
I got a new phone and there is an app on my old phone that I've lost the login info to. I'd like to try backing up the app and it's data from the old phone and moving it to the new phone but at least in the app I was trying (Swift Backup) this feature requires root. Is there any way to accomplish this without root?
I'm on a Verizon Pixel 5 so I don't think it will be possible for me to root for quite some time.
Click to expand...
Click to collapse
Have you tried this
https://play.google.com/store/apps/details?id=com.google.android.apps.pixelmigrate

Good idea, I skipped this step when initially setting up my phone because I wanted to start fresh. I only realized my problem with this one app a while later.
Looking at that Data Transfer Tool it appears there is no actual way to open the app after you've set up the phone. Do you know if there might be some way? It does appear that this might fix my issue, but I cannot open this app. I can't see it in my app drawer but when I search on my settings I can find the app info for it, however there is no option to open the app. Very frustrating.

YES.
You might use HELIUM app. It requires a desktop companian app got installed, too.
How-to:
Install Helium on Android
Install Helium on your PC
Windows Users must also install Android drivers and restart.
Open Helium Desktop on PC
Open Helium on Android (and follow any instructions there)
Helium should now be enabled!

If adb is enabled...
adb backup still works although it isn't mentioned in the adb's help anymore...
At least still in Q that is...
basically: adb backup -f package.name.ab package.name
or with more stuff included: adb backup -apk -obb -f cxz.johnnysquirrel.riddleofthebox.ab cxz.johnnysquirrel.riddleofthebox
list the packages: adb shell pm list packages
or: adb shell cmd package list packages
find particular package, add grep: adb shell "pm list packages | grep cxz"
output is like : package:cxz.johnnysquirrel.riddleofthebox
The package used as an example doesn't have any extra data to be saved really...

CXZa said:
adb backup still works although it isn't mentioned in the adb's help anymore...
At least still in Q that is...
basically: adb backup -f package.name.ab package.name
or with more stuff included: adb backup -apk -obb -f cxz.johnnysquirrel.riddleofthebox.ab cxz.johnnysquirrel.riddleofthebox
list the packages: adb shell pm list packages
or: adb shell cmd package list packages
find particular package, add grep: adb shell "pm list packages | grep cxz"
output is like : package:cxz.johnnysquirrel.riddleofthebox
The package used as an example doesn't have any extra data to be saved really...
Click to expand...
Click to collapse
Nice, I think I'll give this a try. Once I back it up where do those files go? How do I then restore it on my new device?

skytbest said:
Nice, I think I'll give this a try. Once I back it up where do those files go? How do I then restore it on my new device?
Click to expand...
Click to collapse
To the same folder from which you are running that adb. There is adb restore command too.
adb restore <file> - restore device contents from the <file> backup archive
It "should" work when you go upwards. Restoring to an older android version is less certain...

CXZa said:
To the same folder from which you are running that adb. There is adb restore command too.
adb restore <file> - restore device contents from the <file> backup archive
It "should" work when you go upwards. Restoring to an older android version is less certain...
Click to expand...
Click to collapse
Ok, I think I see. In your original response for the adb backup command you included two params cxz.johnnysquirrel.riddleofthebox.ab and cxz.johnnysquirrel.riddleofthebox. Is one of those the apk and the other the app data?
I see here there are two different restore command, one for the actual app "adb install application.apk" and one to restore the data "adb restore application.backup"

skytbest said:
Ok, I think I see. In your original response for the adb backup command you included two params cxz.johnnysquirrel.riddleofthebox.ab and cxz.johnnysquirrel.riddleofthebox. Is one of those the apk and the other the app data?
Click to expand...
Click to collapse
after -f is the file name where to backup. The last is the package name.
skytbest said:
I see here there are two different restore command, one for the actual app "adb install application.apk" and one to restore the data "adb restore application.backup"
Click to expand...
Click to collapse
First one installs the apk, next one restores... so you should do like:
adb restore cxz.johnnysquirrel.riddleofthebox.ab
No idea how it works like if you have that app as an newer system app in that new phone....
These things can be tricky so other exceptions are also possible...

CXZa said:
adb backup still works although it isn't mentioned in the adb's help anymore...
At least still in Q that is...
basically: adb backup -f package.name.ab package.name
or with more stuff included: adb backup -apk -obb -f cxz.johnnysquirrel.riddleofthebox.ab cxz.johnnysquirrel.riddleofthebox
list the packages: adb shell pm list packages
or: adb shell cmd package list packages
find particular package, add grep: adb shell "pm list packages | grep cxz"
output is like : package:cxz.johnnysquirrel.riddleofthebox
The package used as an example doesn't have any extra data to be saved really...
Click to expand...
Click to collapse
ADB backup / restore doesn't allow you to backup things on the one phone and then restore them on the other phone.

jwoegerbauer said:
ADB backup / restore doesn't allow you to backup things on the one phone and then restore them on the other phone.
Click to expand...
Click to collapse
If you say so...
Switching phones like a pro: How our reviewers do it. (September 25, 2020)
https://www.androidauthority.com/how-to-switch-phones-901221/
skytbest said:
I got a new phone and there is an app on my old phone that I've lost the login info to.
Click to expand...
Click to collapse
The login info is lost to the phone or the app?
If to the phone then confirming the backup might be quite challenging...

CXZa said:
If you say so...
Switching phones like a pro: How our reviewers do it. (September 25, 2020)
Click to expand...
Click to collapse
The article linked to is absolutely useless.
OK, the backups created from ADB have no "checks" to see if the device you are restoring to is the same device.
But you'll run into big troubles if devices aren't of same version: by same version I mean the same actual Android version as well as the same manufacturer.

skytbest said:
I got a new phone and there is an app on my old phone that I've lost the login info to. I'd like to try backing up the app and it's data from the old phone and moving it to the new phone but at least in the app I was trying (Swift Backup) this feature requires root. Is there any way to accomplish this without root?
I'm on a Verizon Pixel 5 so I don't think it will be possible for me to root for quite some time.
Click to expand...
Click to collapse
While answering to another question I came to think that it might work to this situation too.
So, the adb works? No use to write anything more if it doesn't...
Also that app must be signed with testkeys or some other known keys...

CXZa said:
While answering to another question I came to think that it might work to this situation too.
So, the adb works? No use to write anything more if it doesn't...
Also that app must be signed with testkeys or some other known keys...
Click to expand...
Click to collapse
I tried the ADB backup and restore (without root) but it did not work. I was still prompted to log in on my new phone. Unfortunately it seems like I'll need to transfer the whole app's state from my old phone to new, which I'm not sure is possible.

skytbest said:
I tried the ADB backup and restore (without root) but it did not work. I was still prompted to log in on my new phone. Unfortunately it seems like I'll need to transfer the whole app's state from my old phone to new, which I'm not sure is possible.
Click to expand...
Click to collapse
Remember that you were told ADB Backup / Restore doesn't work as expected.

skytbest said:
I tried the ADB backup and restore (without root) but it did not work. I was still prompted to log in on my new phone. Unfortunately it seems like I'll need to transfer the whole app's state from my old phone to new, which I'm not sure is possible.
Click to expand...
Click to collapse
Okay, so adb works. It gives some possibilities...
So, you have a locked with what, pin or pattern. It's basically just like 10 000 of those that you have to test...
(Bad idea really , if the phone is the locked one...)

Better written apps allow for backup.
I put those files on my SD card as well as a complete copy of all loaded user apps and system apk updates. My SD card is my data drive as well. I can do a full reload from it alone.
Without a data drive life is a lot more painful...

CXZa said:
Okay, so adb works. It gives some possibilities...
So, you have a locked with what, pin or pattern. It's basically just like 10 000 of those that you have to test...
Click to expand...
Click to collapse
Not really sure what you're getting at here. It's locked because I no longer have access to the phone number I signed up for the app with. So when I install the app on my new phone it sends a verification pin to a number that I do not have, and I am not able to change the number associated with the account.
That's why I 'd need to transfer the whole app state over so I can open the app on my new phone and be exactly where I was on my old phone, with no need to log in.

skytbest said:
Not really sure what you're getting at here. It's locked because I no longer have access to the phone number I signed up for the app with. So when I install the app on my new phone it sends a verification pin to a number that I do not have, and I am not able to change the number associated with the account.
That's why I 'd need to transfer the whole app state over so I can open the app on my new phone and be exactly where I was on my old phone, with no need to log in.
Click to expand...
Click to collapse
You still have the same email address? Just reset the password.
Or are things a bit more complicated?
What app are you referring too?

skytbest said:
Not really sure what you're getting at here. It's locked because I no longer have access to the phone number I signed up for the app with. So when I install the app on my new phone it sends a verification pin to a number that I do not have, and I am not able to change the number associated with the account.
That's why I 'd need to transfer the whole app state over so I can open the app on my new phone and be exactly where I was on my old phone, with no need to log in.
Click to expand...
Click to collapse
So the old phone isn't locked, but the app is...

CXZa said:
So the old phone isn't locked, but the app is...
Click to expand...
Click to collapse
All my registered apps are by email.

Related

Is it possible / OK to uninstall default apps?

Hi folks,
I have installed the Steel web browser and like it much more that the one supplied by HTC with the phone... is it possible to uninstall it and just leave Steel?
The above is just an example, my HTC hero has lots of stuff I don't really plan to use, ever. Is there a way to get rid of them FOR GOOD?
Thanks in advance!
frandavid100 said:
Hi folks,
I have installed the Steel web browser and like it much more that the one supplied by HTC with the phone... is it possible to uninstall it and just leave Steel?
The above is just an example, my HTC hero has lots of stuff I don't really plan to use, ever. Is there a way to get rid of them FOR GOOD?
Thanks in advance!
Click to expand...
Click to collapse
I'm so with you on this one...I've added Twidroid and turned off Peep but would love to completely delete it in order to avoid any conflicts. Also the default messaging program is a bit of a dog when compared to Handcent SMS.
There used to be a way on the WinMo 6 phones to change the registry values to allow deletion of TouchFlo UI programs but I've not been able to find anything online yet. Maybe it's too early in the phone's life for anyone to have cracked this.
At the moment, the only thing I can do is to make sure that notifications from default programs that I have replaced with better ones are turned off so that they only come from the new software.
I realise this doesn't help you (or me) very much but I'd pay good money to have an add/remove program that works on the default apps (ASTRO, Appmanager and OI File Manager do not seem to be able to access the default programs for uninstallation).
Does anyone with modding experience (obviously I don't ;D) have any suggestions on how to achieve this?
DBR
i have installed QuickUninstall app and it offers all the built in apps as well as the added ones....didn't try to delete any though, they don't bother me that much to toy with it just yet
Kewl...thnx for the heads up. QuickUninstall is downloaded. I'll try to get rid of Peep and the inbuilt message program and if something goes wrong I'll be back here begging for more help
DBR
I've had some success with Root Explorer - I've successfully removed the stocks app and the stocks widget.
Big pointer before you start on removing default or stock Rom apps is to MAKE A NANDROID BACKUP!! You can do this by booting the temporary Recovery image from the rooting thread here
http://forum.xda-developers.com/showthread.php?t=543571
That way, if you do mess up, you can restore the Nandroid Backup.
Just ask Auntie Dayzee (BTW I wish I was this sensible with other stuff in my life!! LOL)
I need to partition my hard drive and install Windows in order to use Nandroid and root the phone (you need to root it in order to use root explorer right?).
As soon as I find a way for the installer to find my hard drive I'll poke you for advice, thanks dayzee
Does anyone know what's the name of the web'n'walk app? Can't find it in the app folder.
It's not an app afaik, it's just a shortcut.
all it does is open the default browser to the t-mob web and walk homepage.
Oh.. do you also happen to know where I can remove it?
Nevermind, found it in the app folder as "urlshortcut.apk"
frandavid100 said:
I need to partition my hard drive and install Windows in order to use Nandroid and root the phone
Click to expand...
Click to collapse
As far as i understand, ADB works in Mac and Linux as well, you just need to prefix the commands with ./
or have i missed something?? there's no point installing windows if you don;t have to....
how did you do it?
Dayzee said:
I've had some success with Root Explorer - I've successfully removed the stocks app and the stocks widget.
Big pointer before you start on removing default or stock Rom apps is to MAKE A NANDROID BACKUP!! You can do this by booting the temporary Recovery image from the rooting thread here
http://forum.xda-developers.com/showthread.php?t=543571
That way, if you do mess up, you can restore the Nandroid Backup.
Just ask Auntie Dayzee (BTW I wish I was this sensible with other stuff in my life!! LOL)
Click to expand...
Click to collapse
Hi Dayzee,
noob here. i just rooted my htc hero and i have root explorer running.
can you explain how you removed those apps?
I want to ditch peep, footprints and possibly pc synchronization (if this is safe).
I am a little lost in this file directory structure...
...or could you point me to a really great link on this topic?
thanks so much,
sprinkles
had success using Paul's method on Modaco...all credit to him in my case.
http://android.modaco.com/content/htc-hero-hero-modaco-com/291521/if-you-want-to-remove-htc-sync/
Used a file explorer (astro in my case) to view the folder /system/app so that i could see what needed to be removed, but am now happily without Peep, Learn More, Stocks,HTC Sync, Mail etc.
adb remount
adb shell rm /system/app/xxxxxx
replace xxxxxx with the app you want to remove
HTC Sync - PCSCII*
HTC Stocks and Widget - *Stock*
Peep - *Twit*
Learn More - Learn*
Footprints - *Foot*
Mail - HtcMail*
there's plenty of others in there as well if you have a look. Just be sure to be careful what you delete, and remember that the app names are case sensitive.
The rooted 2.73 rom from Modaco works fine with this command, and i expect the Modaco custom roms will as well.
I used a similar method to get rid of some HTC app which kept bugging me since I upgraded to the new ROM (Peep, Stock, etc), works perfectly and no problem so far.
It's pretty straightforward, even for a newb like me, but if anyone is interested in the steps I followed :
0- Before doing anything that can mess up your phone, it's recommended to do a nandroid backup.
I'll explain how to backup each removed app individually, but we're never cautious enough !
1- Load the recovery image and mount the system:
Code:
fastboot boot cm-hero-recovery.img
adb shell mount /system
2- Get the list of app installed, spot the files you want to delete
Code:
adb shell ls /system/app/
3.a - First alternative : Backup on SDcard and delete
Mount sdcard.
Create a folder saveHtcApp.
Move (copy + delete in one go ! ) files from system/app to saveHtcApp
Code:
adb shell mount /sdcard
adb shell mkdir /sdcard/saveHtcApp
adb mv /system/app/Stock.apk /sdcard/saveHtcApp
adb mv /system/app/Stock.odex /sdcard/saveHtcApp
adb mv /system/app/com.htc.StockWidget.apk /sdcard/saveHtcApp
adb mv /system/app/com.htc.StockWidget.odex /sdcard/saveHtcApp
Then check that all worked right by doing some ls (Yeah, I'm found of double-checking)
Code:
adb shell ls /sdcard/saveHtcApp
adb shell ls /system/app/
3.b - Second Alternative : (don't do it after 3.a !) Backup on Computer and delete.
(on Windows, I assume Linux's folks won't need explanations to do the same on linux.)
Create a folder saveHtcApp : in the following example, in the working directory.
(Of course, you can make it anywhere, but it make the path smaller to work on working directory... and move the save folder afterwards)
Then pull (copy) the files from the phone to the computer.
Just to make sure, a little dir to see that all files were actually copied on the computer.
Code:
mkdir saveHtcApp
adb pull /system/app/Stock.apk ./saveHtcApp
adb pull /system/app/Stock.odex ./saveHtcApp
adb pull /system/app/com.htc.StockWidget.apk ./saveHtcApp
adb pull /system/app/com.htc.StockWidget.odex ./saveHtcApp
dir
Then, delete them :
Code:
adb shell rm /system/app/Stock.odex
adb shell rm /system/app/Stock.apk
adb shell rm /system/app/com.htc.StockWidget.odex
adb shell rm /system/app/com.htc.StockWidget.apk
4 - Reboot the device !
Hope that could help someone.
Tested on Brown French Hero, 2.73.405.5 ROM offi.
Brill stuff - I'm rubbish at the coding stuff - where does this back the apps up to? and what does the dot do? and if its pulling to the PC, does the slash have to go the other way?
Dayzee
Good question, I should have explain that a little
I'll update my previous post.
For the slash-thing... I'm always switching from windows to linux to windows, so I'm always confused between which slash use.
When I have issue with /, I try with \.
BTW, in the present case, I run all those lines on Windows 7 without any issue.
Edit : post step-by-step edited. Is it clearer ?
If anyone see anything to change or explain, just say so.
removing htc hero sucka apps
Tweedeldee said:
Good question, I should have explain that a little
I'll update my previous post.
Click to expand...
Click to collapse
great and thanks. while you were sleeping, i went in and did some removals; just the apk files. what about the .odex files?
I took these apps out at the knees
-peep
-footprints
-tutorial
any other suggestions?
thanks.
Hey, I wasn't sleeping ! Just finding a way to save on sdcard instead of pc and re-redacting the post ! >.<
I didn't knew what was an odex file either, so I googled it :
http://groups.google.com/group/android-framework/browse_thread/thread/70ee61a240edc84a?pli=1
They are created for a final system image. They are not required --
if they don't exist, the system will create them in /data during
boot.
Click to expand...
Click to collapse
I backuped them too, just in case...
For the suggestion, the list to remove is pretty simple : anything you don't use at all.
As long as you keep the backups, there shouldn't be any problem to put them back if there is any issue.
Of course, any app used by other apps must stay on the phone.
I removed :
Stock
Peep
Footprints
Tutorial
HTC Sync
rhedgehog says he removed HtcMail too.
removing htc hero sucka apps
Tweedeldee said:
Hey, I wasn't sleeping ! Just finding a way to save on sdcard instead of pc and re-redacting the post ! >.<
I didn't knew what was an odex file either, so I googled it :
http://groups.google.com/group/android-framework/browse_thread/thread/70ee61a240edc84a?pli=1
I backuped them too, just in case...
For the suggestion, the list to remove is pretty simple : anything you don't use at all.
As long as you keep the backups, there shouldn't be any problem to put them back if there is any issue.
Of course, any app used by other apps must stay on the phone.
I removed :
Stock
Peep
Footprints
Tutorial
HTC Sync
rhedgehog says he removed HtcMail too.
Click to expand...
Click to collapse
thanks dog.
technically, if you wipe the device and start over all these apps are reinstalled from the get go.
this list is great. i am going to do some more cleaning and move onto the next task of partitioning my storage.
dayzee did a wonderful job for that newb root posting...i wish there was locked how to list that was easy enough for anyone to:
-1- root the htc hero (completed)
-2- remove and replace htc's crapware apps (maybe this thread is part 2)
-3- partition storage (not seeing an easy way yet but downloaded apps2sd)
-4- recommended replacement apps and next steps
i'd be glad to help put this together, make it easy to read, make it pretty, etc.
-sprinkles
Not a bad idea, you're on your way !
I want a pretty, clean, post with colors, pics, screencasts, videos, nice fonts...
Good luck with that !
sprinkles said:
thanks dog.
technically, if you wipe the device and start over all these apps are reinstalled from the get go.
this list is great. i am going to do some more cleaning and move onto the next task of partitioning my storage.
dayzee did a wonderful job for that newb root posting...i wish there was locked how to list that was easy enough for anyone to:
-1- root the htc hero (completed)
-2- remove and replace htc's crapware apps (maybe this thread is part 2)
-3- partition storage (not seeing an easy way yet but downloaded apps2sd)
-4- recommended replacement apps and next steps
i'd be glad to help put this together, make it easy to read, make it pretty, etc.
-sprinkles
Click to expand...
Click to collapse
I agree - I've added Tweedeldee's method to the Hero Wiki which is here
http://wiki.xda-developers.com/index.php?pagename=HTC_Hero
and has some other guides - Sprinkles, there is also a Dayzee Walkthrough for installing MoDaCo Roms, including some tips on Aps2SD partitioning methods.
Hugs - Dayzee xxx

Removing App Registry?

Hi,
A few months ago I uninstalled an older version of the free mybackup Pro app which I had as at the time as I wasn't going to use it, but have decided that with the upcoming (hopefully) 2.1 update I would back up my phone however when I tried to install and run it, it would not let me use and told me to update to the full version.
How can I remove the older registry files to enable me to back up on the free version for the time being if at all?
Cheers
there is no such thing as a registry. uninstalling apps also removes the settings for the app, everything is gone then.
kendong2 said:
there is no such thing as a registry. uninstalling apps also removes the settings for the app, everything is gone then.
Click to expand...
Click to collapse
Thats what I thought but it still wont work?
choccy31 said:
Thats what I thought but it still wont work?
Click to expand...
Click to collapse
execute this in adb shell, does it give any output?
Code:
ls -1 /data/data/ | grep -i backup
if so try to delete the file.
kendong2 said:
execute this in adb shell, does it give any output?
Code:
ls -1 /data/data/ | grep -i backup
if so try to delete the file.
Click to expand...
Click to collapse
How do I access adb shell?
you need to have downloaded the sdk software, once you have setup file associations its a matter of opening up a command prompt, changing to your tools directory
c:\>cd \sdk\tools
C:\sdk\tools>
Then type the code above,
akhtar1817 said:
you need to have downloaded the sdk software, once you have setup file associations its a matter of opening up a command prompt, changing to your tools directory
c:\>cd \sdk\tools
C:\sdk\tools>
Then type the code above,
Click to expand...
Click to collapse
thanks for that, will take a look.

[How to] Gmail and the Android Market

THIS METHOD IS NOW OUTDATED.
For everyone that is starting from scratch with a wiped NookColor, I have made a linux script available that will do everything for you. This includes enabling apk installs on the device, live wallpapers, multitouch, etc. It will also download and install YouTube, Gmail, and the Market. It also changes the Market fingerprint to that of a Droid Eris on Verizon so you can see protected apps. It does not require use of the Android Emulator to generate an AndroidId as this is done automatically thanks to clockworx. All it does require is that you be nootered and have working Superuser.
Thread here:
http://forum.xda-developers.com/showthread.php?t=871210
DISCLAIMER:
These steps are what worked for me and some may not even be required. If this guide needs any clarification, post a reply and I will do my best to update it. I'm 99% certain all the steps are here.
If you have already tried to get the Market or other Gapps working, etc then it is very likely you will have to do a full factory reset before this will work for you. I have no idea why, but if these steps don't work I would try that first.
In my experience the factory reset is two steps:
8 failed boots restores the /system partition. You can easily trigger this reset without 8 failed boots by running this command from a Linux or Mac OSX command line:
echo -n -e "\008\000\000\000" > /tmp/foo; adb push /tmp/foo /rom/devconf/BootCnt; adb reboot
Click to expand...
Click to collapse
Afterwards:
Booting while holding power+volumeup+nook button restores /data
I had to do both of these steps in this order to get a full reset on the device.
Required:
nc_gapps.zip
system.img for AVD
Youtube for Eclaire
Optional:
Root Explorer really speeds this up. If you have it, I recommend using it as this tutorial is written with it in mind.
* Copy nc_gapps.zip onto the 4gb internal partition of the NC, /media/
* Unmount both the internal partition and the SD card (if applicable) from within your OS but leave the USB cable connected.
* Using a command prompt on your OS, navigate to android-sdk/tools (or platform-tools in newer SDK) and type the following:
adb shell
mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system <-----This can be also done by going to /system/ in Root Explorer and clicking "Mount R/W" at the top
cd /media
miniunz -x nc_gapps.zip -d /system/ <-----Overwrite [A]ll if prompted!
echo "ro.config.nocheckin=no" >> /system/build.prop
exit
Click to expand...
Click to collapse
* Leave this command prompt open, we will need it in a minute!
* Install Youtube App. If you have a previous version installed it's best to use Titanium Backup to wipe it's data then uninstall.
* Run Youtube. Press Menu->My Channel. Log in with Gmail account. If you get the authentication error here you can try rebooting and wiping Youtube data again with Titanium Backup.
* Reboot NC
After reboot:
* Using the command prompt on your OS from before, type:
adb pull /data/system/packages.xml
Click to expand...
Click to collapse
*In this file find the string "uid.system". You should find a line that looks like:
<shared-user name="android.uid.system" userId="1000">
Remove the 3 lines beneath this one. They should look similar to:
<sigs count="n">
<cert index="n" />
</sigs>
n is an integer that may be different for everyone. After removing these lines, the line immediately after "<shared-user...>" should be "<perms>"
Save.
* Using the command prompt on your OS:
adb push packages.xml /data/system/
Click to expand...
Click to collapse
Reboot NC and disconnect USB.
Gmail should work but running the Market should load the TOS after which you will get a server error. This is caused by our device not having a valid androidId. Let's generate a valid androidId using the AVD emulator.
Create a new AVD for Android 2.1-API Level 7 using these settings:
SD Card Size: 100M
Skin: Built-in: Default (HVGA)
Hardware Properties:
Abstracted LCD Density: 160
Touch-screen support: yes
Device RAM size: 1024
Once the AVD is in your list, click on it and then click Details on the right hand side. Note the path and move the system.img you downloaded in that directory.
Start the AVD. When prompted, sign in with your existing Gmail credentials. Use CTRL+F11 to slide the keyboard in and out when prompted.
Run this command to get the androidId from the emulator:
adb shell sqlite3 /data/data/com.google.android.googleapps/databases/accounts.db "select * from meta";
Click to expand...
Click to collapse
It's the long number after androidId|, SAVE IT!
Now, connect your NC back to USB.
On the third command below, be sure to replace ANDROID_ID_FROM_EMULATOR with the number I just told you to save.
adb pull /data/data/com.google.android.googleapps/databases/gls.db
sqlite3 gls.db
update meta set intvalue='ANDROID_ID_FROM_EMULATOR' where name='androidId';
.q
adb push gls.db /data/data/com.google.android.googleapps/databases/
Click to expand...
Click to collapse
Reboot NC
Wow, that was quite a bit of work to figure out, to be sure.
Thanks, will give it a try!
Does this also provide the Google account setup capability (Reader, Listen, etc.)?
Thanks for the fix first of all!!!
I used root explorer and copied over all of the files recommended, then installed the youtube app you linked to, but when I tried to go to menu/my channel it flashes a message that there was a problem authenticating.
Any ideas?
Thanks!!!
Never mind...
Before doing the androidID stuff, Gmail is supposed to work? It doesn't. Just flashed for a sec and goes back to home screen
Also, there is no Market icon available. Am I supposed to install Vending.apk after putting it in /system/app?
EDIT: Youtube now doesn't work either...
EDIT2: Youtube works after an uninstall/reinstall, and I can sign in. Gmail still doesn't work and no market icon
bazzly said:
I'm confused....
"Using Root Explorer:
1) copy etc, framework, and lib folders into /system."
Those files are already in the /media/system directory....ohh...you talking the root /system not media/system....correct...?
Click to expand...
Click to collapse
Yes, that is correct.
bbtheory said:
Thanks for the fix first of all!!!
I used root explorer and copied over all of the files recommended, then installed the youtube app you linked to, but when I tried to go to menu/my channel it flashes a message that there was a problem authenticating.
Any ideas?
Thanks!!!
Click to expand...
Click to collapse
Try rebooting first. If that does not fix it then try clearing the data for the youtube app. If all else fails do a complete factory reset and start this from scratch. The youtube authentication issue was my biggest hurdle and I ended up doing a factory reset myself.
Xhorder said:
Before doing the androidID stuff, Gmail is supposed to work? It doesn't. Just flashed for a sec and goes back to home screen
Also, there is no Market icon available. Am I supposed to install Vending.apk after putting it in /system/app?
EDIT: Youtube now doesn't work either...
EDIT2: Youtube works after an uninstall/reinstall, and I can sign in. Gmail still doesn't work and no market icon
Click to expand...
Click to collapse
Same here...
Does the build.prop contain a valid version string which allows market access?
Also, there's a new version of the market going about too
Ok so I got past the youtube and now gmail works and the market gets the server error. However, I cant seem to get started with AVD to get the android ID... are there some more detailed instructions for an AVD noob???
bbtheory said:
Ok so I got past the youtube and now gmail works and the market gets the server error. However, I cant seem to get started with AVD to get the android ID... are there some more detailed instructions for an AVD noob???
Click to expand...
Click to collapse
Were there any variations from the steps above that you made to get gmail working? Not sure why mine is flashing then closing.
norkoastal said:
Were there any variations from the steps above that you made to get gmail working? Not sure why mine is flashing then closing.
Click to expand...
Click to collapse
No variations from the steps above other than fixing the permissions on the files that I copied over... They need to match the permissions of the other files in the respective folders.
Managed to get Gmail, Reader, and Market working. However, every download on the market fails. When I run a logcat i get "authentication failed"
I did replace androidId using the emulator.
Any ideas?
Nice! this works great! just tested out couple free apps from Market and both installed and worked fine. Thanks for figuring this out! finally I don't have to hunt for apk files
-----------
buy the way, AppBrain works fine with Market too.
From my pandigital days I have this question: does enabling google market and other apps prevent your nook color from staying in deep SLEEP?
Sent from my LogicPD Zoom2 using Tapatalk
I had an issue because I had not ever logged into youtube with my gmail account. I went to youtube.com and logged in, then was able to log in using the YouTube app.
Can someone plase post some AVD or emulator instructions??? That would be awesome!!!
For avd, you have to have the Android SDK installed. Then you can run (sdk folder)/tools/android to start the avd manager.
msid said:
For avd, you have to have the Android SDK installed. Then you can run (sdk folder)/tools/android to start the avd manager.
Click to expand...
Click to collapse
When I do that I get this message:
[INFO] Starting Android SDK and AVD Manager
'java' is not recognized as an internal or external command,
operable program or batch file.
bbtheory said:
When I do that I get this message:
[INFO] Starting Android SDK and AVD Manager
'java' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
You need Java. (java.com)

Broken screen, help me grab my files?

Long story short... I have a non-rooted SGH-M919 (Samsung Galaxy S4) with a completely broken screen. USB to PC transfer doesn't work, it's set to charge only, Kies doesn't see it...etc.
I have found that it's still on my wifi and on my google play account so I can install apps from the website. Does anybody know any apps I can install that will instantly let me access my files (and transfer them) without needing to do anything on the phone's side? Remote access would be great but I'd settle for file sharing even if only on the local network.
Any other ideas would be great! I need to recover pictures and contacts that aren't on google, or the SD card. New phone doesn't take the SIM.
You're probably not going to like this answer, but I recommend you simply have the screen fixed. If MTP isn't enabled and you can't enable it, and it's not rooted... There's just not much you can do.
NetworkAuditor said:
You're probably not going to like this answer, but I recommend you simply have the screen fixed. If MTP isn't enabled and you can't enable it, and it's not rooted... There's just not much you can do.
Click to expand...
Click to collapse
That's not too helpful... I found a (paid) app that attempts to recover files from the phone's download mode, which I think I could get to. There's gotta be other (free) options out there if download mode has access to files. Also as I said, I'm sure there's some app out there that shares files on the local network. I just need a name if anybody has one.
Thanks for answering still... but I know there's options.
UnknownCloakedMan said:
That's not too helpful... I found a (paid) app that attempts to recover files from the phone's download mode, which I think I could get to. There's gotta be other (free) options out there if download mode has access to files. Also as I said, I'm sure there's some app out there that shares files on the local network. I just need a name if anybody has one.
Thanks for answering still... but I know there's options.
Click to expand...
Click to collapse
Oh! Well if you can get to recovery, you may be able to pull the files off the device or back it up entirely.
Search "adb from recovery" and see if that gets you anywhere. If you *can* use adb, you might be able use adb's "backup" command to back up whatever you have on there.
NetworkAuditor said:
Oh! Well if you can get to recovery, you may be able to pull the files off the device or back it up entirely.
Search "adb from recovery" and see if that gets you anywhere. If you *can* use adb, you might be able use adb's "backup" command to back up whatever you have on there.
Click to expand...
Click to collapse
No custom recovery and no root access so I don't think adb will work for me... will it? I've confirmed USB debugging is off.
UnknownCloakedMan said:
No custom recovery and no root access so I don't think adb will work for me... will it? I've confirmed USB debugging is off.
Click to expand...
Click to collapse
Well, I've never used adb from recovery before, but a quick search makes me think it could be possible. If you're desperate to recover the data, I' m assuming anything is worth a try.
Now most of the time, stock recovery doesn't have adb access, but if you can manage to unlock your phone, you would be able to install CWM recovery and boot to it.
However, this is unlikely, as IMO, the SGS4 is one of the most painful phones to try to unlock, especially when you don't have access to the screen.
soo.. I am trying adb right now. I did...
adb shell
cd /sdcard/DCIM/Camera
ls
and all my pictures are listed! I tried doing a pull at that point and it says device not found... which it clearly is since it's reading the info. Any idea what my next step is? mounting or something? I feel like I'm so close!
EDIT:
BOOM! got it! I read one post online that said "stay out of shell for pull" I reopened my adb window and just did "adb pull /sdcard/DCIM/Camera" and all is recovered now. Thanks and I hope this post helps somebody in the future!
UnknownCloakedMan said:
soo.. I am trying adb right now. I did...
adb shell
cd /sdcard/DCIM/Camera
ls
and all my pictures are listed! I tried doing a pull at that point and it says device not found... which it clearly is since it's reading the info. Any idea what my next step is? mounting or something? I feel like I'm so close!
EDIT:
BOOM! got it! I read one post online that said "stay out of shell for pull" I reopened my adb window and just did "adb pull /sdcard/DCIM/Camera" and all is recovered now. Thanks and I hope this post helps somebody in the future!
Click to expand...
Click to collapse
Glad you got everything resolved! Now for my own curiosity, how did you manage to get adb working?
NetworkAuditor said:
Glad you got everything resolved! Now for my own curiosity, how did you manage to get adb working?
Click to expand...
Click to collapse
Nothing special at all. It only required:
> Phone in download mode, wired to PC with USB cable
> ADB installed on PC
> Samsung USB Drivers
> Open adb command prompt, and run the pull command (after finding the exact directory using adb shell)

adb backup problems. please help.

I'm trying to backup my unrooted Moto G7 phone (android 9) to my windows 10 laptop before I unlock its bootloader and root it. I need the ability to restore either everything or at least the installed apps. For privacy reasons I do not sync with Google.
So, using the command, either
adb backup -all
or
adb backup -apk
I get a popup on the phone to allow the backup, which I do, but the produced file
'Backup.ab' either has 0 bytes or a small number. Certainly not a full backup.
Please help so I can root the phone.
Thank you.
P.S. is there another way to backup an unrooted phone?
Nobody offered to help. So in case someone else is frustrated like me here is what worked for me. Quotations and -f.
Example:
adb backup "-apk -shared -all -f"
works. Note the 2 " and the -f
This also works
adb backup "-apk -shared -all -f E:\path\backup.ab"
I hope this helps someone else.
Backup doesn't start.
Phone: Nexus 5x Android 7.1.2. Phone has not been rooted.
I bought this second hand about eighteen months ago. I know all about the bootloop problem, but this one is OK. I unlocked it and flashed 7.1.2 and it's been as right as rain ever since. However, at the time I didn't relock the boot loader.
I want to lock now, but that will cause it to do a factory reset.
I've downloaded installed the platform tools. (Version: 29.0.1 - June 2019) When I run the command:
Code:
adb backup -apk -shared -all -f D:\Android\20190629.backup
on my Windoze 7 box, the dialog to start the backup pops up on the phone.
The Backup Now button is disabled until I enter a password. This enables the button, but there is no response when I tap it.
Fairly quickly, the command quits, and I am left with a zero sized file on the PC.
One thing that turned up is that it might be necessary to have a desktop backup set in developer options.
I am sure that I have never set one up before. However, I tried this, and it appears to be found by the dialog. However, still no go.
Update: adb backup runs immediately after a reboot.
I have determined that if I follow these steps the backup runs.
Connect through adb
Run
Code:
adb reboot
After the phone comes up, set the correct USB mode (File transfer)
Start adb
Run
Code:
adb devices
Run
Code:
adb backup [I]options[/I] ...
The Backup dialog will pop up on the phone. If necessary, enter your backup password. Tap
Code:
Back up my Data
The backup now runs.
The only thing that I've done differently is the reboot. I've tried this successfully three times now.
I discovered this accidently after installing TWRP. I had to eliminate the possibility that somehow TWRP had shuffled some critical bits, or that the reboot fixed the problem.
- oops wrong post
unixwolf said:
I have determined that if I follow these steps the backup runs.
The backup now runs.
Click to expand...
Click to collapse
That part runs.
Have you tried the restore?
Adb backup has given many users trouble.

Categories

Resources