Vai al contenuto


Foto
- - - - -

HOW TO - ROOT SAMSUNG GALAXY LINUX/WINDOWS - For all the Version!!


  • Per cortesia connettiti per rispondere
23 risposte a questa discussione

#1 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 30 July 2009 - 18:53 PM

ROOT YOUR GALAXY, EASY AND QUICK !

Works on Linux and Windows.

New VERSION HERE



All the file you need are at the end of the post! (the archive password id: hdblog.it)

Please link this FORUM and android.HDblog.it !



If you have some problem to use adb/fastboot on Windows, see : http://forum.hdblog....read.php?t=3929



If you have some problem to use adb/fastboot on Linux, be sure you have those files in /etc/udev/rules.d :


50-android.rules and 51-android.rules which contains "SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"

90-android.rules which contain : SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
(don't forget to restart udev)




UPDATE :

07/08/09 : Theard update, use the new recovery image to root the phone
31/07/09 : add Windows pack
31/07/09 : add Linux pack
30/07/09 : creation



Tools (see at the end of the post) :
- fastboot
- modified adb


Notes : the modified recovery image is compatible with nandroid.


How-To :


1) Install the recovery image (see http://forum.hdblog....ead.php?p=19417)

2) Boot in recovery mode and then execute :

./adb shell


You're now root ! We can create a root shell :)

3) In adb shell execute those commands :

2) mount /dev/block/mtdblock1 /system
3) cat /system/bin/sh > /system/bin/su
4) chmod 4755 /system/bin/su
5) /system/bin/reboot



To test the root :

Directly on the Galaxy : use ConnectBot (find it on the market), connect in local, type "su".

Via ADB : run adb, and type "su".



You're root. Enjoy.

Allega File(s)


Messaggio modificato da iNicc0lo, 29 August 2009 - 22:08 PM


#2 akex

akex

    Junior Member

  • Membro
  • 5 messaggi

Inviato 30 July 2009 - 21:33 PM

Works perfectly :)

Thanks a lot

Allega File(s)

  • Allega File  device.png   17.01K   665 Numero di downloads


#3 phete

phete

    Junior Member

  • Membro
  • 24 messaggi

Inviato 30 July 2009 - 22:02 PM

what do you mean by "only linux"?
or did you just mean that the provided adb and fastboot is for linux? :P

#4 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 30 July 2009 - 22:22 PM

what do you mean by "only linux"?
or did you just mean that the provided adb and fastboot is for linux? :P


I mean if you have succeeded use adb and fastboot with Samsung Galaxy on Windows, it's compatible windows...
But, for now, i believe it's not possible :)


Edit : perhaps works in vmware ? If tou see your Galaxy with ./fastboot devices or ./adb devices, it should be nice...

Messaggio modificato da drakaz, 30 July 2009 - 22:51 PM


#5 ggtorrent

ggtorrent

    Junior Member

  • Membro
  • 22 messaggi

Inviato 03 August 2009 - 02:19 AM

Hi there !

Sorry but i don't understand this step :
- Put fastboot, adb, and the modified recovery file on the same directory
- Execute :
chmod 755 adb
chmod 755 fastboot

WHERE ? WHEN ?

thx

#6 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 03 August 2009 - 12:35 PM

Hi there !

Sorry but i don't understand this step :
- Put fastboot, adb, and the modified recovery file on the same directory
- Execute :
chmod 755 adb
chmod 755 fastboot

WHERE ? WHEN ?

thx



In the directory where you placed those files....But i'm sure adb and fastboot are alreay executable :p

#7 ggtorrent

ggtorrent

    Junior Member

  • Membro
  • 22 messaggi

Inviato 03 August 2009 - 18:39 PM

Thanks Drakaz to your reply but i have not understood all the process.
Ok to change file attribute with chmod, i'm under windows so i use filezilla.
But could you explain with more details when you say :
Execute this command to flash your recovery partition :
./fastboot flash recovery recovery.img


How do you do that when you're in fastboot mode on the galaxy ?
I suppose it must it be on the PC but how ?
The Galaxy should be connect in usb at this moment or later ?
Is it the same way when you say :
Execute :
./adb shell

Where ? How ? What should i do on my windows pc ?

And when you say adb & fastboot are already executable...what do you mean exactly ?
And why when i'm in fastboot mode with Galaxy connect in USB, windows detect a new peripheral named 'Androïd 1.0' and whatever usb driver i've tried windows could'nt install the driver as if it was not the one that it expects.

Sorry i must appear for someone that don't understand anything but i'm trying to interest to my new phone abilities.
Could you give me more details please ?
And what about make a save of the recovery partition before doing that ? Is it useful or not ? If yes how ?

Thanks by advance to reply to all my question.

#8 phete

phete

    Junior Member

  • Membro
  • 24 messaggi

Inviato 03 August 2009 - 23:06 PM

Thanks Drakaz to your reply but i have not understood all the process.
Ok to change file attribute with chmod, i'm under windows so i use filezilla.
But could you explain with more details when you say :
Execute this command to flash your recovery partition :
./fastboot flash recovery recovery.img


How do you do that when you're in fastboot mode on the galaxy ?
I suppose it must it be on the PC but how ?
The Galaxy should be connect in usb at this moment or later ?
Is it the same way when you say :
Execute :
./adb shell

Where ? How ? What should i do on my windows pc ?

And when you say adb & fastboot are already executable...what do you mean exactly ?
And why when i'm in fastboot mode with Galaxy connect in USB, windows detect a new peripheral named 'Androïd 1.0' and whatever usb driver i've tried windows could'nt install the driver as if it was not the one that it expects.

Sorry i must appear for someone that don't understand anything but i'm trying to interest to my new phone abilities.
Could you give me more details please ?
And what about make a save of the recovery partition before doing that ? Is it useful or not ? If yes how ?

Thanks by advance to reply to all my question.


Just a tip mate, by the sound of your post I would advise you against going through with this procedure... you clearly don't know half of what's been said in the original post which leads me to the conclusion that you're probably not in the need of rooting your phone.

You should always be fully aware of everything you do when playing around with stuff like this and even if you say you're "trying to get to know your phones abilities", rooting isn't something you should just "try out". You should only do it if you know exactly what the risks are.

Just a tip :)

#9 ggtorrent

ggtorrent

    Junior Member

  • Membro
  • 22 messaggi

Inviato 04 August 2009 - 21:57 PM

Ok i'm root !
I'd could install advanced task manager...
I was a bit afraid to make a crash
What is the command line that corresponding to factory reset in galaxy settings ?

#10 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 04 August 2009 - 22:43 PM

Ok i'm root !
I'd could install advanced task manager...
I was a bit afraid to make a crash
What is the command line that corresponding to factory reset in galaxy settings ?


I suggest you to install my recovery and backup your system before : http://forum.hdblog....read.php?t=3995

After your tests, you will be able to restore your system with the recovery

#11 TaoK

TaoK

    Junior Member

  • Membro
  • 3 messaggi

Inviato 05 August 2009 - 03:10 AM

Hi,

I just rooted my phone thanks to your great instructions, but I have a couple notes:

1) These forum instructions could do with adding the same note as on the main hdblog.it" page:
http://android.hdblo...alaxy-italiano/

Some users (me, anyway) are finding that their phone only remains in fastboot mode for about 15 seconds - so they need to prepare the command(s) in advance and execute them quickly once connected.


2) Because of the connectivity question it would be nice to have a good way to check connectivity in fastboot mode WITHOUT actually doing the flashing. I used "fastboot getvar version", that worked and gave me confidence that the connection was established, so that I could move on to the next part :)

3) The article you link to, "How To - ADB in Windows" does NOT cover getting fastboot working in windows. To get this working you EITHER need to add an extra couple of lines to your "android_usb.inf" file (lines below) OR you need to force-install the "androidusb.sys" to the unknown "Android 1.0" device that appears in fastboot mode.

; Around line 55, after the existing Sansung entries:
%USB\VID_18D1&PID_D00D.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_D00D
; Around line 129, after the other existing Samsung entries:
USB\VID_18D1&PID_D00D.DeviceDescRelease="SAMSUNG GALAXY Fast Booter"


4) Finally, I'm not sure what you meant here:

If you want, you can flash you're recovery partition with original image by the same method, with the file named "recovery" (if you want to have the original recovery, or if you had a problem before).
You can find it in the update file (Samsung New PC Studio...).


I did not find any recovery, update, img, or zip files in my "Samsung New PC Studio" folder... Obviously I would like to restore the original recovery partition, so that I can deal in the "normal" way if something very bad happens (warranty, etc) - but I'm not sure where to get the "normal" recovery image from exactly. Should it be in the New PC Studio install on windows? Or were you referring to Linux?

Thanks again!
Tao

#12 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 05 August 2009 - 08:06 AM

1) Same timeout for me, since the update. It's a samsung's choice...


2) You can also use : adb devices

3) The fastboot working, but your right, the drivers must be modified, or use pré-modified drivers :)

4) You find the tar during the update process, but i will upload an original recovery today

#13 unixseb

unixseb

    Junior Member

  • Membro
  • 1 messaggi

Inviato 06 August 2009 - 14:08 PM

Thanks a lot !! now i'm really the master of my phone :)

#14 gskill85

gskill85

    Junior Member

  • Membro
  • 1 messaggi

Inviato 07 August 2009 - 13:49 PM

hello, link dead in the first page ??

for download the files

#15 manny

manny

    Junior Member

  • Membro
  • 4 messaggi

Inviato 15 September 2009 - 20:36 PM

First of all thank you drakaz for both the root and recovery procedure :slurp

Well, now I'm root but how can I make the apps that require root as for it? I've been told that I need a SuperUser app to do that, I've tried to install SuperUser whitelist from the Market but it failed complaining about incompability issues...


Also, I can't seem to use adb to push files into /system/bin .. not sure why...

And by the way, am I supposed to do a factory reset after rooting the phone for any particular reason just to get full root functionality?

#16 drakaz

drakaz

    Junior Member

  • Membro
  • 129 messaggi

Inviato 15 September 2009 - 21:40 PM

First of all thank you drakaz for both the root and recovery procedure :slurp


Thanks to you.

Well, now I'm root but how can I make the apps that require root as for it? I've been told that I need a SuperUser app to do that, I've tried to install SuperUser whitelist from the Market but it failed complaining about incompability issues...


Su/superuser is already included. Are you tried to run an app require root access ?

Also, I can't seem to use adb to push files into /system/bin .. not sure why...


you can also use the recovery to reinstall root access if you have some doubt..

And by the way, am I supposed to do a factory reset after rooting the phone for any particular reason just to get full root functionality?


Not necessary.

#17 manny

manny

    Junior Member

  • Membro
  • 4 messaggi

Inviato 15 September 2009 - 23:34 PM

Yes, I've tried to use Wifi Helper, but the program did not ask for root permission, and I think it was supposed to..., since the way it is it doesn't seem to work.


As for adb when in normal boot:

$ ./adb shell touch /system/bin/xx
touch: permission denied

$ ./adb shell mount
rootfs / rootfs ro 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
/dev/block/mtdblock1 /system yaffs2 rw 0 0
/dev/block/mtdblock2 /userdata yaffs2 rw,nosuid,nodev 0 0
/dev/block/mmcblk0p1 /data ext3 rw,nosuid,nodev,noatime,nodiratime,errors=panic,data=ordered 0 0
/dev/block/mtdblock5 /dbdata yaffs2 rw,nosuid,nodev 0 0
/dev/block/mtdblock4 /cache yaffs2 rw,nosuid,nodev 0 0
/dev/block/vold/180:2 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0

everything seems to be read-write so I don't know why permission is denied...

as for in recovery boot:

$ ./adb shell touch /system/bin/xx
touch: /system/bin/xx: Read-only file system

$ ./adb shell mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw)
/dev/block/mtdblock1 on /system type yaffs2 (ro)
/dev/block/mmcblk0p2 on /sdcard type vfat (ro,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)

at least the error message makes more sense because /system is marked as read-only.

#18 winnie38

winnie38

    Junior Member

  • Membro
  • 1 messaggi

Inviato 24 November 2009 - 13:51 PM

Hello
After doing that : "cat /system/bin/sh > /system/bin/su"

I have this error : cat: write error: No space left on device

I did a df and I have this result :

Filesystem Size Used Available Use% Mounted on
tmpfs 46.8M 0 46.8M 0% /dev
tmpfs 46.8M 2.0M 44.8M 4% /tmp
/dev/block/mtdblock1 87.5M 87.5M 0 100% /system
/dev/block/mmcblk0p2 6.6G 239.3M 6.3G 4% /sdcard
/dev/block/mtdblock4 87.5M 1.2M 86.3M 1% /cache

What can I do ?

#19 kbcasurf

kbcasurf

    Junior Member

  • Membro
  • 4 messaggi

Inviato 04 February 2010 - 04:35 AM

Hey guys..

Where are the files?? I can't find it in any place..

All files that i downloaded has no content.. 0 Kbites..

I can't understand..

Can you please send it to me?? I need to root my Galaxy.. :lol

Thanks for all.

#20 HcMAX

HcMAX

    Junior Member

  • Membro
  • 1 messaggi

Inviato 23 February 2010 - 20:39 PM

Hello,
Thanks for all the info...
one question, If I root my samsung galaxy, can I later install other android versions...like the 2.0 or 2.1?
Thanks




0 utente(i) stanno leggendo questa discussione

0 utenti, 0 visitatori, 0 utenti anonimi