Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,571 Members 51,741 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] How to root Samsung Galaxy S4 (GT-I9505 and GT-I9500)

Tip us?
 
zexbig
Old
(Last edited by zexbig; 4th May 2013 at 02:39 PM.)
#1  
Senior Member - OP
Thanks Meter 138
Posts: 187
Join Date: Dec 2004
Location: Zagreb
Sign [GUIDE] How to root Samsung Galaxy S4 (GT-I9505 and GT-I9500)

Let's move on!

There is several methods of achieving root access on SGS 4 and several guides on this subject, but for sake of simplicity we
will use here easiest and simplest way.
Recognized xda developer Dan Rosenberg (@djrbliss) has recently published his exploit for
series of Motorola devices but it's obvious that this exploit works on wide range devices including SGS 4 by exploiting vulnerability in /dev/graphics/fb0.
For more detailed information about how motochopper works please read post from SW686 here on xda forum.
I'v tested this method on SGS 4 (GT-I9505) with Qualcomm Snapdragon 600 but it should work on GT-I9500 with Samsung Exynos processor.
Software build on which exploit was tested is XXUAMDF.

Advantages of this method to achieve root access on SGS4 are following:
No need to flash trough ODIN.
Simple one click method.

1. First make sure that You have samsung adb drivers installed! If not please download and install them from here or install Samsung Kies application which will also install adb drivers.
Senior xda member daerragh has provided very nice tutorial how to do it.

2. Download motochopper exploit from here and place it on Your Desktop.
3. Unzip motochopper with Your favorit archiving program or simply by using windows bulit in funcionality (Extract all)

4. Enable on Your phone USB development mode

Open up your device’s “Settings->Click on More as shown on picture 1 and then select About device”.
At the “About” screen, scroll to the bottom and tap on “Build number” seven (7) times.
Make sure you tap seven times. If you see a “You are now a developer!” message pop up, then you know you have done it correctly.

By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher.
You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.


5. Connect Your SGS4 to computer via USB cable.
6. Verify that Your USB drivers are installed correctly by opening command prompt (press windows key + r) and navigate to the folder in which
You extracted motochopper.
Code:
cd C:\users\{username}\Desktop\motochopper\
In cmd prompt type
Code:
adb devices
If Your cmd prompts looks like this then You may proceed with next step.

If you don't have output from command adb devices which shows Your device check Your Samsung driver installation, check connectivity (try replacing cable) etc.

7. Time for grand finale, type in cmd prompt
Code:
run.bat
and follow instructions on the screen.



Feel free to post any suggestion or updates on this thread.
Signed,
zexbig
The Following 5 Users Say Thank You to zexbig For This Useful Post: [ Click to Expand ]
 
cmd512
Old
#2  
cmd512's Avatar
Senior Member
Thanks Meter 696
Posts: 3,122
Join Date: Aug 2009
Just tried this, it just hangs at * daemon started successfully *...
Current Device: Samsung Galaxy S4 GT-i9500
ROM:
Uncharted Rom V4 [I9500XXUGNG3] Kernel: Perseus alpha19.1
Other Devices: Google Nexus 7 Samsung Galaxy S III GT-i9300
AWD Dyno Pull CQuartz+Victoria Concours Wax


 
zexbig
Old
#3  
Senior Member - OP
Thanks Meter 138
Posts: 187
Join Date: Dec 2004
Location: Zagreb
Quote:
Originally Posted by cmd512 View Post
Just tried this, it just hangs at * daemon started successfully *...


Sent from my GT-I9505 using Tapatalk 2
Did command adb devices show that Your device is recognized ?
Did You install Samsung drivers?
Signed,
zexbig
 
cmd512
Old
#4  
cmd512's Avatar
Senior Member
Thanks Meter 696
Posts: 3,122
Join Date: Aug 2009
Quote:
Originally Posted by zexbig View Post
Sent from my GT-I9505 using Tapatalk 2
Did command adb devices show that Your device is recognized ?
Did You install Samsung drivers?
Yes, it recognized the device ID, but where your screenshot says "device," mine says "offline."

Device is recognized with no issues by Windows though, latest Samsung drivers installed.
Current Device: Samsung Galaxy S4 GT-i9500
ROM:
Uncharted Rom V4 [I9500XXUGNG3] Kernel: Perseus alpha19.1
Other Devices: Google Nexus 7 Samsung Galaxy S III GT-i9300
AWD Dyno Pull CQuartz+Victoria Concours Wax


 
zexbig
Old
#5  
Senior Member - OP
Thanks Meter 138
Posts: 187
Join Date: Dec 2004
Location: Zagreb
You need to approve USB Debug connection on Your phone when You connect USB cable.
Device should present You with screen in which will ask You to allow connection with computer.

Sent from my GT-I9505 using Tapatalk 2
Signed,
zexbig
 
cmd512
Old
(Last edited by cmd512; 4th May 2013 at 07:58 PM.)
#6  
cmd512's Avatar
Senior Member
Thanks Meter 696
Posts: 3,122
Join Date: Aug 2009
OK, fixed the "offline" bit, you need the latest adb drivers that support 4.2.2 and the RSA key. The script ran through to completion and the device rebooted. After the reboot, still no root...!

(See attached image.)
Attached Thumbnails
Click image for larger version

Name:	Root.jpg
Views:	3892
Size:	107.6 KB
ID:	1935618  
Current Device: Samsung Galaxy S4 GT-i9500
ROM:
Uncharted Rom V4 [I9500XXUGNG3] Kernel: Perseus alpha19.1
Other Devices: Google Nexus 7 Samsung Galaxy S III GT-i9300
AWD Dyno Pull CQuartz+Victoria Concours Wax


 
hassan89
Old
#7  
hassan89's Avatar
Senior Member
Thanks Meter 552
Posts: 654
Join Date: May 2012

 
DONATE TO ME
Does this method work on newer kernel that is supposed to be unrootable?
 
cmd512
Old
#8  
cmd512's Avatar
Senior Member
Thanks Meter 696
Posts: 3,122
Join Date: Aug 2009
Quote:
Originally Posted by hassan89 View Post
Does this method work on newer kernel that is supposed to be unrootable?
I believe that's the problem I'm running into, I'm running the latest "un-rootable" kernel. This method simply doesn't work in that case.
Current Device: Samsung Galaxy S4 GT-i9500
ROM:
Uncharted Rom V4 [I9500XXUGNG3] Kernel: Perseus alpha19.1
Other Devices: Google Nexus 7 Samsung Galaxy S III GT-i9300
AWD Dyno Pull CQuartz+Victoria Concours Wax


 
zexbig
Old
#9  
Senior Member - OP
Thanks Meter 138
Posts: 187
Join Date: Dec 2004
Location: Zagreb
Can You please post exact kernel version which are u using, also which model You have I9505 or I9500?

Sent from my GT-I9505 using Tapatalk 2
Signed,
zexbig
 
hassan89
Old
#10  
hassan89's Avatar
Senior Member
Thanks Meter 552
Posts: 654
Join Date: May 2012

 
DONATE TO ME
XXUAMDE i9500

Tags
how to root samsung s4
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes