Skip to content

Instantly share code, notes, and snippets.

@olidroide
Last active June 6, 2018 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olidroide/5834cccc335996f34f85c8a70eb49768 to your computer and use it in GitHub Desktop.
Save olidroide/5834cccc335996f34f85c8a70eb49768 to your computer and use it in GitHub Desktop.
Bypass FRP LG G4
Requirements:
· Bootloader unlocked
· Recovery TWRP (tested with 3.2.1.0)
· Tested with Nougat ROM https://forum.xda-developers.com/g4/development/rom-h-rom-v30-port-t3672567
STEPS
=====
Enter TWRP (press down + power when show LG log release power button and press again)
mount /system from Mount Menu
adb shell
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
echo "ro.setupwizard.mode=DISABLED" >> /system/build.prop
echo "ro.setupwizard.mode=DISABLED" >> default.prop
After reset
adb shell content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1
if the above doesn't work Try again using this:
===============================================
Ensure you had installed fastboot in you computer and permissions:
sudo editor /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev" #LG
[OR Paste entire list from https://gist.github.com/jdamcd/6054951#file-51-android-rules]
sudo udevadm control --reload
sudo udevadm trigger
Enter fastboot from Recovery TWRP reboot menu -> bootloader
fastboot -w
fastboot erase config
fastboot reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment