Question Best way to backup for rooting? - Google Pixel 5a

Hello! I own a Pixel 5a that I've been using for a while now, and I want to root it without losing my data. From what I saw, unless an exploit is found to get around this you will have to format your device to unlock the bootloader. I'm wondering what the best way to backup and restore my data would be so that I can root and get all my data restored when the process is over. Thanks in advance.

theplanfelloff said:
Hello! I own a Pixel 5a that I've been using for a while now, and I want to root it without losing my data. From what I saw, unless an exploit is found to get around this you will have to format your device to unlock the bootloader. I'm wondering what the best way to backup and restore my data would be so that I can root and get all my data restored when the process is over. Thanks in advance.
Click to expand...
Click to collapse
You might try the app "Migrate"... A few bugs here and there but I save a back up to USB and usually get 80-90% of my set up back after switching ROMs

Esb1809 said:
You might try the app "Migrate"... A few bugs here and there but I save a back up to USB and usually get 80-90% of my set up back after switching ROMs
Click to expand...
Click to collapse
Thanks! I'd prefer to be using an open source app though, if that's an option.
EDIT: This app seems to require me to be rooted, so it won't work.

i just backup the phone to gdrive. then restore it from gdrive. i use nova launcher so i pulls a backup of where all my icons are placed on the home pages. only down fall is apps that are not on google play will not be installed and you have to sign back into all of your apps. 90% of the device settings are saved.
last time i unlocked the phone did not reboot back into the system and wipe everything, it went back to bootloader, but i think i was already on pixel experience when i did it.

Could fastboot fetch userdata localfile.bin work for this?
(I'm guessing at the partition name from /dev/block/bootdevice/by-name (requires root))
EDIT: Well... tried it... got :
fastboot: error: Unable to get max-fetch-size. Device does not support fetch command.
I guess I need someone smarter than me to figure how to get past that.

The issue with a full backup is "scoped storage", which was introduced a long time ago but is more enforced under Android 12. What this means is that any app can only access its own private data, as well as certain portions of system data and the common storage. Getting around this restriction requires root.
So, the short answer is, it's not possible to perform a full backup of everything on your device without root. That being said, syncing your Google account does a pretty good job of backing most things up - your installed apps, your photos, your texts and phone calls.

Related

How can i transfer my data/settings from i9000 to an i9000T

Hi there
I'm switching mobile providers
I currently have an i9000
the new provider will give me an i9000T
What steps do I need to take to backup my phone as completely as possible.
My contacts are only stored on my google account so thats done
But what about settings / config,
I have a 2GB sd card and my internal memory has only used about 200mb I believe
I have the "backup my phone" option enabled in the settings though I'm not sure what that does
fatjoez said:
Hi there
I'm switching mobile providers
I currently have an i9000
the new provider will give me an i9000T
What steps do I need to take to backup my phone as completely as possible.
My contacts are only stored on my google account so thats done
But what about settings / config,
I have a 2GB sd card and my internal memory has only used about 200mb I believe
I have the "backup my phone" option enabled in the settings though I'm not sure what that does
Click to expand...
Click to collapse
personally I use two seperate methods both require root and one requires a modified bootloader clockwork mod.
so the 1st
requires a rooted phone with clockwork mod bootloader installed. simply reboot to recovery mode and in clockwork mod select back up this captures EVERYTHING.
second option I use titanium backup pro (from the market)
brilliant software I use it in conjunction with the titanium media sync to auto sync with my dropbox as well to retain a copy in the cloud I have it run nightly settings and new app batch jobs.
how these will fare across two different devices I have absolutely no idea but then I have no idea what the difference between the standard and T models you mention is?
hmm not sure if i wanna root the phone,
I have to return it to avoid paying a cancellation fee
Think I'll just skip the backup process then
But hey actually how can I backup my text messages
fatjoez said:
hmm not sure if i wanna root the phone,
I have to return it to avoid paying a cancellation fee
Think I'll just skip the backup process then
But hey actually how can I backup my text messages
Click to expand...
Click to collapse
super oneclickroot (I use version 1.6.5) will allow you to root and unroot and will delete all traces titanium back up can be used without paying for it but will be massively slower.
if you dont want to root I am guessing you'd feel even more nervous about flashing but falshing a stock rom with an sd format will effectively factory rest your phone before sending it back
hmmm
well to reset the phone before sending it back I was just going to go to the Privacy setting and doing the factory reset
Or is that not enough?
Furthermore when I get the new phone and link my google account back, it'll automatically download all the contacts / other available data wont it
fatjoez said:
hmmm
well to reset the phone before sending it back I was just going to go to the Privacy setting and doing the factory reset
Or is that not enough?
Furthermore when I get the new phone and link my google account back, it'll automatically download all the contacts / other available data wont it
Click to expand...
Click to collapse
if your contacts are linked to your gmail then yes it will, there are also free back up solutions that sync to your gmail for things like sms etc
if your phone isnt rooted now which it isnt all your apps will be redownloadable from the market. you would lose their settings things like game progress etc which would would not with titanium.

Helium (formerly Carbon) - Backup/Restore

Hi folks,
I've done a fair bit of searching and although it has been briefly discussed before I can't see any recent mentions about Helium (aka Carbon) from clockworkmod (https://play.google.com/store/apps/details?id=com.koushikdutta.backup&hl=en).
The Google Play store page for the app mentions that the app doesn't work on the Xperia S and Z due to some changes Sony made, however when I first got my Xperia Z (at launch in the UK), I was able to backup app data (and some apks) from my Galaxy S3 and restore them onto the Xperia Z without any issues.
Given there have been a few software updates from Sony since launch, does anyone have any recent experience with Helium, specifically whether it works correctly to backup and restore to the Xperia Z? I couldn't find a suitable thread or forum to try to ask the developer directly what the specific issues were with the Xperia S and Z that led to the warning on the app page.
I had a problem restoring Apps with this app after full factory reset. It always crashed. Tried to restore from SD card and CLOUD. on my galaxy s3 it works fine. The build in sony's backup and restore app is doing great.
neoxkid said:
I had a problem restoring Apps with this app after full factory reset. It always crashed. Tried to restore from SD card and CLOUD. on my galaxy s3 it works fine. The build in sony's backup and restore app is doing great.
Click to expand...
Click to collapse
Thanks for the reply. What does the Sony app actually backup? Does it include some/all apks and the actual app data too (e.g game progress)?
Yes, it includ app+data, even clock alarms
Hi. Why doesn't work the program to NOT ROOT galaxy s2 with android 4.1.2?
It bring me that message
"An error occured while perfoming your app backup. A log of the error has been sent to ClockworkMod. Clock Backup to attempt to backup the remaining apps."
I have do ALL the steps you are describe but the program DOESN'T WORK..... Can you please suggest me something?
Helium kept telling me that I had a backup password which I had never set.
fits79 said:
Hi. Why doesn't work the program to NOT ROOT galaxy s2 with android 4.1.2?
It bring me that message
"An error occured while perfoming your app backup. A log of the error has been sent to ClockworkMod. Clock Backup to attempt to backup the remaining apps."
I have do ALL the steps you are describe but the program DOESN'T WORK..... Can you please suggest me something?
Click to expand...
Click to collapse
Hi, the problem is your rom
No it ISN'T the my rom.
And that is because i try it into to galaxy s2.
01. With Oficial and NOT root 4.0.3 sales code eur
02. With oficial 4.1.2 nordic sales code nee
So........
I decided to unlock and root my phone. So I did some backups with mybackup pro and decided to give a try to helium (because I never managed to restore the data of the apps with mybackup pro, just with root). I did the backup, saved it on the internal storage, copied it on my computer, unlocked my phone, rooted it, installed helium, copied the backup to the internal storage and... when i try to restore the backup from the internal storage it doesn't find it... I am now trying to reinstall it, don't give it su and see if I see the backup... if I don't see it... well.. idk what to say... I do a backup and then I cannot restore it? nice (sarcastic)
Edit: no.. I cannot find the backup
dreamxp said:
Helium kept telling me that I had a backup password which I had never set.
Click to expand...
Click to collapse
yes same problem here, it seems the devs of this app are idiots
I started using this for the first time last week. Now I'm making a new backup and it is asking me to connect my phone to the computer again. do I need this each time I create a backup to my external sd card?
Samribi said:
I decided to unlock and root my phone. So I did some backups with mybackup pro and decided to give a try to helium (because I never managed to restore the data of the apps with mybackup pro, just with root). I did the backup, saved it on the internal storage, copied it on my computer, unlocked my phone, rooted it, installed helium, copied the backup to the internal storage and... when i try to restore the backup from the internal storage it doesn't find it... I am now trying to reinstall it, don't give it su and see if I see the backup... if I don't see it... well.. idk what to say... I do a backup and then I cannot restore it? nice (sarcastic)
Edit: no.. I cannot find the backup
Click to expand...
Click to collapse
I have the same problem... Hi%5... hope somebody will look into this matter ...
---------- Post added at 11:20 AM ---------- Previous post was at 11:03 AM ----------
If you're still interested.. (if u want the app data. i.e : savegames) I found a way.. Just keep those backup files in your computer. And then download the apps you want to restore.. Then make backups of them again.. Then they will have those backup up files in the "Carbon" folder. Then copy the folders inside without the "nomedia" file. It then the app will show the backup & viola... Apps restored...
Sent from my Xperia V using xda app-developers app
fits79 said:
Hi. Why doesn't work the program to NOT ROOT galaxy s2 with android 4.1.2?
It bring me that message
"An error occured while perfoming your app backup. A log of the error has been sent to ClockworkMod. Clock Backup to attempt to backup the remaining apps."
I have do ALL the steps you are describe but the program DOESN'T WORK..... Can you please suggest me something?
Click to expand...
Click to collapse
Same issue for me
Helium works fine for me, only problem is that messages are stored 'the wrong way' in Sony stock-ROM's last time i tried one of those.
Urticant2 said:
Hi, the problem is your rom
Click to expand...
Click to collapse
I had the same problem, just unplug your phone from the usb and it works
mljjlm said:
Helium works fine for me, only problem is that messages are stored 'the wrong way' in Sony stock-ROM's last time i tried one of those.
Click to expand...
Click to collapse
Is there something weird about the way messages are stored in general? Everything else seemed to work - the one thing I can't seem to figure out is how to restore text messages (com.android.providers.telephony.ab) - I've tried to do it as a whole app using the PC interface, tried copying the folder as a replacement via Android File Transfer to the 'carbon' folder, etc.
When I try to restore via helium server, it quickly shows me everything as restored but I don't see the messages. When I try to do it manually (e.g. force copy), I don't see an option under "Restore and Sync" to actually select messaging.
Am I missing something stupid / obvious? The raw data seems to be there (for example, call logs were uploaded just fine, text messages seem to have an issue).
--Dan
bfettd said:
Is there something weird about the way messages are stored in general? Everything else seemed to work - the one thing I can't seem to figure out is how to restore text messages (com.android.providers.telephony.ab) - I've tried to do it as a whole app using the PC interface, tried copying the folder as a replacement via Android File Transfer to the 'carbon' folder, etc.
When I try to restore via helium server, it quickly shows me everything as restored but I don't see the messages. When I try to do it manually (e.g. force copy), I don't see an option under "Restore and Sync" to actually select messaging.
Am I missing something stupid / obvious? The raw data seems to be there (for example, call logs were uploaded just fine, text messages seem to have an issue).
--Dan
Click to expand...
Click to collapse
Hmm.. I just used the SD-card backup, so I don't know about other stuff
mljjlm said:
Hmm.. I just used the SD-card backup, so I don't know about other stuff
Click to expand...
Click to collapse
So I came up with a solution based on what works for others. Why this works when it didn't previously is beyond me, but hopefully someone else can use it if individual parts of their Helium backup don't work properly (in theory it should work for any app / SQL dataset). The whole point of Helium is that we're running non-rooted phones and so Titanium Backup or the like aren't applicable. For reference, I'm running an N4 to OSX 10.7.x
1. Use the Helium Server to create a full backup.
2. Wipe phone or whatever you need to do (I had to do a factory reset for Google since it's an N4 and my proximity sensor is dead).
3. Install the apps you had previously via Play Store (pain in the a**).
4. Run Helium server and upload the backup data.
5. Update apps as needed (should be auto but who knows for individual stuff).
6. Check app data in apps. Texts are obviously easy to see for me. Hopefully everything restored nicely for you here.
***Now for the bit for people who got corrupted restores.
7. Unzip the backup file on your computer, select the .ab files that correspond to the missing / corrupted restores and then zip those into a new file on your computer (for step 9). Keep these files handy in unzipped form as well for step 10.
8. Perform a new Helium backup of those sections onto the internal SD card (yes it will be blank, worry not).
9. (Optional step): Run Helium server and upload that new zip file (with the stuff that didn't make it) alone. Try restore. Unlikely to work but worth a shot.
10. Running Android File Transfer, find the SD card, find the folder 'carbon' and then find the corresponding sub-folders that have the modules that were corrupted. Replace the SD card backups of the broken modules with the good ones from your computer.
11. Run Helium restore again, but only for the sections you want (I swear, for me Messaging didn't show up the first few times but after step 10 it did).
12. Wait, hoepfully it works well. I would reboot after running the restore to a) kill Helium and b) confirm functionality.
FWIW, my telephony.ab was 1.8MB and took SIX hours to restore. Seriously. Yeah yeah, that's a lot of texts but six hours? I've since added "SMS Backup & Restore" to my phone and will probably just use that, map out my phone layout and functionality and just manually replace apps from now on since most data is in the cloud. You lose some stuff, but prima facie it's boat tons easier.
Hopefully that helps someone else who had the same issues.
--Dan
Somehow my phone got soft factory reset (lost all the apps but the files) when i tried to install the apps that I had before it throws a play store error while installing saying it couldnt be installed because of an unkown error "-24" plz helpp
Why are you mocking Koush? Yes the Koush. He made this app. He specifically said in the app description that:
Note: Helium is NOT available to Motorola devices. This is because Motorola phones have a bug that break Android's backup mechanism. Until this is fixed by Motorola, Helium will not work on those Androids. You can download Helium manually here:
http://download.clockworkmod.com/apks/Backup.apk
If you find that Helium *does* work on your Motorola Android, please notify me.
Note: Some Sony devices have issues with Helium. This includes the Xperia S and Xperia Z. Sony has *disabled* backup on these devices completely.
Click to expand...
Click to collapse

Help with saving my app preferences when installing rom

So the title kinda says it all. All my apps are synced to my gmail account, so when I try out a new rom the play store will go ahead and install my previous used apps.
But...i always have to go through and reset each one. All my preferences and stuff get wiped out.
So what are the good folks here at XDA doing to keep their app preferences when after installing a new rom on their Amazon Fire?
Thanks
monkish34 said:
So the title kinda says it all. All my apps are synced to my gmail account, so when I try out a new rom the play store will go ahead and install my previous used apps.
But...i always have to go through and reset each one. All my preferences and stuff get wiped out.
So what are the good folks here at XDA doing to keep their app preferences when after installing a new rom on their Amazon Fire?
Thanks
Click to expand...
Click to collapse
Couple thoughts:
- do not wipe user/data partition when flashing a new custom rom (a user/data partition wipe is required when toggling to/from FireOS)
- try backing up and restoring user/data partition in TWRP or FlashFire
Neither option is perfect; some personal preferences/settings may still need to be redone depending where/how the app stores them. In some cases the new rom may take exception to an existing data partition leaving you with no choice but to wipe and reflash.
There are various apps that claim to backup other apps plus associated data & setting preferences but I find the outcomes and additional effort do not offset the benefits. Androids tethered backup/restore is also an option but you'll need to learn/use adb. Not hard; Google for details.
Thanks for the response Davey. I figured a 3rd party app would probably be the way. But maybe I'll check out adb and learn a bit about it.
The thing is I'm on Fire Nexus, and I wanna go back to CM, and the instructions say to wipe data/partition/etc. So I think I'm gonna have to go a 3rd party or adb way to save my data of my apps.
Thanks for the info!
monkish34 said:
Thanks for the response Davey. I figured a 3rd party app would probably be the way. But maybe I'll check out adb and learn a bit about it.
The thing is I'm on Fire Nexus, and I wanna go back to CM, and the instructions say to wipe data/partition/etc. So I think I'm gonna have to go a 3rd party or adb way to save my data of my apps.
Thanks for the info!
Click to expand...
Click to collapse
I'm pretty sure you can get CM to install/boot from Nexus base with just a system/dalvik/cache wipe. However, unless blessed with an early bootloader that permits booting TWRP there is no way to recovery (short of reloading FireOS) if the device fails to boot. Still - I might be tempted to try this approach once you have your app data saved using adb or a 3rd party tool of your choosing...just in case.
Titanium (paid) has a solid reputation but has not be updated recently and has some difficulty with newer roms (MM/N based). Most others focus on one type of data or a specific feature (eg: cloud storage) vs simply creating a basic, reliable backup of everything that can be easily restored. That's were adb backup/restore comes in. Good luck!

restoring phone settings from Google drive

Tried to install lineage today (which went totally tits up) I'm now trying to restore my apps etc from Google drive done this morning but failing that too. I can't find an option to just restore it. I can see the backup in Google drive but there seems to be no option to get it back. What do I need to do? It's driving me mad
Eggstones said:
Tried to install lineage today (which went totally tits up) I'm now trying to restore my apps etc from Google drive done this morning but failing that too. I can't find an option to just restore it. I can see the backup in Google drive but there seems to be no option to get it back. What do I need to do? It's driving me mad
Click to expand...
Click to collapse
The fact that you can see a backup in Drive doesn't mean that the backup can be used to restore things on a new setup. A backup has to have a restore set token available. To list available restore sets use:
Code:
adb shell bmgr list sets
From my experience it can take a few days before a backup is listed as available.
While I like the ease and convenience of using Google backups, I find that if I'm changing ROMs then it's easy for an existing backup to loose its restore set token. For me, titanium backup is a far more reliable way to restore things.
But if you have had a phone for a while and Google backup has been turned on for quite a while, then moving to a new phone is very easy using Google backup.
Sent from my OnePlus 3T using XDA Labs
I was able to get it more or less back to normal by doing a factory reset.
However I've lost Netflix which is annoying and I go into the bootloader when restarting the phone.
Haven't tried the adb command but might when I come back from a work trip.

Restoring apps and file managers' permissions with Titanium Backup

Hey guys,
I finally have time to set up my Pixel 4 XL. I'm coming from a 2 XL (still on Pie) and backed up/restored my apps with Titanium Backup (which I've always done). Of course, both phones have a working root access.
Now I'm facing a huge problem on Android 10 on my 4 XL: no file manager works. They ask for storage permission at the bottom of the screen but it does nothing when I tap it. I checked in the settings and the permission is granted but the app won't scan my internal storage (it says access is denied).
I also have many apps that don't work and are asking to be reinstalled. Is this normal? What's going on here?? I'm already fed up with Android 10 tbh!
If anyone has had the same problems, please chime in!
Thanks.
Ghisy said:
Hey guys,
I finally have time to set up my Pixel 4 XL. I'm coming from a 2 XL (still on Pie) and backed up/restored my apps with Titanium Backup (which I've always done). Of course, both phones have a working root access.
Now I'm facing a huge problem on Android 10 on my 4 XL: no file maneger works. They ask for storage permission at the bottom of the screen but it does nothing when I tap it. I checked in the settings and the permission is granted but the app won't scan my internal storage (it says access is denied).
I also have many apps that don't work and are asking to be reinstalled. Is this normal? What's going on here?? I'm already fed up with Android 10 tbh!
If anyone has had the same problems, please chime in!
Thanks.
Click to expand...
Click to collapse
I haven't had this problem and still use TiBu all the time. Normally I use Solid Explorer to create a single zip-file of my entire TiBu folder on the source phone. I use Root Explorer, too.
First of all, Google's backup has come a very long way and (IMO) it should always be allowed to completely finish restoring your phone. You didn't mention whether you used this option when you first fired up the P4XL, as the option only comes around one time. If you chose to setup from scratch (not using a very recent Google backup from your P2XL, opting instead to "shortcut" by using TiBu) this could be the issue. Wipe the phone, allow GB to do it's thing restoring not only your backup but also ALL of your Store apps. Everything. I even reboot and try to squeeze out a couple more updates from the Store. Then I extract my TiBu zip-file, re-creating the same TiBu folder I had on the source phone. Once the app has root and recognizes the backup folder, do a selective install for ONLY MISSING APPS (the first option). This way you don't inadvertently overwrite a system app, system settings or carry over something old from a previous OS version. At this time you may also want to de-select any old apps you haven't used or don't plan to use going forward, before you hit the restore button.
A pro-tip would be to backup your source phone launcher config in the cloud or offline before starting (I use Nova stored on GDrive). After GB and TiBu have restored everything, I use the Nova backup to restore all my shortcuts and widgets. This method is consistent and mostly error-free for me... YMMV. Best of luck and enjoy your new phone! :good:
v12xke said:
Best of luck and enjoy your new phone! :good:
Click to expand...
Click to collapse
Yeah, I didn't choose the Google backup when I first turned on the P4XL (I don't have a cloud backup, I turned it off on my 2XL because I don't have much space left on my GDrive). I do back up my Nova home screen on my GDrive though.
I did use the "missing apps" setting in TiBu, as I know restoring system apps between different versions of Android is a big no-no. Several apps would FC after doing that though. I ended up reinstalling these from the Play Store (luckily, they weren't any "critical" apps for me). I exported settings for the ones that had the option from my P2XL and imported these on the P4XL. It was a long process but, in the end, everything seems to work now!
Thanks for your step by step guide, it might come in handy at some point
edit.: deleted

Categories

Resources