[Q] Need help restoring a backup taken from Helium - Nexus 5 Q&A, Help & Troubleshooting

I've taken a backup of all the app data with Helium (checked "Backup app data only") via my laptop's browser (connecting to the local IP address of the server) and now, after unlocking bootloader, flashing TWRP, and gaining root I need to restore it.
(I've posted this at the Help thread, but since it seems to be more than a simple question I'm migrating it here.)
To sum what I've done so far:
How I've taken the backup:
Opened Helium Server via my laptop's browser and selected all the apps, checked the "Backup App Data Only" and then clicked backup, it asked me where to save the zip file, clicked ok and now I have a backup of about 80MBs.
Now I want to restore the backup, what I've done:
Installed Helium
Connected it successfuly with my laptop running run.sh script
Opened helium and selected settings and then the 1st option (sth about PC), so I got the local address of the Helium server
Accessed the server via my laptop's browser and clicked browse to select my backup file
It said uploading and after that the list of all the apps showed up, clicked the Restore button
At the phone, the Backup/Restore dialog opened, a quick message showed up in this dialog about the 1st app (9gag) and then the dialog closed (not force close) with a toast notification saying "Restore starting..."
After that I got a message at my laptop's browser that "Restore complete" although no such thing happened
So, what can I do now?
Is there any way to manually restore the apps via adb restore now that I don't have an ab file? Actually I don't care using GUI, I just want to proceed restoring the backup, I've seen these threads here and here but I have a zip file, not an ab.
Does helium backup uses adb backup and then this tool to convert the ab file to zip?
Really frustrated that this has taken up so much time..

I have never used or even heard of Helium before today. But I looked it up and read the description. One of the points said "You may need to set your USB Connection Mode to "PTP". (Nexus 7, Nexus 10, etc)". Did you do that?
And maybe you should try Titanium Backup if you havent before. It works Flawlessly.

jsgraphicart said:
I have never used or even heard of Helium before today. But I looked it up and read the description. One of the points said "You may need to set your USB Connection Mode to "PTP". (Nexus 7, Nexus 10, etc)". Did you do that?
And maybe you should try Titanium Backup if you havent before. It works Flawlessly.
Click to expand...
Click to collapse
I've asked at the help thread for a backup application without having root (because Titanium needs root) and they recommended this one.
Yes, it's connected via PTP
I've also tried testing with the app a little bit, here's what I got/done:
Installed an app
Taken a backup of this single app checking the "Backup app data only"
Restored the backup via the browser client (at my laptop) and it said "Restore starting...", but also "Restore finished", but there wasn't any prompt to install the application from Google Play
I've also sent an email to the developer..

pspuser007 said:
I've asked at the help thread for a backup application without having root (because Titanium needs root) and they recommended this one.
Yes, it's connected via PTP
I've also tried testing with the app a little bit, here's what I got/done:
Installed an app
Taken a backup of this single app checking the "Backup app data only"
Restored the backup via the browser client (at my laptop) and it said "Restore starting...", but also "Restore finished", but there wasn't any prompt to install the application from Google Play
I've also sent an email to the developer..
Click to expand...
Click to collapse
Ive looked into the app a little bit more and watched the video. I'm starting to get interested in the app. lol. You said you backed up app data only. Maybe you need to download the app first.

jsgraphicart said:
Ive looked into the app a little bit more and watched the video. I'm starting to get interested in the app. lol. You said you backed up app data only. Maybe you need to download the app first.
Click to expand...
Click to collapse
Well, it says at the option "Backup app data only" that "You will be prompted to download the app from Google Play before restoring.", so something surely goes wrong. Maybe I've hit a bug, I don't know. I hope I get a prompt reply from the devs team.
Also, I've tried doing that with viber and it didn't work. So I've browsed through /sdcard/Android/data/ and here's the result of
Code:
ls -l
.
Note that the only non standard package is
Code:
com.ninegag.android.app.tmp
, which is probably the one that flashes when I click restore just before the app goes off focus and posting the toast notification "Starting Restore...".

pspuser007 said:
Well, it says at the option "Backup app data only" that "You will be prompted to download the app from Google Play before restoring.", so something surely goes wrong. Maybe I've hit a bug, I don't know. I hope I get a prompt reply from the devs team.
Also, I've tried doing that with viber and it didn't work. So I've browsed through /sdcard/Android/data/ and here's the result of
Code:
ls -l
.
Note that the only non standard package is
Code:
com.ninegag.android.app.tmp
, which is probably the one that flashes when I click restore just before the app goes off focus and posting the toast notification "Starting Restore...".
Click to expand...
Click to collapse
Well just to see, download an app first and then restore the data and see if it works. If it does, then its just not prompting you to download the app.

jsgraphicart said:
Well just to see, download an app first and then restore the data and see if it works. If it does, then its just not prompting you to download the app.
Click to expand...
Click to collapse
Nothing happened :/

pspuser007 said:
Nothing happened :/
Click to expand...
Click to collapse
With my lack of experience with the app, I dont know what else to say. I guess just wait and hope you hear back from the dev. Sorry

Total shot in the dark, but I saw some mention earlier that Helium (maybe adb-backup itself?) has issues running on a PIN-locked device. Maybe try disabling your phone security before doing the restore? It can't hurt to check, at least.
I had an issue on another device, where an adb backup with a password showed similar problems on restore -- "starting restore" then immediately "restore complete" or whatever, without actually writing any files. Making a new backup without a password "fixed" this -- the restore actually worked. Not sure if that helps you at all, since your old data is already gone

Related

Full phone backup without root

Did anyone try to backup the way suggested in this thread?
It'd be great, if it worked: a full backup (apps, settings, everything) without needing to root. I'm trying this right now, but when the phone prompts me to allow backup I tap on the "allow backup" button but it's if it weren't tapped (nothing happens, not even the tapping animation).
Someone tried this?
Edit: it would also allow access to some files that are unaccessible without root...
nor-ric said:
Did anyone try to backup the way suggested in this thread?
It'd be great, if it worked: a full backup (apps, settings, everything) without needing to root. I'm trying this right now, but when the phone prompts me to allow backup I tap on the "allow backup" button but it's if it weren't tapped (nothing happens, not even the tapping animation).
Someone tried this?
Edit: it would also allow access to some files that are unaccessible without root...
Click to expand...
Click to collapse
I've tried by running the various adb backup options manually on Stock 2.21, but haven't had much luck, although got further than you. It will get part of the way through the backup, but silently errors out after a few packages and shows backup complete (when I know it isn't). Removing a problem app just results in it failing on the next one. On my Nexus 7 it works as expected, so there may be a bug in the stock version. Would be interesting if someone with CM or anything non stock could comment.
will1987 said:
I've tried by running the various adb backup options manually on Stock 2.21, but haven't had much luck, although got further than you. It will get part of the way through the backup, but silently errors out after a few packages and shows backup complete (when I know it isn't). Removing a problem app just results in it failing on the next one. On my Nexus 7 it works as expected, so there may be a bug in the stock version. Would be interesting if someone with CM or anything non stock could comment.
Click to expand...
Click to collapse
Agree, would be interesting to see if the issue is related to HTC rom.
I've read on the Nexus 7 subforum that a user is stuck at my same point. I wonder what's causing this...
I had no luck either, although it has been awhile since I tried. I thought I read something on the original documention that made it sound like I wouldn't have any luck. Forget what it was now--
I was able to get this to work with my wifes stock unrooted one s (still on android 4.03 and sense 4.0).
in developer options you need to specify a password BEFORE you start the backup and enter that password on the "full backup" start screen.
i also couldnt get it to create a file for the backup in C:\ so i created a folder, and put it in there, but made sure to check permissions and that the folder was not read only.
I havent restored the data yet, but actually getting the backup file and it being an appropriate size (about 680mb), i would say i am optimistic about the results.
I will report back after i root and update the OS.

[Guide] Backup Apps & Their Data for Rooted & Non-Rooted Devices

[Guide]
Backup Apps & Their Data for Rooted & Non-Rooted Devices​
Purpose: Let's say that you made a high score in subway surfers and you don't want to lose it, then you'll need these two apps to backup the game data.
Helium (Without Root Method):
Helium is an application by Koushik Dutta, who has also developed CWM Recovery.
Important Note:
Motorola devices are not supported due to a bug on Motorola’s part.
Requirements:
1. Rooted or unrooted device with android 4.0 or higher.
2. Computer and USB cable.
3. Helium on your android with Helium desktop app on your computer.
4. If you're using Windows, you've to install ADB drivers, but if you’re using Linux or MAC OS X don’t worry about this issue.
Helium - App Sync and Backup (Play Store link)
ADB Drivers and Helium desktop app
Instructions:
1. Run Helium desktop app and Helium on your device, then connect via USB cable. Wait just a few seconds, and Helium will be enabled. You can now disconnect your device.
Note :If you reboot your device you'll have to reconnect it to re-enable the app.
2. Now to backup, you must select the desired apps and games then click backup. You can select one by one or swipe up the bottom tab to select all. You can backup the app data only to make the backup less size but you must to redownload when restoring or you can back up data with apk (this is pretty helpful but with more size).
3. You can restore on your current device or on a new device using the same sdcard. I think you can also copy /sdcard/Carbon folder from the current sdcard to the new sdcard to restore.
- You can make schedule backups
- If you run to the premium version, you’ll be able to backup and restore from cloud storage.
Titanium Backup (Root Method) :
If you've a rooted device, you can benefit from Titanium Backup automation and flexibility without caring to android version. This app is more featured and works without connecting to computer.
Requirements:
1. Rooted device.
2. Titanium Backup on your android.
Titanium Backup ★ root (Play Store Link)
Instructions:
1. Start Titanium Backup and grant root permissions.
2. You'll see 3 tabs. Enter backup/restore page. You can now see a list of system, uninstalled and user apps which can be filtered.
3. Here you can manually select which apps to backup and restore.
4. Let’s say you want to run a full backup. Select the button on the top right of the screen (batch button) and you'll see many actions. Run “Backup all user apps” action. You can select what do you want to backup or select all. After figuring, tap the green checkmark.
5. For making a full restore, you can enter the batch actions and run “Restore all apps with data" action. The free version will make you press a yes dialog box for each app you want to restore, but the premium version does it all behind the scenes.
Important Notes:
1. Restoring system data can cause serious problems.
2. Restoring system data from one device to another will definitely cause problems.
- You can make schedule backups
- If you run to the premium version, you’ll be able to backup and restore from cloud storage.
Well I use Super Backup,it supports both rooted and non-rooted phone,no problems with it and its even free!
Sent from my Xperia U using xda app-developers app
.....
XperianPro said:
Well I use Super Backup,it supports both rooted and non-rooted phone,no problems with it and its even free
Click to expand...
Click to collapse
Super Backup makes backup for sms & contacts, where Titanum Backup and Helium makes backup for apps and their data (like a saved game in Angry Birds).
JohnHK said:
Super Backup makes backup for sms & contacts, where Titanum Backup and Helium makes backup for apps and their data (like a saved game in Angry Birds).
Click to expand...
Click to collapse
Check again,it backups apks and their data.
...
XperianPro said:
Check again,it backups apks and their data.
Click to expand...
Click to collapse
OK, you're right, but it requires root. Non-rooted devices need Helium to backup app's data.
Any way, if my guide helped you or you liked it hit THANKS.
I have been trying to get Helium Desktop to install on my Windows 8 64bit PC and keeps giving me a missing DLL error and won't install! I have been searching the internet for days now and all I can read is that others have the same problem, but no one has posted a solution! I'm at wits end on this one! How do you get it installed and where can I find this missing DLL!?!
maw said:
I have been trying to get Helium Desktop to install on my Windows 8 64bit PC and keeps giving me a missing DLL error and won't install! I have been searching the internet for days now and all I can read is that others have the same problem, but no one has posted a solution! I'm at wits end on this one! How do you get it installed and where can I find this missing DLL!?!
Click to expand...
Click to collapse
I had the same problem. It was related to having the Use as Media Device setting checked in the options. Once I unselected it the DLL files downloaded and installed. I don't know why but give it a try and see if that helps.
maw said:
I have been trying to get Helium Desktop to install on my Windows 8 64bit PC and keeps giving me a missing DLL error and won't install! I have been searching the internet for days now and all I can read is that others have the same problem, but no one has posted a solution! I'm at wits end on this one! How do you get it installed and where can I find this missing DLL!?!
Click to expand...
Click to collapse
PMOttawa said:
I had the same problem. It was related to having the Use as Media Device setting checked in the options. Once I unselected it the DLL files downloaded and installed. I don't know why but give it a try and see if that helps.
Click to expand...
Click to collapse
Actually I don't know how to solve this issue. Maybe you can contact the developer
Very good alternative to Titanium, I usually use Titanium along with a Dropbox account, but this can more, great stuff.
Helium and MDM
While Helium was a fabulous tool for backing up from one tablet and restoring to another, I've encountered an odd problem. The original tablet was rooted, but I used Helium in non-rooted status. Then I restored to a non-rooted tablet. Thereafter, I installed AirWatch MDM only to be told by AW that the new tablet is rooted. I've confirmed through various means that the new tablet is not rooted. However, I suspect Helium does something that trips a flag. Does anyone have any idea on how to clear the flag so that my unrooted tablet will look unrooted to AW?
marcekb said:
While Helium was a fabulous tool for backing up from one tablet and restoring to another, I've encountered an odd problem. The original tablet was rooted, but I used Helium in non-rooted status. Then I restored to a non-rooted tablet. Thereafter, I installed AirWatch MDM only to be told by AW that the new tablet is rooted. I've confirmed through various means that the new tablet is not rooted. However, I suspect Helium does something that trips a flag. Does anyone have any idea on how to clear the flag so that my unrooted tablet will look unrooted to AW?
Click to expand...
Click to collapse
I suggest to contact the developer of Helium on Play Store and give him the details. Don't forget to tell him what's your tablet
JohnHK said:
I suggest to contact the developer of Helium on Play Store and give him the details. Don't forget to tell him what's your tablet
Click to expand...
Click to collapse
can it use in unrooted gingerbread, i want to root it but i afraid to lose subway surfer data. how to use this helium then?
maulanaihsan said:
can it use in unrooted gingerbread, i want to root it but i afraid to lose subway surfer data. how to use this helium then?
Click to expand...
Click to collapse
Hey, you can simply see the requirements in the OP
Helium works with rooted and unrooted Android devices but needs 4.0+. I think it won't work with ginger bread even if you have root. I hope that I helped
maw said:
I have been trying to get Helium Desktop to install on my Windows 8 64bit PC and keeps giving me a missing DLL error and won't install! I have been searching the internet for days now and all I can read is that others have the same problem, but no one has posted a solution! I'm at wits end on this one! How do you get it installed and where can I find this missing DLL!?!
Click to expand...
Click to collapse
Hi maw,
Did you find a solution for this ? I have the same
Are there any apps that allow you to backup to your desktop? I want to be able to individual backups of the apps I currently have installed, delete the ones I don't use(I need the free space), with the much faster option of just sideloading them instead of having to redownload them from the play store. I don't have enough space on my tablet or phone to make Titanium or Helium backups. Thanks for any recommendations and help.
Edit: NVM found one
Insufficient permissions
When I tried running the shell script on Linux Mint 16 64-bit Petra, it just said
Code:
error: insufficient permissions for device
First I had a problem that the script required changing permissions of the script and adb, but that was not a big of an issue. This however, I don't know what to do with this. USB-debugging was enabled and device was connected.
Edit:
I got this working. I configured the USB-access in udev as per instructions of source(dot)android(dot)com/source/initializing.html#configuring-usb-access. Then I modified it's permissions to read-and-write
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
and then I also restarted udev by
Code:
sudo service udev restart
That did the trick and I managed to connect the device.
Problem on Windows 8.1 64 bit
Hi Guys, I've just upgraded my OS to Windows 8.1 64 bit, and each time I tried to connect my phone the OS haven't recognized the device. I looked at the device manager and I discovered a generic Android driver provided by Helium.
So I unistalled Helium, restored the USB drivers by Samsung Kies, and now the OS recognized my phone again.
WHy?
Thank you!
Antonio
Thanks for being here, forums, when I need to do something simple and just have a senior moment
Very often, I reset my data on the S3 for try new ROMs, and, every time, I have to re-download all the applications...
Can I backup last version of Helium APP (APK?), so I can install it after the first boot and restore applications?

[SOLVED] Cannot restore Helium backup (nor adb backup)

Hi all, I'm trying to transfer all my apps and data from my previous (non-rooted) phone to my S7.
I used helium backup before, so I went ahead and backed up everything, but restoring fails. I then discovered that all Helium does is call the equivalent of "adb restore", so I decided to try the manual way. I performed a full backup ("adb backup -all") from my old phone, and it created a sizable 1.7Gb backup.db file, but when I went to restore it ("adb restore backup.db"), the S7 showed the prompt asking "A full backup of all data to a connected desktop computer has been requested", instead of the restore prompt. I noticed Helium gets the same prompt when trying to restore.
Anybody having the same issue, or any idea of what's going on?
My phone is a SM-G930F (UK Exynos) model, running Android 7.0.
My computer is running linux with adb version 1.0.36.
Any help is appreciated. I haven't rooted my S7 yet, and I'm debating if I should, but if I had root on the S7, would this be any easier? Keep in mind that the old phone (honor 5x) is not rooted, so titanium backup is not an option.
Thanks!
Tl;DR: it evenaually, magically started working
As it turns out, this device (and maybe others) shows the "Full backup" UI and asks permission to "BACK UP MY DATA" even when requested to restore, so, in fact, clicking "BACK UP MY DATA" restores it. Very intuitive. The issue must've been somewhere inside adb, but I was able to bypass it using the /system/bin/bu utility directly, as in:
Code:
cat backup.ab | adb shell /system/bin/bu restore
Unfortunately, after waiting several minutes for that to finish, none of my app data was there. Great.
Alright, let's have another look at Helium: since it uses some kind of UI automation, I can only guess it gets confused by the misleading UI, and so I discovered the option "Use key events instead of tap events" under settings. I don't know if that made any difference honestly, I just know that I tried again and it finally restored my apps. I then disabled it, and tried to re-restore something, and again it worked... sigh.
Basically, I still have no clue about what went wrong, but it eventually worked. I just wish Google provided a universal backup solution for all android devices, or even better, let us have root so I can use Titanium! After all I'm root on my PC, why do I have to jump through hoops to get the same on my phone?
Going through this ordeal reminded me of why I don't like upgrade to a new device very often.
hello i have a samsung s7 vodafone-Italy. I have a problem with connection with helium backup, i have a version 6 of android.
Well I install helium backup on smartphone, i have install some drivers (maybe not good??) i have installa application helium for chrome, and i try on windows 7 and windows 8.
I open helium on smartphone, connect cable, ask for PTP mode, i go to set up, i set PTP but smartphone ask me again select and enable PTP CAN YOU help me, i want to backup smartphone.
With samsung program i backup smartphone...and i have no problem, but is not usefull.
Best regards.
aslomagic said:
As it turns out, this device (and maybe others) shows the "Full backup" UI and asks permission to "BACK UP MY DATA" even when requested to restore, so, in fact, clicking "BACK UP MY DATA" restores it. Very intuitive. The issue must've been somewhere inside adb, but I was able to bypass it using the /system/bin/bu utility directly, as in:
Code:
cat backup.ab | adb shell /system/bin/bu restore
Unfortunately, after waiting several minutes for that to finish, none of my app data was there. Great.
Alright, let's have another look at Helium: since it uses some kind of UI automation, I can only guess it gets confused by the misleading UI, and so I discovered the option "Use key events instead of tap events" under settings. I don't know if that made any difference honestly, I just know that I tried again and it finally restored my apps. I then disabled it, and tried to re-restore something, and again it worked... sigh.
Basically, I still have no clue about what went wrong, but it eventually worked. I just wish Google provided a universal backup solution for all android devices, or even better, let us have root so I can use Titanium! After all I'm root on my PC, why do I have to jump through hoops to get the same on my phone?
Going through this ordeal reminded me of why I don't like upgrade to a new device very often.
Click to expand...
Click to collapse

Unable to create folder /data/media/0/TWRP/BACKUPS

I've read a few posts that seem similar but nothing too recent. I'm trying to backup what I have now so I can flash another ROM but it keeps failing. I even used es file manager with root and created the folder needed and gave it root permissions but it still fails in TWRP to backup.
Switch on „mount namespace separation“ in super su
jeffrimerman said:
I've read a few posts that seem similar but nothing too recent. I'm trying to backup what I have now so I can flash another ROM but it keeps failing. I even used es file manager with root and created the folder needed and gave it root permissions but it still fails in TWRP to backup.
Click to expand...
Click to collapse
Are you decrypted? Else you won't be able to back up.
alexS123 said:
Switch on „mount namespace separation“ in super su
Click to expand...
Click to collapse
Thanks guys, I was wondering about if I'm decrypted or not. How do I check? It's probably a dumb question =/. I ended up installing another ROM and it uses Magisk baked into it so I don't see an option for mount namespace separation. Maybe I can attempt to backup now just to see if it works with this ROM or maybe it's not decrypted still. For some odd reason it refused to let me install Facebook, or Facebook Messenger from the play store and one of my apps won't start. It just tries to start then crashes. I downloaded a couple "updates" from a site that says they are stock ROMs. "update_full_hw_usa.zip" is 544 mb and "update" is 1.72gb. I'm thinking of going back to stock but that would probably lock the bootloader and erase twrp right?
Edit: I tried to back up again but it does the same thing. I did notice it also says "failed to unmount /DATA". It might have said that before.
Edit: I see under security the encrypt phone section. At the bottom the "Encrypt Phone" button is faded out and above it I see "Charge your battery and try again" and "Plug in your charger and try again" so I'm not too sure but guessing that means I'm not encrypted but it is faded out so maybe it is?
jeffrimerman said:
Thanks guys, I was wondering about if I'm decrypted or not. How do I check? It's probably a dumb question =/. I ended up installing another ROM and it uses Magisk baked into it so I don't see an option for mount namespace separation. Maybe I can attempt to backup now just to see if it works with this ROM or maybe it's not decrypted still. For some odd reason it refused to let me install Facebook, or Facebook Messenger from the play store and one of my apps won't start. It just tries to start then crashes. I downloaded a couple "updates" from a site that says they are stock ROMs. "update_full_hw_usa.zip" is 544 mb and "update" is 1.72gb. I'm thinking of going back to stock but that would probably lock the bootloader and erase twrp right?
Edit: I tried to back up again but it does the same thing. I did notice it also says "failed to unmount /DATA". It might have said that before.
Edit: I see under security the encrypt phone section. At the bottom the "Encrypt Phone" button is faded out and above it I see "Charge your battery and try again" and "Plug in your charger and try again" so I'm not too sure but guessing that means I'm not encrypted but it is faded out so maybe it is?
Click to expand...
Click to collapse
Go to twrp, advanced, file manager. Browse to /data/app and see if you see normal folders or randomly named folders. If the latter you are encrypted.
Same if you tap install then try to install from internal sd.
ante0 said:
Go to twrp, advanced, file manager. Browse to /data/app and see if you see normal folders or randomly named folders. If the latter you are encrypted.
Same if you tap install then try to install from internal sd.
Click to expand...
Click to collapse
Thank you. I should have checked that before I put another ROM. I did see randomly named folders when I connect it to my laptop but I can't remember when but I bet it was in that folder. I ended up within TWRP formatting data I think but it did have my type "yes" and said it would eliminate encryption, then I installed the new ROM. I should check and see if the new ROM has encryption. So far data on the root drive isn't encrypted and data in the android folder isnt' encrypted when I check with my laptop.
Edit: It's backing up so must not be encrypted. I check using the file manager in twrp and can see all the files in data. Thanks for you help. I guess if I had sensitive info on my phone then it would be something to do but I don't have a need to encrypt.
jeffrimerman said:
Thank you. I should have checked that before I put another ROM. I did see randomly named folders when I connect it to my laptop but I can't remember when but I bet it was in that folder. I ended up within TWRP formatting data I think but it did have my type "yes" and said it would eliminate encryption, then I installed the new ROM. I should check and see if the new ROM has encryption. So far data on the root drive isn't encrypted and data in the android folder isnt' encrypted when I check with my laptop.
Edit: It's backing up so must not be encrypted. I check using the file manager in twrp and can see all the files in data. Thanks for you help. I guess if I had sensitive info on my phone then it would be something to do but I don't have a need to encrypt.
Click to expand...
Click to collapse
If you did format data again now, flash the data files supplied by your rom. (Public and Hw data) else you will have problems with themes and stuff.
If you didn't format data now, disregard this message
ante0 said:
Are you decrypted? Else you won't be able to back up.
Click to expand...
Click to collapse
You can take a backup using this thread
https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482
mansi0312 said:
You can take a backup using this thread
https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482
Click to expand...
Click to collapse
That's for OPO6.

How To Guide Backup/Restore your appdata/savegame between phones [adb Shell] | [Non-root]

Adb method acts like TitaniumBackup (rooted) and is more practical than Helium/Carbon (non-rooted). It is useful for: -
New phone and doesn’t want to root/waiting for unlocking & root [Like BS4/Pro Case ]
Don’t have account for the app/game or playing as a guest.
Appdata saved within privileges of root access.
Transfer savegame of old/new games.
The method is manually simple and performed individually for each app to outcome precious/efficient results. However, AppData directly saved within “Android/Obb” & “android/data” or by “login”, can be easily backed up by copy/paste. ADB method won’t be much help.
Requirement: -
PC/Laptop
USB cable
ADB software [Attached]
How to prepare USB debugging: -
Refer/Apply steps 1-3 from here.
How to Identify APK Name Package: -
Check out App Info from BS4/Pro.
How to Select/Search for APK Package Via ADB: -
Download/Extract “adb.rar” into PC
Connect the phone to PC via USB cable
Run CMD.exe as admin > type command
adb devices:: A message appears to indicate the correct connectionadb shell pm list packages | sort:: To get the list of your ALL installed alphabetically
Search for desired name package > Highlight and CTRL+C to copy name package
com.sega.sprintE.g. Sonic Force Package
How to backup
Run CMD as admin > Type any following CMD from below.
From phone, A Full Backup message appear > Press BACKUP MY DATA > Wait to finish.
A file with (.ab) extension is generated in “adb folder”.
adb backup -f <filename>.ab -apk <Package Name>
adb backup -f sega.sprint.ab -apk com.sega.sprint:: To backup app+data in (.ab) formatadb backup -f sega.sprint.DataOnly.ab -noapk com.sega.sprint:: To backup data ONLY in (.ab) format
Note: to avoid backup failure (1-KB size backup files outcome). Run your App & extend Battery saving/Optimization (sleep) for longer periods. Then, perform backup CMD process.
How to restore
Run CMD as admin > Type any following CMD from below.
A Full restore message > Press RESTORE MY DATA > Wait to finish.
Check out the phone
adb restore <filename>.ab
adb restore sega.sprint.ab:: To restore app+data in (.ab) formatadb restore sega.sprint.DataOnly.ab:: To backup data ONLY in (.ab) format
Note, restoration data will be the exact as the old phone. Reminder, this method is efficient for Appdata hidden under root access / guest account / app and game with no access with login.
List of App/Game that had been successfully applied: -
ActionTaimanincom.GREMORYGames.ActionTaimaninAngryBirdcom.rovio.angrybirdsAngryBirdSpaceHDcom.rovio.angrybirdsspaceHDBritishCouncilcom.britishcouncil.ieltsprepEveryCircuitcom.everycircuitGrammarorg.cambridge.englishgrammar.egiuRelicRuncom.squareenix.relicrunSonicE1com.sega.sonic4epiSonicForcecom.sega.sprint
You can try your lists & post them in the comments
Not sure how I'm the first to respond in ~8 mos, but ok.
Ok just to clarify, a snippet of my list after "adb shell pm list packages | sort" ::
package:com.spotify.music
package:com.sps.servicing
package:com.squareup.cash
package:com.strava
package:com.stremio.one
package:com.studiosoolter.miracast.screenmirroring.pro
package:com.supercell.clashofclans
Your example doesn't show that every line is prefixed with "package:" is this normal?
I also got the following after I initiated with, ""
"
A full backup of all data to a connected desktop
computer has been requested. Do you want to allow
this to happen?
If you did not request the backup yourself, do not
allow the operation to proceed.
Since your device is encrypted, you are required
to encrypt your backup. Please enter a password
below:
"
I threw some generics numbers in and nothing happened
wolvmarine said:
-----
A full backup of all data to a connected desktop
computer has been requested. Do you want to allow
this to happen?
If you did not request the backup yourself, do not
allow the operation to proceed.
Since your device is encrypted, you are required
to encrypt your backup. Please enter a password
below:
"
I threw some generics numbers in and nothing happened
Click to expand...
Click to collapse
# Firstly, No need for passwords. Just press " Backup My data " as shown in picture above.
## Secondly, to backup Data ONLY OR Data+APK. if you got nothing like "1.00kb" size.. Just run app, then perform backup process while running the app. You definitely will get some size XX.00MB for sure.
why this happened?! .... some apps aren't properly running in background due to "battery optimization feature". Thus, you must run it first.
ksbwings said:
# Firstly, No need for passwords. Just press " Backup My data " as shown in picture above.
## Secondly, to backup Data ONLY OR Data+APK. if you got nothing like "1.00kb" size.. Just run app, then perform backup process while running the app. You definitely will get some size XX.00MB for sure.
why this happened?! .... some apps aren't properly running in background due to "battery optimization feature". Thus, you must run it first.
Click to expand...
Click to collapse
Does this preserve app data and even allow me to copy it over to GrapheneOS when i get it installed and possibly even transfer between devices similar to what i see on your supplied screenshots?
Sh4dow_Hunt3r said:
Does this preserve app data and even allow me to copy it over to GrapheneOS when i get it installed and possibly even transfer between devices similar to what i see on your supplied screenshots?
Click to expand...
Click to collapse
I never tested GrapheneOS. However, as long as it's an android system with debugging mode enabled, the method is supposed to work fine with you. Just give it a try!!
Does this work with android 13?
xxqxpxx said:
Does this work with android 13?
Click to expand...
Click to collapse
Yup .. as long as you enable debugging mode
I did but i end up with 47 bytes file and when restoring nothing happens.
The app is OSN. What i care about is just the login as I don't have access to do a forget password atm
Old phone is pixel 6 rooted.
New phone is pixel 7 pro not rooted.
xxqxpxx said:
I did but i end up with 47 bytes file and when restoring nothing happens.
The app is OSN. What i care about is just the login as I don't have access to do a forget password atm
Old phone is pixel 6 rooted.
New phone is pixel 7 pro not rooted.
Click to expand...
Click to collapse
Your TV show app might act differently than other apps.
However, have you attempted to "run the app and access fully the login first" on your old phone?! After that, try to perform the backup process while the account accessing in the background.
This only works for apps which support the backup/restore API. This is a not a generic solution across all apps.
Google backup does the same thing and its incomplete. Never rely on it to restore all your apps.
what do you mean by "run the app and access fully the login first"? I can access the app on the old phone normally and do whatever. ofc I cant log out and login if that what u mean
xxqxpxx said:
what do you mean by "run the app and access fully the login first"? I can access the app on the old phone normally and do whatever. ofc I cant log out and login if that what u mean
Click to expand...
Click to collapse
Nope, simply
- Debugged mode/USB cable is already connected
- Run your app ( of course, you are login )
- Perform backup process commands from PC CMD while the app is running ( Press "Backup My Data" message )
- Check the size file. If reasonable size, that means the backup is well-made
In case it's not, issues have to be related to what "devsk" had explained.
Hope it works for you
I'm trying to restore data for one app, but when I run the restore cmd, my phone displays: "A full restore of all data from a connected computer has been requested. Do you want to allow this to happen?"..."This will replace any data currently on the device!"
Is this a generic message? I only want to overwrite the data of one app. I don't want it to do anything like erase all other apps' data.
Can anyone confirm that even when you're just restoring one app's data, you still get this message, and it's fine?
User.Hemlock said:
I'm trying to restore data for one app, but when I run the restore cmd, my phone displays: "A full restore of all data from a connected computer has been requested. Do you want to allow this to happen?"..."This will replace any data currently on the device!"
Is this a generic message? I only want to overwrite the data of one app. I don't want it to do anything like erase all other apps' data.
Can anyone confirm that even when you're just restoring one app's data, you still get this message, and it's fine?
Click to expand...
Click to collapse
As long as you are following the above CMD code for a single app, you are fine. I hope you re-check the example picture I provided above following this link.
ksbwings said:
- Check the size file. If reasonable size, that means the backup is well-made
Click to expand...
Click to collapse
Quick question as I am trying to get a backup of my phone before sending it for repairs, how much do you think a reasonable size would be if I try and back up my phone with around 55GB of data?
Hm, so when I ran `adb restore` with the .ab file containing a single app backup, I got the expected dialog, on device I saw "restore starting..." and then "restore ended," but when I launched the app, nothing changed and none of my backed-up data was present.
It looks like adb restore just... doesn't work. Any ideas why? (non-rooted phone, and I checked the app and allowBackup=true)
i can confirmed backup apk+data for
Code:
com.tapblaze.pizzabusiness
work just fine , now my wife dont have to worry her progress gone on modded apk coz i just unlocked bootloader so yeah
This won't work for game save data on an app with backup disabled, such as Candy Crush, correct?
Also, is "adb.rar" a specific program, or is it just whatever the latest version of ADB was at that time? Wondering if I should download that or look elsewhere for the latest.
Finally, what is the "BS4/Pro case" referenced when talking about getting app info?
Thanks dude, u saved me from grinding
Good evening, I would like to restore a backup from the old smartphone to the new one, but I should especially restore the settings data of certain apps (for example the settings of icsee, other camera apps and pages saved in Opera bookmarks) which are important for me.
Is it possible to reset app settings? Thanks.

Categories

Resources