OS: Android - Rooting LG Optimus G Pro e980 dari Linux

From OnnoWiki
Jump to navigation Jump to search

Pastikan kita berada di folder dengan file

busybox
su
Superuser.apk

Script untuk rooting LG Optimus G Pro dengan codename e980


echo ======================================================================
echo =      Simple Root Method for LG Optimus G
echo =     Will work on ZV9 and Jelly Bean releases
echo =            Script re-done by fiddy619
echo =          Thanks to JCase, and Giantpune
echo = Donate to giantpune@gmail.com for his insight on the exploit!                
echo ======================================================================
echo.
 
echo [*] Waiting for device...(Connect your LGOG via USB in Charge Only Mode)
adb wait-for-device
echo [*] Device found.
echo.
echo Beginning Root Process

adb shell "echo -en \\x0d > /sdcard/G_security"

echo.
echo.
echo  Now change from Charge Only to MTP
echo  No need to disconnect USB
echo  Press Enter after making the change.
echo.
echo.

read -n 1 -s

echo.
adb root
echo.
adb shell id
echo.
echo.
echo.
echo   If uid=0(root), gid=0(root) is displayed
echo.
echo          Press Enter to Continue
echo.
echo.
read -n 1 -s
adb push busybox /data/local/tmp/busybox
adb shell "chmod 755 /data/local/tmp/busybox"
adb shell "/data/local/tmp/busybox mount -o remount,rw /system"
adb shell /data/local/tmp/busybox cp /data/local/tmp/busybox /system/xbin/busybox
adb push su /system/xbin/su
adb push Superuser.apk /system/app/Superuser.apk
adb shell "chown 0.0 /system/xbin/su && chmod 06755 /system/xbin/su && chmod 655 /system/app/Superuser.apk && chmod 755 /system/xbin/busybox && /data/local/tmp/busybox rm /sdcard/G_security"
echo.
echo.
echo  You are now properly Rooted.
echo.
read -n 1 -s
echo [*] Rebooting...

adb reboot