I'm trying to do a backup using this adb command:
Code:
adb backup -apk -noshared -all -nosystem
I need to make an adb backup so that I can restore the backup on a non-rooted phone.
However, when I enter the command, the cmd window only gives an output saying "Now unlock your device and confirm the backup operation", and then ends immediately, leaving a blank (0 kb) backup file.
I then checked the logcat and saw an error message saying "unable to launch full backup confirmation".
I've tried rebooting and still, no luck.
Does anyone know why the backup confirmation screen just wouldn't show up on the phone? I really need to backup my apps and restore them on a non-rooted device so adb backup is my only option.
The rom I'm using is Candy5 ( https://forum.xda-developers.com/xpe...andy5-t3196185 )
Solved by myself.
It turns out the rom doesn't have the package 'com.android.backupconfirm' installed. So what I did was doing a twrp backup first, flashed the last snapshot version of CM 12.1, used 'adb pull' to pull 'BackupRestoreConfirmation.apk' from '/system/priv-app/BackupRestoreConfirmation', restored the backup, copied the apk to the same directory and rebooted. The backup confirmation screen finally shows up and I can do backups now.
Related
ALL IS FIXED THROUGH RUU!!! OMJ'S RUU POST SAVES LIVES. +1 TO THAT MAN.
Hi, I've recently installed clockwork mod and just wanted to try out the HD revolution roms and missed having battery percentage. I used the all-in-one toolkit. After installing the ROM through ADB sideload i rebooted my phone to having it go right back to the bootloader screen. I tried to restore my backup and it says it has a md5 mismatch. If anyone has any guidance please help!!!
Sincerely,
A lost noob
download a new rom, sideload via adb, try flashing with that.
after downloading the new rom, boot into recovery, plug device into computer, open up terminal window and type:
for linux/osx:
Code:
adb push /path/to/new/ROM /sdcard/Download/
for windows:
Code:
adb push C:\path\to\new\ROM /sdcard/Download/
You can also delete the old rom (quotes are required):
Code:
adb shell "rm -f /path/to/ROM/on/device"
treyswell said:
Hi, I've recently installed clockwork mod and just wanted to try out the HD revolution roms and missed having battery percentage. I used the all-in-one toolkit. After installing the ROM through ADB sideload i rebooted my phone to having it go right back to the bootloader screen. I tried to restore my backup and it says it has a md5 mismatch. If anyone has any guidance please help!!!
Sincerely,
A lost noob
Click to expand...
Click to collapse
Did you rename your backup to something other than the date and time? This caused me to have a md5 mismatch.
Sent from my HTC One using xda premium
If you're absolutely sure your backup is complete then type this in cmd:
Code:
adb shell
# cd /sdcard/clockworkmod/backup/2013-05-01.20.22.53 (name of your backup stored in /clockworkmod/backup )
# rm nandroid.md5
# md5sum *img > nandroid.md5
This will allow your backup to restore
Redbull I wish that was my problem.! lol. So update : I tried switching recoveries to TWRP since there was a cache recovery erroor in my CM. BUT after that I lost my nandroid. :C So I either install with CM where my phone is recognized but my cache will fail the install or TWRP where my phone isn't recognized. I also flashboot the boot.img from the rom after downloading. My also has shut off in random times.FML
2nd UPDATE: I now have TWRP working. I've been trying to use O.M.J's deoxed rom. My phone makes it to the main menu with no service and then after a minute it will say process system not responding and shut itself off and reboot. If its any constellation my twrp time is only an hour off.
Tried to do an adb backup on my lollipop XT1063 in preparation for unlocking bootloader.
After typing the adb command on the computer, the phone goes to a screen to authorize and start the backup, but you can't press the proceed with the backup button. Only the cancel backup button works. Tried it both without a backup password and with one, but neither worked.
Did Moto disable adb backups?
I have TWRP 2.8.7.0 and the latest VZW 5.1 debloated ROM from VitaTaf's thread. It's been a while since I backed up my /sdcard/ to computer. I realized that my TWRP backups are visible when booted into recovery; however, the /sdcard/TWRP/ folder is empty when booted into Android. Using Root Explorer, I am able to see the backup files in /data/media/0/TWRP, but the same files do not show up when connected to a Windows computer via MTP (which, if I'm correct, leads to /sdcard/).
I have tried the restorecon command from HERE, but the backups still do not show up in /sdcard/ after a reboot. I am able to move them to a different folder on /sdcard/, but it takes a long time and does not seem to be an actual solution. Trying to move the backups from /data/media/0/TWRP to /sdcard/TWRP/ results in an error.
Has anybody else encountered this strange issue? Any assistance would be appreciated.
AFAIK the folder is hidden. Try boot into TWRP, connect to the PC and then mount storage in TWRP.
A second option is directly backup to an external USB-Drive.
Thanks for the tip. I figured it might be an issue with permissions, and your suggestion gave me an idea. I booted into recovery, deleted the /sdcard/TWRP/ folder, rebooted into recovery, and created a backup in the newly created TWRP folder. It now shows up normally in Android and when connected to PC via MTP.
Hi everyone,
I wanted to unlock the bootloader on my OP3T but I don't want to lose all the data. So I wondering if I could back my phone with the command,
adb backup -all -apk
and then unlock the bootloader and then restore the backup that I made. Are there any disadvantages to this? Will I lose out on updates? Will I lose any data? Anything else I should know?
I think you will in the end need root via adb to accomplish this. Imagine this, if without unlocking phone you can use adb to make a backup then anyone can do that(who have enough knowledge) and this can be a major security concern.
Soo I think it is not possible.
It is possible. As stated on Titanium Backup's webpage:
1. How to make your first backup WITHOUT root:
Before beginning, you need to setup your ADB and have your device detected. You must also running Android version 4.0 and above. Also, make sure you have a file manager installed. Our favorite is the ES File Explorer.
Connect your device and make sure its listed with the following command:
Code:
adb devices
Run a FULL backup with the following command:
Code:
adb backup -f FullBackup.ab -apk -all
This will create a “package” called “FullBackup.ab” on the current location in your command prompt. This is your backup package.
Now you can root your phone.
Once finished rooting, insert the “FullBackup.ab” package on your sdcard
Hit the menu button and look for “Extract from ADB backup” option. This will prompt you to search for the file. Use the file manager that you installed earlier and navigate to the directory and select the FullBackup.ab file.
Now restore like as if the backup was made with Titanium Backup. Don’t forget to make a fresh copy of the backup using Titanium Backup. You’re Done!
Click to expand...
Click to collapse
Hi Guys.
Excuse my english
I have with ADB and the command
adb backup -all -apk -shared -f d: \ backup.ab
created a backup of my phone. According to the phone in the end, this backup was also made.
I also find under the drive D made the backup.
Then I had to reset the same phone to factory settings.
So again I have with ADB and the command.
adb restore d: \ backup.ab
The recovery started.
This can be tracked on the phone also, you can see how he restores the backup.
At the end, the message "Backup successfully recovered" appears on the phone.
But there is no change on the phone.
What am I doing wrong?
Or what can I do? In order not to have to do everything again from scratch.
Thank you for your help.