Nandroid Help - G1 Q&A, Help & Troubleshooting

I have successfully used Nandroid to backup my phone. I wanted to know if it was possible to extracts the files and data out of the data.img that Nandroid gives? I read about the unyaffs tool, but was not able to get it working when I gave it data.img. Is this possible with unyaffs or any other method? Thanks.

the only way you might be able to do it is with unyaffs, but i personally have never tried(i am on a new computer and haven't even gotten adb working yet) so i am not gonna be much help. but if you look around for an answer you will find loads of threads about this and all of them end with "you need to use unyaffs"

Related

Nandroid Question

I recently did a nandroid backup and it worked. I then flashed a theme that I thought I liked but didn't so I ended up using the restore nandroid process in recovery mode and it worked. I then changed the name of the first folder inside of the Nandroid folder so I know which ROM it is. I then ended up flashing another theme that I did not like. I tried to do a nandroid restore but this time I get an error says to do "nandroid-mobile.sh restore" or something like that from ADB.
How do I do the restore from ADB? I would use the CMD correct? I tried looking for possible command using CMD but could find nothing. Anyone know why this happened. Why I get this error? I use to get this error all the time on my G1 so I instead would use SwitchRom, but does anyone know if a SwitchRom exists for NexusOne?
PS- dont post across multiple forums

made a big noob mistake, help please!!! :-(

okay heres the problem, i flash roms regularly so i have a few nandroid backups. what i did was rename the backup folders to the name of the roms so i could keep up with them, i just wiped a previous rom and tried to restore a nandroid backup that i renamed and i keep getting restore error. i'm pretty sure its becaused i renamed them, can anyone tell how i can get the orginal folder caption back for the roms i backed up, and to top it off i renamed my stocked 1.5. thanks in advance
winterstormhaku said:
okay heres the problem, i flash roms regularly so i have a few nandroid backups. what i did was rename the backup folders to the name of the roms so i could keep up with them, i just wiped a previous rom and tried to restore a nandroid backup that i renamed and i keep getting restore error. i'm pretty sure its becaused i renamed them, can anyone tell how i can get the orginal folder caption back for the roms i backed up, and to top it off i renamed my stocked 1.5. thanks in advance
Click to expand...
Click to collapse
what is the error? is it run nandroid-mobile.sh from adb?
i tried to restore using the flash rec method. this is what im getting, error : run 'nandroid-mobile.sh restore via adb, problem is i dont know how to through adb i've always used the flash rec method
winterstormhaku said:
i tried to restore using the flash rec method. this is what im getting, error : run 'nandroid-mobile.sh restore via adb, problem is i dont know how to through adb i've always used the flash rec method
Click to expand...
Click to collapse
That usually means you have too many backups on the sd card, move some to your pc and you should be fine..........
Also make sure there are no spaces in the name of the folders, and that your battery isn't too low
-------------------------------------
Sent via the XDA Tapatalk App
It seems the problem was that i added spaces when i renamed the folders. Removed the spaces and problem fixed . Thanx a lot for all the help!

[Q] Create Copy of SGS

I want to create a copy of my phone as it is (not just user data, but everything, firmware and databases too) - so TitaniumBackup is probably not sufficient for what I need.
The idea is to be able to explorw all aspects of the phone on my computer - things such as passwords etc.
I repeat, I do not just want the firmware, but everything from my current phone in its current state.
I have already rooted it, just not sure what I need to do from here? Assume it's something Linuxy or Telnet based? (I am using a Windows Machine, so ideally something I can do on there)
Thanks for your help
i think to access the complete ROM via a PC you would need some sort of linux OS. you can do a nandroid backup via CWM and find a compatible program to let you browse thru the md5 file format but then again im not sure thats possible via windows OS... perhaps you could ask one of the Dev's for advice as im sure not all them create roms, themes, apps using linux based OS's ???
I think I did try to post this in the Dev section, as I felt it was better suited there, but maybe by selecting the 'This is a question' option, it got moved into this forum.
I have a backup using CWM which has produced some IMG files - will take a look in them and see if it's got what i'm looking for it in there.
I thought maybe I would need ADB running, but maybe I don't.
ADB is like having some Chinese woman teaching you German...... totally confusing..... at least it is for me anyway but good luck hope you do what you set out to do
what you want is NAND back up.
Search for rom manager on the market.
You must be rooted for this.
NAND back up is like creating the back-up image of your current cell phone just like you do it for your computer.
it backs up your phone completely.
Do some googling and you will see.
[email protected] said:
what you want is NAND back up.
Search for rom manager on the market.
You must be rooted for this.
NAND back up is like creating the back-up image of your current cell phone just like you do it for your computer.
it backs up your phone completely.
Do some googling and you will see.
Click to expand...
Click to collapse
Rom Manager does not back up your kernel. Use sgs kernel flasher for this task.
Sent from my GT-I9000 using XDA App

[Q] Problems Backing Up EFS info

Hi. I'm new to rooting and flashing ROM's. I have had a Samsung Captivate (Gingerbread) that I haven't been using for quite some time and I thought I might try to update it to KitKat. I have read that it would be important to back up the EFS file so that I can keep my IMEI info. I rooted my phone using the tutorial on these forums and tried to use EFS Pro, but was not able to get past "the device is not perm rooted". Various threads suggested changing adb status, but I could not find that information (though I was able to find the USB debugging selection). I know that the phone is rooted so I looked for an older copy of EFS Pro in case the newer versions had dropped support for the Captivate. I couldn't find one so I looked at other ways to back up the files, but most information was for other (newer) Samsung phones. I could not install Samsung Tools. I really don't want to proceed with installing KitKat before backing up the EFS information. How do I go about doing this? I have tried the search function on the forum for this device and couldn't find what I was looking for (or maybe I didn't understand the information). Any thoughts?
I hope flashing KitKat will be easier than this issue...
Thanks.
Curious D said:
Hi. I'm new to rooting and flashing ROM's. I have had a Samsung Captivate (Gingerbread) that I haven't been using for quite some time and I thought I might try to update it to KitKat. I have read that it would be important to back up the EFS file so that I can keep my IMEI info. I rooted my phone using the tutorial on these forums and tried to use EFS Pro, but was not able to get past "the device is not perm rooted". Various threads suggested changing adb status, but I could not find that information (though I was able to find the USB debugging selection). I know that the phone is rooted so I looked for an older copy of EFS Pro in case the newer versions had dropped support for the Captivate. I couldn't find one so I looked at other ways to back up the files, but most information was for other (newer) Samsung phones. I could not install Samsung Tools. I really don't want to proceed with installing KitKat before backing up the EFS information. How do I go about doing this? I have tried the search function on the forum for this device and couldn't find what I was looking for (or maybe I didn't understand the information). Any thoughts?
I hope flashing KitKat will be easier than this issue...
Thanks.
Click to expand...
Click to collapse
You could just manually backup your efs folder using a root explorer or through adb. Have that backup on your pc in case you lose your IMEI.
That being said, when it happens (which is fairly rare), a flash back to stock (KK4) usually fixes it and then you're fine to update/flash again.
Other EFS backup options would include:
1) EFS☆IMEI☆Backup by wanam >> his xda thread, his playstore listing.
2) [HOWTO]Comprehensive IMEI/EFS Backup lists two simple ways to permanently backup up IMEI on your phone. One is with adb, the other is with Terminal Emulator for those with rooted devices. The commands used are said to be based on "Samsung's built in backup." The thread is in the SGS3 forum, if nothing else is an excellent source of background information for backing up and restoring nvdata.
I tried to copy the efs folder using Root Browser because the adb method looked very involved. When I started Root Browser, it was able to see a Titanium backup that I had placed into the SD card even though I had formatted the SD card. I figured that the format didn't wipe the information so I proceeded to copy the efs folder over. However, after copying the folder, I stuck the card into my computer and did not see the folder and could not copy the folder over to my computer. Is it because the card is formatted differently than my computer or is it that the file is not compatible with Windows given that it is an Android folder?
Will copying the folder be enough for backing up? If it is this easy to restore the efs, why use EFS Pro? Is there something else with the folder that needs to be present in order to restore a phone that loses IMEI information?
Curious D said:
I tried to copy the efs folder using Root Browser because the adb method looked very involved. When I started Root Browser, it was able to see a Titanium backup that I had placed into the SD card even though I had formatted the SD card. I figured that the format didn't wipe the information so I proceeded to copy the efs folder over. However, after copying the folder, I stuck the card into my computer and did not see the folder and could not copy the folder over to my computer. Is it because the card is formatted differently than my computer or is it that the file is not compatible with Windows given that it is an Android folder?
Will copying the folder be enough for backing up? If it is this easy to restore the efs, why use EFS Pro? Is there something else with the folder that needs to be present in order to restore a phone that loses IMEI information?
Click to expand...
Click to collapse
If you have it on your SD card, it should be fine. The idea is to have it on something else than your device's internal memory in case something goes wrong and can't get it there.
As for efs pro, some devices can't manually backup like the Cappy or is not enough. But once again, it doesn't happen very often that you lose your IMEI.
Okay. That's great. I guess I can try my first ROM flashing to KitKat. Thanks.

[Q] Questions regarding compressed recovery img and data on note 4

Hey Everyone,
I am new to XDA forums,(have used it for troubleshooting in the past but just registered today)
I am also new to android and linux, personally i don't use my phone for anything other than calls or games(i mostly do pc's), however my wife does a lot, she has written her own code, does mods, etc...., and we are both stumped. I am asking this on her behalf, due to a terminal illness she has lost the ability to do several things. On April 30th the lollipop update was pushed to her Note 4 (T-mobile US branded) and it wiped out all of her app data as well as her entire SD card. My question is in 2 parts one regarding the TWRP backup for this phone, and another regarding recovering the SD data from this phone(please let me know if i need to break this out into multiple sections of the site).
We have a TWRP backup that was compressed and loaded onto her cloud storage on 4/27/15, and we are unable to figure out how to get TWRP to recognize it without giving an error about the binary code or just not working period. Here is what we have tried(On advice not just from other XDA posts but various android forums as well)
Using TWRP(7zip for unpacking and repacking)
1. Downloaded the TWRP back up into windows
2. Renamed all files of the back up to be .tar, with the exception of boot which was converted to .img
3. Added Meta-Inf file from what was suppose to be stock ROM( she was not running a custom on this phone)
4. Re-archived everything back into Zip and sideloaded.
result : Error in binary code
Using Odin
1. Converted recovery (file only from backup) to md5 using Cygwin
2. Flashed using Odin
Result: Gained back a few programs but no app data or text histories
We have also tried varying versions of this, i.e. converting extra files or renaming extra files and receive the same issue. I am wondering if it is just an issue with the cloud stored compressed backup(or more likely i dont know what im doing)?
Second question comes from above, I was able to recovery all of the data from the SD card(everything was stored here, app data, recovery files, imgs, everything). When recovering the data it split everything up so all the sub peices of each recovery file are spread out is there a way to combine the individual file parts that were recovered from the SD card into functional android files again?
As i mentioned before i have never really dealt with this type of thing before but i want to try and fix this for her as between the 2 issues she has lost 5 years of data.
Thank you so much for your responses.
Hi, what you need to do is put the backup back into the exact same form it was before, an uncompressed, unzipped folder, then put it into the exact directory where TWRP puts backups when it makes them, and then in TWRP choose the option to restore. If you put the backup in the correct directory, TWRP will see it and allow you to choose it to restore it. Basically you just wanna put the backup back where it was before and then restore it in TWRP.
I wasn't sure if you had done this or not. If you have the backup folder with all the contents in their original form, it should work. I've even moved a backup from one phone onto another phone, exact same model of course, and then restored that backup onto the new phone!
I've never converted a backup into another form to be flashed another way, like Odin or as a zip in TWRP. Although I guess it could be possible it seems like it could be pretty messy.
Also if the TWRP backup was for a kit at build it will not restore on the lollipop baseband. You will need to Odin back to the kitkat NK4 build them you should be able to take the data.
Sent from my SM-N910T using XDA Free mobile app
ShrekOpher said:
Also if the TWRP backup was for a kit at build it will not restore on the lollipop baseband. You will need to Odin back to the kitkat NK4 build them you should be able to take the data.
Sent from my SM-N910T using XDA Free mobile app
Click to expand...
Click to collapse
YrrchSebor said:
Hi, what you need to do is put the backup back into the exact same form it was before, an uncompressed, unzipped folder, then put it into the exact directory where TWRP puts backups when it makes them, and then in TWRP choose the option to restore. If you put the backup in the correct directory, TWRP will see it and allow you to choose it to restore it. Basically you just wanna put the backup back where it was before and then restore it in TWRP.
I wasn't sure if you had done this or not. If you have the backup folder with all the contents in their original form, it should work. I've even moved a backup from one phone onto another phone, exact same model of course, and then restored that backup onto the new phone!
I've never converted a backup into another form to be flashed another way, like Odin or as a zip in TWRP. Although I guess it could be possible it seems like it could be pretty messy.
Click to expand...
Click to collapse
Thank you both for the suggestions i will give them a try shortly and i will provide an update on how things go.
Yeah, if you put the backup folder in the right directory, which is either internal or external sdxard/TWRP/BACKUPS/serial #/, you could restore just the data at least and it ought to be mostly ok. You ,might need to clear data in an app here or there if they force close.... or if it's too much then yeah, Odin back to KitKat and restore the desired components of the backup.
YrrchSebor said:
Yeah, if you put the backup folder in the right directory, which is either internal or external sdxard/TWRP/BACKUPS/serial #/, you could restore just the data at least and it ought to be mostly ok. You ,might need to clear data in an app here or there if they force close.... or if it's too much then yeah, Odin back to KitKat and restore the desired components of the backup.
Click to expand...
Click to collapse
Thank you for this, i double checked we had it in the right directory, but it still failed. At first it said something about a missing md5, but i tried again and i was able to get the log for the failure though. (attached below)
Hmm, I looked at the logs trying to make sure you chose to Restore in TWRP and not Install. If so it's possible the backup could have gotten altered or corrupted in the transferring back and forth. If you get it intact as it was, it SHOULD work, but I'm but sure what else to do at the moment. I hope you get it working
Sorry for the delay
Hey Everyone,
Sorry for the delay its been a long week, bad thing after bad thing kept happening. I was able to try your suggestions and i put together some additional information in hope this might help us try and figure it out.
*I must figure out how to recover, texts, contacts, call locks. My default texting app was google messenger.
So I figured I would start with the phone
I am using a Samsung SM-910T on 4.4.4 (build *ANK4) It was pretty Vanilla -> rooted, but running the stock ROM
1. The phone was set to do a full internal backup nightly using the online nandroid backup (by H3r3T1L)
2. Backups were set to be in TWRP backup format and to save to an external SD card, then to compress before being uploaded to google drive
3. Backups were set to delete from SD card after the upload was finished.
What happened
1. When stock 5.0.1 firmware OTA came out i was trying to dismiss the notification but apparently hit "accept" by mistake, causing the system to crash.
2. While restoring the phone, i attempted to download the most recent backup from the google drive and flash the zip to restore my data.
3. This Zip would not install, and i noticed all of the backups uploaded had the same anomally-a few of the files were 0 bytes
4. I downgraded the phone to ANK4 based on the above recommendation but it has made no difference.
5. I still get updated binary error and each time i flash the zip, my OS gets wiped.
6. I have tried instructions to just unzip and flash , to put zips in twrp backup folder, to build new file with meta-inf, etc. and nothing seems to work.
When the SD card got deleted I was able to retrieve some data from the deleted SD card, but don't know where the text messages are located or how to combine them back into a usable format. Or at the very least be able to extract the SMS/MMS history.
I hope this extra information helps. In any way im am desperate to try and fix this for my wife.
I believe you can use Titanium Backup to extract files from a TWRP image. If you can't extract anything from the backup it's either corrupted, in the wrong place, or in the wrong form - that is due to the compression decompression not being compatible (all zip programs are not equal). Best of luck.
BTW, you must restore TWRP files not install them.
Sent from my SM-N910T using XDA Free mobile app

Categories

Resources