yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] shadowkahn:
hi i have instructions for rooting lg optimus

im just unsure how to make complete backup of my unrooted android phone ,and how to get superuser access by root prompt and does super user request mean i can put on a custom rom like cyanogen,

Turn on the device and click the icon to open the phone dialler
- Enter the code '3845#*540#'
- Select the option 'Module Test', then 'Stability Test' then 'Enable Root Permission'
- You will now be prompted for a password - enter :SWIFT::GT540:
- A toast message will briefly appear saying 'OK' - your root access is now enabled!
- Reboot your device, and now when you connect via ADB, you'll see you have a root prompt (#).
[Galaxy S I9000 Android Development] mopodo:
I came from HTC Hero to the Samsung Galaxy S GT-I9000

So I had never problems with cooking something up, but in the Galaxy I faced .rfs files and a flashing tool I can't use on linux...

So I searched through some boards to find a way to extract the .rfs files here a working guide for the S I9000.

What you need

Linux (tested with Debian testing)

It's pretty simple, execute this commands as root on your computer

SHORT WAY (thanks to mimocan)

# mount -o loop factory.rfs /some_dir

LOOOONG WAY

Attatch the rfs file to the loop device

# losetup /dev/loop0 /somedir/factoryfs.rfs

Create a directory to mount the device

# mkdir /somedir/mnt

Mount the device

# mount /dev/loop0 /somedir/mnt

the content of the rfs is NOT saved on the sdcard! you have to copy it!

Now you can copy the content from the /sdcard/tmp directory to the sdcard

# cp -R /somedir/mnt /somedir/factoryfs

hope this is helpful for someone
[Galaxy S I9000 Android Development] mimocan:
#mount -o loop factory.rfs /some_dir

should do the same
[Galaxy S I9000 Android Development] psternx:
This works because rfs is based on vfat.

But have you ever tried this on cache.rfs or dbdata.rfs?

The mounted folder is empty. The cache.rfs in my case was around 1.2 mb.

Maybe the 1.2 mb are journaling data rfs uses?

I also tried mounting cache.rfs and dbdata.rfs directly on my sgs without any luck.

Since the phone has built in rfs drivers it should be able to mount it.
[Galaxy S I9000 Android Development] mopodo:
If you open the cache.rfs or dbdata.rfs from a PDA build (tested I900XXJP3) in a hexeditor you will see they are empty, just the headers and a lot of zeros ;)
[Galaxy S I9000 Android Development] darksnarfer:
Have you been able to modify something from a rfs file and save it?
[Galaxy S I9000 Android Development] Laum:
Actually Cache.rfs file in CSC is a renamed update.zip. At least with a few firmwares I have tried. So just open it with, for example, 7-zip and you can browse the files.
[Galaxy S I9000 Android Development] hkfan:
deleted............
[Galaxy S I9000 Android Development] bloodrider:
Tried to mount a cache.rfs and got a "Device or resource busy".

Then tried to open it trough MagicISO, and voilá, I got the CSC files I needed :D
[Galaxy S I9000 Android Development] a-son:
Now im into modifying factoryfs.rfs and hoping you can give me some tips.

Alt1

mount -o loop factoryfs.rfs directory & Copy files to a new place and edit them but how to create a .rfs from that point?

Alt2

sudo mount -v -o rw,loop,uid=$UID factoryfs.rfs Directory

Edit the files , umount the .rfs . Mount it again but the the changes are gone.

How do you do it?

Thanks.
[Galaxy S I9000 Android Development] ykkfive:
for me, i'll definitelty mod it elsewhere
[Galaxy S I9000 Android Development] a-son:
Thanks for answer.

Alt 1 i suppose you mean. But how to create the .rfs ?
[Galaxy S I9000 Android Development] KBJ911:
yess!!!!

how to recompile the .rfs ?????
[Galaxy S I9000 Android Development] Val3r10:
BUMP!

Actually some cache.rfs aren't simple renamed zipfiles, as they (i.e. multi-csc) also contains more stuff

So I loopmounted rw the vfat cache.rfs, extracted and modified the contained sec_csc.zip (this one IS an update.zip structured file...)

But when I put it inside, sync, unmount and mount again to verify stuff, I got a corrupted filesystem and a corrupted zip file.

Any clue to successfully modify contents of such .rfs ?
[Galaxy S I9000 Android Development] coldflid:
Is there a way to convert it back to rfs?
[Galaxy S I9000 Android Development] criskelo:
@all

Is there a way to convert it back to rfs?:confused:
[Galaxy S I9000 Android Development] lownoise:
If you used the shortway # mount -o loop factory.rfs /some_dir

than you can modify the files in some_dir.

when finished simple un mount the some_dir and the files are saved in the factory.rfs

Then tar and md5 the factory.rfs and you can flash it with odin
[Galaxy S I9000 Android Development] tedgy:
in windows use "magiciso" to extract .rfs ;)
[Galaxy S I9000 Android Development] fastcx:
I lost at there, what does that means?
[Galaxy S I9000 Android Development] lownoise:
From linux

From the linux command line you have to use

tar -cf filename.tar factory.rfs

md5sum filename.tar >filename.tar.md5
[Galaxy S I9000 Android Development] Bluephantom3:
If you have extracted it with MagicISO and now just want to create it back to factoryfs.rfs can I do this with Cygwin and what would the command line be?
[Galaxy S I9000 Android Development] Bluephantom3:
I have been able to make a factoryfs.rfs from my phone using a terminal emulator app but unlike the other factoryfs.rfs that you download in stock firmwares off samfirmware.com I can't open this with MagicISO to check that I did it correctly.

Anyway i've found any attempt to do anything with Cygwin has been a waste of time as it won't give me root access.
[Galaxy S I9000 Android Development] coldflid:
Try to include superuser un system/app for root
[Galaxy S I9000 Android Development] cottino:
unfortunately don't work (I used debian distribution).

When you flash odin-package with modified factory.rfs, galaxy s will not boot just vibrates
[Galaxy S I9000 Android Development] Swiftwork:
I have found that UltraIso is the best for extracting .rfs file archives. I generally start UltraIso first then choose open file rather then drag and drop. Haven't dug deeper into the matter but I'm not sure you can rebuild .rfs with it though.
[Galaxy S I9000 Android Development] cottino:
ultraiso, winiso, etc... don't work if rebuild rfs, only extraction :(

I Already Tried It
[Galaxy S I9000 Android Development] Shiftlock:
I have been unable to find an answer to this after much searching and maybe im not great at it i guess. The problem is that i am trying to extract cache.rfs but it comes up blank no matter which method i use to extract it. I have tried magiciso, ultraiso, poweriso, as well as both methods in linux. Magiciso successfully extracted factoryfs.rfs but no luck with cache.rfs. I have tried this with several different firmware releases from froyo to gingerbread. On EG22 (epic 4g) for example, cache.rfs is 1.31MB but after i mount it in Magiciso i just get a "NO NAME" folder in the left column that shows to be 16KB but there is nothing in the right window where the sub folders such as sec.csc.zip should show up. Any help is much apprecieated.
[Galaxy S I9000 Android Development] malcho:
Deleted

Hybrid 2.0 lite on semaphore 1.7.0
[Galaxy S I9000 Android Development] Dani897:
i hate to resurrect a long dead thread but i am trying to pre root an odin package for my infuse 4g, the issue im having is that i cant chmod the su file with the factoryfs.rfs mounted. if i copy it into the xbin folder it defaults to 0755 but root is nt working i noticed that in the new su updater script it sets permissions on su to 6755 but i cant seem to change permissions on the loop. i get an "operation not permitted" message. i also seem to have this issue with my flash drive so im wondering if it has to do with the vfat file sytem or some setting or package on my kubuntu install that doesnt work well with windows file systems?

i can make other changes and they stick if i umount /dev/loop0 so im read write. ive tried chown and running the commands as root but im not very experienced in linux and dont know where to go from here.
[Galaxy S I9000 Android Development] king007khan:
loop not found

I tried mounting the factoryfs.rfs but got an error message

usage mount <....with options n blah blah>

loop not found

what should i do??

MagicISO doesnt work for me. It shows "Can't find file or not a disk image"

How to fix this??
[Legend General] Zionator:
Hi.

My legend keeps rebooting by it self and it has done so since i got it out the box so before i return it i wanted to try to see the rooting and now my 30 days to get a new phone is running out i got 4 days left so here's my problem ::p

I followed the unlockr's guide to unroot and every thing went fine till an error pops up at the end of the install witch reads : :(

Error (140):BOOTLOADER VERSION ERROR:eek:

The ROM Update Utility cannot update your Android phone.

Please get the correct ROM Update Utility and try again.

I am using HTC Andriod Phone ROM Update Utility 1.0.1.30

I have done with and without the goldcard in the phone still same error.

My legend is running ClockWorkMod recovery from ROM Manager.

My software info on the phone is :

Firmware Version : 2.1

Baseband Version : 47.26.35.04U_7.05.35.26L

Kernal Version : 2.6.29-9a3026a7 htc-kernal@and18-2 #1

Build Number: 1.31.405.4 CL154058 release-keys

Software Number : 1.31.405.4

Browser Version : WebKit 3.1

Plz someone help me :confused:
[Legend General] Quanny2000:
Your goldcard is no good..
[Legend General] Zionator:
Goldcard!!!

I rooted on this card and if it is the card how do i check it:confused:

Could it be the recovery that needs to be changed to the shipped one:confused:
[Legend General] Zionator:
Hmm that's funny I just changed my phone and got a new legend and I just rooted my phone with my no good goldcard so if u claimed it is no good then meby we just don't need goldcards. O.o
[Legend General] KK43:
Had the reboot problem, replaced the battery with another original one, problem gone
[Legend General] AllWin:
This is what i call LOL :D Gold cards are unique and can't be used on two different phones... It just won't work.

In this case the battery has nothing to do with.
[Legend General] AllWin:
Sorry, double post.
[Legend General] Zionator:
.

Be careful what u say for I am sending this text from the second legend phone rooted on the same goldcard as my first phone was rooted on.
[Legend General] LecterMe:
You dont need a goldcard to root if the phone isnt branded. We dont have branded Legends in Denmark :)
[Legend General] matn013:
Indeed every goldcard is unique, but you can use on every phone you want. The image you create to make your goldcard is based on the ID-number (or something like that) of your SD-card and has nothing to do with your phone
[Legend General] Superfly94:
I also had this problem trying to unroot my legend. I think that the RUU kept on giving out an error because of my ROM version number being higher than what the RUU was trying to flash.

What I did is I restored the nandroid backup that I had created when I first rooted my phone after I had downgraded my ROM. This restored my phone to 1.31 I think which then meant that I could use the RUU to restore my ROM to stock and am now able to return it.

Hope this helps.
[Legend General] Corra:
Edit: too late
[Legend General] whitetigerdk:
I'll help you... New post coming soon ;)
[Legend General] whitetigerdk:
okay..

here goes..

download this file:

LEGEIMG.zip

put it in the root of your SD-card and boot the phone while holding down "volume down"-key..

Wait a bit and the phone will automatically load the zip-file and install the stock rom.. UNROOTED.. That should do the trick..

Krydser fingre for at det lykkedes...

BY THE WAY... When done.. Remember to delete the file afterwards or else the phone will install this and reset the phone completely everytíme you enter bootmenu.. ;)
[Legend General] Learners Lisence:
whitetiger, please explain what this is...plz i dont understand.....:confused:
[Legend General] whitetigerdk:
This is the stock unrooted rom to put the phone back to factory default..

I used it on my own phone to get back to completely stock phone..

I checked this just to be sure that it works.. and it does.. Then I rerooted my phone.. :)

But this zip-file (containing .img files of the data, system, user, boot, radio etc.)

is used to get phone back to default..
[Legend General] Learners Lisence:
Thats a great option ! Never thought of it that way. But what will be the software version, bootloader ver and kernel after booting ?

Thanks
[Legend General] whitetigerdk:
Oh.. really can't tell.. didn't check it when I used it - since I was going to root right away.. but try it out then do an OTA update to get latest version.. :)
[Legend General] Learners Lisence:
hmmm, i tink ill try dat out right away :cool:
[Legend General] whitetigerdk:
Please post results :)
[Legend General] Sckank:
I cant get it to work :/
[Legend General] naeem@legend:
I can confirm that this has worked for me, i have a UK HTC legend rooted froyo 2.2 dark azure build.

Such a simple way to unroot your phone and now am back on htc sense 2.1.
[Legend General] Piacer:
Tried this, but says Cid incorrect what does this mean?
[Droid Incredible Q&A, Help & Troubleshooting] ej_424:
Ok i realize from my research that the stock kernel on the HTC incredible doesn't support wifi tethering in infrastructure mode, only ad-hoc.

I swear i had it working at one point, but now can't seem to get it to work with my ipad "unsupported network" as well as my work computer when at the airports because of an IT security policy put in place.

Lastly I also installed the latest skyraider rom without the leaked radio (2.x)

Questoins:

1. What kernel can i use to get wifi tethering working in "infrastructure mode"?

2. I thought the skyraider rom would do this?

3. Are kernel and Radio the same thing?

Thanks,

ej_424
[Droid Incredible Q&A, Help & Troubleshooting] partizan81:
1. It doesn't matter, download the 2.0.5-pre7 or higher release at http://code.google.com/p/android-wifi-tether/

2. The ability to tether is not ROM-dependent

3. No
[Droid Incredible Q&A, Help & Troubleshooting] ej_424:
Seems to be working thanks. I went there before, and had the latest release with no luck. Is there a way to tell on the tether app if its in infrastructure mode vs ad-hoc?

thanks again,

ej_424
[Vibrant General] DonJuan692006:
So I've currently got a myTouch 1.2 that I bought from T-Mobile back in February and the phone is just lacking. I've been thinking of buying a new phone or even switching carrier's. I was looking at switching to Verizon and getting the Droid X, but then I stumbled across this phone while looking at some reviews. Wanted to get your opinions on whether I should just grab up the Vibrant or is the Droid X better?
[Vibrant General] s15274n:
No, but the Samsung Vibrant is INCREDIBLE.

Sorry, JK better answer coming...

My buddy has an X, I have the Vibrant (also I have/had a G1 and a Nexus One). The Vibrant is MUCH better than all of them, including the X in my opinion. The X first off has a locked bootloader, so no custom ROMs. It does not feel as good in the hand.... the screen is NOT nearly as good, poor color, 45 FPS vs. the near 57 FPS of the Vibrant. Everything about my phone feels faster/better.... the blur UI of the X is NOT good and the launcher is very slow. You will def have to use an alternate launcher. TouchWiz on the other hand added some REALLY cool features. I would check out the sticky where I touch on some of them.

Also, T Mo is going to be a cheaper plan....

If you were set on going to verizon I would get the Fascinate (the vibrant) or the droid 2 (which launches with 2.2 OS).
[Vibrant General] smashpunks:
Hell yes get the vibrant.. wont lie. It has a gps issue that samsung is supposed to fix, luckily I'm not heavy into gps.. everything else is a dream on this bad boy..

I recommend it 1000 percent
[Vibrant General] backslide311:
That's totally a personal decision IMHO. I'm personally pleased with my Vibrant, in fact it's a far better phone than I expect it to be. With my Vibrant Rooted -> Clockwork recovery -> Lag fix all it needs is a True GPS fix for it to be perfect IMHO:)

I'm extremely impressed with the Vibrants benchmark numbers in Quadrant post lag fix

Remember this is with Android 2.1 :D I can't wait to see what we can do with Android 2.2

Phandroid OC artical <- check this out: some info on over-clocking goodness.
[Vibrant General] s15274n:
I and MANY others have no GPS issue.
[Vibrant General] kizer:
Other than some reports on the GPS not being super accurate because you know we like our location on the face of the earth to be closer than 30 feet. :D As well the compas seems to be a bit useless, but I'm sure both are fixes soon in the future.

Personally I really like the Vibrant. Screen is amazing, the audio quality of the phone is light years above my old G1, internal storage of common 16gig. Comes with Avatar, which I personally could of done without, but hey we have it.

It does come across kinda iphonish, but honestly I've always wanted an iPhone, but never wanted to pay for it nor switch carriers so I'm kinda in hog heaven. ;)
[Vibrant General] bdveteran18:
Great phone. I would highly recommend it. 4 of my friends bought the device after I did and they would tell you the same thing. I Have zero issues that most people are starting to have problems with. It's been pretty much smooth sailing with this device.
[Vibrant General] tengtengvn:
Absolutely. Awesome CPU/GPU, awesome screen, and the best part is we have awesome developers like JAC, eugene373, and few others are working on the Vibrant. Few people are having issue with the GPS but I don't. Both mine and gf's Vibrant are running eugene373's Vibrant4 ROM and we see GPS signal lock less than 10 seconds all the time.
[Vibrant General] All~G1:
HAHAHA... I said the same damn thing to my buddy when we went to look at it at the Tmo store. "why do I want this fake iphone for".... then I turned it on LOL. :D

I found myself thinking "ohhh... look at all the pretty colors".:eek:

Was hesitant to keep the phone till the ball started rolling... Now, with some patience and the Vibrant dev team (not the CM team) I KNOW I have one of, if not the best android phone out right now, Period!
[Vibrant General] WilliamStern:
Vibrant all the way! Think about it... Samsung is pushing this phone for all carriers really hard! I can't even tell you how many commercials I see on a daily basis for it.

With the "Galaxy S" on all carriers, can you imagine how many people/Devs are going to be working with this line? It's gonna be huge! The ROMs going back, and forth from Vibrate, Captive, Fascinate, and the Epic with minor tweaks will be endless.

All I'm saying is, don't sleep on this phone, just get it!
[Vibrant General] DonJuan692006:
Sounds pretty unanimous to me. I'm going to hold out a week or so and do shopping around. I'd like to be able to find a new one for a little less than the $500 T-Mobile wants for one.
[Vibrant General] j0hnZ:
I just picked mine up today, and I'm so giddy I can't find the thread with all the current mods in it. :(
[Vibrant General] DarkAgent:
Like all phones, the Vibrant has its fair share of issues. Most of the issues, however, are liveable/controllable. The only major problem you should consider before purchasing the phone is the horrible battery life.
[Vibrant General] barmanham:
Dont think it has bad battery life at all coming from a mytouch slide im almost thinking the battery is better then that.
[Vibrant General] s15274n:
^^ WHAT?!?! try having a G1 and then tell me the Vibrant has terrible battery life. What a joke. Have you played with an Evo, and it's 5 hour battery life?
[Vibrant General] DarkAgent:
I come from a Samsung Omnia and the Omnia had a much, much better battery life than the Vibrant. My Vibrant can't even last a full day on a full charge. It typically lasts 5-6 hours and thats with moderate usage.
[Vibrant General] heygrl:
The Omnia is running Windows Mobile so it's not a valid comparison. The T-Mobile SDA can last days without a charge but I wouldn't compare it to the T-Mobile myTouch 3G
[Vibrant General] STi489:
Yes, I love thise friggin phone! I want a backup so i can use this one drinking!
[Vibrant General] hellcatrydr:
I love mine! I am new to Android and no where NEAR as sophisticated a user as most here .... bit I will be!

My new fave toy.
[Vibrant General] DonJuan692006:
On my myTouch I get around 1 and 1/2 days use out of a single charge, as long as I don't leave my GPS turned on or do a lot using wifi. Anytime I've got GPS on, whether actually using it or not, my battery just drifts away. Wifi can stay on, but any heavy usage and I get about the same. Outside of that, not too bad.
[Vibrant General] PhilSlater:
I don't know if the Droid X is better yet (my wife has one on order), but do

NOT

get the Vibrant. Although some indicate the GPS is just slightly inaccurate, the fact is it is completely broken.

Also, the battery life is horrible, although it may be a sample variation. There are a lot of small issues, the kind of things you can ignore (except on an iPhone) but the completely broken GPS (see other discussions) and terrible battery life are show stoppers.

Also, it doesn't fully support the new 4G network T-Mobile is rolling out. I'm waiting either for a GPS fix or a better phone. Maybe a Droid X on Verizon if my wife's is nice, though I'd prefer to stay with T-Mobile.
[Vibrant General] Bugdog:
My GPS works, and battery life is solid leaving wifi and gps on all day, and with a couple (not too many) widgets. If you can go with whatever carrier you want, I would just shop around and try the phones out - and also read up on them here - and go with what you like the best. They all have their good points and bad points, and their bugs. None of them are perfect. The Vibrant is a pretty great phone, though, and there will be a lot of development to take advantage of its killer hardware.

Also, it's getting an official GPS fix in September (see SamsungMobileUS on Twitter) and probably Froyo then as well. And anecdotally it seems that the more recent phones have good gps, so if you buy one now it's likely to work. And if it doesn't you can trade it in for one that does.

I give it a thumbs up.
[Vibrant General] applebook:
Anyone who complains about battery life on the Galaxy S is probably a noob who doesn't understand that a large display with a fast processor will eat up electricity faster than a Motorola Razer.

As for the GPS problem, plenty of people have not experienced it. It's almost like the iPhone 4 reception issue that many folks do not have (in Canada and in most countries, there is no problem).

To dismiss a wonderful $500 phone that is available (will be soon on Verizon, Sprint) on every carrier just because of a GPS problem is inane unless you actually rely on GPS daily...like if you're a cab driver without a sat-nav in your car.

The Droid X has many more problems than the GS, not the least of which is the atrocious hump. That is not to say that I think the Droid X is a bad phone --far from it. It's just that no phone is perfect, but frankly, many of the top dogs are excellent. If I had a Droid X, I wouldn't even look at anything else. Since I have a Vibrant, I won't look at anything else until the Vibrant 2.
[Vibrant General] ConceptVBS:
You also forgot the other 110 carriers that the international Galaxy S is being launched in the upcoming months. The Galaxy S already sold over a million phones in less than a month worldwide. Samsung expects somewhere around 10 million phones annually come next year.
[Vibrant General] ConceptVBS:
You havent seen what a "horrible battery life" definition is dude. Try using an EVO 4G. The Vibrant is average to slightly above average for a smartphone of this caliber/power.

If you want to improve your battery life, try plugging in the charger fully as sometimes the plug can get dislodged slightly, not fully charging the battery. Also, discharge then fully charge the battery multiple times ( 5-6 times). This should improve the battery life. Try killing off any background programs. Also use manual brightness setting rather than the auto brightness setting.