Archives de catégorie : Générale

Rooter son téléphone Android Samsung Galaxy S2 depuis Linux

Installer Heimdall sur le PC sous Linux :

http://www.glassechidna.com.au/products/heimdall/

Il y a des packages pour 32 bits ou 64 bits
Il faut installer les 2 packages heimdall + frontend

Récupération du kernel insecure correspondant à celui installé
sur le téléphone (A propos du téléphone)

On éteint alors le téléphone.
Puis on allume le téléphone en mode download mode en appuyant sur
Vol Down + Home + Bouton On
puis Vol Up

Et connecter en USB sur l’ordi et vérifier qu’ils se voient
$heimdall detect
Device detected
jylenhof@ubuntu-newportable:~/Téléchargements$

Sous Root (sauf si vous avez la règle udev qui va bien)
heimdall flash –kernel zImage

Une fois installé, le téléphone reboot

Mettre son téléphone en mode Débogage USB
Paramètres -> Applications -> Développement -> Débogage USB

Installer le SDK Android, version Linux sur le site de google :
http://developer.android.com/sdk/index.html
le fichier http://dl.google.com/android/android-sdk_r16-linux.tgz

Il faut détarer ce fichier. Puis ensuite il faut lancer la commande
android pour pouvoir downloader la partie adb qui va nous servir.

android-sdk-linux/tools$ ./android

Télécharger android sdk platform tools

Une fois téléchargé, adb est désormais présent sous android-sdk-linux/platform-tools

Downloader le package S2 Root ici par exemple http://forum.xda-developers.com/showthread.php?t=1125414
Le dézipper.

jylenhof@ubuntu-newportable:~/Téléchargements$ unzip S2Root_1.5.1_Release.zip
Archive: S2Root_1.5.1_Release.zip
creating: ADB/
inflating: ADB/adb.exe
inflating: ADB/AdbWinApi.dll
inflating: ADB/AdbWinUsbApi.dll
creating: Tools/
inflating: Tools/busybox
inflating: Tools/su
inflating: S2 Root.exe
inflating: Tools/Superuser.apk
jylenhof@ubuntu-newportable:~/Téléchargements$

Puis on installe les commandes su & busybox :
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb push ../../Tools/busybox /system/xbin/
2431 KB/s (705192 bytes in 0.283s)
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb push ../../Tools/su /system/xbin/
546 KB/s (22228 bytes in 0.039s)
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell chown root.shell /system/xbin/busybox
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell chown root.shell /system/xbin/su
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell chmod 755 /system/xbin/busybox
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell chmod 4755 /system/xbin/su
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell /system/xbin/busybox –install -s /system/xbin
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$ ./adb shell mount -o ro,remount /dev/block/mmcblk0p9 /system
jylenhof@ubuntu-newportable:~/Téléchargements/android-sdk-linux/platform-tools$

Share