nandroidbackup - full NAND backup tool

110 posts
Thanks Meter: 61
By infernix, Senior Member on 8th December 2008, 08:29 AM
Thread Closed Email Thread
This version is outdated, please get the latest version here:


In light of the fastboot flash method I was thinking of a way to be able to keep my current setup as a backup while i experiment with other images. For that I wrote a script that uses adb to dump the data for the boot, recovery, system and data partitions.

When this script is ran, it will dump these images in your current dir.

Boot into recovery mode (home+power) to use.

Requires RC30 v1.2 recovery.img - due to a bug the RC8 v1.2 there is no adb shell. (this script needs adb shell as root + busybox in recovery mode to work).

PLEASE NOTE: I haven't actually flashed the dumps back yet, I will be trying that tomorrow. Brave souls willing to test that do so at their own risk!

Bug reports or own improvements welcome.
8th December 2008, 08:12 PM |#2  
Thanks Meter: 0
infernix, how do i go about running this script from mac terminal?
15th December 2008, 02:56 AM |#3  
Senior Member
Thanks Meter: 701
Pretty interesting stuff.Two questions for you:

1. Where is the restore script...:)
2. Did you try restoring the created backup?

15th December 2008, 08:12 AM |#4  
Junior Member
Thanks Meter: 0
Originally Posted by korndub

infernix, how do i go about running this script from mac terminal?

On MacOS 10.5 I had to compile md5sum from and then modify the script to replace the call for md5sum --check --status with md5sum --check - --status (note the additional - to specify stdin). After that everything seemed to work properly. Haven't tried flashing it back, however.
15th December 2008, 09:31 AM |#5  
Senior Member
Flag Huntington Beach
Thanks Meter: 0
what is nand?

i'm thinking this must be huge because its getting a lot of attention from the big dogs such as JF. from reading, is it like the master software so you can completely wipe the phone then in a sense put everything back on or is that too drastic of a guess?

just curious...

15th December 2008, 02:19 PM |#6  
Junior Member
Thanks Meter: 0

but in all seriousness NAND is just the flash memory upon which all the system software is installed. This script lets you take a full backup copy of all the various partitions and then, in theory, restore them.
15th December 2008, 05:39 PM |#7  
bhang's Avatar
Senior Member
Flag megalopolis
Thanks Meter: 5
very cool
This is a big advancement wish I had this when I pooched my market app trying to move the cache, I got it to d/l 1 app using the sd as my cache but nuthin but force close on a few dozen attempts, I dunno what I did but I couldn't get the onboard caches to work so I had to hard reset and d/l 33 apps from the market before I went to bed and I'm still fixing sh1t, this would have made my restore much easier, was suprised when I got it that there was no type of backup other than syncing with goog.

I can't wait to see who has the biggest balls and will try to flash one back.

Thanks, I bet the OTA RC30s will be rerooted pretty soon at thus rate.
This is a great contribution.

(Hey google, why not get some of these xda guys on the payroll, this is where all the news about the G1 gets made, I don't think I have seen any G1 hack yet that didn't have its roots right here at xda-dev)


Stupid part is I'm so egocentric I think somebody at google/android is gonna read it...duh
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes