Temporary root without losing data for full backup using Swift Backup? - Samsung Galaxy S7 Questions and Answers

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!

Related

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

Backup Skype data with ADB does not work

Hello,
when I try to backup my Skype files (chat, messages,...) via ADB, I try this:
Code:
adb backup -noapk -f Skype.ab com.raider.skype
It will generate a 0 Byte Skype.ab file.
When I try this:
Code:
adb backup -all
It will backup some appdata like from Teamviewer.
My question:
How can I backup / save the Skype data via ADB?
My device is a Nexus 5 with Android 6 stock rom without root.
I hope someone can help me.

using bmgr to restart Play store app restore

I was reading about this command and was curious as to the "coding" to use it. The other day I was restoring a phone and had to interrupt the Play store restore of my apps.
Can this command be used to restart the restore of apps from Play store? If so, what would be steps or "coding"?
You should be able to complete (restart) the restore process. You can do it using ADB or Terminal (if you have it installed and your phone is rooted).
I'm assuming you know how to run ADB commands.
Code:
adb shell
bmgr list sets
bmgr restore <tokenID from the previous command>
If there are multiple backup sets listed, you can find out the one that was used to start the restore process on your phone using the following command:
Code:
dumpsys backup | grep Ancestral:

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.

Pull app-data from Pixel 3a app without root

Hi,
I want to pull the app-data, specifically the cell_broadcasts.db database, from com.google.android.cellbroadcastreceiver or com.android.cellbroadcastreceiver (guess the first one is used) from my stock Pixel 3a (no root, no custom recovery).
adb pull /data/data/com.android.cellbroadcastreceiver/databases/cell_broadcasts.db gives me a permission error...
I also tried adb backup -apk com.android.cellbroadcastreceiver etc. and confirmed the backup on my phone, but it gives me an empty backup. adb backup -all and extracting it via dd if=backup.ab bs=24 skip=1 | zlib-flate -uncompress | tar xf - works but only backups 38 apps, not including the ones I want.
Is there any way I can get the app-data?
RFZ said:
Hi,
I want to pull the app-data, specifically the cell_broadcasts.db database, from com.google.android.cellbroadcastreceiver or com.android.cellbroadcastreceiver (guess the first one is used) from my stock Pixel 3a (no root, no custom recovery).
adb pull /data/data/com.android.cellbroadcastreceiver/databases/cell_broadcasts.db gives me a permission error...
I also tried adb backup -apk com.android.cellbroadcastreceiver etc. and confirmed the backup on my phone, but it gives me an empty backup. adb backup -all and extracting it via dd if=backup.ab bs=24 skip=1 | zlib-flate -uncompress | tar xf - works but only backups 38 apps, not including the ones I want.
Is there any way I can get the app-data?
Click to expand...
Click to collapse
Not without root.
Android uses scoped storage, where each app and process is only able to access its own private data - the exceptions being "public" data such as internal/external storage, and certain "public" system data such as texts, calls, etc.
Although the ADB daemon is a system process, it does not have root permissions, therefore it cannot access private app data.

Categories

Resources