yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] DarkSJ1998:
BTW, if I'm not wrong, you're gonna take an ADB backup of that app to restore it afterward? Like on a rooted device?

You can do a " adb backup -all " and later on restore the data of that particular app using TitaniumBackup. :)

Don't worry someone will surely help out here. We have a great community of devs and pros at XDA :fingers-crossed:
[Samsung Galaxy Nexus] SkyLey:
More like the opposite...

I have my Xiaomi Mi Max 2 (old phone and rooted) and my new OnePlus 5T which already has everything on it except the data of com.stainlessgames.D15 (the Magic 2015 game from PlayStore).

I don't want to root my new OnePlus and I read about how you 'could' transfer data between devices via adb, so I tried it and... well, you know...

It's very frustrating because I PAID for the full app and now I can't use it anymore on my new device (well, losing my almost one year of progress...).

And that also worries me... what about when I have to change my 5T? Will I lose the progress too? Why the hell they don't store the data on the cloud or provide a way to easily transfer them?

Just... why.

What can I do? :(
[Samsung Galaxy Nexus] DarkSJ1998:
Do this:-

Do a full ADB backup and then as your Max 2 is rooted, you must be having TitaniumBackup app. Check whether that particular app's data is backed up in that ADB backup or not. If it ain't there, IDTS there's any other way of doing it.

And, when you were setting up your device, Google Backup wasn't able to restore the game's progress? And, OnePlus devices are development friendly. So IMO, you could just root it, restore data & then again unroot it if you want. Just a personal advice :)
[Samsung Galaxy Nexus] SkyLey:
Yes, I already took the data with the Titanium and saved it on my PC. Had no issues with that. It's always with the ADB.

About rooting and then unrooting I also thought that but is not possible.

To root the OnePlus I have to unlock the bootloader which erases all my data. The problem is that I want to leave it as stock, so to close the bootloader after (un)rooting it also forces me to delete everything again, which would solve nothing.

Is there a way to convert the backup from Titanium into an ADB? or something...

I'm just desperate...
[Samsung Galaxy Nexus] DarkSJ1998:
Nope, you got me wrong. I said that do a full ADB backup. And then, via TitaniumBackup, you can check whether that particular app's data is there or not in that ADB backup. If it is there, then only we can hope for transferring data via ADB to your new 5T.

And, AFAIK, re locking BL doesn't wipe data :confused:

Also, even if you keep your BL Unlocked, you can remain unrooted and enjoy stock experience. I myself have a 3T, have rooted it and enjoying [emoji14]
[Samsung Galaxy Nexus] DarkSJ1998:
What version of adb are you using? I just upgraded mine to 1.0.32 & now I can use -apk & -shared tags too! :D

Check your adb version using

adb version
[Samsung Galaxy Nexus] SkyLey:
I try to make the full backup but it still doesn't perform it correctly. It stops at around ~16 MB, which of course it is not fully.

My ADB version is 1.0.39 even higher than yours :/

And yes... when I try to close the bootloader it says that it will erase everything. Before posting in this forum I already tried it (I even rooted with SU but then when I wanted to close the bootloader and unroot the SU it didn't pass the safetynet thing... =(

Happy new year, by the way ;)

EDIT: now it allowed me to do the backup of the OBB data of stainlessgames.D15 (~1,2 GB) but that doesn't contain the save. When I use the "-noobb" thing the backup ends now in a 5 KB file... wtf...

EDIT2: I think that 5 kb actually is the data itself because it is similar to the Titanium Backup file (still not 100% sure). But when I try to restore it I enter the adb restore backup.ab command on my 5T and does nothing... It says that the restore has started and finished but it's a lie...
[Samsung Galaxy Nexus] DarkSJ1998:
Similar thing happened to me. I'm able to restore some app's data via adb restore but not able to do so for some apps :(

I guess that depends on the app whether that developer has allowed or not to include it in ADB backups or not. You may have observed WhatsApp doesn't get backed up either in the ADB backup.
[Samsung Galaxy Nexus] SkyLey:
I did it! I don't know why now it worked but it took the data from the Xiaomi (those 5KB was indeed the backup!) and was able to restore it to my OnePlus.

Thank you so much for your help ;)

What a great way to start the year :cool:

BTW, these were the commands used:

adb backup com.stainlessgames.D15 -noobb -noapk

adb restore backup.ab
[Samsung Galaxy Nexus] DarkSJ1998:
So you must have just installed the app from Play Store and just did the adb restore command right? Lucky you that the app's data could be restored via ADB. In my case, some apps weren't able to get back their data with the adb restore command too. Cheers! :victory: :highfive:
[Samsung Galaxy Nexus] SkyLey:
Yeah.

The thing I don't understand is why the complete backup wasn't able to finish and always ended in a ~15 MB file... Any idea on why that happens? :confused:
[Samsung Galaxy Nexus] pipoawas:
full system backup with adb, yes or no?

Sorry but I am struggling in recovering an adb backup that I made to my whole system a while ago, because adb refuses to do it. Now to my understanding we can backup the system and apps+apks with the switches -system and -apk respectively, right? So *How* can I recover my whole system, since only backups of apks and data seem to be recovered? (and yes, adb devices shows my device)

I tried everything:

In the OS

* adb restore backupName.ab => I confirm the restore and it exits immediatly

* adb restore backupName.ab (and I type the password) => I confirm the restore, this time it shows the app paths (com.xxxx.something etc) being restored, but the system remains exactly the same.

In the twrp recovery, after I allowed modifications to system, after I activate ADB sideload, and with the adb devices showing my device:

adb restore backupName.ab => It gives me the error adb: unable to connect for restore

adb restore backupName.ab (with the password previously set in developer options) => The same error:

X:\backs_letv>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
0123456789ABCDEF sideload

X:\backs_letv>adb restore backup_001.ab
adb: unable to connect for restore

So, how in the world do I restore my system with adb? And if it's not possible to recover a whole system in this way, either with the OS running or in the recovery, then why the hell the -system option? For a guy to think he has a backup, only to get screwed later?

And yes, I could have made an nandroid backup but I had the stock recovery at the time, and yes the system+apps+data backup *has* the system (it's bigger that the backup that only has data and apps)

I seriously hope someone can help me, because this is just 1 of my 3 phone problems, whith the other 2 seeming to be related to keyboards

P.S: By the way, I never rooted my phone, could that be the reason?
[Samsung Galaxy Nexus] nixnix33:
Hi there! Today I used the adb backup command to make multiple backups (data together with apks just to be sure) before unlocking the bootloader on my android phone - only to find out there seems to be problems with restoring these.

When I start the process (desktop password is enabled), everything seems to be OK at first (there are different lines of com. lines changing) but then I get some system notifications about "Unfortunately, SomeApp has stopped". I got this for ES File, Google+, SoundHound etc...

Still, the Restore process seems to be going on in the background, until it stops at com.google.adroid.gm - well, I'm really not sure whether it stops or just takes forever (an hour or more). All in all this restoring process is taking me at least double the time than creating backups.

Can I perhaps somehow override the apps that cannot be restored and just restore apps and data that I really care for?
[Samsung Galaxy Nexus] pipoawas:
adb isn't very reliable as I found out, specially if you don't have root permissions. Not only that but apps can put a no data backup flag, and adb won't backup that (just the apk, in case you have set it)

om.google.adroid.gm seems to be a system app, don't restore those in case you installed a fresh rom or if you wiped your /data, or you may be corrupting the new system apps.

Override the apps that cannot be restored? If they are all inside the same .ab backup file, no, if you made individual apps just restore the ones you want, if you're running a batch file, delete (or "comment") the lines of the apps you don't want to restore
[Samsung Galaxy Nexus] mrrocketdog:
noob Q :

if i type "adb backup -all" (without quotes of course) will this backup everything , i.e. system apks , stock recovery , etc?

wanting to make a backup before unlocking bootloader , rooting.

any advice/help/direction much appreciated.

fear a life unlived ; not death
[Samsung Galaxy Nexus] SnakeByte:
I think will only backup your device app and system data, no apk or anything else.

---------- Post added at 06:08 PM ---------- Previous post was at 05:43 PM ----------

Here you go, you can backup your device if you don't have root, using this tool for Windows and Linux, called Holo Backup, created and posted by [MENTION=4682694]omegavesko[/MENTION] : https://xdaforums.com/showthread.php?p=36499906#post36499906 If you have root, try Titanium Backup or better off TWRP Recovery. good luck!
[Samsung Galaxy Nexus] pipoawas:
It won't backup some apps or system parts if you don't have root, and it won't restore your system
[Samsung Galaxy Nexus] GCalzo:
As I wrote many times, the answer is NO: adb backup is not helpful for a real backup... https://xdaforums.com/showpost.php?p=74502166&postcount=737

BTW: for splitting a backup one need: https://sourceforge.net/projects/adbextractor/
[Samsung Galaxy Nexus] kaizokan:
Thanks for the guide. I like to add these two links for people that experience issues like a 0kb backup file or no "confirm backup operation" screen. And an easy way to know which apps can't be backup up with adb.

https://android.stackexchange.com/questions/147606/adb-backup-on-marshmallow-is-it-different

https://android.stackexchange.com/q...ompts-for-current-backup-password-even-though

There is an app which I don't know the name of anymore which can show a list of apps with the backup-protected apps greyed out. This app is meant for an easy way of creating a script for adb with only apps you select for backup, but its also handy to see which apps won't get backed up by adb this way ; )
[Samsung Galaxy Nexus] :
Off topic post removed. Use search before posting and post in the right sections please. :)
[Samsung Galaxy Nexus] jelabarre59:
[/COLOR]Here you go, you can backup your device if you don't have root, using this tool for Windows and Linux, called Holo Backup, created and posted by [MENTION=4682694]omegavesko[/MENTION] : https://xdaforums.com/showthread.php?p=36499906#post36499906 If you have root, try Titanium Backup or better off TWRP Recovery. good luck![/QUOTE]

Holo Backup is abandoned, no link to any replacement project.
[Samsung Galaxy Nexus] PIRATA!:
Hi there!

Does Holo work on Oreo?

The app linked in xda's OP looks like to be marked as infected by a big virus!!

Any working solution??
[Samsung Galaxy Nexus] PIRATA!:
Otherwise the old manual adb commands listed in OP ....still possible on Android Nougat/Oreo on last Samsung devices?
[Samsung Galaxy Nexus] chuksemma:
Backup and restore data

:confused::confused::confused::confused::confused::confused::confused::confused::confused::confused:

can i backup my data on my current phone and restore the backup to my new phone?
[Samsung Galaxy Nexus] MerynGoesAndroid:
So I tried to backup/restore a few apps + data with this command:

$ adb backup -apk -f <filename> <package names>

.

After confirming the backup on my device, it seemed to successfully have backed up things. The backup-file was far from empty, so I'm sure it did something.

After I manually removed the apps from my phone (as this was a test), I restored the backup with:

$ adb restore <filename>

.

Passed in my device password again and it showed me the packagenames I had actually backed up on the restore screen.

After the restore seemed to be successful I noticed that none of my apps/packages were installed. I shelled into my phone to check the /data folders by hand even none of the packages I had "restored" were there.

My phone is rooted, and ADB has root access.

Is this a joke from Google? "Here have a backup/restore mechanism!" *restores* "Hah just kidding, your data is now lost".
[Samsung Galaxy Nexus] GCalzo:
You may give a look on what's inside with https://sourceforge.net/projects/adbextractor/
[Samsung Galaxy Nexus] MerynGoesAndroid:
Thanks!

Some app data seems to be in there (database and package manifest), but no APK and for some reason it doesnt restore the data to the correct location then.

I also noticed app data is split up between /data/data and /sdcard/Android/data, in which I guess only the latter is properly read/write accessible even though I have root access.
[Samsung Galaxy Nexus] Klisstoriss:
Any advice on how to successfully restore if I have followed every one of the steps? Only thing I changed is I had to set up the computer backup password afterwards. When I initiate the restoration, it does show a progression but after a couple of minutes, it says it's done but nothing has been restored at all. Any help would be appreciated.
[Samsung Galaxy Nexus] flound1129:
Exact same experience here. More half assed beta software from google. Thanks so much for the wasted time.
[Samsung Galaxy Nexus] GCalzo:
As far as I know you must first install the app and then do a restore...
[Samsung Galaxy Nexus] schlombie:
Looks like the methode is going depreciated:

https://www.xda-developers.com/adb-backup-and-restore-depreciated/
[Samsung Galaxy Nexus] nikant:
please sign the petition for Google NOT to remove ADB backup and restore http://chng.it/MNGcD2gc4H
[Samsung Galaxy Nexus] DarkSJ1998:
Hi everyone! I had successfully used it before to backup & restore app data some years back, now I'm unable to do it :/

Device 1 : Moto G5 Plus (Running Oreo)

Device 2 : OnePlus 7T (Running Android 10/Q)

Device 1 is able to backup app as well as it's data, the backup file is 100MB+ in size, but the device 2 is unable to restore it. It just shows restore started & restore ended pops up within a minute.

I even have tried uninstalling the app manually to see if it installs the app or not. Is Android 10/Q the culprit? Because we've heard Google is slowly killing ADB Backups :(
[Samsung Galaxy Nexus] jelabarre59:
Nope, nothing. Does NOT work. Tried on two different computers, two different devices, all it ever gives me is a 41-byte file. Rebooting, reinstalling, changing cables, standing on my head with an Elvis wig on (OK, maybe not that last bit), nothing will make this work.

It's LONG past time Android gets taken out of Google's stupid, incompetent and belligerent hands, or at least some open variant like AOSP becomes the predominant Android base. Maybe with the likes of Huawei being locked out of Google's ecosystem, they'll develop their own well-supported fork and everyone can switch to that one instead.
[Samsung Galaxy Nexus] NCguy:
Again, i think its intended as a method to backup an unrooted phone prior to unlock and root. Its not very robust but at least you can almost fully restore after an unlock and flash. To my knowledge there are no other alternatives that don't require unlock and root. Nandroid is an image backup that wont allow you to restore data independent of the ROM.
[Samsung Galaxy Nexus] Luxferro:
Yeah I understand what it is for. Just figured I'd question if it could be used as a method to fix borked roms so people don't mistakenly rely on it if the go from just a plain non-root user to rooting and installing roms.
[Samsung Galaxy Nexus] copkay:
Yeah, good clarification I suppose. It's definitely not going to recover a hosed ROM, basically it's just backing up your settings and app data for if you're doing a fresh install or a factory restore.
[Samsung Galaxy Nexus] AWDSM:
Yes, I have the first field blank as I did not set a device encryption password and have the password I beleive I used for the backup file in the second field.

I will do a rollbback to 4.0.1 later today to rule out the incompability theory I have. I'll let you know how that goes.

Thanks for the help though!
[Samsung Galaxy Nexus] copkay:
No problem! One last thing I'd suggest to try before rolling back is to go set a device encryption password, and then use that in the first field rather than leaving it blank.
[Samsung Galaxy Nexus] NCguy:
Just curious, if your lockscreen is password locked before the backup, would it still be locked after the restore even if the new rom isn't locked? Otherwise couldn't this be used to bypass your phone's security?
[Samsung Galaxy Nexus] copkay:
That would probably be restored as well, but even if not, you still have to unlock the screen to perform the backup.
[Samsung Galaxy Nexus] Kaiken:
I see. Damn, that would of been sweet.
[Samsung Galaxy Nexus] NCguy:
Haven't used adb in a while. So the driver has to be activated via notifications like usb storage?
[Samsung Galaxy Nexus] copkay:
No, but as shown in the screenshots, you have to confirm on screen for both backup and restore.
[Samsung Galaxy Nexus] redrim:
Can you do a Partial Restore or only a Full Restore?

Only want to restore exactly what I need going from 4.0.1 to 4.0.3 rather than potentially introducing garbage...
[Samsung Galaxy Nexus] copkay:
You can specify each individual package that you want to back up, as shown, but you have to know the specific package name of every app that you want to back up.
[Samsung Galaxy Nexus] redrim:
What about just wifi settings?
[Samsung Galaxy Nexus] copkay:
Probably possible, but I have no idea what package they'd be stored in.
[Samsung Galaxy Nexus] AWDSM:
Well, that was not the case.

I've just rolled back to 4.0.1 and was not able to restore my data so I must have messed up the password when setting it.
[Samsung Galaxy Nexus] copkay:
:(

Try pulling up LogCat when doing the restore and see if anything useful (like a specific error message) comes up in the log. That's probably the issue, though.
[Samsung Galaxy Nexus] Neo3D:
I also got 0 bytes on 2 backup attempts. Will try your method.

BTW, what exactly does that last bit do? Does it append data into the .ab? Or does it make another .ab file?
[Samsung Galaxy Nexus] redrim:
Going from 4.0.1 stock to 4.0.3 CM9 kang the Google cloud backup worked for wifi settings and restoring market apps (not app data though)
[Samsung Galaxy Nexus] Hipe0ples555:
So if I use this backup and then unlock the bootloader, and then restore my device, will it still be unlocked? In other words, can i now unlock my phone without it being wiped when the process is over?
[Samsung Galaxy Nexus] Hipe0ples555:
So what would the commands now be, would they be the exact same?
[Samsung Galaxy Nexus] schlombie:
Does anybody know howto reset the backup password at the developer options?

All passwords I typed in, or keep it empty was wrong! Seems like I set one and forgot. :o
[Samsung Galaxy Nexus] harshikamehra:
Root my phone
[Samsung Galaxy Nexus] Jcxmt125:
is this still viable as a backup option?

is this still a viable way to backup my phone before a bootloader unlock in 2020?
[Samsung Galaxy Nexus] pipoawas:
To reset you have to type the old password. Otherwise, I think only a full system reset will get you rid of that (make backups first!)

---------- Post added at 05:06 PM ---------- Previous post was at 04:48 PM ----------

There's that Helium program (don't rememberif it requires root or not), it backups to the PC, great if your phone doesn't have much free space left nor a sdcard, BUT that program never worked for me.

- My advice is to backup apps with Swift backup, the only app that backups apps flawlessly (plus SMSs, Wifi networks and call logs),

- don't forget to put a flashable ROM in your internal/external memory,

- reset the phone, or wipe the partitions in youi recovery (**DON'T wipe your internal or external storage memory, that's where your backups, new ROM, fotos and music are!)

- flash the ROM,

- reboot (don't flash anything more, let the phone build dalvik and prepare itself for the 1st run),

- have the gapps ready to flash in case your rom doesn't have them,

- optionally you can root it too,

- install from the playstore Swift Backup, and start restoring the apps you backed up.

AND VERY IMPORTANT, forget Titanium backup, it's seriously outdated nowadays, doesn't backup .obb files from apps, and literally HALF of the apps you backup with it, crash when you restore them. Wiping the app's cache and data won't work.

Swift backup only saves one app at a time in the free version, if you want to batch your backup and restores, buy the pro version (some 6€ or something)
[Samsung Galaxy Nexus] cooljeff913:
Using Google Backup (via Backup and Restore on my Moto G6 phone.

Supposed to backup to Google Drive, but when I look at my Google Drive, I do not see anything from the backup (including a separate folder).

What am I missing?
[Samsung Galaxy Nexus] pipoawas:
Some folders are hidden. The whatsapp backup (if you have it backed up to Gdrive) is in a hidden folder too.
[Samsung Galaxy Nexus] cooljeff913:
I thought of that, but I have Windows Explorer set to show hidden files and folders. It should show the Backup folder when I open my Google Drive in Explorer, but the only things that show are the files I put there that have nothing to do with the backup.
[Samsung Galaxy Nexus] pipoawas:
Oh sorry, I thought you meant folders in Gdrive via Website. Initially whatsapp had a section there (you can back it up in google and it doesn't count as used space); and though the folder was inaccessible to us, it was there, but nowadays it's hidden (again, in the Gdrive website). But I don't have it active anymore (security and privacy reasons, I mean, it's google and a facebook company...), so I don't know how it appears now.

Anyway, besides showing hidden folders in Windows, have you tried to make it show also hidden system folders and files? There's a separate option for this.

But I doubt that you can see the backup folder in windows, most certainly only Gdrive can use it directly, or your phone's backup&restore indirectly
[Samsung Galaxy Nexus] cooljeff913:
Thanks for the information.

If I understand correctly, the 'Backup' folder is a special type of hidden that cannot be viewed, but will be used by the backup) restore functions.

My concern was that since I couldn't see the folder, the backup wasn't being saved.
[Samsung Galaxy Nexus] pipoawas:
That's right, most likely a non-user folder.

I never used google to backup apps and devices, if it says it backups, well, it supposedly does I guess. However, what bothers me is, imagine you have some 25GB on your device to backup, are those going to be backed up by google and stored in your account, which in it's free plan only has 20GB? What will be left out?

I received a Redmi today, my Letv 1S died in the most stupid manner possible: fell out of bed into a carpet. And apparently Xiaomi has a backup cloud of 5GB only (but at least they are more transparent about that), and it permits also to backup data to the PC directly, but I haven't tried yet.

One expects that by this time, in 2021 with android 11 and 12, there was a way for this OS to backup the damn device already, and I mean apps (or the links to the playstore, whatever), their data, and the rest of the usual stuff like call logs etc. It can't be that hard to achieve, but they keep dancing around it and doing nothing.

Mock apple all you want for bringing multitask and widgets late to the party, but at least they implemented a reasonable device backup system.