Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,770,308 Members 49,761 Now Online
XDA Developers Android and Mobile Development Forum

Roto Backup! UPDATED Dec 5 2010

Tip us?
 
rotohammer
Old
(Last edited by rotohammer; 5th December 2010 at 01:37 PM.)
#1  
rotohammer's Avatar
Senior Member - OP
Thanks Meter 1067
Posts: 1,380
Join Date: Jan 2007
Location: New Jersey
Default Roto Backup! UPDATED Dec 5 2010

I've been trying to recreate a flashable firmware based on the stock TMobile flash dumps and I have complete success.

Heres how to save your current firmware. It will be saved with all apps and settings except for whats on /sdcard.

I recommend reseting to defaults using "Settings->Privacy->Factory data reset" if you want to give these files to someone else to build a flashable rom for you. That will delete all your personal information.

Note: I just backed up a completely setup AT&T Tab, with tons of apps and customizations and restored it to my stock T-Mobile Tab, perfectly! Every app works, home screen is setup perfect, everything!

Effectively this is equivalent to a nandroid backup.

I'll call it "Roto Backup"!
Code:
mkdir backup
cd backup
adb shell  su -c "dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096"
adb shell  su -c "dd if=/dev/block/bml2 of=/sdcard/pit.pit bs=4096"
adb shell  su -c "dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096"
adb shell  su -c "dd if=/dev/block/bml4 of=/sdcard/Sbl.bin bs=4096"
adb shell  su -c "dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096"
adb shell  su -c "dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096"
adb shell  su -c "dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096"
adb shell  su -c "dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096"
adb shell  su -c "dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096"
adb shell  su -c "dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096"
adb shell  su -c "tar -czvf /sdcard/data.tar.gz /data"

adb pull /sdcard/param.lfs .
adb pull /sdcard/zImage .
adb pull /sdcard/factoryfs.rfs .
adb pull /sdcard/dbdata.rfs .
adb pull /sdcard/cache.rfs .
adb pull /sdcard/modem.bin .
adb pull /sdcard/efs.rfs .
adb pull /sdcard/boot.bin .
adb pull /sdcard/Sbl.bin .
adb pull /sdcard/pit.pit .
adb pull /sdcard/data.tar.gz .
Note you will be prompted for superuser permissions on the Tabs LCD on every dd command.

If you don't have the tar command on your tab, install Busybox Installer from the market.

I just paste the above commands into my command shell window and when im done all the files are siting in my current (backup) directory.


Roto Restore:
First flash the data back:
Code:
adb push data.tar.gz /sdcard/data.tar.gz
adb shell su -c "tar -zxvf /sdcard/data.tar.gz"
adb reboot download
Now flash the dumps with Heimdall:
Code:
heimdall flash --kernel zImage --factoryfs factoryfs.rfs --modem modem.bin --cache cache.rfs --dbdata dbdata.rfs --param param.lfs
Of course you could tar the files right n the Tab and flash via Odin if you really want to:
Code:
adb shell
cd /sdcard
tar -cf mybackup.tar cache.rfs dbdata.rfs factoryfs.rfs modem.bin param.lfs zImage
exit
adb pull /sdcard/mybackup.tar .
-Rotohammer
T879 Note on T-Mobile
Do not quote my entire first post in a reply!
The Following 67 Users Say Thank You to rotohammer For This Useful Post: [ Click to Expand ]
 
alias_neo
Old
#2  
alias_neo's Avatar
Senior Member
Thanks Meter 202
Posts: 2,073
Join Date: Jun 2006
Location: Wilmslow
Default Nice

This interesting work, im curious though, what is your ultimate goal?

You want a Tmo firmware dump? to what end?
Storage Ether Widget - Storage Widget for Android phones and tablets.
 
rotohammer
Old
#3  
rotohammer's Avatar
Senior Member - OP
Thanks Meter 1067
Posts: 1,380
Join Date: Jan 2007
Location: New Jersey
Quote:
Originally Posted by alias_neo View Post
This interesting work, im curious though, what is your ultimate goal?

You want a Tmo firmware dump? to what end?
The Tmo dump/restore is a test. I want a solid backup/restore and custom rom creation solution.
-Rotohammer
T879 Note on T-Mobile
Do not quote my entire first post in a reply!
 
alias_neo
Old
#4  
alias_neo's Avatar
Senior Member
Thanks Meter 202
Posts: 2,073
Join Date: Jun 2006
Location: Wilmslow
Fair enough. But is the custom recovery being developed (and progressing nicely) not a solid enough solution?
Storage Ether Widget - Storage Widget for Android phones and tablets.
 
rotohammer
Old
#5  
rotohammer's Avatar
Senior Member - OP
Thanks Meter 1067
Posts: 1,380
Join Date: Jan 2007
Location: New Jersey
I won't know till its functional.
-Rotohammer
T879 Note on T-Mobile
Do not quote my entire first post in a reply!
 
alias_neo
Old
#6  
alias_neo's Avatar
Senior Member
Thanks Meter 202
Posts: 2,073
Join Date: Jun 2006
Location: Wilmslow
Quote:
Originally Posted by rotohammer View Post
I won't know till its functional.
Do you not have other android devices? I know of none where it doesn't function. So there is no reason i wouldn't wait a little longer for this to be ported.
Storage Ether Widget - Storage Widget for Android phones and tablets.
 
rotohammer
Old
#7  
rotohammer's Avatar
Senior Member - OP
Thanks Meter 1067
Posts: 1,380
Join Date: Jan 2007
Location: New Jersey
Quote:
Originally Posted by alias_neo View Post
Do you not have other android devices? I know of none where it doesn't function. So there is no reason i wouldn't wait a little longer for this to be ported.
A nandroid backup of my rom isn't something I can post publicly on the net. Regardless, I need to create full custom roms that can be flashed using Odin and Heimdall.
-Rotohammer
T879 Note on T-Mobile
Do not quote my entire first post in a reply!
 
alias_neo
Old
#8  
alias_neo's Avatar
Senior Member
Thanks Meter 202
Posts: 2,073
Join Date: Jun 2006
Location: Wilmslow
Quote:
Originally Posted by rotohammer View Post
A nandroid backup of my rom isn't something I can post publicly on the net. Regardless, I need to create full custom roms that can be flashed using Odin and Heimdall.
Exactly, you post update.zips and then people use clockwork to flash the full ROM. On device recovery is much better than Odin method and more accessible to noobs that have an aneurism when they see the Odin iterface.

As for dumping your ROM to customise, well, yes, either this way using dd or decrypt the Odin flash files.
Storage Ether Widget - Storage Widget for Android phones and tablets.
 
daniel.weck
Old
#9  
daniel.weck's Avatar
Senior Member
Thanks Meter 75
Posts: 548
Join Date: Nov 2010
Now we're talking:

http://forum.xda-developers.com/showthread.php?t=850995

 
miketaylor00
Old
#10  
Senior Member
Thanks Meter 0
Posts: 1,391
Join Date: Jul 2009
It sounds like this guy is new to android and iz trying to reinvent the wheel

Sent from my SGH-T849 using XDA App
__________________

If I have helped you and you would like to make a donation, click here

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes