[Q] adb backup - Samsung Galaxy S (4G Model)

I was looking through the adb options the other day and noticed the "adb backup" option. This seems to grab all the files you need for a full app backup (from the console! yay!). I can use adb shell just fine but adb backup doesn't work. It tells me it can't connect. Anyone know why that is?

Related

[Q] Access local adb from android terminal

I want to use adb logcat from my device via the terminal. Because it seems to be the only way to access all logs without root. I think Clockworkmod found a way in the Helium Backup app

[Guide]Using Android-SDK ADB Backup Apps + progress + System with and/or without root

I am new to this site and read the posting rules nonetheless, information here is quite overwhelming. I hope that this is the appropriate location for this posting.
I have searched this site and other sites and have not found instructions (perhaps easier ones) on this topic, so I wanted post some basic ones here. Hope it helps.
(To my dismay, I couldn't figure out how to upload images and zip files from computer)
First you will need to install the Android/Windows SDK files
Install and unpack the android-sdk_r24.4.4.1-windows.zip (developer.android.com/studio/index.html#downloads) to your "C:"
I renamed my file by removing the "-windows" to make it easier for the PATH/Variables
After extraction, goto C:\Android-Sdk\SDK Manager.exe
Right click on the SDK Manager, Run as Administrator
Select all files under TOOLS
Check: Updates/New and Installed
Click Install Packages
Accept License
After done reboot
repeat steps, open SDK Manager
this time under TOOLS, uncheck installed Android SDK and check not installed and new version available
Click install packages
Accept License
After done reboot
Now Installing PATH to Windows 10
Click "Windows + E" (or Go to "this PC" folder)
On top, click on "System properties"
On the left, click on "Advanced System Settings"
Click on "Environment Variables"
Under System variables, click on "Path" and click "edit"
Click "New"
Type "C:\android-sdk\tools"
Click OK
Again under System Variables, click on "Path" and click "edit"
Click "New"
Type "C:\android-sdk\platform-tools
Click OK to all the rest
Press windows and type "CMD" and right click on it and select run as administrator
Type ADB
If installed correctly you will see all of the ADB command lines printed on your screen.
Your computer is ready to Communicate with your Android phone.
You will see the corresponding commands for backup and restore.
Backup and Restore Using ADB
ADB Backup
Make sure that your "USB dubbuging option" is on
Connect your phone phone/tablet using USB connection
Open your folder where you want you want to download your backup(s)
for example C:\My Phone Backup
Click the "File" option on top
Select the "Open command prompt as administrator"
Type "ADB Devices"
If an MTP message pops on your phone, click "OK"
Type adb backup -all -apk -f -backup.ab
Check your phone, it will give you to backup with or without the backup
Click either one
Once completed, you should have a quite a large backup.ab file in your destination folder
ADB Restore
Follow all of the steps above
Type adb restore backup.ab
--------------------------------------
For System Backup / Restore
Follow the above steps
Type adb backup -all -system -f -backup.ab
(make sure that the location of the system backup is different then the location of the apk backup)
As I mentioned before, If you Type ADB in CMD (Command Prompt in DOS) it will print the ADB shell command line.
I used to use TitaniumBackup to transfer apps and data from one Android phone to another when both devices are rooted. Recently I got a phone which currently does not have root access, so TitaniumBackup would not be useful. Most apps are not an issue, but I have trouble transferring a few apps and their data.
I was thinking to use adb to backup each app+data separately, and tried using the following command on the old (and rooted) phone:
adb backup -f <appname>.ab -apk <app_package_name>
but I got the following message:
Now unlock your device and confirm the backup operation.
The strange thing is that there is nothing there for me to accept when I unlock the phone or when I keep the phone unlocked.
Also when backing up all apps via "adb backup -apk -shared -all -f all.ab", I still get the same message: Now unlock your device and confirm the backup operation. And this happens on two computers I have tried so far. Very weird.
I just tried another phone, and had no problem with the adb backup command (I did see the confirmation request on the phone). So the problem seems to be with this particular phone (LG G2 with root).
Any suggestions as to how to handle the transfer? Any better alternatives?
Thanks, it worked for me.
atk9010 said:
ADB Backup
Make sure that your "USB dubbuging option" is on
Connect your phone phone/tablet using USB connection
Open your folder where you want you want to download your backup(s)
for example C:\My Phone Backup
Click the "File" option on top
Select the "Open command prompt as administrator"
Type "ADB Devices"
If an MTP message pops on your phone, click "OK"
Type adb backup -all -apk -f -backup.ab
Check your phone, it will give you to backup with or without the backup
Click either one
Once completed, you should have a quite a large backup.ab file in your destination folder
ADB Restore
Follow all of the steps above
Type adb restore backup.ab
--------------------------------------
For System Backup / Restore
Follow the above steps
Type adb backup -all -system -f -backup.ab
(make sure that the location of the system backup is different then the location of the apk backup)
As I mentioned before, If you Type ADB in CMD (Command Prompt in DOS) it will print the ADB shell command line.
Click to expand...
Click to collapse
I had to update the driver for my phone. Once done it worked for me. thanks.
This is perfect if you have a damaged touch screen. It's always good to have different backup methods for any unforeseeable future. However outaded, It's effective.

ADB Backup

I seem unable to use the adb backup command. Whenever I do it says: Now unlock your device and confirm the backup operation. Now my device is unlocked and it show nothing on the screen. And in the command prompt window nothing happens. I think I may have deleted an app on the phone that is required for adb backup. It is a Motorola XT907. If you could tell me what apps are required that would be extremely helpful.

Need help with ADB

I was using a Mi Note 3g and it has gone into a soft brick and i cannot open the recovery mode. I need to extract my app data from the internal storage. Someone mentioned ADB to me and I have managed to make the phone be read in the list of devices attached when i enter "adb devices" command
I just need the commands to go on further from here,
I tried adb backup but it apparently needs permission from the phone.
I also tried adb pull, but I dont know the exact directories to pull. It only shows a skipping a bunch of files with no files pulled. A 0 kb .ab file is created in my local directory.
I have bought a new device so I dont exactly have any use for the Note 3g, just need to extract the data. The device is rooted, has developer and ADB permissions granted.

ADB Backup doesn't work

I'm using GM1917 with Renovate ICE and am unable to perform an ADB backup.
When I run the command on my computer, it prompts me to unlock my phone and confirm the back up, but nothing pops up on my phone. I'm thinking that I may have disabled something that does this in the OP7, but I have no clue what it would be. Any advice?
Have you enabled USB DEBUG?
What command are you running exactly
For anyone running into this, I got it to work by running the command
Code:
adb backup "-apk -shared -all -f backup.adb"
The quotation marks actually make a difference here. Leaving off quotations makes it so the app doesn't open.

Categories

Resources