Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,
* If the MODS feel this thread is redundant please delete it *
Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).
linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
and compile using:
Code:
gcc -o unyaffs unyaffs.c
for windows users:
you can download the attached rar file and extract it...
usage:
1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
3) go to terminal/command prompt, change directory to where those files are and execute:
e.g. for system.img
Code:
unyaffs system.img
the contents of the .img file will be extracted in that directory
there is also an app in the market YaffsExpert with which you can extract the .img files using phone
Inspired from:
guide at EVO 4G forums http://forum.xda-developers.com/showthread.php?t=890508
Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
xlnt
+1 nice post! very useful info for any Android owner, anyone ever backed up with nandroid or xRecovery and felt like they forgot something from one of their earlier backups...? This is what you need
Pretty nice and useful. I actually was tinkering around with these files the other day as I contemplated running either Z's Froyo Beta 4 OR J's GB
Thank you. It is very useful.
Great topic! Thanks
now i don't have to google for this thanx...
How To Repack Files?
Will this check for the md5?
velnens123 said:
How To Repack Files?
Click to expand...
Click to collapse
i didnt follow...
do u want to place/add/remove files to make ur own yaffs img?
mohdameer said:
Will this check for the md5?
Click to expand...
Click to collapse
this will just extract the contents of nandroid/recovery backups...
u can use md5summer or similar progs to check md5 sums..
i searched a tool like this... thank for this HOW TO!
DooMLoRD said:
this will just extract the contents of nandroid/recovery backups...
u can use md5summer or similar progs to check md5 sums..
Click to expand...
Click to collapse
thanks. the reason i asked was that, everytime i try any rom from z, i get md5 error while restoring old backup. after extensive search in this forum and loosing my sms messages, i found a way. using adb shell, then using "busybox md5sum" i was able to generate the correct md5 hashes or whatever its called then restore the xrecovery backups. if i use the md5sum directly from the adb shell then xrecovery gives me mismatch.
may be z can look into this. i beleive the md5 mismatches are caused due to different md5sum command in adb shell and in busybox.
mohdameer said:
thanks. the reason i asked was that, everytime i try any rom from z, i get md5 error while restoring old backup. after extensive search in this forum and loosing my sms messages, i found a way. using adb shell, then using "busybox md5sum" i was able to generate the correct md5 hashes or whatever its called then restore the xrecovery backups. if i use the md5sum directly from the adb shell then xrecovery gives me mismatch.
may be z can look into this. i beleive the md5 mismatches are caused due to different md5sum command in adb shell and in busybox.
Click to expand...
Click to collapse
no need... the problem is with blanks /spaces " " in ur file name/ folder name... check that... if u have renamed the backups (folder name) and have space in it u will get md5 error... spaces in folder names are not supported...
no didnt change a single thing. even the filename which is the default timestamp.
Which version of recovery is that? Sounds maybe messed up. Using latest version helps.. just a thought
mohdameer said:
no didnt change a single thing. even the filename which is the default timestamp.
Click to expand...
Click to collapse
dude thanks a lot.it was useful
MrHassell said:
Which version of recovery is that? Sounds maybe messed up. Using latest version helps.. just a thought
Click to expand...
Click to collapse
i am using the latest one.
mohdameer said:
i am using the latest one.
Click to expand...
Click to collapse
xRecovery v0.3 Recovery
or
FreeXperia Recovery
DooMLoRD said:
xRecovery v0.3 Recovery
or
FreeXperia Recovery
Click to expand...
Click to collapse
xRecovery v0.3 Recovery
i didnt knew there was a different freexperia one.
i downloaded from z xrecovery thread , the unified one.
sorry if i am hijacking this thread in wrong direction. i found the solution as i mentioned earlier.
DooMLoRD said:
Actually this info is already present on other device forums but is unavailable @X10 forum. So I thought I will put it up here,
* If the MODS feel this thread is redundant please delete it *
Nandroid backups files (.img) created via Recovery are yaffs file system images. A tool called Unyaffs can be used to extract the files within these images (data.img / cache.img / system.img).
linux users can d/l the source code from: http://code.google.com/p/unyaffs/downloads/list
and compile using:
Code:
gcc -o unyaffs unyaffs.c
for windows users:
you can download the attached rar file and extract it...
usage:
1) copy the compiled unyaffs file/exe (along with cygwin1.dll) to a new directory
2) copy the nandroid backup image (data.img / cache.img / system.img) into that directory
3) go to terminal/command prompt, change directory to where those files are and execute:
e.g. for system.img
Code:
unyaffs system.img
the contents of the .img file will be extracted in that directory
there is also an app in the market YaffsExpert with which you can extract the .img files using phone
Inspired from:
guide at EVO 4G forums http://forum.xda-developers.com/showthread.php?t=890508
Extracting files from a nandroid backup using unyaffs http://bit.ly/gTLFkc
How to extract the files of Nandroid backup on Windows @ androidforums.com http://bit.ly/fT7udF
Click to expand...
Click to collapse
Thank you very much!
Related
I have included a script in a initd script segment to create a file called efs.autobackup.img
The forum is filled withon how to creating the .img file but i couldnt find about how to restore.Ktool doesnt work on this.
I am asking this in behalf of a fellow xda member.He got a factory efs files in some old Indian firmware, flashed it by using clear phone efs in odin and now he has some generic IMEI.How to extract the files inside the .img file atleast??
Atleast he can use the files to change his IMEI using nv_data.bin and nv_data.bin.md5
If it's a raw .img (20MB in size) kTool should work fine.
Just rename the file to "efs.img" and put it to /sdcard (root of the internal storage when mounted to the PC).
Then run a restore via kTool (be sure to use latest version).
HellcatDroid said:
If it's a raw .img (20MB in size) kTool should work fine.
Just rename the file to "efs.img" and put it to /sdcard (root of the internal storage when mounted to the PC).
Then run a restore via kTool (be sure to use latest version).
Click to expand...
Click to collapse
Yes its 20MB size!!Ohk hellcat.Am PMing him.he is a new user and he his too terified
Thank god he had flashed my ROM,The wickedrom v1.1 which had auto efs script.
I will ask him to report here.
One thing he has fake IMEI now.This should work right?
Doing a search uncovers a ton of threads/posts about restoring efs
chetan_mohanty said:
I have included a script in a initd script segment to create a file called efs.autobackup.img
The forum is filled withon how to creating the .img file but i couldnt find about how to restore.Ktool doesnt work on this.
I am asking this in behalf of a fellow xda member.He got a factory efs files in some old Indian firmware, flashed it by using clear phone efs in odin and now he has some generic IMEI.How to extract the files inside the .img file atleast??
Atleast he can use the files to change his IMEI using nv_data.bin and nv_data.bin.md5
Click to expand...
Click to collapse
MistahBungle said:
Doing a search uncovers a ton of threads/posts about restoring efs
Click to expand...
Click to collapse
I have been trying to help him with zillions of links from xda.Nothing has worked.I am not a noob man
I do the homework before posting
chetan_mohanty said:
I have been trying to help him with zillions of links from xda.Nothing has worked.I am not a noob man
I do the homework before posting
Click to expand...
Click to collapse
If the .img is OK and not already of a broken EFS, or the image itself is corrupted (all these things can happen, sadly) then it can surely be restored.
HellcatDroid said:
If the .img is OK and not already of a broken EFS, or the image itself is corrupted (all these things can happen, sadly) then it can surely be restored.
Click to expand...
Click to collapse
He is saying that restoring with efs.img makes his phone go to unknown baseband and IMEI.
I have asked him again to post it in this thread
Is there any way to extract that .img file???
chetan_mohanty said:
Is there any way to extract that .img file???
Click to expand...
Click to collapse
In a shell, type:
Code:
su
mkdir /sdcard/mnt
mount -t ext4 /sdcard/efs.img /sdcard/mnt
Then use your fav. filemanager to go to "mnt" on the internal storage.
If the mount command gives you an error, it's likely the .img is corrupted.
i am using cynogenmod 7 on my sgs2 i backed up my rom via cwm recovery
i need to recover because all of my contacts were wipped and my pc crashed and had to format it so i lost the backup of my all contacts
so now i have this files in my backup folder
1- ".android_secure.vfat.tar " it is 605mb
2- "boot.img" it is 8mb
3- "data.ext4.tar" 887mb
4- "system.ext4.tar" 482mb
and wen i try to restore it shows md5 file missing and i have seen the posts which are there so i also tried it in terminal emulater i used the given commands but it did not work it said not found i tried adb shell it said not found
then at first su
it worked it gave me"#" this sign then again i did adb shell it showed again not found then i did the cd given codes in that also it said not found please help me
ps: i am new to all this so please help and please be as simple as u can
thank you in advance
CWM recovery should work if you have the exact same CWM recovery you used to backup with .
jje
Thanks but i already did that i used the same version of cwm recovery it is showing the missing files error
ralphrss said:
Thanks but i already did that i used the same version of cwm recovery it is showing the missing files error
Click to expand...
Click to collapse
Try creating a blank nandroid.md5 file with notepad and then place the same in the backup folder and then try restoring backup.
hope this helps!
ksantoshh said:
Try creating a blank nandroid.md5 file with notepad and then place the same in the backup folder and then try restoring backup.
hope this helps!
Click to expand...
Click to collapse
how do i do that exactly please give me some pointers and my note pad does not have the option of md5 files if u have it can u make me a copy of blank nandroid or tell me how to make it please and thankyou
Try Copy MD5 to desktop open with notepad delete contents and close and save . jje
JJEgan said:
Try Copy MD5 to desktop open with notepad delete contents and close and save . jje
Click to expand...
Click to collapse
i am missing the md5 file
i only have the four files which are given above which is in the first post
so can you please tell me how to make the new md5 file
ralphrss said:
how do i do that exactly please give me some pointers and my note pad does not have the option of md5 files if u have it can u make me a copy of blank nandroid or tell me how to make it please and thankyou
Click to expand...
Click to collapse
just save as .txt then change the extension to md5 using file explorer or similar.
if you long press on a file in file explorer it should popup with some options. Select rename and change the extension from txt to md5
ozzy lion said:
just save as .txt then change the extension to md5 using file explorer or similar.
if you long press on a file in file explorer it should popup with some options. Select rename and change the extension from txt to md5
Click to expand...
Click to collapse
i will try it will let you know if it worked or not
worked like a charm
For future, you realize your contacts auto sync to gmail.....
Sent from my GT-I9100 using Tapatalk 2
Hi, I've gathered some resources for creating my Touchwiz 4.0 rom but I need to know how to make a flashable zip from a nandroid backup of /system.
How would I do this?
Another question while I'm here.. I get this error when using kitchen: Imgur Link , any suggestions?
DamnTarget said:
Hi, I've gathered some resources for creating my Touchwiz 4.0 rom but I need to know how to make a flashable zip from a nandroid backup of /system.
How would I do this?
Another question while I'm here.. I get this error when using kitchen: Imgur Link , any suggestions?
Click to expand...
Click to collapse
You don't need nandroid backup
Just need /system partition
Connect your device to PC
Go to platform-tools folders where you have installed adb.
Make a folder system in this folder.
Open Command Prompt in that folder and type
Code:
adb pull /system system
It will take some time.
When it's completed. What you have to do is replace the system folder in any ROMs flashable zip and modify it's updater-script to suit your needs
Thanks for taking the time to answer my question!
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
looking for the same
reena0307 said:
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
Click to expand...
Click to collapse
me too looking for the same thing ..how to extract from or decompile .backup file which we get thru recovery.
hi loverboyritesh :: i and you are in same position.. but some advaaanced users are here that we are telling rumors and lies.. dont worry bro.. even i'm trying to get solution.. will tel you after geeing one.. Still no one can tell me hoe to extract .BACKUP file..
same
i am looking for how to reinstall .backup myself so i can have my original rom install.
but i have notice my .backup is 700+mb while custom rom is 200+mb
do you know how to?
reena0307 said:
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
Click to expand...
Click to collapse
same here. dunno how to open and extract the files from a .backup file. hoping you know already
siiingkeeet said:
same here. dunno how to open and extract the files from a .backup file. hoping you know already
Click to expand...
Click to collapse
Nope.. Still i'm having that file but no one knew
reena0307 said:
Nope.. Still i'm having that file but no one knew
Click to expand...
Click to collapse
been searching for 5 days now :<
not a single answer found on google and forums
cant even post a new thread yet. just joined
hope someone will drop by this thread
still no solution?
got same problem here
Got a bootloop issue with an ASUS MeMo Pad 7 HD and I've booted in recovery <3e> to make a backup.
I've got a userdata_YYYYMMDD_HHMMSS.backup. I tried opening it with a bunch of tools like unyaffs, abe (Android backup extractor), going live on the file using linux tools (open as 7zip, zip, rar, tar, tar.gz, gz, bz2 , mount as iso, ext4 and so on....)
Still no luck :-/
Only clue is that the file seems compressed. During the backup under recovery, it told me 3600MB to backup and the file userdata_xxxxxxxx_xxxxxx.backup show only 2.61GB
I did this backup 3 time to ensure there were no corruption during the write process from the pad and did again the same "tests" to open the file...Not better.
If any dev' have any clue of the file format, I'd be glad to help
It doesn't seem to be a valid unix img file. Tried mounting it to no avail. When it's restored by the recovery it also extracts the individual files because i fails on one in my case and stops the entire restore... I tried unzipping it, changed extension to ,jar, .tar, .zip, etc., none of them are recognised...amazing for a standard android feature to find so little info about it
Any solution?
I called Alcatel's technical service today and they told me that you can use the backup file only from the phone. Mine gives me the following error when I try to restore it: Error Magic header
If anyone knows how to unpack the backup file I would be more than grateful.
It's a 512 byte header in front of a "tar.gz"
hexdump -C userdata_xxxxxxxx_yyyyyy.backup | less​showed the magical zip header "1f8b0800 00000000" at offset 0x200
So, skipping 512 bytes, the rest can be gunzip | tar
dd if=userdata_xxxxxxxx_yyyyyy.backup bs=512 skip=1 | gunzip -c | tar xv​
Sir ektoric what d u mean on ur post?
Sorry cant understand it..
Can u please d a step by step procedure? Please...pls...plss
Thanks in advance...
Steps?
@ektoric sir im a noob in this... Can u show a step by step procedure?
@killen00 sorry, I assume you have a linux machine (or have access to one). The command is actually all there is to it.
Code:
dd if=userdata_xxxxxxxx_yyyyyy.backup bs=512 skip=1 | gunzip -c | tar xv
If you don't have a linux machine available, might I suggest one of the many distros of your choice, most of which have LiveCDs which you can run without installing.
script for gunzip method
maybe on xda it is common sense, but for me it was necessary to know, that these stock android recovery extracted files can be restored with nandroid custom recovery, if you simply repack them into tar archive.
i put this two command lines in a dirty shell script (extract + repack as tar).
thanks to ektoric figuring out his gunzip method!
edit: notamamasboy's mount method added (but not tested yet). if script not works come back few days later, download again and check version, maybe it has changed meanwhile.
with this you're able to transfer data of non-rooted phone to (rooted) similar one.
this is useful in case touchscreen is broken, you haven't custom recovery installed, usb-debugging is disabled and connecting usb-otg-mouse doesn't work.
tested on my Archos 50 b Oxygen (Mediatek MT6582).
it works for me, feel free to improve, port to busybox and publish. no support. use at own risk.
edit: bckp2cwm.sh is deprecated it is FOR JELLY BEAN ONLY (no selinux support)
a newer (selinux) version bckp2win.sh for TWRP you can find here:
http://forum.xda-developers.com/showthread.php?t=3775129
How did you go about determining the magic number found at 0x200? My hexdump output does not have that magic number (1f 8b) in any instance. Leads me to believe my backup is not a tar file. Any suggestions then?
@notamamasboy, you are unfortunately correct.
Someone else also mentioned that their
Code:
userdata_xxxxxxxx_yyyyyy.backup
file was not of the same format I tried some "known magic headers", and could not find anything tell-tale. In which case, without some clues, you are back at square one.
ektoric said:
@notamamasboy, you are unfortunately correct.
Someone else also mentioned that their
Code:
userdata_xxxxxxxx_yyyyyy.backup
file was not of the same format I tried some "known magic headers", and could not find anything tell-tale. In which case, without some clues, you are back at square one.
Click to expand...
Click to collapse
Even more peculiarly, two backups were created a .backup and a .backup2, I wonder if combining with cat I can get somewhere...
hello all
I have some problem > When i Move File 2.18.401.2_stock_twrp.zip in sideload to my device
in CMD sending 100% but in sideload my device Tell me
***********************************************************
checking for MD5 file...
Skipping MD5 check: no MD5 file found .
verifying zip signature . . .
E: zip signature verification failed: 1
**********************************************************
and I Try To cancel check MD5 in the options twrp > Fail
I use TWRP v2.6.3.0
and I have in this file zip (2.18.401.2_stock_twrp) 6 files
1- boot.emmc.win
2- boot.emmc.win.md5
3- data.ext3.win
4- data.ext3.win.md5
5- system.ext4.win
6- system.ext4.win.md5
any help please to fix this problem
cid : htc_J15
hboot : 1.72.0000
Any help pls ?
htc one x plus said:
Any help pls ?
Click to expand...
Click to collapse
Sideload only works for rom.zip files, not for backups. you either have to push the backup to the right folder using adb push command or sideload any rom (don't forget to flash the boot.img in fastboot first) and copy the backup to the device as soon as it has finished booting.
reaper90 said:
Sideload only works for rom.zip files, not for backups. you either have to push the backup to the right folder using adb push command or sideload any rom (don't forget to flash the boot.img in fastboot first) and copy the backup to the device as soon as it has finished booting.
Click to expand...
Click to collapse
thanks for replay
But how I can move the file (2.18.401.2_stock_twrp) to TWRP \\ and after restore this (2.18.401.2_stock_twrp)
and step pls me noob
twrp 2.8 has mtp support. you can copy it using windows explorer
crusader727 said:
twrp 2.8 has mtp support. you can copy it using windows explorer
Click to expand...
Click to collapse
I looked in all forums twrp 2.8 for hox plus > all links not working
and here to http://teamw.in/project/twrp2 >> downloading To 99% and stop
and link pls
http://forum.xda-developers.com/showthread.php?t=1995002
http://techerrata.com/browse/twrp2/enrc2b
http://www.plsdontpwn.me/?dir=enrc2b/twrp
or install a custom ROM (e.g. ARHD8) first and then you can copy the unzipped backup to the sdcard.
crusader727 said:
http://forum.xda-developers.com/showthread.php?t=1995002
http://techerrata.com/browse/twrp2/enrc2b
http://www.plsdontpwn.me/?dir=enrc2b/twrp
Click to expand...
Click to collapse
schinge said:
or install a custom ROM (e.g. ARHD8) first and then you can copy the unzipped backup to the sdcard.
Click to expand...
Click to collapse
thanks guys for help
me install custom ROM ARHD8 and me copy ( 2.18.401.2_stock_twrp) to SDcard
and now how can I back to stock I done see restore for 2.18.401.2_stock_twrp ?
Copy your files 1-6 into a subfolder under TWRP/BACKUPS/<serial number of your device> on the sdcard. Then you should find the backup in TWRP.
schinge said:
Copy your files 1-6 into a subfolder under TWRP/BACKUPS/<serial number of your device> on the sdcard. Then you should find the backup in TWRP.
Click to expand...
Click to collapse
sorry bro im noob
I worked the following steps:
sdcard/TWRP/BACKUPS/>> and folder name my serial number << / and copy 6 files in folder my serial number
and after this how can I restore (stock_twrp) ? nothing in restore and backup
Sorry for the inconvenience
You have to create a new folder there - as I wrote it ('subfolder'). Then move the files into this folder.
schinge said:
You have to create a new folder there - as I wrote it ('subfolder'). Then move the files into this folder.
Click to expand...
Click to collapse
good news :laugh:
Big Thanks bro for your Awsome help :good: :good: