Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Script Rooting Xperia L 4.2.2 15.3.A.1.14 C2105
#!/bin/bash
## Script for rooting Xperia L from GNU/Linux or Unix Base
## Modified by Estu (estu@di.blankon.in)
## I just modified, lisence back to the origin creator, mitulvohra(http://forum.xda-developers.com/member.php?u=4270059)
## Retrive from http://techglen.com/2014/02/28/root-xperia-l-c2104-c2105-4-2-2-15-3-a-1-14-firmware-locked-unlocked-bootloader/
echo --- Xperia rootkit 2013/12/07 ---
echo;
echo waiting for device...
adb wait-for-device
adb push files/getroot /data/local/tmp/
adb push files/su /data/local/tmp/
adb push files/Superuser.apk /data/local/tmp/
adb push files/busybox /data/local/tmp/
adb push files/00stop_ric /data/local/tmp/
adb push files/install_tool.sh /data/local/tmp/
adb shell "chmod 0755 /data/local/tmp/getroot"
adb shell "chmod 0755 /data/local/tmp/busybox"
adb shell "chmod 0755 /data/local/tmp/install_tool.sh"
echo;
echo getroot start.
adb shell "/data/local/tmp/getroot /data/local/tmp/install_tool.sh"
echo;
echo removing temporary files...
adb shell "rm /data/local/tmp/getroot"
adb shell "rm /data/local/tmp/su"
adb shell "rm /data/local/tmp/Superuser.apk"
adb shell "rm /data/local/tmp/busybox"
adb shell "rm /data/local/tmp/00stop_ric"
adb shell "rm /data/local/tmp/install_tool.sh"
echo;
echo rebooting...
adb reboot
echo waiting for device...
adb wait-for-device
echo;
echo --- all finished ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment