Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,878 Members 37,191 Now Online
XDA Developers Android and Mobile Development Forum

[INFO][GUIDE]Rooting on linux (and mac)

Tip us?
 
matts95
Old
(Last edited by matts95; 18th March 2012 at 12:14 AM.) Reason: Added flash from recovery option, removed typos, removed ROM Manager, added root.zip method
#1  
matts95's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 22
Join Date: Jan 2012
Location: Bournemouth
Lightbulb [INFO][GUIDE]Rooting on linux (and mac)

There appear to be two main options for rooting Samsung devices on linux and mac.

Option 1: (un-tested) root.zip (recovery)
This method roots your stock 2.3 rom from in recovery (stock or CWM)
1. Copy Root.zip to your sdcard.
2. Turn your phone off
3. Boot your phone into recovery mode. (Hold HOME+POWER buttons. When the screen turns on let go of POWER but keep holding HOME. After you enter recovery mode, let go of HOME.)
4. Select “apply update from sdcard”
5. Find and select Root.zip
6. When it’s done installing, select “reboot system now”
7. Go to apps and look for 'superuser'. If you see it, your phone is rooted.

Option 2: (un-tested) flash CWM from stock recovery:
This gives you the freedom of a custom recovery, flashed on the device from stock recovery
1. Download recovery-clockwork-5.0.2.6-galaxyace-fix.zip
2. Put recovery-clockwork-5.0.2.6-galaxyace-fix.zip on your sdcard
3. Boot into current stock (default) recovery (zip also compatible with CWM recovery)(Hold HOME+POWER buttons. When the screen turns on let go of POWER but keep holding HOME. After you enter recovery mode, let go of HOME.)
4. Go to "apply update from sdcard"
5. Select "recovery-clockwork-5.0.2.6-galaxyace-fix.zip"
6. When it finishes, power off and boot back into recovery mode to check it has installed (it should say "ClockworkMod Recovery v5.0.2.6" somewhere)


Option 3 (un-confirmed): use Heimdall.
An open source, cross-platform, alternative to Odin.

Heimdall is officially supported on the Galaxy S (and S variants including Galaxy Tab)
It allows you to do pretty much anything Odin can do (interact with download mode), and so you can flash a root kernel to gain root and CWM recovery.

Although supposedly untested on the Galaxy Ace, heimdall should be able to flash the usual root precedure (rooting kernel with CWM).
It would be great if someone could verify heimdall works for the Galaxy Ace


Option 4: (un-tested) root your ROM using the zergRush exploit (from the Revolutionary team).
zergRush rooting scripts: Linux, Mac, Windows

For the zergRush exploit scripts, you only root your firmware, so CWM will need to be installed manually afterwards if you want it.

Now that you have root, you should be able to (optionally) flash CWM from an app or over adb using flash_image) (DO YOU NEED ROOT IF THIS IS DONE IN RECOVERY(STOCK)?)

Apps that can flash CWM include:
* CWM Manager
* Flash image GUI
_DO NOT USE_ ROM Manager (reported unstable)

To flash using ADB and flash_image, download flash_image and an CWM recovery img then run:
Code:
cd directory-containing-files/
adb remount
adb push flash_image /system/bin/flash_image
adb shell chmod 0755 /system/bin/flash_image
adb push recovery.img /sdcard/
adb shell
flash_image recovery /sdcard/Recovery.img
rm /sdcard/recovery.img
reboot recovery
Or from the phone's terminal (if BusyBox is installed):
first put recovery.img & flash_image onto /sdcard/
Code:
cd directory-containing-files/
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mv /sdcard/flash_image /system/bin/flash_image
chmod 0755 /system/bin/flash_image
flash_image recovery /sdcard/Recovery.img
rm /sdcard/recovery.img
reboot recovery
DISCLAIMER: I do not personally own a Samsung phone, and have not yet tested these methods (although I am interested to hear how well they work,and will do my best to update the post). I am however planning to root a friends Galaxy Ace and possibly also an Galaxy S2, so will be testing some of these soon (I'm not sure I should try the untested heimdall on a friends Ace though)
The Following User Says Thank You to matts95 For This Useful Post: [ Click to Expand ]
 
Bofu
Old
#2  
Member
Thanks Meter 19
Posts: 77
Join Date: Jan 2012
Location: Hamilton
This seems almost utterly pointless, prove me wrong?
 
ace_viknesh
Old
#3  
ace_viknesh's Avatar
Senior Member
Thanks Meter 100
Posts: 323
Join Date: Jan 2012
Location: Singpore

 
DONATE TO ME
Quote:
Originally Posted by Bofu View Post
This seems almost utterly pointless, prove me wrong?
+1... I don't understand the point.. Why take a longer way when the shorter way is faster, efficient and trustworthy...
Samsung Galaxy S4 LTE-A (Rooted)
MODS: Soundboost (Moderate)
------------------------------------------------------------------

Don't Forget the THANKS button if I helped you!

Member of Team Thunderbolt Ace
------------------------------------------------------------------------------------------------
 
matts95
Old
(Last edited by matts95; 17th March 2012 at 09:51 AM.) Reason: added quote
#4  
matts95's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 22
Join Date: Jan 2012
Location: Bournemouth
Quote:
Originally Posted by ace_viknesh View Post
Why take a longer way when the shorter way is faster, efficient and trustworthy...
Sorry, which way is this shorter more trustworthy way?

The point of this is listing the methods I believe to be compatible with linux (and by extension mac)

I am new to Samsung phones and do not possess one myself, but understand that using Odin is restricted to Windows.

I will be flashing CWM Recovery to a Galxacy Ace soon and will try methods that have been tested (friend's phone)

If you know of other methods or if one of the listed methods does not work, I will update the post
Also if anyone can confirm heimdall to work with the Ace this would be the first time on xda (searching I've found only people saying it may work) the Ace is not on its supported list, however as it uses the same protocol (right?) it should work?

If however the mods believe this post to be useless or irrelevant, they are welcome to move it to the appropriate location
Current Device:
Model: HTC Desire (Bravo)
Android: 4.0.3 Ice Cream Sandwich
ROM: Sandvold's ICS Beta 0.4.3 (currently based on Evervolv)
Apps2SD: None
Kernel: 2.6.38.8-cayniarb-ics-stock-022612-00844-ge004de8
Radio: 5.11.05.14
Recovery: ClockworkMod Touch Recovery v5.8.0.2
HBOOT: Stock 6.93.1002 PVT4 [Revolutionary](S-Off)
 
Prashanthme
Old
#5  
Prashanthme's Avatar
Senior Member
Thanks Meter 320
Posts: 1,318
Join Date: Sep 2011
Location: ಬೆಂಗಳೂರು-Bengaluru
Point 1- Hopefully useful for Linux and Mac users.
Point 2- If on Windows its much easier and takes very less time..


Also u told about ROM Manager (reported unstable),... Dude leave unstable it bricks our phone... mAking it unusable...

Best way to root is to put the upd.zip in rooting section and flashing in recovery... Can thr be any other way better than that?


Emotion Injected; LOVE Infected!!
XDA ಅಲ್ಲಿ ಕನ್ನಡದ ಕಂಪು ಹರಡುತ್ತಾ

Phones:
 

Samsung Galaxy S2


ROMAHOLIC



Previous Gadgets: Nokia 5200 --> Nokia 5230 --> Samsung Galaxy ACE.

Tablets:
 


Google Nexus 7(2013)(~ Winner of Nestle KitKat Contest)
The Following User Says Thank You to Prashanthme For This Useful Post: [ Click to Expand ]
 
iandol
Old
#6  
iandol's Avatar
Senior Member
Thanks Meter 185
Posts: 419
Join Date: Jan 2012
Location: London
Quote:
Originally Posted by Bofu View Post
This seems almost utterly pointless, prove me wrong?
I use OS X exclusively and this was a very useful post, and at least well written and clear. Most guides blindly assume we all use Windows, not everyone does!!!

For context, owning OS X I originally used the upd1.zip method, flashed via original recovery and it worked, which I suppose is the fastest method you don't cover.

I certainly didn't know about heimdall, great to see an open-source cross platform alternative to odin! Don't need to use it just yet, though testing will be invaluable for future use...

So thanks to the OP for writing clearly about alternative options.
 
dragonnn
Old
#7  
dragonnn's Avatar
Senior Member
Thanks Meter 859
Posts: 1,064
Join Date: Oct 2011
But instaling CWM isn't rooting, you can have CWM without root.

Wysłane z mojego GT-S5830 za pomocą Tapatalk

Sorry for my bad English.
The Following User Says Thank You to dragonnn For This Useful Post: [ Click to Expand ]
 
madman
Old
#8  
madman's Avatar
Senior Member
Thanks Meter 406
Posts: 1,464
Join Date: Apr 2011
Location: 127.0.0.1
actually speaking in case of SGA you don't need a PC to root or to anything except heavy logcat
 
ASHLEY117
Old
#9  
ASHLEY117's Avatar
Senior Member
Thanks Meter 147
Posts: 392
Join Date: Jun 2011
Location: Leicester
What restrictions using odin on windows are you referring to?
HAVE A "SPANKIN" DAY!
 
iandol
Old
#10  
iandol's Avatar
Senior Member
Thanks Meter 185
Posts: 419
Join Date: Jan 2012
Location: London
Restriction: it doesn't work if you're not using Windows is the restriction... ;)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes