[ADB][Honor 8] Non-existing restoration - Honor 8 Questions & Answers

Hi,
I've had issues with my phone and tried to use the ADB tool to backup and restore my files. The backup went ok, I created the file, but when I try a restoration, with both a pc back password and the encryption password correctly entered, I get nothing at the end of the restoration process. I can see the apk extensions being mentioned in the progress bar but when it's done, nothing has changed on the phone.
I've used those two lines of code in order to do so:
adb backup -apk -shared -all -f C:\Users\Asus\Downloads\tools\platform-tools/backup.ab
adb restore C:\Users\Asus\Downloads\tools\platform-tools/backup.ab
Any help would be greatly appreciated.

Related

What does "adb backup" actually do?

Hey everyone,
I was asking myself what the "adb backup" command will actually perform on the device and more important: is it possible to run those same commands on a device shell directly (from Terminal Emulator for example).
Goddchen
adb help
From the "adb help":
Code:
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
Intuition would lead me to believe that this backs up your application directories (the installed directory). You can include the application packages, system packages with the system/nosystem flags, and possibly your data in your /sdcard/ directory as well.
hm okay, let me rephrase my question:
Was commands does the adb backup command execute the create the backup and what commands does the adb restore command execute to restore the backup?
Is it possible to execute those commands on a device's shell without the use of adb...
And maybe: Is it possible in any way to make a adb connection to the local device?
I get the impression that you're looking for the inner workings of adb backup to see if you can integrate it into some scripts.
That being said, I came across something that might help you out. I skimmed over it and it seems to give a low level overview of the adb backup process. I hope that helps.
android.stackexchange.com/questions/23357/is-there-a-way-to-look-inside-and-modify-an-adb-backup-created-file
Sent from my Nexus 4 using xda premium
qdev said:
I get the impression that you're looking for the inner workings of adb backup to see if you can integrate it into some scripts.
That being said, I came across something that might help you out. I skimmed over it and it seems to give a low level overview of the adb backup process. I hope that helps.
android.stackexchange.com/questions/23357/is-there-a-way-to-look-inside-and-modify-an-adb-backup-created-file
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
that is some awesome background info
Unfortunately it doesn't take me closer to my goal. I don't think that one can launch a backup from a shell (or app), right? The backup only seems to be able to be triggered by adb (the adb backup command). I don't see any other way of starting a backup
Is there any possible way to create a adb connection to the local device?

ADB backup incomplete

In the aim of disabling encryption on my stock Nexus 5 I had to wipe the device. To not lose my data I researched backups and I came across the ADB method. I did several updates using different commands as I was never sure if the backup completed. The command did return however (i.e. the cursor appeared on CMD).
I ran the following:
Code:
adb backup -apk -shared -all -f C:\backup\backup.ab
Code:
adb backup -apk -shared -all -nosystem -f C:\backup\backup.ab
The end result is me having 4 backup files in the 2.8GB to 2.9GB range.
After trying ADB restore on two of them, most of my applications are not restored. I can live with that, but I would prefer if there is a way to restore my whatsapp data.
To try and diagnose the problem ibought Titanium Backup Pro to use their Extract from ADB backup option. That way I could tell what applications made it through. I unpacked then repacked the .ab file to remove the encryption by following this guide. Once I put the .ab on my phone, Titanium Backup said the backup file isn't supported.
Any thoughts ? I'm working on Windows 10 but I also dual boot with Ubuntu.
Hi
Try using the <packages...> tag
http://forum.xda-developers.com/google-nexus-5/general/guide-backup-data-root-t2824790

ADB/Fastboot backup

I'm running Carbon 3.1, which I very much like. Still, I'd like to try omnirom and perhaps RR, both of which require a wipe. How do I back up and restore my data with fastboot or adb? I don't user twrp (doesn't play well with aosp). Phone is rooted, stock emui 8 recovery. I don't want to restore system, just my apps.
the right command to backup your app and data should be this one:
backup: adb backup -apk -shared -all -f backup-file.adb
restore: adb restore backup-file.adb
info:
options are
apk – Backs up your apps.
noapk – Does not backup apps.
shared – Backs up data on the SD card.
noshared – Does not backup data on the SD card.
hope this suggestion could help
but there are several apps around there which can do that for you without connecting to a pc.
(MyPhoneExplorer; TitaniumBackup; Helium App sync; aso...)
I have titanium, but I've encountered problems on restore.
It took me several tries but
backup -apk -noshared -all -f c:\backup-file.adb
eventually worked. Hard to find the file as it appeared in something called "Virtual Store" (that is, the path provided was disregarded) but that acted like a normal folder once I found it.

adb backup issue

Hi, I'm trying to backup apps for a test prior to rooting.
I'm running Oxygen 10 on a OnePlus 6 and using an Ubuntu computer.
Using this :-
adb backup -f /home/richard/backup.adb -all -apk -nosystem
It runs ok, get phone screen to authorize backup which I do, backup finishes but backup file is empty.
Help much appreciated.

Temporary root without losing data for full backup using Swift Backup?

Hello.
I transitioned from my S7 to a newer one.
I want to do a full backup of apps but now possible without root. My newer one is rooted, my S7 not.
I tried very shady methods like Kingroot and Kingoroot, no success. I know they aren't recommended at all ,spyware and tons of crap.
I want to root my S7 without losing data. Is it possible?
After that, I will reflash and fix a bit my venerable S7 for nostalgic and secondary reasons. It's showing it's age but I like it.
You can backup your data without root with ADB. Download ADB tools and use these commands:
1. This will backup all your app data at the destination folder, i.e. the folder you're using to execute adb commands. adb backup -f all -all -apk -nosystem
2. This will backup all your apps at the destination folder,
Bash:
for APP in $(adb shell pm list packages -3 -f)do
adb pull $( echo ${APP} | sed "s/^package://" | sed "s/base.apk=/base.apk /").apk
done
To restore the backup open CMD in the backup folder and use these commands:
1. To install backed up apk, adb install application.apk
2. To install backed up data, adb restore application.backup
Thanks a lot!

Categories

Resources