Using ADB backup/restore on XZ2 Compact w/ Oreo - Sony Xperia XZ2 Compact Questions & Answers

Hi, i'm on build 52.0.A.3.84 and i'm trying to use adb restore to move some apps and data from my old z5 compact. However, neither adb restore or adb backup is working. The phone simply doesn't show any prompt. Was anyone successful with this? What ADB binary did you use?
Thanks,
Vinc
Update: resolved. Make sure to have the backup apks installed. That resolved it in my case.

Related

[Q] ADB Backup

I am an adb beginner and I would like to backup my GNex sdcard using adb and then pull sdcard backup from phone to PC. Could anyone steer me in the right direction w/ process and adb commands?
diver47591 said:
I am an adb beginner and I would like to backup my GNex sdcard using adb and then pull sdcard backup from phone to PC. Could anyone steer me in the right direction w/ process and adb commands?
Click to expand...
Click to collapse
[GUIDE] Full Phone Backup without Unlock or Root

[Q] Help with bootlooping WFS - CM7

I put CM7 on my daughter's Wildfire S a year ago, and everything has been fine until now - and it just bootloops on the CM7 animation.
I have tried wiping dalvik & cache, fixing permissions in CWM, reflashing CM7 (the version from last year - cm-7-20120717-UNOFFICIAL-marvel.zip) and gapps. Nothing helps. Any ideas please, before I try a full wipe? I am trying to avoid that since she has no backups...
fjuniper said:
I put CM7 on my daughter's Wildfire S a year ago, and everything has been fine until now - and it just bootloops on the CM7 animation.
I have tried wiping dalvik & cache, fixing permissions in CWM, reflashing CM7 (the version from last year - cm-7-20120717-UNOFFICIAL-marvel.zip) and gapps. Nothing helps. Any ideas please, before I try a full wipe? I am trying to avoid that since she has no backups...
Click to expand...
Click to collapse
Try flashing the latest version, it'll have less bugs anyway. I don't think you absolutely need to wipe when updating a ROM but it would probably be advisable.You can try this however.
-Download the Android Debug Bridge (adb) from Google's site onto your computer.
-Plug your phone into the computer and open the Terminal Emulator.
-Type cmd in the little window that appears and press enter.
-Navigate to the folder that you downloaded ADB to. (Example: cd C:\Users\Guest\Downloads\platform-tools )
-Type "adb backup" without the quotes to take a copy of your phone's data onto the computer.
-Now you can safely do whatever you want.
99Aaron99 said:
Try flashing the latest version, it'll have less bugs anyway. I don't think you absolutely need to wipe when updating a ROM but it would probably be advisable.You can try this however.
-Download the Android Debug Bridge (adb) from Google's site onto your computer.
-Plug your phone into the computer and open the Terminal Emulator.
-Type cmd in the little window that appears and press enter.
-Navigate to the folder that you downloaded ADB to. (Example: cd C:\Users\Guest\Downloads\platform-tools )
-Type "adb backup" without the quotes to take a copy of your phone's data onto the computer.
-Now you can safely do whatever you want.
Click to expand...
Click to collapse
Thanks. That is the latest version of the ROM unfortunately - old ROM on an old phone now.... If I go to e.g. CM10, I will have to do a full wipe anyway.
I have ADB already installed. It does respond to ADB commands like adb reboot, but using adb backup just results in the full set of commands being listed i.e. it doesn't know what to do. Are there other parameters to use? backup isn't in the list presented.
...
I found a suggestion to use
adb backup –apk –shared –all –f /backup/mybackup.ab
But I just get the response
adb: unable to connect for backup
fjuniper said:
Thanks. That is the latest version of the ROM unfortunately - old ROM on an old phone now.... If I go to e.g. CM10, I will have to do a full wipe anyway.
I have ADB already installed. It does respond to ADB commands like adb reboot, but using adb backup just results in the full set of commands being listed i.e. it doesn't know what to do. Are there other parameters to use? backup isn't in the list presented.
...
I found a suggestion to use
adb backup –apk –shared –all –f /backup/mybackup.ab
But I just get the response
adb: unable to connect for backup
Click to expand...
Click to collapse
I'll be honest, I've never used that command before. I just know how it works, I took a Nandroid backup when I first rooted my phone so have never needed it. I can't really help from this point on.. However if your phone will boot into recovery, assuming you have ClockWorkMod installed you can do a backup through that.
99Aaron99 said:
I'll be honest, I've never used that command before. I just know how it works, I took a Nandroid backup when I first rooted my phone so have never needed it. I can't really help from this point on.. However if your phone will boot into recovery, assuming you have ClockWorkMod installed you can do a backup through that.
Click to expand...
Click to collapse
Hi, I was hoping to do an app+data kind of backup like Titanium. I did take a nandroid in CMW and then restored it, but it perfectly reproduced the bootloop behaviour haha. In the end I did a full wipe and told my daughter that she needed to start from scratch. 14 year olds are more pragmatic that I would be - she was just grateful she had her phone back and could get on FB. Google restored her contacts, which is the main thing. So all sorted, but the bootloop cause remains a mystery...

[Q] Stuck on Google Boot screen, Can still access CWM. How to proceed?

Okay so my father was about to flash to my rom. We Wiped data, cache, delvik, and installed rom. Said it worked and rebooted the phone. Phone tossed us into the CWM again and we tried flashing again and it gives us error #7. Soooo, We did NOT make a backup and every time we try to reflash the rom it gives us error 7. We can't get the Phone to be detected by the computer so we can at least grab his data. The thing here is we can't afford to lose the data on the phone (I know, should have made a backup). Any advice on how to proceed would help significantly. I've never seen this kind of issue in my years of rooting android phones. It just sits at the Google screen and doesn't go anywhere.
Phone is Verizon Galaxy nexus running (was) MIUI
Update: Tried flashing back his previous rom (MIUI) and I'm getting the error 7 again. Even though that past rom worked perfectly. This is all very frustrating.
What data do you want to keep? Internal storage won't be wiped when flashing ROMs, and as for app data, contacts, SMS, etc, as long as you can enter CWM, you can pull them out of the phone with "adb pull".
Sent from Samsung Galaxy Nexus @ CM11
AndyYan said:
What data do you want to keep? Internal storage won't be wiped when flashing ROMs, and as for app data, contacts, SMS, etc, as long as you can enter CWM, you can pull them out of the phone with "adb pull".
Sent from Samsung Galaxy Nexus @ CM11
Click to expand...
Click to collapse
Well the problem is I don't have the Nexus adb installed onto the PC, so I can't connect to the nexus through USB. Can I install adb and everything without being in the rom? also I'm trying to get the Titanium backup folder and the photos.
If you can get into recovery, that means you can use adb. Just install the driver (if you are on Windows) and adb should work.
tonychau77 said:
If you can get into recovery, that means you can use adb. Just install the driver (if you are on Windows) and adb should work.
Click to expand...
Click to collapse
What's the command for pulling pictures and Titanium backup?
Hitmanthe3rd said:
What's the command for pulling pictures and Titanium backup?
Click to expand...
Click to collapse
adb pull [remote file] [local file]
You can pull the whole folder from your phone. The folder of Titanium Backup should be /sdcard/TitaniumBackup or something similar. For photos it is in /sdcard/DCIM
tonychau77 said:
adb pull [remote file] [local file]
You can pull the whole folder from your phone. The folder of Titanium Backup should be /sdcard/TitaniumBackup or something similar. For photos it is in /sdcard/DCIM
Click to expand...
Click to collapse
I tried to install ADB for Nexus and it failed and I ran into many roadblocks. Can you link me a W8 64bit guide I can follow?
Hitmanthe3rd said:
I tried to install ADB for Nexus and it failed and I ran into many roadblocks. Can you link me a W8 64bit guide I can follow?
Click to expand...
Click to collapse
I don't know much about those drivers because I use Ubuntu (just for my phone). But you can refer to this thread.
http://forum.xda-developers.com/showthread.php?t=1583801
tonychau77 said:
I don't know much about those drivers because I use Ubuntu (just for my phone). But you can refer to this thread.
http://forum.xda-developers.com/showthread.php?t=1583801
Click to expand...
Click to collapse
I got ADB installed but cannot get the pull command to work. It's adb /pull and it's in a 0 folder and then Titanium backup and in the Tina user folder . What would be the command?
Hitmanthe3rd said:
I got ADB installed but cannot get the pull command to work. It's adb /pull and it's in a 0 folder and then Titanium backup and in the Tina user folder . What would be the command?
Click to expand...
Click to collapse
"adb pull /storage/emulated/0/YOUR-DIRECTORY/YOUR-FILE C:\" or something like that.
Sent from Google Nexus 4 @ CM11

adb backup doesn't work after COl1 update

I have a SM-P600 and adb backup doesn't work after COl1 Stagefright fix. I got the "backup finished" message on the device but the backup file is blank. It only has 41 bytes. Does anyone encounter this problem?
By the way, I also updated my Note 4 with the Stagefright fix and adb backup still works on the phone.
Replying my own question:
I finally able to use adb backup again on another computer running Windows 7 SP1 and version 20 of adb.exe. I am not sure whether it was an issue with Windows 10 (the computer which I tried to use adb backup in the original question) or with newer version of adb.exe. I will try to find out when I have time.
I can't get ADB backup to finish properly either. Let me know if you find something

ADB Backup and Restore Issues

I'm trying to use ADB Backup and Restore, but when I try it I receive " Now unlock your device and confirm the backup operation."...however, nothing shows on the screen. Normally, a confirmation window displays on my phone, but nothing on the firestick.
I've tried single and double quotes, but nothing:
adb backup appname.ab -f com.app.com
adb backup 'appname.ab -f com.app.com'
adb backup "appname.ab -f com.app.com"
I'm trying to backup some app data and add it to another firestick, but running into some trouble. It isn't Kodi, but it is from a sideloaded app if that helps with more information.
Any ideas would be greatly appreciated! Thanks

Categories

Resources