[Q] How do I restore a /data/data/ folder? - Nexus 4 Q&A, Help & Troubleshooting

My phone, out of the blue, was getting stuck at the boot animation. Using the Nexus 4 Toolkit, I tried to make a backup, but it only partially worked due to low storage on the internal memory. Winrar is saying the data.ext4.20135150538.tar file is corrupt, but forunately, the data/data/ folder with all my app data was 100% intact and extractable.
I restored my phone with a Nandroid from a few months ago, let all the apps update, and created a Titanium backup, but the app data in that backup is data that's several months old.
Once I wipe and reinstall a ROM, is there a way to "transplant" the app data? I was thinking that maybe root explorer could do it, but it seems that setting the correct file permissions may be an issue?
If it makes a difference, I'm going to be reinstalling the same P.A.C.man rom that I currently have.
Thanks!

Related

[Q] Using backups that I have created...

This is probably a really dumb question but how do I use the backups I've created?
When I flash a ROM that I don't like and I try to restore to an earlier backup I've created it is not working. It either says something about the MD5sum or just aborts in general...
What process do I take in order to restore the phone to an earlier backup?
And better yet, if I install a new ROM and don't want to go through the process of installing all my apps again is there a way to just restore my files from a backup?
You can do an advanced restore and restore only data to get your apps, etc. back. There is also titanium backup that is great for backing up and restoring between roms (the only way to restore apps when using a different rom... restore data from one rom onto another can cause serious issues).
If you're getting MD5 sum errors, the backups are being corrupted. So unless your messing with them on your sdcard, then there may be some bad areas on that sdcard and it might be time for a new one.
danaff37 said:
You can do an advanced restore and restore only data to get your apps, etc. back. There is also titanium backup that is great for backing up and restoring between roms (the only way to restore apps when using a different rom... restore data from one rom onto another can cause serious issues).
If you're getting MD5 sum errors, the backups are being corrupted. So unless your messing with them on your sdcard, then there may be some bad areas on that sdcard and it might be time for a new one.
Click to expand...
Click to collapse
Wait so in order to keep my apps I can go to advanced restore and restore only data but it could cause serious issues? So basically it is possible but risky?
and normally should my restore points flash just like a rom when I go to "Restore"? do I need to wipe everything before I restore?
I did copy and paste them onto my computer so I had them in two places... maybe that corrupted them. Anyways a new, bigger, faster SD card is in the mail so that's kind of a coincidence.
a restore in clockwork is an image restore, so everything in that partition will be wiped anyways.

[Q] Unsuccessful Nandroid Backup Eats Up Memory Space

Hi everyone,
I have a situation here with my Nexus 4. I am running CWM Recovery 6.0.4.3 and AOKP nightly builds. I was using Stock ROM before AOKP. That time, before I upgraded I was trying to make a nandroid backup. I had around 7GB free space before performing the backup. Eventually the backup went wrong, it said "Error while backing up /data". I don't know what to do so I just reboot and re-run the backup process, but it still gave me the same error. I then boot into my phone and realized something... my free memory space has lessened to around 2GB only! I then decided not to make the backup and just flash my ROM to AOKP. I thought this will clear the problem, but it's not.
So, my question is, how to clear this used space? I checked in the nandroid backup folder and found absolutely nothing there, so it must be somewhere else... Any help would be appreciated! Thanks in advance
james.abcde said:
Hi everyone,
I have a situation here with my Nexus 4. I am running CWM Recovery 6.0.4.3 and AOKP nightly builds. I was using Stock ROM before AOKP. That time, before I upgraded I was trying to make a nandroid backup. I had around 7GB free space before performing the backup. Eventually the backup went wrong, it said "Error while backing up /data". I don't know what to do so I just reboot and re-run the backup process, but it still gave me the same error. I then boot into my phone and realized something... my free memory space has lessened to around 2GB only! I then decided not to make the backup and just flash my ROM to AOKP. I thought this will clear the problem, but it's not.
So, my question is, how to clear this used space? I checked in the nandroid backup folder and found absolutely nothing there, so it must be somewhere else... Any help would be appreciated! Thanks in advance
Click to expand...
Click to collapse
Just as you said, it must be somewhere. Check other folders or even the rood of the virtual SD card. If you still don't find anything you may have to factory reset the device and wipe the SD card partition. Before you jump the gun though, make sure (assuming you're using windows as your PC OS, show hidden folders.
Did you check of have a Clockworkmod folder? Each time you create a backup, it creates a new folder with a new time stamp.
Use a file manager to delete the unnecessary or aborted backups. The backup folder should be visible with having to use an app such as Root Explorer.

ADB Backup of Internal Storage?

Hi guys,
due problems with my power button I got an exchange phone from Google.
Now i want to move ALL Data from my old phone to my new phone.
System part should be no problem:
Complete Backup with TWRP on my old phone and restore it on my new phone.
But what is the best way to move the data from my internal storage?
I think, if I simple copy it maybe with windows explorer I get problems with file rights on my new phone?
I tried with "Nexus Root Toolkit", but there I've problems with backing up my Internal Storage (I've installed CM11-M9).
Is there another way to transfer the data from the interal storage to my new phone?
Thanks for your help,
Shadow128
First, in twrp, do not backup and restore the efs partition. If you restore it to your new phone it will permanently Bork it.
I'd simply copy your data to the pc and then restore it from there. You should not have a file rights issue.
Sent from my Nexus 5 using XDA Free mobile app
OK, in twrp I've only the options: Boot, System, Data and Cache.
So I think twrp will not do a backup of the efs-partition?

TWRP write protect issue

I flashed my i9500 with TWRP 2.8.1.0 using Odin and it wrote an undeletable backup onto my internal memory. To get rid of that, I backed up the "BACKUPS" folder and formatted the internal storage only for it now to cause the entire internal storage to be write protected to my android apps. I can copy and delete stuff to it through PC but my apps wont work, those that require to download pics and videos or make backups to the internal storage, web browsers can't download anything to the internal storage yet I now have over 7GB free space.
It's clear TWRP is write protecting the internal storage selectively (first it wrote protected the storage to both the phone and pc, now to the phone only). How should I sort this problem out?
I have also just tried using root explorer to change permissions to the internal storage but it doesn't work. It's failing. Titanium backup shows its own backup folder is unwrittable. It cannot be changed by Root explorer
I just tried fixing permissions in twrp but to no avail. I uninstalled Clean master only to try and re-install it and it won't install now, it gives a failed install error. Kingsoft office continually shows "stopped working" and fails to work completely. All this started with flashing Twrp. I can't view pics in whats app or send them, neither can I edit documents. Any help to rid of this issue will be gladly appreciated.
People please please avoid twrp at all costs!, i have now lost all my data and apps are all failing. I deerly deerly regret why i ever flashed twrp recover in the first place!
I seem to have solved the issue after a very grueling experience.
TWRP has its flaws and it is quite notable here. Here is how I have gotten around the issue:-
Immediately after I installed TWRP I made a system backup of the entire phone as of its state at the time.
I copied it to my pc and tried to delete the backup that TWRP had made. It was completely write protected, nothing could delete it.
I then decided to use TWRP to format my internal storage after backing it up. Then restore the data back which I did successfully.
Little did I know what had happened. TWRP had assigned the internal storage attributes that even Root explorer (paid) could not undo.
The internal storage had become unusable to the system and user apps.
Slowly my apps began to collapse one after the other failing. From frustration I tried to salvage the data the apps held at the time so that I can factory reset and restore but Titanium backup could not access its own folder. That's where all the frustration begun.
I later flashed CWM and accidentally formatted all my data instead of the data partition.. this was now hell.
One last try which was about 5 hours later I returned TWRP recovery, wiped the data partition and got hold of my prior backup with TWRP, restored it and am 9 hrs back from total loss of data. So the internal storage now has its initial attributes prior to the predicament.
Am actually back exactly to where all this mayhem began when I decided to delete the "BACKUPS" folder and there was absolutely nothing else that was wrong, which now I will attempt to delete hoping that I won't experience deja vu.
This is a problem worth reporting to TWRP developers and I don't know how
TWRP recovery Fix Permissions
I couldn't delete back ups from the internal storage at all. I couldn't even copy saved back ups from my pc to my Note 3. I went into TWRP recovery, under Advanced select Fix Permissions
Now I can delete folders in the TWRP main folder with a ES file explorer or on my PC via usb cable.
Never had any problems like this with TWRP on my S4+. For me the backups taken and its folders can be handled just fine, copied, deleted, moved etc. Must be som compatibility issue with your setup.

Did a Nandroid restore. Internal memory path has now changed and can't be written to.

Hey all,
Did a Nandroid backup yesterday of stock 4.4 Touchwiz. Installed CM13, didn't like it, restored back to my backup from the day prior. It boots fine, all my apps are there, but if I open eStrongs File Explorer it opens to /storage/emulated/0 and it's completely empty. I also can't write to that location. This is causing issues for any app that needs to access the internal memory.
I know all my data is still there because if I plug the phone into my PC via USB I can navigate all my folders etc.
Anybody know what's gone wrong?
Side note - but I did the backup with TWRP v 2.7 or 2.8, then upgraded it to v3 at some point prior to the restore.

Categories

Resources