ADB restore doesn't restore after editing - Android Q&A, Help & Troubleshooting

I used ADB to backup, ABE to unpack and edited one of the xml file in the extracted tar.
After that, I used 7-zip to pack the data as a tar and used ABE to pack it as .ab again.
However, it restored nothing in the new .ab file. I was able to restore the old .ab file though.
Can anyone tell me how to restore the new .ab file?

Related

Open TWR recovery nandroid backups on windows

Hi there.
My nandroid backup, made with TWR, file extension is .win. How can I open that files on windows?
Already tried unyaffs but it only works with nandroid extension .img.
Regards,
favolas

[Q] Files in a nandroid back up

Ive done a backup on my phone and created a flashable zip (update.zip)
Now im playing around with dsixda's kitchen and trying to extract the system.tar, however it fails most likely due to fact the the system.tar is empty
the files in the archive are as follows
Meta-inf -- <folder>
boot.img -- <8192KB>
image-edify -- <1KB>
system.ext4.tar -- <0KB>
system.ext4.tar.a -- <976,563KB>
system.ext4.tar.b -- <68,151KB>
By the looks of things it has split the system.ext4.tar because its over a gig
How can i compile this into one file or one image so that the kitchen can read it, I'm on a windows 7 PC but i can run linux in a vbox if necessary.
Thanks
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
mikep99 said:
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
Click to expand...
Click to collapse
Already tried, it comes back saying its deleting the part a and part b files and then says the system.ext4.tar isnt a valid archive.
Is it a stock rom?
If so, download the firmware from sammobile and put the tar.md5 file into your input folder (after removing the .md5 suffix).
Thats worked for me in the past....
It is stock, but i have removed the bloatware, installed a few mods, i was hoping to use this particular one really as a base. Ive already played around with fully stock and i kind of broke the whole thing
I'm not too sure then unless theres some tool you can find to merge the 3 tar files into 1...
Never had to do it so I'm unable to suggest anything I'm afraid.

[Q] Need help to repack a .tar file from adb backup on windows

Good evening,
I'd like to apologise first for my english, as it may not be perfect.
I'm trying to backup some app with adb backup (giving me a .ab file), transform the .ab file to a .tar file, extract the .tar file and change some files in it, then repack the .tar file (this is my problem) , then restore it to the phone.
I'm using windows, and my phone is not rooted.
I managed to get the app with adb backup, managed to transform the .ab file into a .tar file, managed to extract the .tar file and change some files in it, but i can't find how to repack the .tar file. This is the main problem, as i think once the .tar file is well repacked, the restoration with adb will be easy. I found some topics about it, but seems that repacking a .tar file is not that easy as I need to get the header from the .ab file and recreate the .tar file with it. All the solutions I found are for linux, and I'm really not quite good with it, so any solution with Windows would be awesome.
Hope anyone can help me,
Thanks

Extract System TWRP Nandroid Backup

Hello. I created a backup of my system files in TWRP but when I want to extract them on PC, 7Zip give me this error: "Cannot open output file" and only extract a few files. I tried renaming the files but doesn't works. I have two files, system.ext4.win000 and system.ext4.win001. EXT4 unpacker does not working. Any way to extract them?

Browse and extract contents of TWRP Nandroid backup on Windows PC?

Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
kwest12 said:
Very simply, how do I browse and extract the contents of a TWRP Nandroid backup on my Windows PC?
I am trying to browse a TWRP backup but I have a feeling I need to do a bit more fussing around. The backup is split into data.ext4.win000 through data.ext4.win007 and each of the parts has an accompanying .md5 with the same naming structure (ie. data.ext4.win000 and data.ext4.win000.md5.) There's also a data.info file as well.
The system backup is the exact same as described above for the data, except it's only 2 parts (system.ext4.win000 and system.ext4.win001, with the accompanying md5 files and the info file.)
Can someone provide a bit of guidance? I'm using a Windows 7 Home Premium machine.
Click to expand...
Click to collapse
Simply rename the file to data.ext4.tar and use winrar to extract it.
I'm revamping this thread because I'm...desperate!
I have a nandroid backup (TWRP 2.8.7.0) and I would like to browse it on my PC. I'm focusing on files with structure data.ext4.win000x (where x goes from 0 to 2).
I'm able to open with 7-zip (should be equivalent to winrar) every individual file but size is faulty: every file is nearly 1.5 Gb while the content of the zipped file that I see it's around 50 kb. If I concatenate the files with the command copy /b data.ext4.win000? outputfile regardless the extension I give to "outputfile" I'm no longer able to open it with 7-zip.
Any suggestion/hint please ????
Not finding entire folders/files while browsing backup
I find the same thing regardless of the mechanism I am using to browse the backup. I am looking in /data/data for my own apps' data. Here is what I have tried so far:
1. Nandroid Manager app
2. TWRP Explorer app
3. ZArchive app
4. In a terminal, cat data.ext4.win??? | tar -tv > less (and then searching for my apps' package names
I was looking inside my nightly full backup to extract and recover some files I accidentally deleted. Cannot even find folders for the package names (except for 1 app). However, when I do a full restore from the same backup inside of TWRP Recovery, the missing files are indeed restored. So I know they are in the backup.
Why can I not find them and get at them any way else? I must be missing something simple.
Thanks
BTW - in the recovery.log file in the backup folder, I see the folders/files in question being "added". Very odd.
BTW2 - at least with regards Nandroid Manager app, I noticed that I was seeing some files I know I had removed from my apps some time ago. How could that be? I decided to clear data/cache for Nandroid manager and try again. It took much longer to process the backup for exploring. But now at least that app seems to be doing the right thing and I can see all folders/files.

Categories

Resources