0

So, my Nexus 7 (2012) is in a bootloop and I want to backup my data.
Recovery (TWRP 3.2.3) works without a problem but I don't have a USB-OTG to do it and there's not enough space on the internal storage (Nexus 7 doesn't support SD cards) so I did an adb backup.

I couldn't do a "regular" adb -all backup because it asks a confirmation from the tablet and I can't give it from a recovery. What I could do was adb --twrp and it produced an .ab file. This .ab file is different from a standard .ab file since it can't be extracted using tools from an XDA thread, but some nice guy had the same kind of problems and created a solution for it found here.
I ended up with .win file that I renamed to .tar and extracted. So far so good.

The problem with the extracted files is that they didn't preserve original ownership information.
Now if I want to manually repack apps and get them back (like games), things won't work.
I've created a list in the recovery (ls -lR > data_details.list) which has all the permission and ownership information.
What I need now is a script that will go trough the list and change the files ownership.
Is it possible to do this with a bash script or something?
Thx in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.