Error when restoirn data portion of nandroid backup + causing other problems. - Nexus 4 Q&A, Help & Troubleshooting

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.

Related

Messed up home screen after backup

I apologize if this post isn't very clear, I'm tired and English is not my native language...
I upgraded to Cyanogen's 5.0.7 Test 5 ROM not too long ago from CM 4.2.14.1. Before doing that I backed up my app data wit Backup for root users. I haven't done that before, so I checked multiple boxes, not knowing which one was the correct one. The tutorial I followed then stated I should check the SD-card to make sure only app data was backed-up, and no system data.
So I checked and found only maps from my apps.
So far so good.
However, when I restored the app data, my home screen got messed up. It thinks the fourth screen is the center one (so it goes there when pressing the home button) and all widgets say "Problem loading this widget". Also I can't change anything. I Can't remove or rearrange widgets or shortcuts. If I try to do so, Android crashes (FC on android.process.acore).
I'm pretty sure it is completely my own fault, not a bug in the ROM. When I restored the data I must have corrupted the file in which the home screen data is stored.
So, finally my questions: Is there a way to restore this without doing a wipe (I'm guessing re-flashing without a wipe will still keep the corrupted settings)?
If anyone can tell me which file is responsible for the home screen settings, can I delete it so Android will restore it with a new (empty) one?
Can I replace it with someone else's? Or extract it from a ROM-file?
That are the solutions I came up with. If its easier to just wipe and re-flash, tell me and I will do so. I just hoped there was a way I can prevent having to set up the phone all over again...
Thanks in advance!
Did you nandroid backup? If you did, restore it and backup all your apps using Titanium Backup. Backup for root users has always gave me problems as well. Titanium Backup allows all the same options that you need, but just works better imho.
If you didn't nandroid and can't do that - I'm pretty sure a wipe is your only option. You can try fix_permissions from the terminal, but I don't think it's going to fix your problems.
I did do a nandroid backup, but that was just before I flashed CM 5... I guess restoring a nandroid backup from my CM 4.2.14.1 setup is not a good idea?
Hmm, guess I will be re-flashing this evening Thanks anyway!
EDIT: I will use Titanium from now on... I had heard of it, but the tutorial I followed used Backup for root users...
Restoring a nandroid backup is NOT bad at all. That's what its there for. It doesn't matter if you nandroided a completely different ROM then flashed CM5. Flashing a new ROM doesn't affect the nandroid backup EVER.
You flash a nasty, nasty ROM and are like, "Oh ****!" Just go nandroid.
I usually wipe all data/cache before restoring, but some people don't. Either way, it completely restores your phone to the state it was at before backing up. This includes applications and everything. (App data, system settings, app settings, etc.)
I thought nandroid just restored system files and settings... But if it completely restores my phone, a might just as well wipe and re-flash since it will restore it to the previous ROM.
Thanks for the info, I have learned some more about my phone

titanium wont restore apps after rooting

I have been on stock un-rooted rom until just a few minutes ago. I used the idiots guide, backed up my apps with titanium donated version, and installed damagecontrol 3.1.2 with full nand unclock.
Anyways, installed titanium again on the new rom, updated busybox just to be sure, and went to do a bath restore of all missing apps + data. It shows 31 apps, i start the restore and it cycles through to 100% and then says complete.
well, I go into app drawer and none of those apps are there. I tried to reboot just to make sure, still nothing..
Any ideas of why they wont restore?
Did you reboot after the titanium restore? Some of my data didn't show up until after I rebooted.
Yes I rebooted several times. I even did another wipe with new Rom install just to be sure. Still didn't work. Installed apps manually and tried to restore app data and even that didn't work

Apps restored after wipe

So I have wiped my phone a few times to install/update different roms. I have used titanium backup, however something happened last time and im not sure why. I upgraded from CM6 test 8 to RC3, and when I did and rebooted, after the sync icon was gone I got a message saying all my apps that I installed through the market were restored, and only those. No data was restored though. I wasnt aware this could happen without actually using a program to do it. I didnt install or launch titanium backup after the wipe. (I wiped data and cache before installing the rom).
Can someone point me to what is doing this?

[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!

Categories

Resources