2009
07.30

Root for adb on Samsung Galaxy

WARNING: All doing on your own risk!!! If you did not understand what the commands do, do nothing. Beware, if you flash the flase image you got a stylish brick!

On last day Samsung put an update for his Galaxy. With this we got a working recovery image. I have been modified this for a working root adb.

Download recovery-galaxy.img from there: http://www.mediafire.com/?mligyxty9nm and unpack the zip.

Put the Galaxy in Fastboot mode. On your desktop shell type:

fastboot erase recovery

fastboot flash recovery recovery-galaxy.img

Reboot the phone in recovery mode and start adb on your desktop. After this you got a root shell on your phone:

adb shell
/ # ls -la
drwxrwxr-x   14 4001     2000            0 Jul 30 11:24 .
drwxrwxr-x   14 4001     2000            0 Jul 30 11:24 ..
-rw-r–r–    1 4001     2000        19724 Jan  1  1970 GALAXY.rle
drwxrwx–x    1 1000     2001         2048 Jul 23 21:11 cache
drwxrwx–x    2 4001     2000            0 Jan  1  1970 data
-rw-r–r–    1 4001     2000         2016 Jan  1  1970 default.prop
drwxr-xr-x   11 0        0            3180 Jul 30 11:24 dev
drwxr-xr-x    2 4001     2000            0 Jan  1  1970 etc
-rwxr-x—    1 4001     2000       119756 Jan  1  1970 init
-rwxr-x—    1 4001     2000         1677 Jan  1  1970 init.goldfish.rc
-rwxr-x—    1 4001     2000         1391 Jan  1  1970 init.rc
-rw-r—–    1 4001     2000          668 Jan  1  1970 init.rc~
dr-xr-xr-x   64 0        0               0 Jan  1  1970 proc
drwxr-xr-x    3 4001     2000            0 Jan  1  1970 res
drwx——    2 0        0               0 Jan  1  1970 root
drwxr-x—    2 4001     2000            0 Jul 30 11:24 sbin
drwxr-xr-x    2 0        0               0 Jul 30 11:24 sdcard
drwxr-xr-x   12 0        0               0 Jan  1  1970 sys
drwxr-xr-x    2 4001     2000            0 Jan  1  1970 system
drwxr-xr-x    2 4001     2000            0 Jul 30 11:24 tmp

More in the evening, because i must go to work. If it works for you write a comment, please.

8 comments so far

Add Your Comment
  1. [...] das neue recovery image modifiziert um einen root adb zu erhalten. Anleitung auf meinem neuen Blog: receptorBlog Root for adb on Samsung Galaxy Dieses image kann dann auch benutzt werden, um auf das normale Flesystem mit root drauf zu [...]

  2. [...] Erster M

  3. After I flash recovery my adb is not running under root(#) do you have any clue ?
    I should say after i run fastboot reboot device is not gone and I should take out battery, anyway I think changes saved because I change boot.img and I it’s really changed

  4. My PC(Windows XP SP3) doesn’t recognize my GALAXY(using adb shell) , can you tell me how to install GALAXY (android devices) driver? thanks!

    irdc@eracom.com.tw

  5. I using Fedora Linux, not Windows. The only help i can give you is “android update adb”.

  6. I am from Canada and I know the phone may be a bit different.

    Here is a dump from my test.
    $ ls -l
    ls -l
    drwxrwx–x system system 2009-12-01 09:36 dbdata
    drwxrwxrwt root root 2010-02-09 21:52 sqlite_stmt_journals
    drwxrwx— system cache 2009-12-01 09:36 cache
    drw-rw-rw- root root 2010-02-09 21:50 userdata
    drwxrwxrwx system system 1969-12-31 15:00 sdcard
    lrwxrwxrwx root root 2010-02-09 21:50 etc -> /system/etc
    drwxr-xr-x root root 2009-11-18 16:06 system
    drwxr-xr-x root root 1969-12-31 15:00 sys
    drwxr-x— root root 1969-12-31 15:00 sbin
    dr-xr-xr-x root root 1969-12-31 15:00 proc
    -rwxr-x— root root 14270 1969-12-31 15:00 init.rc
    -rwxr-x— root root 1677 1969-12-31 15:00 init.goldfish.rc
    -rwxr-x— root root 119756 1969-12-31 15:00 init
    -rw-r–r– root root 118 1969-12-31 15:00 default.prop
    drwxrwx–x system system 2010-02-09 21:50 data
    -rw-r–r– root root 19724 1969-12-31 15:00 GALAXY.rle
    drwx—— root root 1969-12-31 15:00 root
    drwxr-xr-x root root 2010-02-09 21:50 dev
    $ id
    id
    uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1011
    (adb),3001(net_bt_admin),3002(net_bt),3003(inet)
    $

    I am not sure if it is safe to flash your recovery image to my Galaxy phone, as the following forum is saying Canada Bell Galaxy is GT-I7500L, instead of GT-I7500.

    http://androidforums.com/samsung-i7500/26987-bell-canada-users-brazilian-users-do-not-flash-rom.html

  7. I think you can flash the image, but if it works after flashing is unknown. It is not clear what are the diffs between the models. (And your “dump” is very helpless.) If you a crazy person flash, if not wait for Samsung.

  8. anything I can do to help finding the difference between models?