Or, "how I learned to stop worrying and love the root".
As discussed elsewhere, I've been a Galaxy owner since release day on O2 UK and have been following the forums here for a while. I've had all the usual problems (NPS being useless, etc) and found the forum to be invaluable, so thank you.
I wanted to update the firmware, but found there's almost too much information around. Lots of updated / contradictory information, and some of it requiring convoluted hacking of text files etc. I eventually took the plunge, and made notes as I went. Hopefully, this will be of help for other new users.
After reading, I decided there were two stages to this. First, back up the phone so if it all went west I could roll back. Second, get the firmware on it.
Booting in various modes:
With the phone off:
Fastboot mode - call + power
Recovery mode - vol-down + call + power (hold home + back to exit)
Download mode - vol-down + ok + power
To enable root and back up the phone:(update - this method appears to have been blocked as of firmware rev. II5, should still work for IH8 and earlier)
Get H8 firmware from RapidShare: 1-CLICK Web hosting - Easy Filehosting and unizp it to give you a .tar file. Alternatively, you can use the latest I5 firmware here, there's links to it elsewhere on the forum - I'm using H8 as an example as this was the latest when I wrote this.
Edit the .tar file with 7-zip to remove cache.img (to remove CSC branding) - 7-zip handles .tar files in a vaguely sensible manner, unlike things like WinRAR. 7-zip can be had from 7-Zip
Awesome, I think you just sold me on the rooting thing.
Only, to grab those files I'd need to sign up at that Italian forum ... unless I could convince you to edit your post and attach the files you refer to? That way, it would really all be in one place!
Please pretty please with whipped cream and a cherry on top?
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
so does this go back to normal if you reboot?
read this
Quote:
Known issues:
EVERY TIME YOU REBOOT YOUR PHONE INTO NORMAL ANDROID IT UNDOES WHAT YOU JUST DID. Every time android boots, it reflashes the recovery partition with the default one from a file stored in your phone. For safety reasons, we are not replacing this file – just flashing the partition directly. So if you boot to recovery mode, then boot back into your normal mode, and then boot back into recovery mode – you will see a triangle with an exclamation point and only 3 options. DO NOT WIPE YOUR DATA IF YOU ONLY SEE 3 OPTIONS AND AN EXCLAMATION POINT If you only see three options, reboot your phone into normal android mode and re-run the “Recovery Flasher” application – and THEN boot into recovery mode and you will see all the options.
The downloads on the Italian forum is a text file. The text file contains the megaupload download link, which I've reproduced here. I'm not quite sure why they've done it this way unless it's to increase membership, not much use to me as I don't speak Italian.
Not that I've noticed. It does reset the recovery partition if you apply new firmware though, but you still have the flasher and .img on your phone so it's 30 seconds' work to reapply it.
it also worked for me by using fastboot flash recovery recovery.img in a command window opened from tools folder of android sdk, the flasher apk did not work on my phone for some reason.
You should add a disclaimer that this rooting method may break in the near future since google has already fixed this root exploit in their source. A better and long term rooting process is to either replace the recovery image in the tar files or use fastboot to flash recovery.
Am I missing something here , i put the files from v3 in the root of my sd card, but the recovery flasher app won't recognize it. Just says invalid recovery image, where I'd expect to be able to click flash.
Last edited by z0mbi3; September 25th, 2009 at 12:47 PM.
By sd card, you mean the internal or external memory?
/sdcard refers to the internal memory
/sdcard/sd refers to the external memory card (ie your microsd card)
You should be copying them to the internal memory. If you copied them to your external memory, copy the files to the other drive that shows up on your computer.
ok getting somewhere but still not perfect. If I enter the path I get "Backup to flash custom recovery image" but it's greyed out. Backup Recovery Images is pressable, but i get a "Backup failed" error.
Note: Use adb driver from Odin instead of the ADB and Fastboot Drivers pack since that is for 1.6 which Samsung hasn't released for the Galaxy yet. Fastboot driver works fine with the pack.
The link above is for adb and fastboot interfaces required for flashing. Each time you connect your device and there isn't a driver yet, just point it there and it should find something. If it doesn't, it's probably the modem and diagnostic driver which you can from HERE.
1. Get all of the files above and put them into the same directory.
2. Put rectools.tar.gz on to your phone's internal memory not the microsd card.
3. Open up a command line interface and change directory to the place with the files.
4. Type "fastboot flash recovery recovery.img" and press enter
5. Off your phone and hold call + ok + power till the fastboot menu appears on your phone. Your command line should be able to upload the image if all goes well and reboot by itself after a while.
6. Once your phone has booted up in normal mode, off it and this time hold volume down + call + power till the recovery menu appears.
7. Select "Enable root su" from the menu and press home to confirm.
Stop here if you do not want to use busybox or think it's too much hassle (Your copy function in file browsers will not work without busybox)
8. Remount the mount points with read/write access by typing into the command line "adb remount"
9. Once successful, upload busybox "adb push busybox /system/bin/busybox"
10. Set busybox to executable with "adb shell chmod 4755 /system/bin/busybox"
11. Next remove the cp command "adb shell rm /system/bin/cp"
12. Relink cp to busybox "adb shell ln -s /system/bin/busybox /system/bin/cp"
13. Optional: Install the other commands in busybox. "adb shell /system/bin/busybox --install -s /system/bin"
That's it. You now have a working su (root), superuser app installed to manage access to su and busybox for those who go through with steps 8-12/13.
Last edited by pegasus21; September 30th, 2009 at 04:03 AM.
I've been wrestling with that driver all night. I've been using the dev driver supplied with the latest Windows SDK (.16_r1) which of course doesn't support the Galaxy. I'd managed to hack the .inf to recognise the Galaxy's Debug Mode connection by pulling the IDs out of DevMan to write the missing code, but fastboot was eluding me. How did you obtain the VID/PID for it, can I ask?
With the fastboot driver, flashing the recovery image was a breeze. You just need to set it going before you start fastboot on the phone, the PC will wait for the phone forever but the phone only stays in fastboot mode for 15 seconds or so.
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
Quote:
Originally Posted by Cougar
Good work, Pegasus.
I've been wrestling with that driver all night. I've been using the dev driver supplied with the latest Windows SDK (.16_r1) which of course doesn't support the Galaxy. I'd managed to hack the .inf to recognise the Galaxy's Debug Mode connection by pulling the IDs out of DevMan to write the missing code, but fastboot was eluding me. How did you obtain the VID/PID for it, can I ask?
With the fastboot driver, flashing the recovery image was a breeze. You just need to set it going before you start fastboot on the phone, the PC will wait for the phone forever but the phone only stays in fastboot mode for 15 seconds or so.
Nice one, impressed.
i had this
download the 1.5 r3 sdk
point the the usb drivers and pick the Android test
boot into fastboot and while its in fast book as quick as you can link that driver in device manager to the android test found in the 1.5 r3 sdk
Pegasus, your downloads for fastboot and adb are missing AdbWinApi.dll. I've tried copying the one from 1.5 r3, but it just sits at waiting for device.
I got the pid/vid from some post somewhere... i think it was receptor's blog but you can easily look up the info from the device manager. Under the device's properties (even for unknown devices) check the 3rd tab where there's the info on the hardware.
As for "waiting for device", I'm guessing it's got to do with the driver or windows not seeing the device.
These drivers are from 1.6r1 sdk. Not sure what's the diff compared to 1.5r3 but I decided why not just mod the inf for the latest sdk and both x86 as well as x64.
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
do what i did as i had exactly the same problem. fastboot does not detect the drivers. use you have about 15 seconds to point it to the test drivers found in 1.5 r3
I got the pid/vid from some post somewhere... i think it was receptor's blog but you can easily look up the info from the device manager. Under the device's properties (even for unknown devices) check the 3rd tab where there's the info on the hardware.
Yeah, that's how I got the ADB info. I couldn't see it for fastboot though, all it came back with was "Android 1.0". Maybe just a timing issue?
Quote:
Originally Posted by Rastaman-FB
Why are you using donut sdk when galaxy is on cupcake?
I wasn't using the SDK, just installing it to extract the driver from it. I figured, latest SDK = latest driver set. The SDK version is irrelevant (and if you're really concerned, it contains dev tools for both 1.5 and 1.6 anyway).
Last edited by Cougar; September 26th, 2009 at 05:48 AM.
Why are you using donut sdk when galaxy is on cupcake?
Are you asking me or Pegasus? I'm just using what Pegasus provided in his zips. I think he decided to use them as they were more up to date and he was able to hack the drivers to work with it so why not?
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
i was speaking to you sorry i should have been more specific zombi3
i dont think Pegasus is using x64 vista/window7. i could not get any of the drivers to work in 1.6 sdk. but you can just use the test drivers for x64/x86 in r3
Quote:
Originally Posted by Cougar
Yeah, that's how I got the ADB info. I couldn't see it for fastboot though, all it came back with was "Android 1.0". Maybe just a timing issue?
I wasn't using the SDK, just installing it to extract the driver from it. I figured, latest SDK = latest driver set. The SDK version is irrelevant (and if you're really concerned, it contains dev tools for both 1.5 and 1.6 anyway).
the sdk is relevent as 1.6 does not have any android test drivers and the device does not get recognised by ADB i spent the best part of an 1hr messing around with all the drivers to work this out
i had this exact problem, you have about 10-15 seconds to link the android 1 device to the \android-sdk-windows-1.5_r3\usb_driver\amd64 or
\android-sdk-windows-1.5_r3\usb_driver\x86 and choose adb test
if you are running windows 7 you will need to choose browse for driver, all devices, have disk and then point it to it.
once i did this fastboot worked properly. it was doing my head in as there is no way to slow or pause the boot timer in fast boot
Last edited by Rastaman-FB; September 26th, 2009 at 06:11 AM.
The drivers Pegasus included actually works fine with Fastboot though, he modified them. I just can'tget adb to play ball. Says "error: device not found".
the sdk is relevent as 1.6 does not have any android test drivers and the device does not get recognised by ADB i spent the best part of an 1hr messing around with all the drivers to work this out
i had this exact problem, you have about 10-15 seconds to link the android 1 device to the \android-sdk-windows-1.5_r3\usb_driver\amd64 or
\android-sdk-windows-1.5_r3\usb_driver\x86 and choose adb test
I had the same problem. Getting it to pick up the debug connection was straight-forward, getting the fastboot to work was a sod. Once I'd got the correct IDs (courtesy of Pegasus), getting fastboot to work was a matter of removing the working adb bridge driver and reconnecting. If you've got the wrong settings in the .inf for fastboot and the bridge installs, it never retries the same driver. Once you've got the correct code in the .inf, if you then delete the bridge and reconnect the phone it works straight away.
I don't know about any 'test' drivers, I'm mostly making this up as I go along (-:
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
Quote:
Originally Posted by z0mbi3
Ok I've changed my adb driver to the one that comes with odin, but I'm still getting "error: device not found". Any other ideas?
adb with odin?
if its adb? just use the test ones i mentioned before within the usb drivers for 1.5 r3
so go into device manager and uninstall the android device/interface driver, unplug and reconnect the device
point the device driver wizard to the location of the android_usb.inf depending on your os type and pick the adv test interface.
adb will now be able to talk to the device when device is turned on
i noticed that if i am in recovery mode i have to unplug and replug the usb in order for adb to take the status from offline to ready
Last edited by Rastaman-FB; September 26th, 2009 at 11:53 AM.
I got fed up of trying to install the fastboot driver in the 15 secs countdown (my pc must be getting old...) so I tried with the recovery flasher apk. Worked like a charm! Thank you so much for the procedure.
My only concern now is that as soon as I update to II5, where this way of rooting is no longer allowed, I don't know if I would be able to root. Could it possible to have the original firmware pre-rooted before flashing it with Odin?
if its adb? just use the test ones i mentioned before within the usb drivers for 1.5 r3
so go into device manager and uninstall the android device/interface driver, unplug and reconnect the device
point the device driver wizard to the location of the android_usb.inf depending on your os type and pick the adv test interface.
adb will now be able to talk to the device when device is turned on
i noticed that if i am in recovery mode i have to unplug and replug the usb in order for adb to take the status from offline to ready
Ok so I uninstalled the drivers replugged in the device,went to manaually select the drivers , have disk and all that, but it says "the specified location does not contain information about your hardware".
I think I'm close but this is starting to annoy me now!
edit:
Just pointing it to the driver directory installs the regular composite adb drivers and these don't work when using adb from the command line.
edit: ok scratch that adb is working now! brb
edit: and I'm done, adb all installed . Thats for the help Raster.
Last edited by z0mbi3; September 26th, 2009 at 01:19 PM.
It is possible. Just find a way to rebuild the tar archive used in the odin flashing process and swap out recovery. While you're at it, you could also learn how to pre-root your kernel image. Not a straightforward process but you'll be able to do it for any new image that is released.
I have added Search Tags to the thread that will make it easy to find using the TAG Search feature on this site ....
__________________ Help Us: Submit FAQ's You have answered over and over! Will add them to OUR FAQ LIB. Check out our FAQ's.... Also Check out our Tag Search.
It is possible. Just find a way to rebuild the tar archive used in the odin flashing process and swap out recovery. While you're at it, you could also learn how to pre-root your kernel image. Not a straightforward process but you'll be able to do it for any new image that is released.
Taking out the original recovery.img from the tar file and putting in the recovery.img from hdblog would be a very easy procedure. Too easy in fact, that's why I was wondering that maybe there's some kind of integrated data checksum or integrity checks during the flashing procedure that would prevent the flashing from being successful if I swap the recovery's. Anybody knows?
About the kernel pre-rooting thing... my linux knowledge is near zero, although I have a quite technical profile , so I would love to learn about it, any sources I can get informed from?
As far as I can tell, there isn't any checksum in recovery, kernel and system. There's one in the csc (cache). Both the recovery and kernel contains some code at the beginning of the image. The latter part is gz and cpio-ed. System is a yaffs2 image. Just unyaffs and mkbootimg to get it back.
8. Remount the mount points with read/write access by typing into the command line "adb remount"
9. Once successful, upload busybox "adb push busybox /system/bin/busybox"
10. Set busybox to executable with "adb shell chmod 4755 /system/bin/busybox"
11. Next remove the cp command "adb shell rm /system/bin/cp"
12. Relink cp to busybox "adb shell ln -s /system/bin/busybox /system/bin/cp"
13. Optional: Install the other commands in busybox. "adb shell /system/bin/busybox --install -s /system/bin"
That's it. You now have a working su (root), superuser app installed to manage access to su and busybox for those who go through with steps 8-12/13.
Somehow I can't get adb remount (step 8) to run. I assume it has to be in recovery mode and the directory has to be the one that has all the downloaded files in them. However the command seems to do nothing. Any idea what I might be missing here?
In recovery mode I can see the list of options, enabled root su and made a backup with nandroid. So I believe all the earlier steps have been succesful.
Device(s): i7500@galax0-1.6.3.4
OC@710mhz
HTC Desire - never ending modding
Thanks: 103
Thanked 917 Times in 775 Posts
Quote:
Originally Posted by pegasus21
Did you use the adb driver from odin?
i noticed that when i did these steps it does not give confirmation of command being accepted
only reason i knew it was actually doing what i told it to is because when i got to 9. Once successful, upload busybox "adb push busybox /system/bin/busybox" it gave the amount of bites pushedi did this while in recovery mode and verified the files had been pushed to the device
it has however worked as im able to copy and paste files from protected locations to other locations on the device with no complaint from the system
Last edited by Rastaman-FB; September 30th, 2009 at 04:21 AM.
I used the drivers you posted with the manual as a download. Should I be using another one for these last steps?
When I restart the command prompt and try the command at step number 9 I don't get a reaction either. The cursor just jumps to the next line and keeps blinking there. Weirdest thing is that after using adb I can't shut off my Vista (32bit) PC the normal way by using the start menu. I have to reboot by pressing the on/off button. What could be the cause of this?
Thank you for signing up to receive updates for the 4
An email has been dispatched to confirm your signup. Please click the link in the email.
Buy the Samsung i7500
Sign up for instant notification when the Samsung i7500 goes on sale!
When Samsung joined the Open Handset Alliance, excitement and anticipation engulfed the mobile world. With industry leading mobile phones such as the Samsung Instinct and Samsung Omnia already on the market, expectations soared. The speculation can f... Read More