Created
January 12, 2013 05:01
-
-
Save dvdvck/4516196 to your computer and use it in GitHub Desktop.
Siguiendo el método que uso el autor del post[1] para realizar root en el celular ZTE-V856, esta es la versión para linux de runme.bat [1] http://www.taringa.net/posts/celulares/16004986/_Quieres-rootear-tu-celular-android_--_-entra-aqui.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# This file was ported to shell executable from runme.bat | |
# Autor David Retana | |
# Date 01-2013 | |
cat <<-EOF | |
--------------------------------------------------------------- | |
Easy rooting toolkit (v3.0) | |
created by DooMLoRD | |
using exploit zergRush (Revolutionary Team) | |
Credits go to all those involved in making this possible! | |
--------------------------------------------------------------- | |
[*] This script will: | |
(1) root ur device using latest zergRush exploit (16 Nov) | |
(2) install Busybox (1.18.4) | |
(3) install SU files (binary: 3.0.3 and apk: 3.0.6) | |
[*] Before u begin: | |
(1) make sure u have installed adb drivers for ur device | |
(2) enable "USB DEBUGGING" | |
from (Menu/Settings/Applications/Development) | |
(3) enable "UNKNOWN SOURCES" | |
from (Menu/Settings/Applications) | |
(4) [OPTIONAL] increase screen timeout to 10 minutes | |
(5) connect USB cable to PHONE and then connect to PC | |
(6) skip "PC Companion Software" prompt on device | |
--------------------------------------------------------------- | |
EOF | |
read -p "CONFIRM ALL THE ABOVE THEN " | |
echo "--- STARTING ----" | |
echo "--- WAITING FOR DEVICE" | |
adb wait-for-device | |
echo "--- cleaning" | |
adb shell "cd /data/local/tmp/; rm *" | |
echo "--- pushing zergRush" | |
adb push files/zergRush /data/local/tmp/. | |
echo "--- correcting permissions" | |
adb shell "chmod 777 /data/local/tmp/zergRush" | |
echo "--- executing zergRush" | |
adb shell "./data/local/tmp/zergRush" | |
cat <<-JS_PROMISES_O_K_ASE | |
--- WAITING FOR DEVICE TO RECONNECT | |
if it gets stuck over here for a long time then try: | |
disconnect usb cable and reconnect it | |
toggle "USB DEBUGGING" (first disable it then enable it) | |
--- DEVICE FOUND | |
JS_PROMISES_O_K_ASE | |
adb wait-for-device | |
echo "--- pushing busybox" | |
adb push files/busybox /data/local/tmp/. | |
echo "--- correcting permissions" | |
adb shell "chmod 755 /data/local/tmp/busybox" | |
echo "--- remounting /system" | |
adb shell "/data/local/tmp/busybox mount -o remount,rw /system" | |
echo "--- copying busybox to /system/xbin/" | |
adb shell "dd if=/data/local/tmp/busybox of=/system/xbin/busybox" | |
echo "--- correcting ownership" | |
adb shell "chown root.shell /system/xbin/busybox" | |
echo "--- correcting permissions" | |
adb shell "chmod 04755 /system/xbin/busybox" | |
echo "--- installing busybox" | |
adb shell "/system/xbin/busybox --install -s /system/xbin" | |
adb shell "rm -r /data/local/tmp/busybox" | |
echo "--- pushing SU binary" | |
adb push files/su /system/bin/su | |
echo "--- correcting ownership" | |
adb shell "chown root.shell /system/bin/su" | |
echo "--- correcting permissions" | |
adb shell "chmod 06755 /system/bin/su" | |
echo "--- correcting symlinks" | |
adb shell "rm /system/xbin/su" | |
adb shell "ln -s /system/bin/su /system/xbin/su" | |
echo "--- pushing Superuser app" | |
adb push files/Superuser.apk /system/app/. | |
echo "--- cleaning" | |
adb shell "cd /data/local/tmp/; rm *" | |
echo "--- rebooting" | |
adb reboot | |
echo "ALL DONE!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment