How to Root LG G Flex 2, G2, G3 on Lollipop! (LG폰 롤리팝 루팅하기! )

2015. 4. 29. 18:41Programing/Android / Java

<Pre-condition>
0. Install the driver
1. Connect USB
2. Menu > Settings > General > About Phone > Common > Software info > Build Number
   > Press "Build Number" over 7 times to get "Developer options".
3. Menu > Settings > General > Developer options
   > Enable Develoption Operation 
   > Check "USB debugging"  
   > Press "OK"
4. Connect USB
5. Popup - "Allow USB debugging?"
   > Check "Always allow from this computer"
   > Press "OK"

<Download the below file>

<Start Root>
1. Input Needed Data into the Phone
   >adb.exe push busybox /data/local/tmp/ && adb.exe push lg_root.sh /data/local/tmp && adb.exe push UPDATE-SuperSU-v2.46.zip /data/local/tmp
   4283 KB/s (1048328 bytes in 0.239s)
   2274 KB/s (9319 bytes in 0.004s)
   3946 KB/s (4017098 bytes in 0.994s)
2. Power Off
3. Press and Keep Volume Up button, and then plug-in USB
4. Wait to enter Firmware Update
5. Execute "ports.bat"
   > ports.bat
   > reg query HKLM\hardware\devicemap\SERIALCOMM
     HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM
        \Device\Serial0    REG_SZ    COM3
        Winachsf0    REG_SZ    COM4
        \Device\LGANDNETMDM0    REG_SZ    COM13
        \Device\LGANDNETDIAG1    REG_SZ    COM9
   > pause
     Press any key to continue . . .
6. Input Command in CMD
   > Send_Command.exe \\.\COM9
     Author : blog.lvu.kr
     SPECIAL COMMAND : ENTER, LEAVE

     #sh /data/local/tmp/lg_root.sh dummy 1 /data/local/tmp/UPDATE-SuperSU-v2.46.zip /data/local/tmp/busybox
     ui_print *****************
     ui_print SuperSU installer
     ui_print *****************
     ui_print - Mounting /system, /data and rootfs
     ui_print - Extracting files
     Archive:  /data/local/tmp/UPDATE-SuperSU-v2.46.zip
       inflating: META-INF/MANIFEST.MF
       inflating: META-INF/CERT.SF
       inflating: META-INF/CERT.RSA
       inflating: META-INF/com/google/android/update-binary
       inflating: META-INF/com/google/android/updater-script
       inflating: arm/chattr
       inflating: arm/chattr.pie
       inflating: arm/libsupol.so
       inflating: arm/su
       inflating: arm/supolicy
       inflating: arm64/libsupol.so
       inflating: arm64/su
       inflating: arm64/supolicy
       inflating: armv7/chattr.pie
       inflating: armv7/libsupol.so
       inflating: armv7/su
       inflating: armv7/supolicy
       inflating: common/99SuperSUDaemon
       inflating: common/Superuser.apk
       inflating: common/install-recovery.sh
       inflating: mips/chattr.pie
       inflating: mips/libsupol.so
       inflating: mips/su
       inflating: mips/supolicy
       inflating: mips64/libsupol.so
       inflating: mips64/su
       inflating: mips64/supolicy
       inflating: x64/libsupol.so
       inflating: x64/su
       inflating: x64/supolicy
       inflating: x86/chattr
       inflating: x86/chattr.pie
       inflating: x86/libsupol.so
       inflating: x86/su
       inflating: x86/supolicy
     ui_print - Disabling OTA survival
     ui_print - Removing old files
     ui_print - Placing files
     ui_print - Post-installation script
     ui_print - Unmounting /system and /data
     ui_print - Done !
     #
     #LEAVE
7. Remove Battery and then Boot-Up
8. Input cmmand "adb shell"
   > adb shell
9. Input cmmand "su"
   $ su
10. Accept it on the Phone (Pop-up)