[Q] adb backups? - G 2014 Q&A, Help & Troubleshooting

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?

Related

TWRP Help

Is there a way to select files from my PC to flash during twrp? I am low on storage and I have a twrp backup that I want to move to my PC to allow me more storage. In case of bootloop, will there be a way to select the twrp backup from my PC while in recovery?
The latest twrp does this.
SpencerA99 said:
Is there a way to select files from my PC to flash during twrp? I am low on storage and I have a twrp backup that I want to move to my PC to allow me more storage. In case of bootloop, will there be a way to select the twrp backup from my PC while in recovery?
Click to expand...
Click to collapse
You'll have to use adb commands in order to pull it to your pc.. So long as you have minimal adb and Fastboot installed you should be able to do this.. If you don't know the adb commands that I suggested then use Google to learn more about the types of commands you can use like adb pull .. It's not that hard. Just make sure you have debugging turned on and oem unlock on also on the phone and then you'll be able to do it.

[Q] Backing up and restoring with ADB

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

Retrieve Data from broken OP3T(Black screen) but phone can be unlocked

So i dropped my OP3T yesterday, and since then the display won't turn on anymore. When i press the power button it just flashes for a millisecond.
Now i wanna save my data, because i sadly didn't have any backups. I can unlock my phone via fingerprint, but if i connect it to my laptop it won't recognize the phone ( i guess usb debugging is deactivated). Is there a way to restore my data when i can unlock the phone with a black screen?
Thanks in regards
Boo_q said:
So i dropped my OP3T yesterday, and since then the display won't turn on anymore. When i press the power button it just flashes for a millisecond.
Now i wanna save my data, because i sadly didn't have any backups. I can unlock my phone via fingerprint, but if i connect it to my laptop it won't recognize the phone ( i guess usb debugging is deactivated). Is there a way to restore my data when i can unlock the phone with a black screen?
Thanks in regards
Click to expand...
Click to collapse
You can do it provided you have an unlocked bootloader.
You need to have TWRP installed (you can't do it with the stock OOS recovery).
Assuming you have TWRP installed:
1. reboot into TWRP by:
a. holding down the power button until the phone reboots (vibrates)
b. as soon as it finishes vibrating press the volume key once (you have 5 seconds to do this). This takes you to the screen where you can select what to do.
c. press the down volume 3 times (selects recovery)
d. press the power button once. This will reboot you into TWRP
2. connect your phone to your PC
3. on your PC:
a. open a PowerShell session
b. type: cd Documents (so that the data downloaded is in your Documents folder)
c. type: adb devices (should show that your phone is in recovery mode)
d. if you have an on-boot password, enter it to allow TWRP to access the data partition by typing: adb shell twrp decrypt 'your-password' (see https://twrp.me/faq/openrecoveryscript.html)
e. type: adb pull /sdcard
You'll see the data being copied from your phone to your PC. You'll find a folder called sdcard in your Documents folder that has all your phone's user data.
Sent from my OnePlus3T using XDA Labs

[SOLVED] 'adb backup' gives blank output

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.

nexus 6 stuck in booting

Hi I have a nexus 6 in custom ROM which recently get stuck in the booting process. the product is Shamu XT 1103 32GB P3A0. A custom rom was installed some time ago. When pressing power + volume down it goes into start menu which shows the device is unlocked. When pressing recovery mode it goes to TWRP 2.8.6
Is that a way to make the booting work without losing the precious personal data in the phone? I searched and found that there is a way to sideload the OTA images but it could also wipe all the personal data on the phone.
Appreciate your advice here. thanks you so much.
best regards,
Ron
When in twrp, you should be able to transfer files to your computer. I use adb pull for that.
Probably won't help you with "data", but at least you can get everything from "internal storage"
Thanks for your advice. That helps a lot!
Best regards,
Ro
Well, this is how I do it. There are other ways as well.
If you want more details for some of the steps, just ask.
1) boot to twrp
2) connect USB cable to PC
3) make sure you have adb installed on the PC
4) run "adb devices" on a command prompt on the PC and check that the phone shows up. If not, you need to install the driver for the phone.
5) make sure your command prompt is in the directory where you would like your files to be stored.
6) write "adb pull /sdcard/ ." This tells it to pull all files from the so-called sdcard (actually internal storage) to the current directory on the PC (the dot).
thank you so much!

Categories

Resources