yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] warlord1352:
latest ADB

I just installed the Android SDK the other day and with doing so I also downloaded and installed the only adb there was which is the same one that he also has. So if that is not the latest version of the adb, then where do you get it since the SDK is not finding it or downloading it?

Thanks in advance.
[Samsung Galaxy Nexus] Mathorlaz:
x2 !

My SDK is a fresh install aswell, the drivers, tools and everything are in the latest version according to the SDK manager. Maybe they removed this option on the latest version? If they did, I'm with Warlord, where can we download a version that does have the "Backup" command?

Cheers!
[Samsung Galaxy Nexus] kyokeun1234:
Try installing adb and fastboot separately from sdk. Then put the files into the platforms directory which is in the Android sdk folder
[Samsung Galaxy Nexus] Mathorlaz:
Thanks kyokeun1234 for the PM with the solution to this problem. I'm going to post it here so if any of you has the same problem then you'll be able to fix it.

"from this link: http://xdaforums.com/show....php?t=1626895 there will be a .zip attachment. That is one of the latest adb and fastboot files that includes backup capability. I want you to extract the files inside that zip file into the Platforms directory (It is one of the folders in Android SDK. Also you can replace the old adb and fastboot files if you want).

Now you have the backup option

What you need to do to use that adb instead of your older one (If you did not replace it). You must go to the directory which includes that latest fastboot and adb files, shift+right click, and then click "Run Command Here" (Or something like that)

Now you can type in adb devices to see if it's working

Then you can start using the backup feature (adb backup) "

All credit goes to kyokeun1234, thanks mate.

Cheers
[Samsung Galaxy Nexus] warlord1352:
fixed it!

Alright well I found out what my original problem was. I don't know why it was doing it. But this is how I "fixed" it. All I had to do was change the directory to where the adb was and it showed the current version which is .29 not .26. I know that was probably a really newb thing to do haha but I'm glad I got it figured out now. And thanks again to OP for this awesome guide and everyone else who replied! =)

*EDIT* Btw, just curious and really sorry if this has already been covered but is there a way to cancel the operation say if you forget to put the ".ab" at the end of your backup? Maybe some other command or anything? And thanks again all!
[Samsung Galaxy Nexus] kyokeun1234:
After the backup, right click the file, click properties, and then just add .ab at the end of the name. This will change the file type
[Samsung Galaxy Nexus] warlord1352:
Yeah I just thought of that just after I wrote that but thanks again. But is there any way to stop or cancel the process?
[Samsung Galaxy Nexus] copkay:
Ctrl-C.

Or unplug your device. :)
[Samsung Galaxy Nexus] Rudolfje:
Thanks for the guide.
[Samsung Galaxy Nexus] sanchezsteez:
Mega noob needs help!

Today, I decided to finally root and unlock my GNexus, but being extremely new to this whole process I've run into a problem while attempting to back up the phone.

I just installed SDK and all of the tools, drivers, etc... Once I open the command prompt and enter "adb devices" I get a message saying "adb devices not recognized". I even tried installing a different adb and fastboot.

Can I get some heeelp?
[Samsung Galaxy Nexus] efrant:
The command prompt needs to be in the same directory as adb.exe. If adb.exe is in c:\android\junk, and your command prompt should c:\, then you need to change directories to c:\android\junk, by: cd \android\junk.

Or just open a Windows Explorer window in the directory of your adb.ex file and hold the shift key and right click in the window and select open command prompt here.
[Samsung Galaxy Nexus] The-Last-Hylian:
I assume this'll work with my HOX, installing HTC Sync now.

Is it the Android SDk I need to get adb working?

Also Do I need debugging checked or unchecked?
[Samsung Galaxy Nexus] The-Last-Hylian:
I've installed the Android SDK and Platform Tools.

I keep getting 'adb' is not recognized as an internal or external command, operable program or batch file.
[Samsung Galaxy Nexus] The-Last-Hylian:
I'm trying to backup but it always hangs at com.android.sharedstoragebackup, I've tried three or four times now.

I've left it for ages now, weirdly though I'm trying to use;

adb backup -apk -all -f C:\backup\backup2012.ab

So why is it accessing the shared?
[Samsung Galaxy Nexus] copkay:
Because -shared is default. Add -noshared to that command.
[Samsung Galaxy Nexus] The-Last-Hylian:
Ah, I forgot about that, it was in the OP :eek:

Sorry about that. I couldn't figure it out so I just went ahead and unlocked my bootloader anyway so I lost my data. I guess it's good to have a fresh start!

Thanks regardless :)
[Samsung Galaxy Nexus] byrds8:
I am trying to just backup a data from an APK or two. What exactly should the command line look like? I keep trying different stuff but when it comes out to be like 6G I figure thats probably not right. I want the data for my GS3 so I dont have to start the games and such over lol. Help would be greatly appreciated. Every time I try to do it its either way small or way large. The smaller one being like 26k but when I said restore nothing changed on the GS3.
[Samsung Galaxy Nexus] bigmike83:
File Location

I search the thread didn't find this but was able to figure it out - knowledge passed on...

I had a hard time pointing the backup file to my desktop root I tried it multiple ways none 'seamed' successful. I searched my hard drive for *.ab* and found where windows 7 was storing it: (hope this helps someone)

C:\Users\*User_Name*\AppData\Local\VirtualStore
[Samsung Galaxy Nexus] chrone:
thanks for the knowledge here. much appreciated. :)
[Samsung Galaxy Nexus] gjphilp:
Hi there,

I have just got a Galaxy Nexus and was very surprised there was no backup option.

Will this procedure also work for Android 4.1.1 ?

cheers

Gregor
[Samsung Galaxy Nexus] chrone:
Yeah sure why not. I just backed up this morning on vanilla 4.1.1. :)

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] byrds8:
Wish I could get this to work on my stock nexus to back up the app data. Cant seem to get it to though
[Samsung Galaxy Nexus] tempoct:
My stock one v fails to complete the back up after an hour also. It restart itself!
[Samsung Galaxy Nexus] ProDriver77:
Are you guys checking "Stay Awake" on Developer Options to prevent the phone from sleeping during the process?

Sent from my Galaxy Nexus on Verizon Wireless
[Samsung Galaxy Nexus] tempoct:
No, I'll try again with that checked. Also, should I expect more on the speed? or it is just the limitation of ADB?
[Samsung Galaxy Nexus] haxor:
Guys how can take a screenshot ? I am on stock JB !
[Samsung Galaxy Nexus] kyokeun1234:
Volume down button+ power button

Swyped on my Galaxy Nexus running AOKP nightly with Franco Kernel, overclocked to 1.4GHz
[Samsung Galaxy Nexus] haxor:
But volume menu also capture in screen shot :(
[Samsung Galaxy Nexus] eXecuter.bin:
Very informative thread, thank you.
[Samsung Galaxy Nexus] tempoct:
Tried again with the option checked. Reboot itself after two hours of backup running (got about 600MB before reboot) :silly:
[Samsung Galaxy Nexus] byrds8:
Mine looks like it will back up everything on the phone. It is created almost a 7GB file. The issue is I only want it to back up the app data or maybe the data and the apk. I keep trying to tell it to do a single app. So a 7GB file is way big for a single app back up.
[Samsung Galaxy Nexus] kyokeun1234:
you gotta press it at same time.

Swyped on my Galaxy Nexus running AOKP nightly with Franco Kernel, overclocked to 1.4GHz
[Samsung Galaxy Nexus] m00nlighter:
Kudoz to Kevin for this guide. Hopefully I'll finally be able to get a full phone backup without root.

HTC One X owners — have anyone made a successful backup/restore using the adb? I tried to search the thread, but..."Search is temporarily unavailable".

I wonder if the above still holds true for the last version of Platform Tools (14 if I understood it correctly).
[Samsung Galaxy Nexus] kyokeun1234:
I believe latest version is 19.

Swyped on my Galaxy Nexus running AOKP nightly with Franco Kernel, overclocked to 1.4GHz
[Samsung Galaxy Nexus] efrant:
Last revision is actually 12. (I know my thread says 19 -- it was mislabeled as Google changed the location of ADB from tools to platform-tools, and I never got around to changing it.) 20 is now the latest revision for the SDK Tools, and 12 is still the latest for the SDK Platform-tools)
[Samsung Galaxy Nexus] kyokeun1234:
Oh ok. My apologies then

Swyped on my Galaxy Nexus running AOKP nightly with Franco Kernel, overclocked to 1.4GHz
[Samsung Galaxy Nexus] PreSpawn:
i had a branded Vodafone S3 Software Version I9300BULG2.

-Made a backup with -apk -all -shared

Then my device was "changed" (give back the damaged get a refurbished one)

It had I9300BULF1 on it. I restored the backup and there were endless errors popping up, Lost Connection to Contacts/ lost connection to Touchwiz etc. Then i wiped it, updated to I9300BULG2, tried restore again -> i did always hang at com.providers.contacts. Device reboot wasn't helping at all. Had to kill and restart it a few times (on the phone and in the cmd), but then it restored completely. (oddly I HAVE all my SMS (text messages)). Man was i relieved!

Further Problem:

I had a problem with the playstore, it did know about my new device but didnt know what was installed exactly ->killed the cache and data -> reenterd all login data, and it worked again.

When i started a OTA Update (Online Update via device) it did say something about "no connection, try with kies AGAIN? later ..." So i killed the cache and data of the two Software-Update "APPS". and now it have the standard reply with "no new updates available".

hope that helps anyone
[Samsung Galaxy Nexus] jurassic98:
Your help is greatly appreciated!

Great article. Please help me.

My 3 month Galaxy Nexus sudden going through BootLoop (Google logo kept coming back).

I have new born baby photos and video that I need to pull them out to my PC.

Initially my window 7 will not recoginze my samsung nexus window drivers. So I following Mike article "toolkit 7.8" and option #1

and install galaxy nexus driver to my window 7 64bit. Now mike toolkit show my Nexus device serial number.

Can I use your guide and pull photos and video back? I mean I am able to go to bootloader page (power buttom+volume buttom).

Your help is greatly appreciated.

I have not yet unlock or root anything...this is brand new phone (3 month).

Thank you.
[Samsung Galaxy Nexus] cmstlist:
If you have the Google logo boot loop, and can't get anywhere else, and you've never unlocked your bootloader... I am so sorry to tell you, but you're not going to be able to get those photos off the phone. I've been there. It's a hardware problem with the internal storage. ADB backup only works if you can actually boot into the OS.
[Samsung Galaxy Nexus] hsehdar:
Thanks

This worked easily on Ubuntu 12.04, android-sdk_r20.0.3, Galaxy Nexus, Android 4.0.4
[Samsung Galaxy Nexus] twics:
Hi there

I know this is SGN Thread but iv heard this should work on HOX too but im having the same issue as (The-Last-Hylian) iv tried -noshared command but still get stuck at com.android.sharedstoragebackup any idea what im missing please?

thanks.
[Samsung Galaxy Nexus] rs70:
Hi, I've got Xperia P running 4.0.4 and I can't backup my phone. When I type adb devices, the phone is on the list, but when I try to backup I get message "Now unlock your device and confirm the backup operation." but the device does nothing and command line behaves as if the operation has already ended.

Any ideas why the backup screen won't come up?
[Samsung Galaxy Nexus] rolfen:
Yes, I have the same problem with my Xperia P ICS 4.0.4......I solved it here: http://xdaforums.com/showthread.php?t=1844032&highlight=unable&page=10

(Koukám,že jsi ze Slovenska...pokusím se Ti napsat SZ... ;) )
[Samsung Galaxy Nexus] aaronmcd1214:
I keep getting the help guide when I type in "adb backup -all"

Can someone tell me where I might have gone wrong? Typing in "adb devices" displays my device so it knows it's there but none of the backup options work for me
[Samsung Galaxy Nexus] ProDriver77:
You need to add -f (file location to backup file fo).

Sent from my Galaxy Nexus on Verizon Wireless
[Samsung Galaxy Nexus] aaronmcd1214:
Ok I added the -f and named the file but I'm still not getting anything. Here's what I entered

Thanks for being patient :) trying to learn this stuff on the fly.
[Samsung Galaxy Nexus] chezybezy:
game transfer to new device (n00b)

ive read 10 or so pages but decided being new to this id ask my n00b questions and get your advice relevant to my situation.

i am wanting to back up several games from one tablet to another (new replacement). they are the same model: Archos 101 G9 Turbo. but one is about 4months newer.

one game (Tiny village - i know i know but im shamefully addicted) takes weeks for the devs to authorise a transfer and was hoping this back up method would allow me to get around this wait. The devs also have been known to mess up a restore and wipe the village entirely.

How it works in the real world is you create a new account in the game (known as a tiny id) then they transfer your village from the old tiny id to the new one. I don’t know if this means you cannot use the above method. The game requires internet access.

im also unsure why you must unlock the bootloader after creating the backup considering that you do not do so on the original device. im not considering rooting due to the 101 g9 having rooting issues so am unsure why unlocking the bootloader is needed?

I am also returning this device (the one im creating the back up from) to the retailer due to charging issues. Thus anything that could potentially cause me problems such as voiding the return i would be grateful to have a heads up.

If anyone knows of another backup method that would suite my situation I would be grateful. (I do use mybackup pro on my phone but I believe that does not back up data?) I have heard that someone used titanium backup for restoring access with a new device but that requires root.

So in short, I have an Archos 101 G9 Turbo I want to transfer a game from one to another 101 G9 Turbo. I don’t have root and the older device is being returned. The new one is brand new freshly purchased so id rather not void the warranty either.

I have several other games id like to back up but worst case I can wait a few days for the devs to officially transfer them.

Any advice?
[Samsung Galaxy Nexus] ProDriver77:
Do have have the Android SDK and appropriate packages/drivers installed?

Sent from my Galaxy Nexus on Verizon Wireless
[Samsung Galaxy Nexus] aaronmcd1214:
From what I can tell, yes. I even uninstalled and reinstalled them just be sure.
[Samsung Galaxy Nexus] rambling1:
Restore doesn't complete

Hi, I've just tried this and was able to create a backup file for a specific app. When I try to restore this app to another device (I need the data settings etc.) the adb restore command just hangs and doesn't finish. I tried killing the operation and I see that the apk is actually being restored fine but not the data so it is pushing at least partially but when I try again for the entire backup it still won't complete and I can't get the data over. Any suggestions? Thanks.

P.S. I'm trying to transfer an app+data from HTC One X to Asus Infinity, both devices not rooted.
[Samsung Galaxy Nexus] dapil:
Hi, maybe this is noob question, but by saying application data you mean files in /sdcard/Android/data?

Thanks in advance and sorry for this question.
[Samsung Galaxy Nexus] copkay:
No experience with those devices, but I wouldn't trust this to work properly on modified (e.g. not stock Android) devices. If a reboot (phone and PC both) doesn't cause it to work, you're probably out of luck.

I assume so. Basically, wherever the application is storing its private data (settings, progress, etc.). As a side note, apps are not required to allow backup, so there is a possibility some apps you have may not be able to be backed up via this method.
[Samsung Galaxy Nexus] nor-ric:
I get something similar. I try to tap "backup my data" but nothing happens (not even tapping animation): it's like I couldn't tap that button. I can however tap "don't allow backup"...

My phone is HTC One S, stock rom and bootloader, ICS 4.0.4, Sense 4.1.
[Samsung Galaxy Nexus] jakieahmed13:
Could not restore

Hi,

I have few backup done periodically. However as soon as it reaches to Chrome, it stops!

Anyone with the same issue?

Is there a way to open .ab file and perhaps remove chrome being restoring??

Thanks
[Samsung Galaxy Nexus] nor-ric:
I've read this and this, but never tried myself (since I don't manage to create the backup :crying: )!

Someone has a clue about the issue in my previous post?
[Samsung Galaxy Nexus] Pipodi93:
My backup with my HOX freezes on sharedbackup even with the -noshared parameter... Why?
[Samsung Galaxy Nexus] nor-ric:
I think I've read that the shared/noshared attribute no longer works since I-don't-remember-which-update.
[Samsung Galaxy Nexus] strumcat:
Slightly off-topic, but this seems like the logical place to put it...

The latest version of Titanium Backup can restore files/data from an adb backup file, even if it's encrypted.
[Samsung Galaxy Nexus] Skinna:
No File

Hello, can someone please help me :o

I have a Nexus S and am trying to do a full adb backup of my phone before I send it away for repairs - Carphone Warehouse in England wipe the OS to do any kind of repairs even hadware ones as it is their policy to test the OS afterwards.

I have strictley followed this thread to the T, but every time I run

my phone shows the toasts for "Starting Backup" and "Backup Complete" but no file is ever created on my desktop. I try evry combonation of adb backup mentioned in this thread and in the help file. I have tried to create this backup in a folder elsewhere but to no avail. As I have followed this thread closley, I have also set a password at backup start as well as setting a desktop password in developer options. i have also tried

. To test if I can backup one application but still no file appears.

The reason I am sending this phone away for repairs is because the usb port is "wobbley" i.e. it needs resoldersing - I would do it my self but I am well within warrenty. Since I have diagnosed my phone, I have been able to charge my phone and also copy/paste everything from /sdcard0/ to a folder on my computer. So you see that the USB cable is working fine now. But the last time I relied on this with my wildfire, just copying/pasting all folders back onto the phone after a full reset did not put all app settings/data back and I had to start from the begining.

Info:

Windows 7 x64

Jelly Bean 4.1.1 JRO03E

Android SDK Tools 20.0.3

Android ADK Platform Tools rev.14

Thanks in advanced.
[Samsung Galaxy Nexus] copkay:
Try:

adb backup -apk -shared -all -f /backups/backup.ab

Then look for your file under C:\backups\backup.ab.
[Samsung Galaxy Nexus] Skinna:
Surprise Surprise

Well it worked, I can not believe that it was only down to the fact that I had to drop the "C:" in the path. I read the thread from the beginning and had it in my head that that particular command was for a linux box. Silly how these things can be so simply overlooked.

Thanks for you help, it is greatly appreciated copkay. Now i can get my Nexus S repaired without worry:good:

P.S not that I have found one on this thread but do you think there is a way to verify said backup file?

Skinna
[Samsung Galaxy Nexus] copkay:
Glad it worked! And yeah, doing it with C:/ to define the path seems to be hit or miss for me, so I just went with what I could always get to work (/directory puts it straight in C:/). There's probably a good way to do it the "Windows" way, but I've never bothered with it, haha.

As for verification, none that I know of. Other than wiping your phone and restoring it, which is a terrible solution if it fails.
[Samsung Galaxy Nexus] Skinna:
Windows/Linux

I know, I don't really like windows myself but my partners new desktop is much more powerful than my dell laptop!! lol

Well it worked for me perfectly, so I can not complain.:victory: As for verification, that will have to do, albeit a poor way to test:eek:
[Samsung Galaxy Nexus] runingwild:
if my phone is stuck in a bootloop, can i still use this method for back up?? im trying to find ways to save the data before i fix the bootloop issue.

im not root and im s-on (boot loader locked).
[Samsung Galaxy Nexus] omrij:
No, you can't backup with adb until it's fully booted.
[Samsung Galaxy Nexus] runingwild:
Ok thanks.

and do i have any way to save the data of my phone?? even if there´s a minimal chance, im willing to try it.

my phone is stuck in a bootloop. Im not root and im s-on (boot loader locked).
[Samsung Galaxy Nexus] Werchio:
Help me, im quite noob

.ds
[Samsung Galaxy Nexus] Davy Jones:
I only wish I found this earlier. Thank you! That finally allowed me to restore these ab files to the Hercules. I wonder why the fields are mislabeled like this?
[Samsung Galaxy Nexus] Werchio:
Gets "Backup completed", no folder created

I hope that someone could help me solve my problem. I have downloaded and installed SDK Manager correctly, when I type this command

into a commandpromt, the promt says "Unlock your device and confirm the backup operation", when I do this, I set a password, and choose "Backup my files". Then it comes 15 minutes with different apps popping-up on the screen (under the password bar) e.g com.badpiggies.somethingsomething. Then it comes up "Shared storage", this is standing there for 20 minutes, and then it appears a toast that says "Backup completed" and I gets directly guided to my homescreen.

When I go to C:\ I cant find a folder that says backup, or anything nearby that. What am I doing wrong. Help me please! :)
[Samsung Galaxy Nexus] m.mrk:
Take a look at C:\Users\Username\ for the *.ab file. Mine ended up there for some reason.
[Samsung Galaxy Nexus] Werchio:
Uhm, I found a file that was created 13.10.12 (I did also try to do a backup 18.10.12, but this wasn't there?) The file is only 88.5 mb, the total usage of the storage on my phone is 12 gb. The appdata is 2.09 gb out of these 12 gbs. Is it possible that this is the "whole phone" (if the data gets compressed)?

Thanks in advance! :)

Edit:

The parameters that I use is

, doesnt this mean that "everything" should be backed up? :)
[Samsung Galaxy Nexus] tomhurst:
Used this as my phone wasn't rooted and installed the new resurrection remix (for Samsung Galaxy S2 GT-I9100) and then tried to restore my backup.

Now I know it worked because it took about 3 hours to backup and also the file on my hard drive is 17GB.

Though when doing the adb restore C:\******.ab then it restores about 5 apps and says "Restoration ended."

Obviously I want everything from the backup, is there anyway I can stop it from stopping?

Thank you!
[Samsung Galaxy Nexus] BrianDigital:
good write up, but I would ammend and add that "setting desktop password" into the guide, its such a big bug it ought to be in the walkthrough
[Samsung Galaxy Nexus] gelasio:
I have a Galaxy S2 that doesn't vibrate at all and sometimes when people call me, it gives a message like my phone is off.

I will try this aproch to backup my apps configurations before I do a hard reset to try solve this problems.... If I go to warranty they will do it anyway...

I do a couple of android official vodafone updates and this problems appears...

Advise me to do it?
[Samsung Galaxy Nexus] phonedroid:
I can confirm that the method worked (It created a .ab file in my hard drive which is not empty) :good:

However, having about 40 apps in my Galaxy nexus, the ab file size is just 35MB. Is that normal?
[Samsung Galaxy Nexus] Werchio:
I've about 80 aps and my filesize is 80MB. I'm not sure if this is normal though. Have you tested out the backup, if you get backed up everything? I'd be glad if you'd respond to this post :)