[G4 General] djibe89:
[GUIDE/TUTORIAL/HOWTO] LG G4 h811/h815 from Stock to Android 11

[GUIDE/TUTORIAL/HOWTO] LG G4 H811/H815 international stock to Android 11 / LineageOS 18

This detailed step-by-step guide helps you transform your LG G4 h811 or h815 to a powerful one with Android 11.

Make sure your phone is G4 h811 or h815 before going further : in Android, go to Settings > About > model is G4 h811/h815.

If not, quit this tutorial.

For H815TR or other H815** models, follow UsU unlock tutorial on XDA.

CHANGELOG

v8. Moved to Android 11

v7. Moved to Android 10, update pack, improve readability

v6. Updated pack for latest Magisk

v5. Updated pack for latest Magisk, fixed OpenGApps direct download link

v4. Update LG USB Drivers + fastboot and ADB

v3. TWRP 3.4.0-0, Android 9, extras (SHRP recovery)

v2. Updated tutorial, pack (TWRP 3.3.1-0, root), benchmark of Android versions

v1. Initial release for Android 7.1

1) DOWNLOAD

- djibe LG G4 h811/h815 pack (~ 45 Mo): https://www.androidfilehost.com/?fid=10620683726822049096 or https://mega.nz/file/sXdXTZYL#2WTHPAleVoJjNfmv5708nbDmZbBLJ62jQSBI365NqTg

(contains LG USB drivers + adb + fastboot + TWRP Recovery g4 3.6.2_9-0 by steadfasterX + Magisk root).

Unzip files.

- ROM Unofficial LineageOS 18.1

Thread: https://forum.xda-developers.com/t/...s991-h81x-us991-vs986-lineageos-18-1.4444261/

Download latest H815 build here: https://leech.binbash.rocks:8008/lineage/18.1/h815/

Download latest H811 build here: https://leech.binbash.rocks:8008/lineage/18.1/h811/

+ OpenGapps ARM64 11 nano: https://opengapps.org/?arch=arm64&api=11.0&variant=nano

+ a microSD card. Copy ROM, Gapps, Magisk root from my files concerning your Android version on microSD card (FAT32 format) and insert it in phone.

+ Charge phone to 100%

2) BACKUP DATA

Install LG drivers (you unzipped earlier).

Then plug phone to PC in File transfer mode.

Collect all .jpg or .mp4

use an app like Backupyourmobile to backup texts, contacts, etc.

Check that backup is located on microSD card.

Then copy the backup on your PC.

Go to Settings > General > About phone > Status > IMEI.

Note and save EMEI (15 digits) !

Still in About phone > Software info. Tap 7 times on Build number to unlock Developer options menu.

Now go Settings > Developer options > toggle on USB-debugging AND Enable OEM unlock.

### Make sure you have latest LG LG4 official updates installed

### Bootloader and modem must be >= V20A

Connect phone to PC (in File transfer mode). Authorize driver install from phone if never done.

Once connected, check phone to authorize USB debugging.

On PC, launch a Windows command prompt on my flash folder you unziped.

Now type :

adb devices

to list phones connected to PC.

If no device is listed. Make sure you installed LG drivers or try another USB port.

3) FLASH BOOTLOADER AND TWRP RECOVERY

Still in Windows Command, type

adb reboot bootloader

Phone will reboot.

Then type

fastboot oem device-id

Now on PC, using your usal web browser, go to https://us.lgaccount.com/join/terms

Register and confirm subscription by clicking the registration email in your mailbox (probably in Spam folder ;-) ).

You must enter more information about you for LG spies.

Now go to http://developer.lge.com/resource/mobile/RetrieveBootloader.dev

Then log in with your brand new LG identifiers.

Go to the tab How to Unlock the Bootloader

Go straight to the bottom of the page and Click Starting Unlocking the Bootloader.

Complete form like this :

- Phone : LGH815 (or H11 if so)

- IMEI : YOUR IMEI YOU NOTED IN STEP 2

Submit form.

### If LG tells you you cannot unlock bootloader officially, follow these instructions: https://forum.xda-developers.com/t/unlock-unofficial-g4-unlock-any-lg-g4-device-with-usu.3760451/

In your mailbox, you now receive a new mail containing unlock.bin file.

Copy this file in my "flash" folder you unziped earlier.

Now back to Windows Command

### WARNING. This command will reset your phone

fastboot flash unlock unlock.bin

then

fastboot flash recovery twrp-3.6.2_9-0-g4.img

and finally

fastboot boot twrp-3.6.2_9-0-g4.img

Wait while TWRP starts.

4) FLASH ANDROID, GAPPS +/- MAGISK ROOT

Go to Wipe > Advanced Wipe.

Check following partitions: Dalvik, System, Data, Internal Storage and Cache,

then Swipe to Wipe.

### Don't try to format partitions to F2FS, it won't work.

### If you get this error : Failed to mount '\data' (Operation not supported on transport endpoint),

### format all partitions back to EXT4

Go back to Home Screen > Reboot > Recovery and Swipe to Reboot.

After reboot, go to menu Install > Select Storage button > select Micro SD Card, confirm with OK.

select ROM file LineageOS*.zip,

then tap on Add more zips button and select Magisk*.zip,

then Add more zips : opengapps*.zip.

Now swipe to confirm flash and wait while flash occurs.

When flash has ended, tap on Wipe cache/dalvik and swipe, then tap on Reboot System, then Do Not Install (TWRP app).

Phone reboots, now wait for first Android launch (be patient :D ).

Et voil !

NB. Root and superuser privileges can be managed with Magisk Manager app (was flashed when you flash Magisk).

---------------------------------------------------------------------------------------------------------------------------------

### How to boot LG G4 in recovery mode at any time ?

Shutdown phone.

Hold Power + Volume- until LG logo shows up.

Release Power for 1 second (hold Volume-) and hold Power again (still holding Volume-).

Release when you see the blue light LED on phone.

Phone asks you if you want to Factory reset, say yes (don't be scared, it won't be reset. Use volume keys to move and Power to confirm).

Confirm Factory reset a second time to launch TWRP recovery.

Recovery Yes and yes

### How to boot LG G4 in recovery mode with ease ?

In Android, go to Settings > About Phone > Software info. Tap 7 times on Build numbber to unlock Developer options.

Now go Settings > Developer options > toggle on Avdanced Reboot.

Now when you Press Power to shutdown phone, in Shutdown menu, select Reboot > Recovery.

### How to install next generation Recovery on LG G4 ?

Sky Hawk Recovery Project thread: https://forum.xda-developers.com/g4/development/recovery-sky-hawk-recovery-project-2-2-t4074497

Download latest build here: https://sourceforge.net/projects/shrp/files/lg_g4/

Copy file to Internal Storage or microSD card.

Reboot to TWRP recovery > Install > SHRP*.zip.

Back to main menu, Reboot > Recovery.

Enjoy :D

Thanks: LineageOS team, AICP team, @steadfasterX, OpenGApps team, @Homeator, @ThePiGuy