TWRP half restore - G2 Q&A, Help & Troubleshooting

So I posted a threat earlier about TWRP not restoring my backups. I thought I'd start a new one since this seems to be a unique issue. I try to resotre any backup in TWRP and it says failed and then I reboot to system anyways and It literally like half restores my rom (PA 4). Ill have all my apps downloaded and all my hangout convos still there, yet none of my system settings are the same and my homescreens are wiped. All my apps are present...yet I have no googled account registered yet. WTF?

Related

Error when restoirn data portion of nandroid backup + causing other problems.

Ok, so I have made a number of nandroid backups and after doing some ROM flashing I decided to restore to one of them. I am using TWRP2.6.0.0 and when I clicked on restore it went through all the normal processors for boot, system and recovery but when it reached the data section it took the usual time to restore data (300 secs or so) but then an error message appeared.OK I thought to myself, this backup must just be corrupt so I tried a previous one but the exact same thing occurred. I decided to reboot anyway and it booted up fine but strangely it seemed like the data had already been restored, Google account was logged in, alarms were set ect, but when I launched an app all the data had been erased. I have tried restoring backups using TWRP 2.5.0.0 and 2.6.0.0, backups both with and without compression and restoring each part indevidualy but still I got the same results. As I had no titanium backup data for most of my apps I used an app called nandroid manager root. This let me access the app data from by nandroid backups and restore them and that worked fine. For a while everything worked fine until I noticed a few of my apps had been uninstalled, exposed installer, too manager, 3d mark and few more, I tried redownloading from the play store but I keep getting "app not installed errors" I have also tried installing the apk and using root apps to install it but I keep getting errors. this makes me think some files must'be restored from the nandroid and are not letting the app be installed. I'm not sure and I'm quite a noob but I am wondering if their's anyway to fix this without factory reseeting and if theirs any way to get future nandroid backups to work. Thank you.

[Q]How are multiple user accounts handled in backups?

My Nexus 10 had two user accounts, mine and my wife's. I was the primary account.
I had a bunch of trouble with the Kit Kat OTA install (see my other thread) so I ended up using WUG's Toolkit to restore root and then did a nandroid backup as well as backing up data/media with the Toolkit. I tried to backup the apps with the Toolkit but it wouldn't work for a bulk or single app backup (would complete immediately and be a 0 kb file). I used Titanium Backup to backup all of the apps in my account.
At no point was I ever given an option to back up files for my wife's user account (I'm the main account, she's got a secondary user account). I tried to log into her account and do a Ti Backup but her account didn't have root. I tried to get root with the toolkit while logged into her account and it wouldn't work and didn't give me the impression that it was supposed to work on the secondary account so I assumed (hoped) that her account was included in the backups I already had.
So after all of this backing up, I flashed stock Kit Kat + Root with the toolkit. Everything is up and running properly but it appears I've got NO backup files for my wife's account (other than the Nandroid (maybe)but I'm not aware of any way to use that without screwing up my clean install of Kit Kat).
So my question is, what is the proper way to backup a device with multiple user accounts so it can be restored after a wipe? Also, if a Nandroid backup is done on a buggy/screwed up firmware upgrade, can the Nandroid still be used to restore the device after the firmware is flashed clean/working properly or will the Nandroid bring back the bugs it had before the wipe/install? If so, the Nandroid backup would include my wife's user account correct? Thanks.
Nobody knows how this works?
Cliff-Notes:
--What is the proper way to backup a device with multiple user accounts so it can be restored after a wipe?
--If a Nandroid backup is done on a buggy/screwed up firmware upgrade, can the Nandroid still be used to restore the device after the firmware is flashed clean/working properly or will the Nandroid bring back the bugs it had before the wipe/install?
--If so, the Nandroid backup would include my wife's user account data correct? Thanks.
I would think a backup made from recovery would copy all data regardless of how many accounts you have and would restore it all just as it was.
Recovery/nandroid backups are account insensitive in that its a low level blanket backup of all data and settings.
Backup of a buggy system will result in buggy restore of system
planet_x69 said:
I would think a backup made from recovery would copy all data regardless of how many accounts you have and would restore it all just as it was.
Recovery/nandroid backups are account insensitive in that its a low level blanket backup of all data and settings.
Backup of a buggy system will result in buggy restore of system
Click to expand...
Click to collapse
Thanks, so if I restore using my Nandroid backup of the buggy system, the end result will be a buggy system again correct?
So the only option to backup multiple accounts on a buggy system and be able to restore it later and not end up with a buggy system would be to make a backup in custom recovery (TWRP or CWM)?
Stinger2300 said:
Thanks, so if I restore using my Nandroid backup of the buggy system, the end result will be a buggy system again correct?
So the only option to backup multiple accounts on a buggy system and be able to restore it later and not end up with a buggy system would be to make a backup in custom recovery (TWRP or CWM)?
Click to expand...
Click to collapse
No recovery (custom or other) can make a clean backup out of a preexisting buggy system.
The important bits you really need is your data, the system will be your apps and kernel etc.
One can usually make a clean backup of the data, flash to stock, reload apps and flash data go about your business as if nothing had happened.
Once the system gets buggy and you have no backups, unless you know exactly what caused the bugs and know what to uninstall or what to install to patch/repair using adb or other, you will need to flash a clean system to restore.
OK, I've got a clean install now, I'm just trying to figure out if I have any way to restore my data from the backups I have. Sounds like my data/media backup from the toolkit may do the trick.
planet_x69 said:
The important bits you really need is your data, the system will be your apps and kernel etc.
One can usually make a clean backup of the data, flash to stock, reload apps and flash data go about your business as if nothing had happened..
Click to expand...
Click to collapse
Regarding this statement, I've done the toolkit "Restore Data/Media" and it didn't bring back the second user account, nor did it restore game saves (Real Racing, TrialX2, etc.) in my account. In Titanium Backup, I have the option to "Restore All Apps With Data" or "Restore All System Data". I did the "all apps with data" option and it brought back my game saves but nothing in the second user account.
Here is the weird part though. Restoring app data from Titanium also restored the "buggy" issues. The home button no longer works, the second user account can't be accessed, the lock screen is gone, etc.
Any idea what app data would cause this?
Is there a fix other than flashing stock and starting over again?
Stinger2300 said:
Regarding this statement, I've done the toolkit "Restore Data/Media" and it didn't bring back the second user account, nor did it restore game saves (Real Racing, TrialX2, etc.) in my account. In Titanium Backup, I have the option to "Restore All Apps With Data" or "Restore All System Data". I did the "all apps with data" option and it brought back my game saves but nothing in the second user account.
Here is the weird part though. Restoring app data from Titanium also restored the "buggy" issues. The home button no longer works, the second user account can't be accessed, the lock screen is gone, etc.
Any idea what app data would cause this?
Is there a fix other than flashing stock and starting over again?
Click to expand...
Click to collapse
Toolkit or Titanium backups are NOT the same as nandroid backups.
The nandroid backup will backup all data regardless of how many accounts you have installed.
Titanium and other OS level tools are not account agnostic. TB though I believe has an account option but shouldnt be used as primary system backup tool. Always use your recovery based backup as your primary data recovery tool.

Titanium Backup: why do I keep getting errors when restoring data?

I've noticed two problems that crop up when I use Titanium Backup to restore my apps/data
1) If I try to restore the missing apps + data, sometimes everything gets restored, and sometimes it gives me "X elements failed", where some apps will not be installed. This happens whether I restore on the same ROM that I backed up on (backup on Cloudy G2, restore on Cloudy G2) , or if I use a different ROM (backup on NDM 5.5, restore on Cloudy G2). I thought I found a work around, where I just install the app from the Play Store first, and THEN I would restore the app data. That worked a few times until....
2) When I tried restoring my app data last night after a fresh KDZ wipe, the apps that I restored data on all couldn't start (Snapchat, Amazon, Wechat, SwiftKey). I would tap them, they would try to open for half a second, then they would close. I tried restarting my phone, but with that, I got "UIDs on your system are inconsistent, you need to wipe your data partition or your device will be unstable". I was stupid, and decided to wipe my data partition so I had to restore all my apps from scratch, but that at least hasn't lead to any problems yet.
Does anyone know what I did wrong, or what I can do to fix this? I know for number 1, some threads mentioned that your Android I.D. changes when you flash a new ROM (that MIGHT explain number 2?), but not a lot of people mention this, and it seems like the majority of people don't have this problem. For number 2, I found this thread, but it was too late already.
If possible, I'd like to find a backup app that avoids ALL of these and just lets me back things up and restore easily. Is there one out there?
tdk0117 said:
I've noticed two problems that crop up when I use Titanium Backup to restore my apps/data
1) If I try to restore the missing apps + data, sometimes everything gets restored, and sometimes it gives me "X elements failed", where some apps will not be installed. This happens whether I restore on the same ROM that I backed up on (backup on Cloudy G2, restore on Cloudy G2) , or if I use a different ROM (backup on NDM 5.5, restore on Cloudy G2). I thought I found a work around, where I just install the app from the Play Store first, and THEN I would restore the app data. That worked a few times until....
2) When I tried restoring my app data last night after a fresh KDZ wipe, the apps that I restored data on all couldn't start (Snapchat, Amazon, Wechat, SwiftKey). I would tap them, they would try to open for half a second, then they would close. I tried restarting my phone, but with that, I got "UIDs on your system are inconsistent, you need to wipe your data partition or your device will be unstable". I was stupid, and decided to wipe my data partition so I had to restore all my apps from scratch, but that at least hasn't lead to any problems yet.
Does anyone know what I did wrong, or what I can do to fix this? I know for number 1, some threads mentioned that your Android I.D. changes when you flash a new ROM (that MIGHT explain number 2?), but not a lot of people mention this, and it seems like the majority of people don't have this problem. For number 2, I found this thread, but it was too late already.
If possible, I'd like to find a backup app that avoids ALL of these and just lets me back things up and restore easily. Is there one out there?
Click to expand...
Click to collapse
is a supersu issue, open supersu than go to is setting and not select "name space mount separation" that is selected by default.
Now titanium can work as intended
Romagnolo1973 said:
is a supersu issue, open supersu than go to is setting and not select "name space mount separation" that is selected by default.
Now titanium can work as intended
Click to expand...
Click to collapse
That will fix both problems that I have?
Try, I was unable to use it untill I change the SuperSu setting and now Titanium is working perfectly, so probably your problem is the same.
Oh I mean, I can use it just fine. It can perform backups. But restoring is a when I get those errors. I'll keep this in mind in case I need to restore to a new ROM, thanks!

Nougat roms instantly auto-deleting texts in Messaging following TWRP restore

I currently have 2 backups in TWRP, the first from a couple weeks ago of a CM14.1 installation, and the 2nd I just made today prior to updating my current AICP nightly build.
A while ago I restored the CM backup and remembered I hadn't backed up my texts from that period, so I download SMS Backup & Restore and go into Messaging just to check that the correct messages were there. Sure enough they were, and at a glance I could tell the contents of the first few conversations were definitely from a couple weeks ago when I had them, but I could only see for a split second because immediately upon opening the messaging app, all conversations flew up the screen and disappeared over the span of about a second as if they were being deleted spontaneously before displaying the "Once you start a new conversation, you'll see it listed here" empty inbox background.
I didn't know why but I didn't care at the time so I left it for another day. Well that day is today, as right after I made my backup before updating the AICP nightly I saw the old one and thought hey I'll try grabbing those old texts again. Same thing happened so I restored back to today's backup and rebooted, went into messaging, and the same exact thing happened, albeit I was able to see that the conversations were indeed from recently, up to earlier today, before they all disappeared.
WTF? I installed a couple other 3rd party messaging apps just to see if the SMS content was still in the database and the stock app was just messing up, but they showed empty inboxes as well. Weird thing is if I restore from the nandroid backup again, I'll reboot and sure as sh*t, there the messages are once again, for a sweet split second before whoosh, they're gone! Does anyone know why it does that? Is this a nougat thing or has anyone experienced this on earlier android versions as well? I don't care about the backup, I just want to archive my old messages, but they nuke themselves as soon as I boot into a restore.
Oh if it helps, it seems upon restoring, the adopted SD card storage is wiped as well, so apps that were previously on the SD card show a dead white link on my home screen. The portable storage section of the card is just fine though (I did the fastboot trick where you split the adopted storage 50/50 between internal and portable storage)
I've noticed the same thing. It is not just you. SMS database doesn't survive TWRP restores on N roms.
I've got another phone that would give endless "Phone has stopped" FC messages upon a TWRP restore when it was first brought up to 7.1. It needed a fix in the roms to get TWRP backups to work right with it. Just a wild guess, but could be something similar at work here.

TWRP Restore Does not Properly Restore...

Hello All!
Before you tell me to search or check threads, I already have. This problem does not have anything to do with forgetting to disable the pins and fingerprints before backing up. My problem has do do with I have already disabled/removed security before backing up my nandroid. I check/select everything that I can to backup and it successfully completes. When I go to restore, everything looks to be properly restored, but alas, there is a problem. When I reboot, it asks me for a password to get into TWRP (apparently "default_password). But when I get in and go to file explorer to find anything, my entire storage is wiped. Like no OS or any files. The only other issue I've had besides this is when restoring a nandroid, it doesn't complete and reboots to a bootloop.
I am on the newest version of TWRP, 3.0.3-0. Any help would be greatly appreciated as I, and anyone who has had to redo the complete phone setup/customization, do not enjoy taking over an hour to get things back up and running. Cruddy thing is I did a Titanium Backup for my apps and settings, but they got wiped.
boostin91tsi01 said:
Hello All!
Before you tell me to search or check threads, I already have. This problem does not have anything to do with forgetting to disable the pins and fingerprints before backing up. My problem has do do with I have already disabled/removed security before backing up my nandroid. I check/select everything that I can to backup and it successfully completes. When I go to restore, everything looks to be properly restored, but alas, there is a problem. When I reboot, it asks me for a password to get into TWRP (apparently "default_password). But when I get in and go to file explorer to find anything, my entire storage is wiped. Like no OS or any files. The only other issue I've had besides this is when restoring a nandroid, it doesn't complete and reboots to a bootloop.
I am on the newest version of TWRP, 3.0.3-0. Any help would be greatly appreciated as I, and anyone who has had to redo the complete phone setup/customization, do not enjoy taking over an hour to get things back up and running. Cruddy thing is I did a Titanium Backup for my apps and settings, but they got wiped.
Click to expand...
Click to collapse
I am genuinely interested in this because I back up on a regular basis after each security update but I have never had to restore. Now it is my understanding that even if security is disable the data is still encrypted. Perhaps I'm wrong about that but if you ever did have a password or pin to log into the phone with have you tried to enter that into TWRP?
Sent from my Nexus 6P using Tapatalk
You only need to back up the defaults... system, data, and boot.
What should I back up in TWRP?
https://twrp.me/faq/whattobackup.html
redduc900 said:
You only need to back up the defaults... system, data, and boot.
What should I back up in TWRP?
https://twrp.me/faq/whattobackup.html
Click to expand...
Click to collapse
I understand the web is full of opinions, but I've read somewhere to backup EFS? I have also read somewhere before that what you said to backup, while is plenty sufficient, if you have space, to backup everything. I followed that and it lead me to an hour plus of restoring back to how it was. I will give it a go, hoping that I never have to use it, but it will work when the situation arises.
I've only ever backed up those three partitions, and never had an issue with restoring backups. You can certainly create a backup of the EFS/IMEI, but keep it stored in a safe place like on your computer or a thumb drive. One thing I should note is when restoring a backup, make sure to also flash the correct vendor.img if necessary.
I usually backup vendor with it but as earlier indicated I don't believe it's completely necessary. As far as EFS is concerned yes I would agree with backing that up however what I do is back it up to a separate backup folder and only write it if something were to ever happen to it otherwise leave it alone. That way you don't take a chance I'm corrupting something in that partition.
Sent from my Nexus 6P using Tapatalk
I've never successfully restored a backup on the Nexus 6P regardless of what version of TWRP I used. Different builds of TWRP give me different problems but none has ever worked. I've completely given up doing nandroid backups on this phone because it's a waste of time and disc space. I never had a similar issue on any other phone that I have ever owned and am not a newbie when it comes to rooting and custom roms. What I always ended up doing after a problem restoring a backup is flash the complete factory image using the flash-all.bat command and start over with everything I want to flash.
jhs39 said:
I've never successfully restored a backup on the Nexus 6P regardless of what version of TWRP I used. Different builds of TWRP give me different problems but none has ever worked. I've completely given up doing nandroid backups on this phone because it's a waste of time and disc space. I never had a similar issue on any other phone that I have ever owned and am not a newbie when it comes to rooting and custom roms. What I always ended up doing after a problem restoring a backup is flash the complete factory image using the flash-all.bat command and start over with everything I want to flash.
Click to expand...
Click to collapse
I have the same problem, so now I've started doing a TiBU and Verizon Messages backup, after all those are completed, transfer and save it to my PC. If I have any problems, I transfer from the PC to phone and it's less headache... kinda sorta.
Restore never worked to the fullest. I tried different versions of TWRP, same problem. Restore starts a red error line in beginning of the restore process an at the end it shows ‘Restore complete’. When I restart, everything looks restored but with bugs like:
-network or sim itself is not shown
-Bluetooth, wifi wont connect
-Quicksetting tiles not responding etc…
The idea of backing up via TWRP is to get every bit RESTORED properly, but it doesn’t work.
I take a full back up before moving to update the firmware version (example MIUI 10), if I do not like the firmware then I want to go back to the previous firmware version (example MIUI 9) and TWRP RESTORE feature never works. I have to again flash the rom and then restore everything via Titanium backup.
I always take a TWRP backup of all the items available:
System
Data
Cache
Cust
Recovery
Boot
EFS
Persist
Still it never restores properly. It’s a mere time waste or the restore option to be removed from TWRP as it never worked across of its versions.
Can anyone explain me in a line, what is Cust, EFS and Persist?
I really appreciate if anyone help me understand where I’m going wrong.

Categories

Resources