I'm wondering if I can use a Nandroid backup to restore KitKat after I flash a Lollipop update in TWRP? I need KK for work apps but wanted to play with LP at home and was just wondering if a person could flip flop back and forth using Nandriod back ups.
Also while reading to research this I saw where people were having issues flashing the LP OTA from KK 4.4.4 via TWRP because of the software was being reported as the wrong version of Android (4.4.3) on the tablet. It appears that this was resolved with the updated version of TWRP so I installed the latest version 2.8.6.0.
So will this work or am I stupid for thinking it would?
thanks,
fasthair
I think just to be safe it would be better to reflash the KK firmware and then restore from the nandroid. I've never tried it, so I could be wrong. I would wait for someone with direct knowledge of the process to chime in so you don't brick.
Obviously you'd need to backup the nandroid data somewhere other than the tablet because it would be wiped when you reflash.
Another option could be using the factory images, assuming you bootloader is already unlocked (probably is if you're rooted/etc). When I upgraded from 4.4.4 to 5.0/5.0.1/5.0.2 I removed the -w flag from the batch file that wipes data. I don't know if you can use factory images to go backwards without wiping. I know you can use the factory images to go back, but not sure if you can do it without wiping.
Again, I'd wait for someone with experience chime in before trying anything if you aren't sure.
You can go back and forth no problem. Just don't mix the system and data partitions. They need to stay together. 4.4 system files with 4.4 data files.
Aerowinder said:
You can go back and forth no problem. Just don't mix the system and data partitions. They need to stay together. 4.4 system files with 4.4 data files.
Click to expand...
Click to collapse
Just so I'm clear on this "don't mix data" part. The Nandroid backup will keep these data partitions separate in the separate backup folders if I'm not mistaken correct?
Thanks to both of you for the help.
fasthair
fasthair said:
Just so I'm clear on this "don't mix data" part. The Nandroid backup will keep these data partitions separate in the separate backup folders if I'm not mistaken correct?
Thanks to both of you for the help.
fasthair
Click to expand...
Click to collapse
Yes it will. I meant that if you restore the system partition (from 4.4 to 5.0 or vice versa) that you need to restore data with it (and boot).
If you were on 5.0, and wanted to go back to 4.4, but only did a restore on the system partition, you will probably bootloop.
system, data, boot all must stay together.
Why not use multirom? Works flawless for me.
Solved
pargas said:
Why not use multirom? Works flawless for me.
Click to expand...
Click to collapse
I hadn't really thought about multirom to be honest.
Thanks everyone for your replies. I flashed LP after backing up my stuff. For whatever reason I couldn't get it to flash in TWRP using the update file Google pushed to my device some time back. Even after installing the latest greatest 2.8.6.0 it still came back with the error about the wrong version (4.4.3 in my case) being on my N7. So a fresh flash of LP with a wipe and I'm good to go.
Must admit I kind of like LP all though I'm not crazy about all of the white ever where or how it a takes 3 or 4 clicks to do what was 1 or 2 clicks on KK. Plus Plus I think KK was much better to look at instead of this Material Design UI but it is what it is. Going to have to go hunting around here for a transparent theme for the Google Search so I can have my transparent search bar and app drawer back. Anyone know of one?
Anyway thanks for the help everyone,
fasthair
Related
Hey guys,
I have kind of a serious issue right now. I used Touch Recovery 5.8.0.2 and made a full backup today of my whole ROM (2.5GB) before trying out some mods which eventually didn't work. So I decided to wipe and restore the backup I made. No matter what I do I cannot get it to restore my data partition properly. I keep getting "Error while restoring /data!" message, however it does the boot image and system fine but doesn't continue to cache and sd-ext because of the failed data. Whenever I boot it up, some of my apps are missing from the home screen and practically all of them are not working when I launch them (force close). I also get boot up error of Google+ force close, among a bunch of other issues. This is happening even when I try to restore an older backup as well. My device is not working state right now and although I can just restore the stock images to get it working again, it is urgent that I restore my data ASAP! I tried wiping several times and even using the non-touch 5.5.0.4 recovery to restore and same thing keeps happening.
Any help would be highly appreciated!
Please don't tell me my backup is corrupt
Update 1: Eventually I gave up and started from scratch but I have confirmed already this happened on a fresh backup as well, at this time we are trying to figure out what is causing this so I can go back to safely backing up and restoring backups.
Update 2: We have test builds of TWRP Recovery that may have resolved this issue! We need testers!
Please see this post: Link Here
Update 3: We have test builds of ClockworkMod Recovery 6 that may have resolved this issue as well! We need testers!
Please see this post: Link Here
***Always see last few posts on the thread for updates on what we discovered just in case I don't update the OP***
Unfortunately I also have the same error today!
Please help us out.
JayantSparda said:
Unfortunately I also have the same error today!
Please help us out.
Click to expand...
Click to collapse
is your phone encrypted?
are you running stock recovery?
are you running a stock Rom?
have you done a factory reset yet?
Hi Spectre85,
My phone did fine yesterday, I was running AOPK Milestone 3 with FAUX123 kernel.
But when I woke up, my phone looked like it's battery was emtpy.
- When I plugged the phone with the charger, I started the phone again.
- Unfortunately my phone keep looping at the Google screen over and over.
So I pulled the battery and put the battery back again in the phone.
- I went to the bootloader and went to CWM recovery.
Deleted Data, Cache and Dalvike cache.
- Tried to retrieve my backup rom, but keep getting this "Error while restoring /data!" message.
I've tried to install other roms as well, but I still keep getting the bootloop at the Google screen.
Have you guys have any advice for me?
spectre85 said:
is your phone encrypted?
are you running stock recovery?
are you running a stock Rom?
have you done a factory reset yet?
Click to expand...
Click to collapse
For me, no, no (CWM Touch 5.8.0.2), yes (stock rooted 4.0.4), no but my goal is to restore my data not erase it.
I had this happen to me before, what I did was flash a factory image through fast boot and it was fine after.
Sent from my Galaxy Nexus using xda premium
Thanks guys..I flashed the factory image through Fastboot mode and the phone works perfectly again! Too bad I lost all my data, but I'm happier that I have my phone fully functional again
You can't access your backup right? There's no way you can copy the file to your desktop?
mohitrocks said:
You can't access your backup right? There's no way you can copy the file to your desktop?
Click to expand...
Click to collapse
I did copy it. I have full access to the file. Also, just fyi my goal here is not just to get to working state (I'm aware of the stock images) but to actually recover my data. My phone is currently on stock images completely blank and working now.
Fast boot flash the nand images just like u did the stock ones.
Sent from my Galaxy Nexus
bwcorvus said:
Fast boot flash the nand images just like u did the stock ones.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Nanadroid files can be flashed in fastboot? Are you sure? First time I'm hearing this. Doesn't fastboot need .img files? These are .tar files.
Open it up and see if its image...sorry all my recoveries use images.
Sent from my Galaxy Nexus
bwcorvus said:
Open it up and see if its image...sorry all my recoveries use images.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
I guess it depends on the recovery version you use. I remember older versions actually had .img files. However 5.5.0.4 and Touch 5.8.0.2 both have ext4.tar files.
Which version of recovery do you use?
If you have root, you can restore your data partition using Titanium Backup. Use "Export from Nandroid Backup" within TB, select the nandroid backup and then select all apps that you want to restore
Immix said:
If you have root, you can restore your data partition using Titanium Backup. Use "Export from Nandroid Backup" within TB, select the nandroid backup and then select all apps that you want to restore
Click to expand...
Click to collapse
Interesting...will this include settings as well like my home screen icon/widget layout, wallpaper, etc?
open1your1eyes0 said:
Interesting...will this include settings as well like my home screen icon/widget layout, wallpaper, etc?
Click to expand...
Click to collapse
Yes. Titanium Backup can restore all your system apps as well as downloaded apps from a nandroid backup. Not as clean as a nandroid restore from CWM but essentially the same thing. But try to see if Titanium Backup can extract your nandroid backup. It all depends on what exactly went wrong with your nandroid backup to begin with. I don't think it restores cache. So not sure about wallpaper.
Immix said:
Yes. Titanium Backup can restore all your system apps as well as downloaded apps from a nandroid backup. Not as clean as a nandroid restore from CWM but essentially the same thing. But try to see if Titanium Backup can extract your nandroid backup. It all depends on what exactly went wrong with your nandroid backup to begin with. I don't think it restores cache. So not sure about wallpaper.
Click to expand...
Click to collapse
You're right. This works great for restore data to select apps (got my notes and game saves back). I think the icon layout is held in the launcher settings, I'm about to try and restore the data to the launcher app and see what happens. I'm making a CWM backup of first of my current state (that's assuming this backup will actually work).
EDIT: Yes! That did it! Widgets position weren't saved but it's ok I only had a few so I manually put them back. Thank you! I never knew TB had the ability to work with nandroid backups.
I guess this now just leaves me figuring out what went wrong with the CWM backup. It happened twice (I have two backups from the same day that won't restore). Does anyone else use CWM Touch 5.8.0.2 and have successful backups? I would experiment to see if it works now but I don't want to end up with a corrupt backup and redo everything again.
Yes with me its the same thing my data its corrupt is even worse every time I do a nanobackup and restarted my phone the phone freezes on the boot logo and I have to go back to recovery trying to use my backups but I can't so I have to flash a new from again and start from the beginning again!!!! Anybody here has the same experience with that ???
So AGAIN, I'm having the same issue. This time on a recovery 5.5.0.4 that used to work for me when I originally got my phone. I think either my data partition might be too big or something but this really needs to fixed pronto. Anyone know how to contact Koush directly in regards to this matter?
So I'm updating to the latest version of the @Danvdh AOSP GPE ROM, and I want to know / make sure this is the right / best way.
got the latest version of the ROM and flashing w TWRP,
so I made a Nandroid backup, and I backed up all my apps w TiBU (Titanium Backup),
Next I would do a full wipe (system & delvic), flash the new rom, then restore all my apps with TiBU right?
What about the system settings? is there a way to back them up so that I can just "restore" them.
If I make a full backup with TiBU and restore it would it attempt to restore the previous version of the ROM, or would because they are diff versions would it just fail? Or is it something I just have to reset everything. And obviously I have to redo my screens and stuff,
Is there any way to save my settings for gravity box and xposed framework?
and feel free to inform me of anything else I want to make sure to do, no matter how obvious it may seem.
This is my only device so I need to make sure I get it right the first time and as quickly as possible.
Thanks.
MoodSwinger
BTW I posted this in "general" on purpose hoping it would be useful for anyone else updating or clean flashing betw ROMs
For titanium backup, if your mods are in xposed and gravity box, backing up with titanium backup will retain all the settings in those apps, so once you restore them, everything will be back the way you want it. Same thing for the home screens, just back up the launcher app. I personally don't like restoring data on system apps since they tend to go awry, that's why I use a different launcher.
After you do a full wipe and clean install, you can also go back to TWRP and restore only the data from the Nandroid backup. I don't do that because, again, it might cuz unwanted bugs and more annoyance.
I dirty flashed 4.4.3 on top of my 4.4.2 rom since I was too lazy to set everything up again, and so far I haven't seen any bug. You might wanna consider that route.
Sent from my GT-I9505G using XDA Free mobile app
Yo_2T said:
For titanium backup, ...
Click to expand...
Click to collapse
Exactly the info I was looking for thanks so much.
And just to be clear, when you say "dirty" flash, you mean just thru TWRP like you would an update.zip, or Xposed or Gravity Box, correct? just put on SD and flash and go.
Yes. Basically flash it on top of the existing software. It's usually not recommended as data may be corrupted having been overridden, but 4.4.3 is just a small update over 4.4.2 so I guess it's okay.
Sent from my GT-I9505G using XDA Free mobile app
I am just tired of wiping, trying a new rom, setting it up, finding problems too big to live with and repeating the process. So I used TWRP to put my backed up system back on the phone but when it boots up tons of things are missing. Google apps are all gone, no root. Did I do something wrong? I backed up all the tick boxes when I made my backups, yet so much is missing?
Flash th stock through odin. Then flash twrp and this time restore only data from nandroid.
sasank360 said:
Flash th stock through odin. Then flash twrp and this time restore only data from nandroid.
Click to expand...
Click to collapse
Thanks. I did flash my original firmware just now via odin, but I thought that would resolve my encryption problem. I made a thread about it here, I don't know if you could chime in on that thread if you have any ideas on my new issue? Thanks: http://forum.xda-developers.com/general/help/questions-relating-to-fresh-odin-t3057860
After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!
From reading the dev forums it seems no one else has been able to do so either. Does anyone know what the heck is going on? Is there any toggle (like compression?) that we cant use?
This is a bit of a pain but not the end of the world. Certainly makes me hesitate to mess around with new roms though if I cant go back to my solid daily without having to start from scratch.
khanam said:
After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!
From reading the dev forums it seems no one else has been able to do so either. Does anyone know what the heck is going on? Is there any toggle (like compression?) that we cant use?
This is a bit of a pain but not the end of the world. Certainly makes me hesitate to mess around with new roms though if I cant go back to my solid daily without having to start from scratch.
Click to expand...
Click to collapse
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
Thats true - I did read about that. And that would definitely explain being unable to restore a kitkat rom.
However, I cant even restore a lollipop backup after flashing a different lollipop rom! Even if they are both derived from the same FOB6 base! That is what is even more confusing. Try it - backup, wipe all the partitions except int and ext sd of course and then try to restore... it just doesnt work!
Way I dit it just use factory reset only don't wipe anything specialy internal storage and don't use format. While restoring TWRP formats partition that been restored. I'm using TWRP 2.7.2.0
I've had no problem restoring from a TWRP Backup on Lollipop numerous times.
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
I noticed that in every folder in /data/app/ there is an apk called base and a folder lib, can i backup just the apk? Or when i need to share an apk or take an apk i need to take also rhe lib?
dugryce said:
I've had no problem restoring from a TWRP Backup on Lollipop numerous times.
Click to expand...
Click to collapse
What is your TWRP version? Also, did you do any wipes before you fully restored a backup?
khanam said:
After upgrading to Lollipop FOB6 firmware using full odin and then rooting and installing TWRP, I have never been able to successfully restore a backup, ever!.
Click to expand...
Click to collapse
Does yours ever end up losing touch screen sensitivity when you restore a backup? Mine always looks like it has fully restored everything, but then no response to screen taps.
senozlu1 said:
Way I dit it just use factory reset only don't wipe anything specialy internal storage and don't use format. While restoring TWRP formats partition that been restored. I'm using TWRP 2.7.2.0
Click to expand...
Click to collapse
Oh I'll try this and report back. Thanks
Sent from my SM-N900T using XDA Free mobile app
yummymango said:
What is your TWRP version? Also, did you do any wipes before you fully restored a backup?
Does yours ever end up losing touch screen sensitivity when you restore a backup? Mine always looks like it has fully restored everything, but then no response to screen taps.
Click to expand...
Click to collapse
Mine just fails. But then again I've been wiping the partitions before restoring. Maybe that impacts it?
Sent from my SM-N900T using XDA Free mobile app
khanam said:
Mine just fails. But then again I've been wiping the partitions before restoring. Maybe that impacts it?
Click to expand...
Click to collapse
One of the devs, who runs the Lollipop ROM I've been using, warned against restoring data. He suggested backing up apps + data through Titanium Backup instead. Maybe it depends on the ROM?
najoor said:
I think what is going on is that the directory structure in Lollipop is a little different from the one in Kitkat. To give you an example, the user installed applications in Kitkat are placed under /data/app like this:
/data/app/com.my.application.apk
But in lollipop the same app is installed as:
/dats/app/com.my.application.apk/base.apk
So a backup taken from your data partition in Kitkat cannot be readily restored in Lollipop. The directory structure is just wrong and nothing works. The solution is for someone to ether write a conversion script or for the TWRP people to incorporate such a script in their future releases.
Click to expand...
Click to collapse
Hi
I have a rooted S4 running Carbon. Im using TWRP 2.8.5.0 and can backup and restore any
KK rom with no issues. I can flash Lollipop and backup but it will not restore this backup.
Its says restore successful but then just boots back into recovery. If someone could resolve
this it would be great
Hello all,
TB doesn't seem to pick up the apk file when backing up which is quite frustrating. Does anyone have a solution?
i had backup using TWRP 2.8.7.0 my stock TW lollipop rom...Now i had flashed Dirty Unicorns v9.5...If i wanted to goto stock rom that nandroid backup wont work??? thats what people are complaining over here??
I have searched all over the forum and cannot find a clear answer, so here it goes. If I missed something - point me there
With all the hype around M, I was wondering if I can safely try any of M based modes and then return back to factory?
Currently I have - Rooted Z00A with TWRP 3 and full backup of my current system via TWRP.
Will I be able to wipe, try CM13, then restore back to factory to make SIM1 work and restore from backup to get to the state prior to the CM13?
I am only asking because I have a ton of apps and information saved on the phone at the moment on the factory ROM and really don't want to reinstall all from scratch if I would choose to go back to stock. (I know first world problems and all).
You should be able to restore to a stock backup that you made in TWRP coming from CM 13, I don't see why you can't but I have not tried it myself so if someone can confirm that would be great.
Sent from my ASUS_Z00A using Tapatalk
I was using this method to switch between RR & stock roms to test my own build. But for "/system" only, early time, i still re-use "/data" of stock for RR Lollipop, but now upgrade M, required wipe data clean, also cache too, if not, bootloop. Then i use Titanium for backup/restore whatever I want. It worked perfectly without any problems.
Sent from my ASUS_Z00A using Tapatalk