yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] NCguy:
In my case stock yakjuzs. Bootloader locked and unrooted.
[Samsung Galaxy Nexus] copkay:
:( Unfortunately, I'm out of ideas at this point. I have no idea what's causing this issue.
[Samsung Galaxy Nexus] tavik:
Finally got this working. My platform tools install must have been outdated (even though SDK Manager was reporting that v10 was installed). Backup appears to have worked flawlessly as soon as I uninstalled and then reinstalled the platform tools through the SDK Manager.
[Samsung Galaxy Nexus] NCguy:
I suspect its my install as well. Unfortunately I don't think you can rely on adb devices as a fail safe check. I'll report back after I reinstall. Glad you solved it tavik:):
[Samsung Galaxy Nexus] efrant:
Android SDK platform-tools v10

I've attached the platform-tools (version 10) from SDK for those that don't want to install the SDK.
[Samsung Galaxy Nexus] NCguy:
Confirmed, it was an older version of the platform tools as well. Thanks again tavik and efrant
[Samsung Galaxy Nexus] 15israellai:
If only I had read this before rooting...
[Samsung Galaxy Nexus] johno168:
I'm glad I did! Haha but the toolkit by mskip also has this function, also without the need to root.
[Samsung Galaxy Nexus] DinarQ8:
thanks but can you explain on Mac
[Samsung Galaxy Nexus] Neo3D:
Hey copkay, can you please add to your awesome guide this:

Wait until your phone returns to the home screen. That's how you can tell it will be done. Don't rely on the Windows prompt as an indicator when backup is complete. The windows command prompt will "return to normal" before actual backup is complete.

I got impatient and unplugged my phone when the command prompt window returned to normal. Got a bad backup.
[Samsung Galaxy Nexus] copkay:
Oops. @.@

Sure. :) Updated.
[Samsung Galaxy Nexus] Valistar:
Modify .ab backup

Hi everyone,

Do you know if it's possible to add an apk in the ab file and restore it on the phone ?

Just to precise : I do not want to hack anything. At the contraty, I would like to know if it's something to take into account to secure an Android smartphone.

Thx

David
[Samsung Galaxy Nexus] Hipe0ples555:
Why does my backup take so much time on Shared Storage? I'm literally almost at 2 gigs?!?
[Samsung Galaxy Nexus] lzp729:
I have a question, for now, I am using 4.0.2 with lots of applications installed, if I do the -all backup, and flash back to 4.0.1, then restore the backup, would my phone be restored to 4.0.2? or only applications and setting restored?
[Samsung Galaxy Nexus] heo_con184:
Excellent guide to backup/restore.

Thanks
[Samsung Galaxy Nexus] copkay:
It should be backing up the contents of your /sdcard directory. So it's quite likely you have 2+ gigs of data to back up.

No, just apps and settings. And it may not restore all settings in some instances if some settings were added or removed between .1 and .2.

Thanks. :)
[Samsung Galaxy Nexus] Superhupen:
Partial Restore

Hi everyone,

and thank you copkay for this tutorial.

I made a full backup of my Galaxy Nexus using the Galaxy Nexus Toolkit 5.1. It worked great and now i have a *.bak file with all my data.

The problem is that at one particular point in the restore procedure my phone is no longer responding. The app causing this problem seems to be an anti theft app.

The backup is not encrypted and my question is if it is possible to exclude some apps from the restore process or 'extract' the *bak file and manually copy/replace the needed files to my device.
[Samsung Galaxy Nexus] matt30:
This method seems like the hard way. Can't you just boot CWM and do a nandriod backup?

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] NCguy:
I think a nandroid will require an unlock and root which will wipe your phone without a way to restore. Also, you cant use nandroid to just backup and restore apps and app data can you?
[Samsung Galaxy Nexus] Superhupen:
Since the backup was made in order to root the phone, there is not data for a nandroid anymore.

Also, I do not need all the data and just want some settings or saved games. It would be interesting if there is a trick or method (like renaming to *.zip) to get access to the files, which are really needed.
[Samsung Galaxy Nexus] NCguy:
I believe this thread is mostly for people who want to unlock and flash their phones while retaining the apps, app data, and phone settings as they existed prior to the unlock and flash.
[Samsung Galaxy Nexus] copkay:
Not that I'm aware of, unfortunately. :( But I don't know that it's impossible, either.

As NCGuy has pointed out, this is if you don't have CWM. Unlocking the bootloader requires a factory restore, which will erase everything. To install CWM, you have to unlock the bootloader. Hence, you can't make a nandroid. That's where this comes in. It's not a replacement for nandroid for unlocked/rooted devices.
[Samsung Galaxy Nexus] cmstlist:
Just in case there is any doubt: If you use the -noshared option in your backup, then the restore will not wipe your internal storage. Yay!

Even though I'm already rooted, I decided to try using this to transfer (including system settings) from a yakjuux 4.0.1 build to a rooted 4.0.2 yakju build. The result was MUCH smoother and stable than when I tried to do the same via Titanium Backup.

I took a nandroid backup before embarking. After restoration, I supplemented it by using TB's "restore from nandroid backup" feature to restore contact storage (for call logs) and phone/messaging storage.

I would suggest if you are making a move between different types of build of stock ROMs, adb backup/restore is massively superior for restoring system settings than other methods.
[Samsung Galaxy Nexus] zero0n3:
hello guys!

thanks for wonderful guide

i tried with my rooted nexus (i think it works also with a rooted one)

if i use ./adb backup -all it works perfectly..it ask me password and go on...

if i use ./adb backup -apk nothing happens...Nexus doesn't ask me password

adb only create a zerobyte backup.ab file but no more actions...do you know why?

thanks

regards
[Samsung Galaxy Nexus] tearsinrain:
adb is incredibly useful /especially/ on GN, a supposedly 'developer-friendly' model. Thanks for sharing ;)
[Samsung Galaxy Nexus] copkay:
Because you're not specifying what to back up. Try mixing the two -- that is, "./adb backup -all -apk" :)
[Samsung Galaxy Nexus] zero0n3:
hello copkay

so you mean the "-apk" cannot work alone but i have to use it always with a subject?

if i use -apk -all, does it backup all my apks and system data?

thanks

regards
[Samsung Galaxy Nexus] crachel:
My /sdcard has 176 MB

Android reports that my /data + /sdcard is taking up 1 GB

So, my installed apps should be roughly 800 MB

My "adb backup" with -noshared flagged is 115 MB

My "adb backup" with -shared flagged is 151 MB

That's a lot of compression! Are other people seeing similar numbers?

Also, I tried to backup just my Google Authenticator app. I found the package name by typing "pm list packages" into Terminal Emulator. Android says App+Data for Authenticator is 372 KB. The backup file created by adb is 16 KB.
[Samsung Galaxy Nexus] efrant:
Unless you are using the -apk flag, you are only backing-up the app data, not the apk, no?
[Samsung Galaxy Nexus] crachel:
Hi efrant, you are correct.

Going through my shell history, the 2 commands were (not including the Authenticator backup):

adb backup -apk -shared -nosystem -all -f backup20120215.ab
adb backup -apk -noshared -nosystem -all -f backup20120219.ab
[Samsung Galaxy Nexus] copkay:
Honestly, I'd suggest doing a test: backup your Google Authenticator app, delete it from your phone, and try to restore it. If everything's back to normal, then nothing is wrong. That does seem like an extraordinary amount of compression, so I doubt that's what's happening here. Possibly the order of the flags in the backup command is important? (e.g. -all -apk instead of -apk -all).

As far as backing up the shared partition, I've noted in the original post that it didn't work for me, so I'd definitely recommend backing that up manually.

Let me know what you find out. :)
[Samsung Galaxy Nexus] crachel:
I have about 5 or 6 backups I've done over the last few days.

Over lunch, I unlocked the bootloader and attempted to restore basically all of them, and they all fail! Some have "-noshared" some didnt. Others were "-nosystem". Each one has the same password (a fairly lengthy phrase) and I would get the toast "Backup Started" and then immediately "Backup Ended". I tried running adb as sudo, didn't help.

Also, I ordered my command for my backup today exactly as "adb help" has it referenced, so the ordering of the flags was correct.
[Samsung Galaxy Nexus] efrant:
Disclaimer: I don't really know what I am talking about here, as I have never performed a back-up using this... but trying to help anyway. :)

Did you encrypt your file system? Would that have anything to do with it?
[Samsung Galaxy Nexus] crachel:
haha, thanks efrant

nope, I didn't encrypt the file system.

I was leery anyway and suspected this might not work due to the vast differences between backup file size and actual space in /data & /sdcard. 83% compression is outrageous and makes no sense.

I have Shadowgun installed, which is upwards of 500 MB and right now that is my only guess as to what could have failed.
[Samsung Galaxy Nexus] copkay:
Hmm, someone earlier in this thread had a similar problem, I believe. Double and triple check to ensure you've set the same backup encryption password in your Developer Options as the one you're using for the backup.
[Samsung Galaxy Nexus] crachel:
I thought I had kept up with this thread but looks like not :D

This is the first I'm reading of the Developer Options stuff, almost certainly is my problem. Just set the password and when I get home I will try again.
[Samsung Galaxy Nexus] copkay:
Heh, there's a lot to keep up with. :D

Good luck, let me know how that works out!
[Samsung Galaxy Nexus] crachel:
Okay. This feature is a nice start, but from my standpoint Titanium Backup currently has nothing to worry about.

The exact command I used to backup my phone was

adb backup -f backup20120221.ab -apk -shared -all -system

(the ordering of the options is exactly how "adb help" has them)

This gives me a 166 MB file, I have roughly 1 GB worth of /data + /sdcard. Something is wrong.

I initially had no "Desktop backup password" set in "Developer options". I went ahead and set one then I enter

adb restore backup20120221.ab

and input the "Desktop backup password" in the first text box and backup20120221.ab's password in the second. The restore begins. It takes several minutes (maybe 10) but eventually focus is returned to the shell prompt and I know the restore has finished.

My desktop icons are all in place but widgets are missing (expected that). However, some apps have their data restored, some don't.

Rsync for Android - data restored

Chrome Beta - data restored

Twitter - no data

Shadowgun - no data

Alarm Clock - had data, was shown to be 'Set' but not present on status bar

Tapatalk - data restored

Google Voice - data restored

Google Maps - no data

Google Music - no data

IMDb - data restored

And the biggest pain in the ass of all? Google Authenticator isn't even installed. That app is a gigantic annoyance to reinstall and is the whole reason I was interested in this.

So, in conclusion, if this is working well for some people, I'm surprised. I ran 5 or 6 different backups at varying times with basically the gauntlet of settings, and from the file sizes, I know that they were all similarly wrong to the backup I just restored. I can't even guess as to why this is going on. I have no reason to suspect my computer/usb cable, but I have a new laptop coming this week, so I will give it a shot on that to see what happens.
[Samsung Galaxy Nexus] copkay:
Interesting. Just curious, are you stock? And you're not trying to restore between two different versions of the OS? I'm assuming so, but I'm just trying to eliminate all possibilities.

Could be that this is why it's a "hidden" feature. ;)
[Samsung Galaxy Nexus] crachel:
Yes, I made the backups on a stock yakju 4.0.2 with no root access.

I restored the backup on the same exact 4.0.2 configuration, only difference being the /data was wiped because I unlocked the bootloader.
[Samsung Galaxy Nexus] NCguy:
Does this imply that a backup of the stock 4.0.2 yakuzs won't restore well to the stock 4.0.2 yakju?
[Samsung Galaxy Nexus] copkay:
Hmm. :( Unfortunately I'm kind of out of ideas at this point.

I couldn't say one way or the other. I simply meant, for example, going from stock to a custom ROM, or from 4.0.2 to 4.0.x (something other than 2). I'm CDMA, so I have no expertise as far as these various GSM versions go.
[Samsung Galaxy Nexus] mattwod:
NO App data was restored???

My main issue is that upon restore NONE of my app data was restored none of my game data, none of my accounts or settings were remembered, here's what I did...

I am new to using adb but I thought I had successfully created a backup of my nexus s running ICS 4.0.3 I ran teh adb backup script twice, once with just the "all" flag and another time with "-all -apk -shared" in that order, not sure if that mattered.

so I had two files one was 746mb, the other 3.4g so I was confident that I had all my bases covered, ... so I did the factory reset, (I had to do this because my GPS had stopped working all together, it would not even see a satellite in view) any way. The reset did fix the GPS issue but...

When I did a restore of the backup I created with both restore passwords blank since I did not password protect the backup and I do not believe I ever set an encryption password on my phone,in the log it complains that I have an invalid token, then i gave it an encryption password and it accepted that and ran for HOURS at least 5. I checked the logs and there are several pauses, and a ton of information I do not quite know how to sort through I don't know what is an error and what is not. The only noticeable thing that it did was place my app shortcuts back on my home screens. None of my game data has been restored for any game, including angry birds, greedy spiders or plants vs zombies, none my account logins like yahoo, facebook, or twitter were remembered.

I have logs of the restores that I tried, I did not make a log during my backup, but I am wondering has anyone seen this? Everywhere I look the adb backup/restore process couldn't be easier and everyone says it restores all the data that I mentioned above. Any suggestions? like I said I don't think I set an encryption password ever I am pretty sure that is a process I would know if I did or not.

Please help, I want to know if I did something wrong so that I can correct it in the future. THANKS!!
[Samsung Galaxy Nexus] copkay:
It seems to be hit or miss for people, unfortunately. I've not had time to do any extensive testing myself, but from the posts in this thread so far, it seems to be unsuccessful any time an encryption password was not used. From what I can tell, you must have an encryption password under developer options, and use that same encryption password for backing up and restoring later.

What I would guess, as far as the "token" error, is that the data is encrypted, but not the APK. Since originally, you didn't set an encryption password, but DID provide an encryption password for restoring the data, it was able to restore the APKs, but failed when trying to decrypt the associated data because the key was incorrect. That's just my theory, though.
[Samsung Galaxy Nexus] mattwod:
Thanks for getting back to me. Are you referring to the desktop backup password Under development tools? Or the encrypt phone setting under the security menu ?

Would this password be separate from the password that adb backup prompts you to set?

Thanks
[Samsung Galaxy Nexus] copkay:
Desktop Backup Password. It's separate...but it only seems to work if the password you set there matches the one you use to encrypt/decrypt the backup.
[Samsung Galaxy Nexus] landstander:
It's also useful for those of us who have opted to encrypt our device, using the new ICS functionality from Settings / Security. Nandroid backups are no longer an option in this case, since ClockworkMod recovery is completely unable to access the shared storage (unless you first perform a full userdata wipe).

I'm using Titanium Backup (in conjunction with Titanium Media Sync) to handle day to day backups, but it's good being able to perform the occasional "full" backup as well.
[Samsung Galaxy Nexus] zero0n3:
hi guys

after a full backup of shared, all and apk is it possible to restore only a particular apk?

thanks

regards

EDIT:

anyway i've restored my entire backup

all done...but:

my personal directories or third-part program dirs wasn't backupped, like /sdcard/Camscanner or /sdcard/media

is it possible to bakcup all my personal dirs and then restore also them with adb bakcup/restore commands?

thanks

regards
[Samsung Galaxy Nexus] copkay:
As stated, you can use the /shared flag to backup SD card storage, but anecdotal reports (mine included) show that it isn't 100% reliable. Best to back up the shared storage manually.
[Desire HD General] pepshi:
Hi every body in every topic i see for other phones have new roms but in htc desire HD we have one orw two weks old roms what is going one sorry for my english
[Desire HD General] scsachira:
Check ICS beta thread. :) If you love adventures, you can find it there. :D
[Desire HD General] Krendelrus:
WTF are you talkin about? have some respect for the dev's work, you ungrateful ****
[Desire HD General] MacSeoin:
I know it seems that way but alot is going on behind the scenes atm, so please have patience.

DEVS NEED A HOLIDAY TOO! (crimbo & NYE)

EDIT: Thanks for another pointless thread!

Swyped with my OC'd, BlackICE DHD
[Desire HD General] ToneyEricsson:
+1 Here here
[Desire HD General] hdorius:
Wtf are u talking about. We should be grateful bcause that are many dev working for our 1years old device to be updated...if you think u can do it urself, just do it..dev needs our respect for their efforts...
[Desire HD General] tmh:
Very dev related thread, thanks for posting (sarcasm might occur in the previous statement).
[Desire HD General] LorD ClockaN:
If there are no updates for roms, than there is nothing to fix:-)

Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
[Desire HD General] tarakini:
I call troll post! - What'd I win?!? :)

Sent from my cool, smooth, l337, FTW Er3bus 2.3.5 Sense 3.5 beefed DHD! :D
[Desire HD General] Sid_dominic56:
Hello pepshi, how are you?

Would you like to eat some cookies?
[Desire HD General] AdrianM:
What is Somethin

K

New? I guess you want some Android 5.0 ROM !?

Oh, and i think you are in a wrong thread category!
[Desire HD General] bigr1979:
The world is full of MOD EDIT: Swearing is not allowed - and you sir are one of them :D
[Desire HD General] binario77:
I suspect the problem here is that the gingerbread based roms have advanced to the point that there is little tweaking left to do that will bring about any significant improvement and the ice cream sandwich roms are not yet ready for mass deployment and not yet available with HTC Sense due to it not yet having been either released by HTC for ICS or modified to work on other phones.

The best ROMs for the desire HD will arrive on this forum but we are just in a between place.
[Desire HD General] HellRa1SeR:
Thats the most ridiculous way to get banned :(

Way to go sailor.

(That too when we are almost on the verge of getting a fully functional ICS) lol
[Desire HD General] pepshi:
Ok thanks every body for they bad words thanks i have respect for dev teams but i see in other forums ics 4.0 and for dhd we have one from respectet beatmod tteam but not working some futures and one time sorry if i have write something wrong thanks for someone who sey WTF sorry for my english
[Desire HD General] Turkawa:
Oh dude..you are one little massed up troll.
[Desire HD General] buzzboy:
Oh dear oh dear.
[Desire HD General] XDA_h3n:
Dev-lated thread

Whoa ITS DEV-RELATED.
[Desire HD General] melvie:
Poor man, maybe you can get a refund from XDA.

Damn...
[Desire HD General] twerg:
The treatment the OP is receiving here from well established members of XDA is nothing short of disgusting and makes me ashamed to be part of this forum. He should not have posted here his question but he deserves as we all do the be treated with respect. Since ICS has been released people attitude and respect for one another has deteriated to a point that is pathetic. Get over yourselves and grow up, you guys are so precious little soles, how can you be so hard done by and inconvienienced by new comers, xda is no longer an inviting place, rather it has become imtimidating.. Just my thoughts. Fire away you retaliation and taunts towards me as i expect to follow.. Cheers
[Desire HD General] buzzboy:
Close this thread please.
[Desire HD General] fshami:
I suggest you download 'BootManager' & get the taste of all the amazing ROMs for DHD here in parallel ;)

Happy New Year to ya all in Advance :d
[Desire HD General] sonnysoul:
What the hell, guys? At no point was the OP disrespectful, a little naive, yes, but that's expected from a noob. You're all talking about disrespect and trolling, yet you guys are the ones guilty of this.

So many people forget what this community is here for, and it seems to have now been filled with hateful people. At first I wondered why but now it's easy to see why some devs are leaving XDA and joining other sites. It's because so many of the people here are so full of hatred. At this time of year too, you couldn't just point the OP in the right direction. Shame on you all, except a select few who did help.

All you had to say was...

Hi. This thread is in the wrong forum but I will try to help. There are only really ICS roms being released frequently here at the moment, see zFr3ak's thread. I hear Capychimp is working on a leaked ICS + Sense build which he released on the Sensation, but more work is needed. The Desire HD is over a year old now so it's normal for there to be fewer releases for it than other devices. Also, try to understand it's Christmas and New Year, the devs need a break too, but they will be back for sure! Stay patient.
[Desire HD General] niels72:
Lock the thread, unbelieveable reactions.
[Desire HD General] Hawks556:
And what do you think this forum is for? This is xda-developers, not users, not noobs or anything else. The people that think that this forum was meant to be some kind of help desk are the ones that are wrong, this was meant to be a place where developers could share their thoughts.

And how can you say it's not rude when someone is implying that the devs here aren't working hard enough?
[Desire HD General] Rooks:
Instead of being grateful to those, who work hard for someone else's pleasure and satisfaction, it will be very selfish act to keep eye for own joy and happiness.

All the devs and modders working on projects need everyone's appreciation.

They are all beings like us, have feelings like us. I think we should all respect them all. Does not matter, two weeks or three have passed without any major release, it's not concerning. What matters is, that they (devs and modders) are all here with us.

A very sincere happy new year to every one.............
[Desire HD General] Dave-Kay:
Hell, yeah! But just get this Thread deleted, instead of all members showing bad manners over here :(
[Desire HD General] :
+1000

We should get more control over who posts on threads, it would stop all this bs