Author: Pascal Brognez of issue: January 8, 2012 |
How to root Samsung Galaxy 2 on Linux
Installation Directory
The entire installation is done in a user folder, here in the directory: ~/sg2/
Install heimdall and the heimdall-frontend on the Linux PC
http:/ /www.glassechidna.com.au/products/heimdall/
There are debian packages for 32-bit or 64-bit
packages must be installed, heimdall and heimdall-frontend
Obtain the unsecure kernel for your phone
for find the kernel version installed on the phone
Making (Applications / Settings / About phone)
For example, kernel version :
2.6.35.7-I9100XWKJ2
Download here:
http://forum.xda-developers.com/showthread.php?t=1075278
Kernel_I9100XWKJ2.exe
Give : 2.6.35.7-I9100XWKJ2-CL676699 root@DELL144#2
http://forum.xda-developers.com/showthread.php?t=1075278
Kernel_I9100XWKJ2.exe
Gives Final: 2.6.35.7-I9100XWKJ2-CL676699 root@DELL144#2
Extract Kernel_I9100XWKJ2.exe in ~/sg2 /
We will use zImage.
Install the unsecure kernel
Put the phone in download mode
is off the phone.
Then you turn the phone to download mode by pressing
Down + Flight + Home Button It
Up and Flight
Checking the recognition of SG2
Connect USB on the computer and verify that they are given
heimdall detect Device detected |
Flashes in the unsecure kernel
as root, unless you have user right
# heimdall flash kernel zImage |
(Once installed, reboot the phone, checking)
Android SDK, su and busybox
Put his phone as a USB Debug
Settings -> Applications -> Development -> USB Debugging
Install the Android SDK, the Linux version of Google site:
http://developer.android.com/sdk/index.html
http://dl.google.com/android/ android-sdk_r16-linux.tgz
Extract the archive to ~/sg2/
Then use the graph to be able to download android adb party that will serve us.
~/sg2/android-sdk-linux/tools/android
Download android sdk platform tools
adb command is here:
~/sg2/android-sdk-linux/platform-tools/adb
Important Reminder
Make sure you Enable USB Debugging and Flash Kernel year Insecure Before Installing busyboxand su
Installing busybox and su in the phone
S2Root Package (windows)
File: S2Root_1.5.1_Release.zip
We will use two files in this package
Download S2Root package and unzip it.
You'll find it here:
http://forum.xda-developers.com/attachment.php?attachmentid=750990&d=1318718398
S2Root_1.5.1_Release.zip
Extract and copy the Tools directory to ~/sg2/
We will use two files:
Tools/busybox
Tools/su
Installing su and busybox
Installing busybox, su and using the linux command adb previously installed:
cd ~/sg2/android-sdk-linux/platform-tools/ ./adb push ../../Tools/busybox /system/xbin/ ./adb push ../../Tools/su /system/xbin/ ./adb shell chown root.shell /system/xbin/busybox ./adb shell chown root.shell /system/xbin/su ./adb shell chmod 755 /system/xbin/busybox ./adb shell chmod 4755 /system/xbin/su ./adb shell /system/xbin/busybox install -s /system/xbin ./adb shell mount -o ro,remount /dev/block/mmcblk0p9 /system |
Humor
>> Mais en mettant le kernel cf ou speedmod et apres le stock, on ne perd pas le root ?
> Non, le root reste fonctionnel, reflasher le stock enlève le triangle jaune.