@echo off
rem first script
echo Hi, this is a test version of one-click giantpune root. Make sure that your adb file, are located here-C:\android\platform-tools. Continue when you make sure it is.
Pause
echo Before you start, get in the application settings in your phone and enable Debug mode, enable installation of non-market apps, and set your phone screen to timeout at like 30 minutes or something. Don't let your phones screen go off.
Pause
echo Okay, we're going to start the rooting process. Double check your shit and continue on when you're ready
Pause
cd C:\android\platform-tools
adb shell "rm /data/img/image.bmp"
adb shell "ln -s /data/local.prop /data/img/image.bmp"
adb shell "ls -l /data/img"
adb shell exit
adb install -r Ministro2.apk
adb install -r LG_OE_DiagMode-debug-unaligned.apk
adb push su /data/local/tmp/su
adb shell "am start -n org.kde.necessitas.example.LG_OE_DiagMode/org.kde.necessitas.origo.QtActivity"
echo Here soon, something wil pop up on your phones screen. If it asks to download some libraries, let it. When it gets done, another thing will pop up that says "Push Me". You need to push it. Continue on when you are ready for me to continue.
Pause
adb shell exit
lgoeExploit.exe
echo Okay, I just ran the exploit. It should have popped up with something like "Exploit was called successfully". If it didn't let me know. If it did, continue.
Pause
adb shell "echo ro.kernel.qemu=1 > /data/local.prop"
adb shell "cat ./data/local.prop"
echo waiiiiiiting
Pause
adb shell exit
adb reboot
echo Your phone will reboot, and be stuck in a boot loop. That's okay, we want that. Unplug and plug back in, then click when you're ready to continue.
adb kill-server
adb start-server
adb shell "mount -o remount,rw /dev/block/mmcblk0p12 /system"
adb shell "cat /data/local/tmp/su > /system/xbin/su"
adb shell "chown 0.0 /system/xbin/su"
adb shell "chmod 6755 /system/xbin/su"
adb shell "mount -o remount,ro /dev/block/mmcblk0p12 /system"
adb shell "rm /data/local/tmp/su"
adb shell "rm /data/img/image.bmp"
adb shell "rm /data/local.prop"
adb shell exit
adb reboot