any way to backup SM-T290 before rooting/magisk? - Samsung Galaxy Tab A series Questions & Answers

Is there any way to backup the data partition before you root the device? I've got the bootloader unlocked and TWRP installed (3.5.2_9-0).
Every time I've tried, it fails with error 255. I've looked at the recovery.log file and it seems to be failing as soon as it starts creating the tar file. One of the directories it's trying to copy does contain a comma in the name. Unfortunately, I can't rename it, even using the file browser in TWRP.
I'm going to install Magisk, but they say that will wipe the data partition and I've got some game data I'd like to keep, and the app is too old to support the app data backup that is built into android.

Installing Magisk doesn't wipe anything, at least I've never heard of it. The only thing that does wipe (at least on OnePlus) is unlocking the bootloader but you already did that.
You could try alpha backup, it doesn't look like it needs root to backup/restore but I'm not sure.

Related

[Q] NANDroid Experts...

Well, I get to join the ranks of the stupid. Ah well.
The objective: To "Re-build" a nandroid backup.
The cause: I wanted to use the new Netflix app, so I nandroided my Evil D 0.32 DHD ROM, downloaded Virtuous Fusion, went into recovery, and like the instructions said, wiped everything. In my tired state, I even did the SD card. Once done, I began to try to flash the new ROM, but could not find the zip. Cursing like a drunken sailor for forgetting to copy the zip file, I mounted the SD Card and my horror grew as I saw it was blank. Wiped.
Since then: I swapped my card with a spare, flashed a ROM, and began a recovery on the card. I got all 5 nandroids from the card back (at least I think I did)... but...
The issue: Each of the folder I recovered has 6 files inside: .android_secure, boot, cache, data, nandroid, recovery, and system. I rebooted into recovery, and tryto flash one. OFC, since they are no longer zips, it failed.
So I zipped one, and it fails as well. No error message just:
CWM Recovery .0.2.4
--Installing /sdcard/Nand1.zip
Finding Update Package
Opening update package
Installing Update
Installation aborted.
Root with gfree and eng hboot.
Ideas?
Just a quick bump and a status update...
Not sure why I was trying to flash backup when I needed to restore...
Anyways, I used the correct menu, restored a backup...
Good news is that 2 of the 5 backups restored no issue. Of the 3 dead ones, 1 was a stock backup, so I don't care about it. However, one of the other 2 is what I needed. (Meaning, the 2 that restored were old, and of the three ones that would not for MD5 issues, one I needed.)
So the question changes.
The 5 nandroids: 1 was stock, 4 were the same ROM, just taken at different points in time.
The reason 2 of them won't restore is failed MD5, which just means 1 byte (or more) has changed.
From what I know, the 6 files - .android_secure, boot, cache, data, nandroid, recovery, and system - all point to certain parts of the phone.
.android_secure - has to do with market from what I know.
cache - won't kill the phone if this is corrupt, cache will just rebuild.
data - the all important file. Your personal data is stored here. Apps, settings, etc.
nandroid - related to md5 and such? Not needed for apps/data
recovery - recovery image
system - the rom itself.
Now, if I am correct, if I restore a working nandroid, and then just the data from a dead nandroid, as long as the ROM was the same between the 2 of them, I should be golden?
right? And issues with this?
What are you worried about losing? Between Google sync and HTC sense sync you'll get most of the important stuff back.
Sent from my HTC Vision using XDA App
There are many apps which I no longer have a apk for that version (Soundhound? New version has permissions I don't want to give!) that I had there. And my TB backup was on the card as well...
So, anyone know if/how? In short: If I have a damaged nandroid and working nandroid of the same ROM, can I restore the data from the bad one to the good and how?
MordyT said:
So, anyone know if/how? In short: If I have a damaged nandroid and working nandroid of the same ROM, can I restore the data from the bad one to the good and how?
Click to expand...
Click to collapse
If you run an md5 of the data img you want, place that in the md5 file (included in the backup folder) it should restore properly. I've been in the same situation as you and that's what I did to fix it.
Sent from my HTC Glacier using XDA Premium App

Soft-Bricked Nova / No system

Hello,
Today I tried to root my Nova and somehow I managed to delete the system while doing that. I don't know how or when, I did wipe the phone at some point, but left system unchecked. So now it is stuck in an endless boot, I just see the orange "Your phone is unlocked and not safe etc" message, nothing more. I can access TWRP and fastboot, and tried to use the LineageOS 13. But it failed, it told me I need a CAN-model, and mine is "generic_a53". So I figured I'll just put EMUI back on it, but I can't seem to find a working version for my phone. The huawei-website is pretty useless in that regard, they don't offer it. And the HiSuite-recovery just said that my model is not supported anymore.
So.. help? I know I screwed up and should have made a full backup, but I never figured I'd screw this up so spectacularly.
EDIT: Okay, I just clicked on "Backup" in TWRP, out of curiosity, and it said that "System" is 2516mb, but "Data" is 0mb, so maybe that's what's lacking?
Seems you are using the wrong TWRP. Use the one made for lineage. Also, what is your exact model number, you should be able to recover that way. My guess is you wiped data, factory reset, or formatted data. You could try using the backup made by bluesmoothie to restore data. You will have to search around this forum as I can't remember exactly which thread it is in.
fragee said:
Hello,
Today I tried to root my Nova and somehow I managed to delete the system while doing that. I don't know how or when, I did wipe the phone at some point, but left system unchecked. So now it is stuck in an endless boot, I just see the orange "Your phone is unlocked and not safe etc" message, nothing more. I can access TWRP and fastboot, and tried to use the LineageOS 13. But it failed, it told me I need a CAN-model, and mine is "generic_a53". So I figured I'll just put EMUI back on it, but I can't seem to find a working version for my phone. The huawei-website is pretty useless in that regard, they don't offer it. And the HiSuite-recovery just said that my model is not supported anymore.
So.. help? I know I screwed up and should have made a full backup, but I never figured I'd screw this up so spectacularly.
EDIT: Okay, I just clicked on "Backup" in TWRP, out of curiosity, and it said that "System" is 2516mb, but "Data" is 0mb, so maybe that's what's lacking?
Click to expand...
Click to collapse
Just like @wangdaning said, you're using wrong TWRP.
If you wanna flash LOS13, you gotta flash the TWRP mentioned at requirements.
It told you that your model is "generic_a53" because you're using "twrp_huawei_generic_a53.img".
To restore your phone, try to restore the backup made by bluesmoothie.
1) Download the TWRP backup (emui 4.1) made by @bluesmoothie from here: https://www.dropbox.com/sh/qrk0fbpn...ffYdia7raa/TWRP/BACKUPS/FPFDU16930014596?dl=0 . I had to download the files one by one, as I couldn't download the whole folder because dropbox was telling me that it's too big. After you've downloaded all the files from backup, put them in a folder named 1970-03-18--16-40-58_CANC432B100.
2) Download this recovery: https://www.androidfilehost.com/?fid=745425885120713827 , which is made by @Grarak.
3) Make a backup of boot.img so a folder will be created at TWRP > BACKUPS (e.g. FPFDU16A20001907).
4) Place the TWRP backup folder into the folder created at step 3). So, it'll be like this: TWRP > BACKUPS > FPFDU16A20001907 > 1970-03-18--16-40-58_CANC432B100.
5) Restore the backup.
Okay, it was the wrong TWRP, now that I flashed the recommended one, I was able to install LOS13, and now everything is working again. Thank you very much guys!

Update to OxygenOS 9.0.15 - slot B encrypted

I'm on OxygenOS 9.0.14 and tried update to OxygenOS 9.0.15. Unfortunately I have some problem with slot B - which is encrypted (probably my earlier mistake - I changed TWRP with active pin lock or because I restore backup in TWRP, I'm not sure why) . Slot A is ok. When I try to update to OxygenOS 9.0.15, the phone stuck on stock recovery (because slot B is encrypted?). When I change to slot A, phone works again on OxygenOS 9.0.14.
Is there any solution to fix it (decrypt slot B?) without factory reset?
Now I haven't got any pin/pattern/fingerprint lock, my TWRP: 3.3.1-6 Unofficial by mauronofrio.
Miedzio said:
Is there any solution to fix it (decrypt slot B?) without factory reset?
Click to expand...
Click to collapse
Once it's encrypted, the only thing I know of is to format data. There's nothing the matter with doing that--you will need to back up all your personal files first.
Did you install 9.0.15 via the System Update installer? That might be better, and after the installation and successful booting of 9.0.15, be prepared to re-install TWRP via ADB etc.
Yes, I tried to install 9.0.15 via the System Update installer, via TWRP too, but the result was the same. Couple of times I had to re-install TWRP via ADB or restored nandroid backup via TWRP. I think the problem is encrypted slot B.
Summary: I need to format data (factory reset)? I have backup from Titanium Backup, but even that, it take some time to restore (it isn't 1 to 1 backup). So I need more free time to do this and now I have to stay with 9.0.14.
When you flashed 9.0.15 in TWRP did you flash the TWRP installer as well? As in flash OOS to slot a, change slots, then flash OOS AND the TWRP installer zip (not IMG), as the installer zip flashes TWRP to both slots automatically. That should remove any possibility of booting into the stock recovery. Be smart and make a backup of your data onto your computer, another phone, whatever device that's not your 6T. That way, should any encryption issues persist, it's no big deal to go ahead and format data (not factory reset) both slots, and problem should be fixed.
A small hint: i personally COPY everything I want to backup (pictures, music, Magisk modules, ROM zips, etc) to one folder then zip that folder into a single archive, use whatever compression you like, I go with none as the whole point is to just transfer one single large file instead of hundreds or even thousands of individual files and directories... It helps with transfer time.
lordcheeto03 said:
When you flashed 9.0.15 in TWRP did you flash the TWRP installer as well? As in flash OOS to slot a, change slots, then flash OOS AND the TWRP installer zip (not IMG), as the installer zip flashes TWRP to both slots automatically. That should remove any possibility of booting into the stock recovery. Be smart and make a backup of your data onto your computer, another phone, whatever device that's not your 6T. That way, should any encryption issues persist, it's no big deal to go ahead and format data (not factory reset) both slots, and problem should be fixed.
A small hint: i personally COPY everything I want to backup (pictures, music, Magisk modules, ROM zips, etc) to one folder then zip that folder into a single archive, use whatever compression you like, I go with none as the whole point is to just transfer one single large file instead of hundreds or even thousands of individual files and directories... It helps with transfer time.
Click to expand...
Click to collapse
Sorry, I didn't describe it clearly. When I flashed 9.0.15 via System Update, the phone goes to stock recovery - I need to install TWRP via ADB to back to slot A or I must do factory reset.
When I flashed 9.0.15 via TWRP, after that I install TWRP (img and zip). Unfortunately after reboot, 6T always goes to TWRP in slot B, but everything is encrypted. When I back to slot A, phone boots into 9.0.14 (no problem witch encryption).
I have all backup on my computer (all storage + Titanium Backup + TWRP backup). If I will format data, will be enough to just copy all files from computer? I'm not sure it will work. What about settings etc.?
When flashing in TWRP, there is no need to flash both the TWRP img AND the zip. Just do that how I said. Boot to TWRP, flash 9.0.15 on slot a, without rebooting, change to slot b and flash 9.0.15 again along with the TWRP installer zip. At this point, I say reboot back to recovery, whether you are going to flash Magisk or not. If everything is encrypted, go on and format data on both slots and boot, do the initial setup and all, then move your data back and flash root. Otherwise, if you can recognize your files and folders when you reboot to recovery, you can go on and either flash Magisk or boot on into OOS. If it's not just a bunch of random crap, you shouldn't even have to worry about your backup data as everything should be exactly as it was before you started, except you'll be on 9.0.15 instead of .14.
Should you end up having to format after doing what I said, there may be a way to restore all your settings, I'm not sure. Again, me personally, all I save is my titanium backup folder, anything in my download folder, and any other folders and all my Magisk modules. All my pictures and videos I have set to automatically backup to Google photos, but if you don't do that you'll want to include that too. I don't worry about my settings, call logs, messages, all that type stuff, I just go back through set it up fresh. Again, there might be a way to restore all that stuff, but I only keep the most important stuff. As far as the TWRP backup goes, I haven't had any luck restoring my TWRP data so that as well is something I don't bother saving (or even making in the first place.)
If you have to format, once whatever you want saved is backed up to another device, (computer, another phone, thumb drive, whatever) all you have to do is format both slots and reboot. You SHOULD at that point be able to boot into 9.0.15 and perform your initial setup; add Google account, fingerprint/face unlock data, etc. Once you're at the home screen and all the initial setup is complete, then you can move your data back to the device.
The most important thing is to put your data back in whatever directories it was in before the format. The only directories I backup are directories I have added something to, have downloaded to, or that I have created. Directories like Alarms, Android, Movies, any hidden directories (unless I created them and subsequently hid them) all that I just delete.
As long as you put all that back where it was before the format, everything should be just like it was before the format. Your Titanium Backup files, once placed back in internal storage/Titanium Backup will show up in Titanium Backup and you can restore it all through the app. Your pictures, if you backup any, will show up automatically in your gallery once placed back into internal storage/DCIM, etc.
You'll obviously have to reflash Magisk and any modules and relevant setup.
TL;DR
As long as you put your data back into the directories it came from, everything minus your settings will be back to how it was before formatting.

TWRP can't stay, even flashed by installer

Hi guys,
I'm not newbie with flashing but this one I don't understand.
Probably I've done some mistakes with flashing/install/uninstall of roms/magisk/twrp.
Now I'm stuck with TWRP and can't boot into system because of something.
Every time I run TWRP and try to install all my files are encrypted, no matter I install TWRP by .img or .zip. Only working TWRP with decryption is temporary one, by "fastboot boot twrp-3.3.1-6-fajita.img" command. But when I flash it by regular .img file by this tut (https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482), after reboot it's back like 3.3.1-6-fajita version, BUT without decryption skills.
I thing I done some mistakes with uninstalling magisk ect. but I think it doesn't matter.
I tried to uninstall magisk by Magisk-uninstaller-20190204.zip on both slots, I tried install all again in regular way (install temp TWRP through fastboot command, install TWRP through this temp TWRP, install full newest OTA .zip, install TWRP again (I know I shouldn't but I tried both combinations - .zip and .img) and install Magisk and at least system reboot. But when I rebooted between OTA and Magisk (like guide tells) TWRP can't decrypt files. No matter what I've done nothing helped.
What can I do that I have not done yet? Of course, all is about I don't want format my data and re-install all from the scratch...
So... tell me, is possible to make TWRP great again?
Is everything only showing as encrypted when you try to restore a backup? I've been booting the img via fastboot then flashing the zip as it seems you have and it's been working fine as far as it staying installed and not showing all my files as scrambled, I also made the mistake of using Magisk uninstaller at one point, that didn't end well. Seems these A/B phones are temperamental as hell. I read somewhere else that doing backups to USB storage my be more reliable for a backup restoration, not sure if that would effect the encryption issues or not but I may have some time to test that tonight.
I've done that too - not helped. I restored my full nandroid backup by fastboot temp recovery (as I wrote, only this one can decrypt my files) but I've got "You device is corrupt"... and of course TWRP can't decrypt my files.

file corruption.

hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
cwarrow said:
hi, i have a sm-t510 with android 9, and im trying to install twrp but everytime i try i get some kind of wierd file corruption. all my files in sdcar are named with random numbers and letters and there is nothing in it. the tablet boot normaly, but i cant install anything or acces any of my normal file. is there anyway to fix that, or does anyone has a data back up i can use for that version XAC-T510XXU2ASK5. thank you.
Click to expand...
Click to collapse
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
lewmur said:
Didn't read the instructions very carefully, now did you? The very FIRST thing you need to do when booting to TWRP is to FORMAT THE DATA PARTITION. Not wipe, but FORMAT. The data partition is encrypted and TWRP can't read it. That is why everything looks weird. Also, that is why you need to backup any pictures, downloads or anyting else you want to save because formating the partition will erase EVERYTHING and not just system stuff that wiping deletes.
Click to expand...
Click to collapse
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
cwarrow said:
I have been rooting phones and tablet for the past 10 years its the first time it happens. Maybe its something new. Thanks for the info. But i already format the data and evwrything disapeared beside a file named twrp. And i cant reatore the data, cause i didnt have twrp to back them up. So if you have another sugestion, i am all ear
Click to expand...
Click to collapse
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
lewmur said:
My post pointed out that formatting would erase everything and that you should backup prior to doing it. And there are several other methods of backing up data and apps besides TWRP. Yes, it leaves the data partition blank, but flashing a ROM and gapps will put the directories back. Of course, they will still be empty. If you used a Google Account, then that should have at least backed up your apps and some settings. When you setup a new ROM, it should let you restore them.
BTW, yes it was the first time it happened for most of us. Samsung keeps trying to improve "security" and adding encryption, by default, to the data partition is in all of their new tablets and phones.
Click to expand...
Click to collapse
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
cwarrow said:
my point is that i want to keep the stock rom, i was able to install a costum rom no problem after. but it doesnt work with the stock rom
Click to expand...
Click to collapse
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there. You format the data partition in order to flash a custom ROM.
lewmur said:
You can't backup a stock ROM with TWRP because it can't handle the encryption. But you can use TWRP to root a stock ROM. In that case you just ignore the wierd internal data and put what you want to flash only on the external SD. IOW, if your reason for flashing TWRP is to use its backup function on a stock, don't bother, it won't work. But if your intent is to ROOT the stock ROM, then go ahead, but DON'T format data. Just put the files needed to root on the external SD and flash from there.
Click to expand...
Click to collapse
yeah but, i stil have the same problem though, i still cant use my tablette properly. i cant install new games and other app. but anyway i already rooted my stock firmware using magisk. but thanks anyway for the help
its just that i dont like the custom firware we have for it, and the stock firmware is slow af. but ill end up probably falshing a custom firmware anyway. have a good day.

Categories

Resources