LG Optimus 4X HD (lg-p880)

How to enter flash mode
adb reboot oem-unlock

fastboot oem unlock

flash twrp 3.0.3

reboot to recovery (Vol + and Power)

Installation
pmbootstrap build --strict --force --arch armv7 linux-lg-p880 device-lg-p880 && pmbootstrap install && pmbootstrap export adb push /tmp/postmarketOS-export/boot.img /sdcard/boot.img adb push /tmp/postmarketOS-export/lg-p880.img /sdcard/system.img adb shell dd if=/sdcard/boot.img of=/dev/block/mmcblk0p2 dd if=/sdcard/system.img of=/dev/block/mmcblk0p3
 * 1) NOTE for most of devices you can make adb push directly to the partitions! Just beware of numbering!

Unbricking
Device boots 1)normal 2)APX mode 3)Diagnostic mode (S/W Upgrade)

if bootloop try reset battery and go to recovery or fastboot (+ and power; - and power)

if its not working:

without battery hold + and - volume and plug usb (if not detect as Nvidia APX try again)

when detects insert battery

in APX mode using nvflash from here not patched

other files from here

some bat command flash encrypted ABL and phone now

in S/W Upgrade

next in Windows system (VM or not) restarts in Disable driver signing enforcement mode

install lg drivers form here or here

go to http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=XXXXXXXXXXXXXXX replace XX to phone imei; remember region

download from here last kdz for your region

download 3pack.zip

open kdz_fw and windows_enabler and make windows_enabler on

by clicking select CDMA, Emergency, KDZ file and launch

phone starts with android

flash twrp 3.0.3

Contributors

 * SL-TX''