yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] DRockstar:
Figured I'd chime in here from my experience, since I've gone through it with the Epic 4G....

The .rfs files and .lfs files won't restore with redbend... and don't touch bml1 and bml4... that's the boot.bin and sbl.bin... screwing with those can lead to brick...

Current roms for the Epic 4g use update-script or updater-script (different formats, updater-script requires update-binary. The scripts get flashed with clockworkmod... first, system is formatted, then the system files copied over, then permissions given to the files. The kernel is flashed using redbend, along with modem (ours require updater-scripts and a modem_delta file if not using odin).

I browse .rfs system images by first creating a /mnt folder on the sd card. With busybox, use the following command:

Busybox mount /sdcard/factoryfs.rfs /sdcard/mnt
[/card]

I've gotten the factoryfs.rfs from the stock tars...

Maybe this is reinventing the wheel, but maybe it'll help.
[Galaxy Tab  Android Development] maniac3389:
Gotcha. Thanks. So, for restores, do you use redbend_ua or does a simple reversal of the dd command work? (admittedly this is an area where I haven't quite dug into yet)
[Galaxy Tab  Android Development] rotohammer:
You must use redbend_ua, Odin or Heimdall (theres others too). You can't write to these partitions with dd alone, although there is an app that allows you to use dd too.
[Galaxy Tab  Android Development] maniac3389:
Here is a thought, although I may be completely off base:

I noticed that you can access the ADB shell if you boot into stock recovery, perhaps you can mount the SD and dump a few more RFS images?
[Galaxy Tab  Android Development] neuropass:
Can i get some help here? Where should i run the commands? why is it not specified in the tutorial? I mean you guys cannot expect that everyone knows what's in your mind.

This is what i don't like about this place. No support at all.
[Galaxy Tab  Android Development] neuropass:
bump.....?
[Galaxy Tab  Android Development] TheGrammarFreak:
What do you mean where? You can run them from mars for all I care. ;) They're adb commands, so you run them from the pc with your gizmo plugged in. The mkdir stuff you can safely ignore.

Sent from my HTC Legend
[Galaxy Tab  Android Development] cx5:
Hi neuropass

I'm new to all this and is stuck, hence know how you feel.... finally found this useful ADB, Fastboot, and Nandroid for Noobs

[GUIDE]

Hope it can help you kick start well and btw, I think SGT's "download mode" is probably the "fastboot mode" in the G1 GUIDE.
[Galaxy Tab  Android Development] Coolsaber57:
Hey Roto,

I just want to confirm that this will work for a Verizon tab.

I thought that I read that the CDMA modem.bin file will not backup correctly. Does this mean that if I need to flash the entire ROM via Heimdall without a modem.bin, that it will not work?

If I am re-partitioning the device during the flash, will not having the modem.bin scew it up?
[Galaxy Tab  Android Development] futuregerald:
I've been trying to run this all night on my Sprint CDMA tab and it seems like it's all working fine but when it gets to adb pull /sdcard/data.tar.gz . it seems to just sit there, i left it sit for over an hour and a half, is it supposed to take that long? also the backup folder I created was empty =\

edit: What file size should the boot.bin file be?
[Galaxy Tab  Android Development] elijahblake:
Man, I wish i would've found this weeks ago... I'm a Galaxy S "Showcase" user and we have NO STOCK ODIN flash.. I've been trying for so long to make one...

I have all the files you listed except...

I haven't seen this one before:

dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096

what is this one? It's not in the Mesmerize Odin Factory Flash (which is basically the same phone as mine)

we're CDMA, they're both hardware wise the same as the fascinate...
[Galaxy Tab  Android Development] rotohammer:
Unfortunately I only have GSM Tabs. Messing with the partitioning on a vzw tab is risky. When you backup the modem partition you get all FF's, so they obviously store the firmware elsewhere.

Unless someone posts an exact howto on flashing a vzw/sprint firmware, I wouldn't do it. I know a lot of folks have failed and its a hassle to get the Tab booting properly if you fail.
[Galaxy Tab  Android Development] rotohammer:
Double Facepalm
[Galaxy Tab  Android Development] biopsin:
http://www.youtube.com/watch?v=RieL7vHt6AE&sns=em
[Galaxy Tab  Android Development] rangercaptain:
Classic! The picture really helps the image along.
[Galaxy Tab  Android Development] Coolsaber57:
Hmm, I see. Well, thank you for your answer, I actually sent my tab back to Samsung, so we'll see what they say. The modem isn't really that important to me since I just use it as a Wifi tablet, but I'm wondering it it would affect the GPS as well.
[Galaxy Tab  Android Development] rangercaptain:
Many people claim better gps reception when they changed a modem. They may be related. Or those people could be experiencing a placebo effect.
[Galaxy Tab  Android Development] cx5:
Thanks to rotohammer !!!!!!

The backup saved me today !!!!! caught in boot-loop after doing something of my own :o

Finally got "RotoBackup" working after remove root by z4root and reroot by superoneclickv1.5.5, finally got # prompt instead of $ prompt. Thanks koxudaxi for encouragement.
[Galaxy Tab  Android Development] cx5:
Hi rotohammer

First of all of a big thanks for these codes/commands. Great way.

I need to ask/revert performing the factory-reset still contains my gmail accounts. Hence still can't give the rom out to others for privacy.

Any other way to wipe more cleanly? Thanks thanks again.
[Galaxy Tab  Android Development] cx5:
Solutions steps are: -

reboot into download-mode

plug in USB cable

RUN ZADIG.EXE from the folder "Drivers" within the Heimdall folder. This driver is specific for Heimdall under Win-7 for me.

unplug USB cable

replug USB cable

flash should work now.

edit - with above driver, Kies and Odin will not connect anymore, then to reinstall Kies driver, then Heimdall does not connect anymore, then back and forth change driver. So troublesome.
[Galaxy Tab  Android Development] Mikroft:
After running zdiag I choose show all devices and then I choose Samsung Composite. It installs the driver fine afterwards.
[Galaxy Tab  Android Development] rainbow ng:
I just saw your posts and just feel sad to tell u that the fact that your TAB is totally bricked with no luck if u can't notice any sight even when u plug in the charger. So the only exit is bring your TAB to Samsumg for replacement. Just tell them the TAB can't power on when u wake up in the morning and don't comment on any that u have done. Or u can just say after updated through the official, the TAB keep silence. Take it easy, they will never know what u have do as they also can't read the information inside the TAB when it is dead.

At least this is the case for me in Hong Kong. I have replaced three new TAB from Samsung CS. To claim, none of the cases involes the Rotobackup. Next time, if u not familiar with Hemedial, use Odlin, can easily pass through. The procedire to make a Odlin flashable .tar had stated in the first post. Hey man, don't be sad. No risk no Gain. at least I had bricked 3 TAB within 40 days before I share my experience with you.
[Galaxy Tab  Android Development] dhanjel:
Could someone please extract an original nordic (XEE/NEE) rom using this teqnique (a version that is upgradable through Kies).
[Galaxy Tab  Android Development] rainbow ng:
congulation Man!!! :)

NO NEED FOR YOU GO TO SAMSUNG!!!

I repeat: NO NEED ,

You can save the TAB life in your home with a PC,

Just flash the ROTO JMI ROM with Odlin 1.7 .

procedure

start odlin1.7 choose pda => Roto JMI ,

when u see the phone-!-computer , connect it with the computer,

u will see a yellow box on left top corner of the odlin , and then click "START"

wait and everything will fine after 5 minutes.

Once again, congulation for only software bricked!!!!
[Galaxy Tab  Android Development] rainbow ng:
Good news?

down volume+power button

or just let it connect with PC with Odlin opened.
[Galaxy Tab  Android Development] rainbow ng:
search through the forum " Roto JMI pre-rooted firmware v2", download the Roto JMI full.zip, carefully read the instruction there.

The main point is :

click re-partiition

pit choose p1-hidden pit

pda choose the rom file you downloaded,(must extrated by winzip to a file with extension .tar.)

once you see a yellow box inside odin ,press start and everything should fine.

p.s. The yellowbox willshow when u see the phone-!-computer show on the tab.

gsm or cdma,? have different rom

Good Luck

I will beost gracefull if u can save your TAB life!
[Galaxy Tab  Android Development] rainbow ng:
mis-type: beost =be most

Bad News now, the one from samfirmware is no good as missing dbdata.rfs and also have protected bootloader issue. Although Chainfire and Rotohammer had solved the bootloader issue,.Next time, never use the Rom from Samfirmware.com except u can extract it.

Sorry my friend.
[Galaxy Tab  Android Development] rainbow ng:
Hey. claim down, you now need to study the topic from Chainfire about "Don't flash JMxx....the signed bootloader ), to removed the protected bootloader issue first.

Next time use Roto pre-rooted firmware. Rotohammer is so kind that he removed the signed bootloader for us in his custom rom.

Congulation!!!!

but u still have much to do. see you.

Thank You for you to trust me!
[Galaxy Tab  Android Development] hotsync100:
I tried to flash the P1000NUBJM2 on my P1000N and it bricked my Tab!, but thanks to Roto Backup, I could restore back my original rom using Odin 1.7..

My only concern is that odin finished my restore with "Failed"??? every seem to be working well, and I also did a complete titanium restore (system +apps) .. Should I be worried about that Failed Status ? Should I check any on my tab ?

Please give me your advice ..

And again: Thank you very much Roto for your RotoBackup.
[Galaxy Tab  Android Development] Digiguest:
Is there a possibility that you can make an app that will do this instead of us having to type in every single command?

Pretty Please? :D
[Galaxy Tab  Android Development] Mikroft:
Don't need to type. I just cut and pasted. You could always make a batch file.
[Galaxy Tab  Android Development] Digiguest:
I could not cut and paste for 2 reasons....and bear with me becasue I am NEW to Android....

1.) I could not Copy the text....Dolphin HD would not select anything. :confused:

2.) AFAIK There is no terminal on the Tab unless I missed it?
[Galaxy Tab  Android Development] rotohammer:
Lol!

The only time I've seen Odin fail on downloading the kernel is when you have a locked boot loader. See if thats the case, fix that, then try the restore procedure again.
[Galaxy Tab  Android Development] Mikroft:
Mine worked perfectly with Heimdall
[Galaxy Tab  Android Development] rotohammer:
Actually, if you have a locked bootloader, Roto-JME or JMI will install just fine, as they originally came with locked bootloaders.

Have you run Chainfire bootloader fix tool?

In theory, the JME/JMI firmware may keep you from getting 3G connectivity, but thats only because they probably don't contain the APN settings for your carrier. Its a good idea to write down your APN settings before you flash.

There's several directions for you to go in, either try the bootloader fix and continue to flash the last know working firmware (JJ3) if for no other reason to get back your working APN settings.

The other way is to load Roto-JME or JMI and manually set the APN settings for your carrier based on the results of a google search. I'm still running Roto-JMI and I'm quite happy with it.
[Galaxy Tab  Android Development] cx5:
There are apks from the market to let you select your APN, My SGT from HK and lost the APN when travelling to Taipei and installed their APN. Came back to HK and install HK APN apk and solved. Good luck.

If you want to revert to original with primary focus is 3G, i.e. the APN settings, then you don't need the failed kernel. Make another TAR without the kernel and try.
[Galaxy Tab  Android Development] rainbow ng:
Congulation my friend, you get everything! :-)

I just want to say Mr Rotohammer have make many contribution for us!

The Roto Backup is quite amazing if u realize everything about the theory.

He solved the bootloader issue together with Chainfire.

He make modified ROM for Each version released by Samsung and make things much easier for us.

His knowledge in this field assist the TAB owner a must.

I think we should say Thank You to him! ;-)
[Galaxy Tab  Android Development] rainbow ng:
Sound great for your idea! Does u mean running Window OS on the tablet?

maybe try the odlin method , in the first post Rotohammer has point out how to make a odlin flashable rom. I use this to provide stock ROM for people in TAIWAN and HONG KONG. As odlin is more familiar for the user in our country
[Galaxy Tab  Android Development] rotohammer:
Originally, the purpose of developing the RotoBackup was for me to be able to save and repackage a stock ROM and to give developers a way to switch between firmwares. Then I wanted everyone to do it so I could assist in helping folks revert back to stock. I really expected someone to polish the steps into an app, something I don't have time to do.

Some folks are disappointed that I just make hacker tools and not noob friendly apps. I do what I can, when I can, for myself, but publish my work in hopes its useful to someone else. I ask for nothing but a thank you in return.

Now that the Tab is over 6 months old, it is soon to be obsolete. We get to start all over with the next device.
[Galaxy Tab  Android Development] xpgroup:
Roto, as usual... thanks for all your supports in the past! Just curious... what will be the next device you're considering to switch?
[Galaxy Tab  Android Development] akmzero:
Question, if i roto backup another sprint tab, can i use it to revert a different rooted one back to stock?
[Galaxy Tab  Android Development] futuregerald:
You can just download a stock rom that's already been made http://xdaforums.com/showthread.php?p=9753941#post9753941

I just un-compressed the archive and flashed the files using the heimdall gui. make sure you download the stock package or at least the zephyr with NO modem. if you flash the modem you will lose gps forever.
[Galaxy Tab  Android Development] akmzero:
If I flash the no modem one, do I loose my 3g? Thats my only concern with flashing that. Sorry for my ignorance. Not much info on the sprint island :(
[Galaxy Tab  Android Development] futuregerald:
You should flash the stock with no modem file, if you do then you will not lose 3G, it will bring your device back to being new. You can try using Odin but I've had trouble with it in the past which is why I prefer Heimdall gui. if you un-tar it you will should then flash the following files using heimdall gui:

cache.rfs

dbdata.rfs

factoryfs.rfs

param.lfs

zImage

Note that you should put the zImage in the kernel slot AND the recovery slot as well and the other files in their respective boxes. Once you do this your tab will go back to full stock pre-update.

No need to apologize, we all have to start somewhere, even though I've spent the last year hacking my nexus one I was a n00b on the galaxy tab for quite a while and fully bricked one and had to have it replaced by Samsung(free). Good luck; if you have any other questions feel free to ask.

P.S. from what i read the modem in the image was taken from the evo 4G(i think, haven't read the thread in weeks), this modem is supposed to work in 3G but will bork your GPS forever; do not flash the one with the modem, make sure you download the image with no modem.
[Galaxy Tab  Android Development] akmzero:
Well, ive been rooting since the moto droid, but the tab's rooting is hella different than anything ive done before lol.

Thanks for the info!
[Galaxy Tab  Android Development] akmzero:
Just flashed no-modem through odin 1.6 and everything is back to normal! Thanks!
[Galaxy Tab  Android Development] futuregerald:
awesome, glad it all worked out for you; believe me i know what it feels like to brick a tab lol
[Galaxy Tab  Android Development] DarkPal:
Question. When restoring back up with odin or heimdal do i need to use pit file and repartition or should just go for pda and other files w/o pit partition.
[Galaxy Tab  Android Development] delovelady:
I am working on such a utility right now. One value-add that I believe I can achieve, is the backup of application folders from /mnt/sdcard (or /sdcard if that's how you see it).

I currently have list list of directories on /sdcard. I know some of these folders are created by applications, but not sure how to identify which folders are stock (and therefore a backup would be a waste of time, either because of redundancy or because the content is rebuilt by the OS anyway).

So, can someone point me to a list of folders that I definitely *don't* need to back up (in other words, system stuff that holds no user data and no configuration information).. and possibly a list of system folders that I might want to back up?

Edit - Here's the list of directories/folders:

100ANDRO

Android

ApnBackupRestore

Camera

DCIM

FOUND.000

LOST.DIR

Music

NA

Overcome-1.4

SlovoEd

TitaniumBackup

Videos

albumthumbs

audio

backups

bluetooth

cache

clusb

com.keramidas.TitaniumBackup

copilot

covers

data

download

eWallet

glogs

gpstracks

info

log

logs

maps

o

offlinecache

save

skin

speech

tmp

tracking

uiconfig
[Galaxy Tab  Android Development] delovelady:
Going along with my other question about creating a program to do rotobackup: I have noticed quite recently that all the backup files are quite large (e.g. modem.bin is 16MB), and this would probably be because dd is not supplied any "count=" value, so runs until "end of file," which would be defined, I suppose, by the device definition or driver.

How do others determine the *actual* filesize needed, and thereby trim the backup files? Maybe size doesn't matter (she says it doesn't), but I have to wonder what Odin or the TAB will do when flashed with files too large... Empirical evidence (i.e. the Macrosloth method of "try it and see if it works...") doesn't seem to be good enough in this case; what works once may not work when the going gets tough...
[Galaxy Tab  Android Development] delovelady:
Hi, DarkPal.

As I understand it, you only need to repartition in order to flash certain Firmwares, or to get to a uniform configuration status for support reasons (a la the Overcome thread with which we are both so familiar). In general, if you are flashing another version of the same firmware you have, you should not need to flash the Pit. Actually, in this thread, Roto makes a comment about his thinking w.r.t. the hidden partition, and why he has done away with it in his .pit file... but that's pretty high level stuff.

Edit - here you are: http://xdaforums.com/showthread.php?p=9761382&highlight=hidden#post9761382
[Galaxy Tab  Android Development] webvan:
My TMO TAB is coming in on Thursday so want to make sure I can go back to stock in case of a problem while playing with it ;-)

Did a stock TMO ROM ever get posted (think I saw an AT&T one at some point that could be flashed with ODIN) ? If not I'll try to make on with RotoBackup!

EDIT : ok, looks like the TMO ROM is here http://xdaforums.com/showthread.php?t=855851 courtesy of Roto!
[Galaxy Tab  Android Development] delovelady:
Even though you have found that, you could be doing yourself a disservice by not making your own Rotobackup. Little nuances, changes that may be made along the way... There's _so_much_ value in having your own, that you know is a perfect (well, you know what I mean) match for the piece of hardware in your hand!

It only takes a few minutes... And you may learn something valuable about your Tab along the way.

Besides, what if something goes wrong with the download, and you don't know there's a problem until restore time? Hmm?
[Galaxy Tab  Android Development] webvan:
Fair points, thanks, I'll make my own backup before I start playing with it.
[Galaxy Tab  Android Development] Bruno_rv:
I have a question. I made whole backup of my Euro TAB t-mobile Croatia. I allready had P1000BOJJ3 pda part and P1000XXJID modem. So i created CSC file from dbdata.rfs and cache.rfs read from my mobile and made P1000CROJJ4 CSC file but after successfull flash it doesnt accept the csc file. When i flash DBDATA and CACHE from ex. tmobile holland,the same firmware version BOJJ3 and XXJID ,all ok but with my CSC nothing happens. I tried also with ONLY CACHE.RFS but nothing. I compared 2 csc files and saw that holland csc has a ZIP file inside CACHE.RFS but mine hasnt. I read it with:

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"

ANthing knows whats wrong?
[Galaxy Tab  Android Development] grukko:
Will the new bootloader that comes with the 2.3.3 overcome firmware be able to boot an at&t froyo-based backup?

I'm asking because roto has got me all freaked out about flashing the bootloader. I'd rather not flash it if the new bootloader can support the old firmware.

Thanks!
[Galaxy Tab  Android Development] txcas:
I am new to Android, but I can write a batch file. Anyway, I took all the steps from Roto's first post and wrote a Windows wrapper for it. It is not fancy, it pops up a few messages and just runs the adb commands. I created this just to save me some time, so it is very simple. The exe was created with an old version of a Microsoft software called SMS Installer. I will be more than happy to post the code here. I just received my SGT from AT&T, rooted it and ran my script. Attached is a is a picture of the backup folder content and the executable.
[Galaxy Tab  Android Development] Bruno_rv:
My tab just got back from repair service. It was bricked with full roto backup that i made. I had froyo t-mobile croatia. Be carefull with this. Bootloaders deleted after backkup restore.
[Galaxy Tab  Android Development] Ommadawn101:
A couple of questions for Rotohammer, if you please.

1. Will this procedure work on the Samsung Galaxy S (I9000)?

If yes, then:

2. I saw some posts referring to download mode and recovery mode.

I have some very basic understanding of ADB and Android, but from what I know, the list of commands which appear in the first post, should work without putting the device in any special mode, just a normal working mode will do?

3. I see that you extract several files, which you do not use later either in Heimdall, or in Odin, when restoring.

Namely efs.rfs boot.bin sbl.bin pit.pit.

Why do you extract them for?

4. Does the data.tar.gz, which you create, contain all the application and application's data that the user installed on his device?

What I am actually asking is do I need my Titanium backup as well?

5. When restoring with Odin, does one use only the PDA, and leave all the rest untouched?

Thanks
[Galaxy Tab  Android Development] mnpolock:
Rotohammer,

I have a new Verizon Galaxy Tab ... have not touched it. Is there something that I can do that will help to figure out how to do a full ROM backup? I am somewhat technical ... not heavy duty .. but I can follow instructions well and I am willing to invest time and effort to get VZW stock back up to help the community ..... just let me know what I need to do if you would ... I will open to anyone that can offer advice on how to grab a full ROM ... and I am willing to share the results, host the files, mail a DVD of the ROMs whatever will help the community.

Thanks,

MNpolock ~ Tony
[Galaxy Tab  Android Development] manekineko:
I've got a Roto Backup of my AT&T Tab.

Could someone point me in the direction of what you need to do with Odin in order to flash it back? The first post just says "flash via Odin", and Odin has a lot of options and buttons, and I want to make sure I don't screw anything up.