[G4 Android Development] steadfasterX:
About

(Source: https://twrp.me/)

Is this the official TWRP thread?

YES until you find any further notice on https://twrp.me .

Features

<MM> (PREVIEW): Build on (Android 6.0) sources

<N> (PREVIEW): Build on (Android 7.1) sources

<O> (PREVIEW + current OFFICIAL): Build on (Android 8.1) sources

<P> (PREVIEW): Build on (Android 9.0) sources

TITAN kernel inside (build with UBER Toolchain)

Time is working (for both STOCK and CM/AOSP based)

Decrypting is supported on: MM, N, O (CM/LOS/AOSP based ROMs) and on STOCK based ROMs (N only)

DT2W (double tap to wake up) - thx for the idea ufocus ;) removed, sorry.

see the Changelog post for all features!

Requirements

You need to have a

unlocked bootloader (see FAQ #9)

to install and use TWRP!

To avoid issues with some ROMs (e.g. CM) this TWRP version comes without any supersu

Known issues

decrypting STOCK (

other

then N) is not working - only CM / LOS / AOSP based are fully supported

on some devices (unfortunately not on mine) the screen keeps unresponsive during a backup. Please just be patient it will start working again after the backup has finished.

after flashing Nougat bootloader (e.g. v29a) TWRP

may

lag. This has been reported by a few but I cannot reproduce that on mine.

Download

official twrp download page (search for your device model)

unofficial / PREVIEW releases:

From time to time I may release unofficial PREVIEW versions before merging them to official builds.

Those are meant as test builds only! Keep in mind that all my changes when they go stable will be merged with the official tree so you can just wait for a stable release.

Keep in mind that unofficial versions may contain unknown bugs!! so don't rely on backups taken from these versions!

Unofficial PREVIEW downloads (most current):

1) When do you need to install a specific flavor (MM, N, O,...) ?

if you want correct time setting in TWRP

if you want to decrypt - so encrypted your device

2) Is there any other reason why I should use a specific flavor (MM, N, O,...) ?

no!

you can use

ANY

flavor if you don't care about the above 2 reasons

3) So I can use ANY TWRP version to install ANY ROM?

Or do I need to use a specific flavor (MM, N, O,...) when it comes to install ROMs or other ZIPs?

read 2) again!

Download Link: http://leech.binbash.rocks

BETA downloads (extremely outdated):

Download section

above.

Installation

Optional but

highly

recommended:

Backup with SALT (click) before doing ANYTHING else!

Method 1) TWRP app (recommended but requires a rooted device)

Google play store: TWRP-App

Without play store: official twrp website

I said you need an unlocked device. So ensure you have it unlocked

and

for official unlocked G4 models the OEM unlocking option must be enabled!

Install the app and open it. Agree to the Terms.

Select TWRP Flash.

Select your device from the device list (H811, H815) and choose a version.

The file will download to your Downloads folder.

Browse to and select the file.

Tap on Flash to Recovery.

Find out more about the app here.

Method 2) fastboot

This howto works 100%

up to and including MM

(scroll down for

N

):

I said you need an unlocked device. So ensure you have it unlocked

and

for official unlocked G4 models the OEM unlocking option must be enabled (see screenshot)

Connect an USB cable and get ADB running (READ the FAQ!! or the general guide above)

Boot into Android and then type on your PC to reboot into fastboot mode:

adb reboot bootloader

Type on your PC:

fastboot boot twrp.img

(replace twrp.img with the real file name you downloaded)

Then copy the twrp.img to your device

while still in twrp

(e.g. with a file explorer or by typing adb push twrp.img /sdcard)

Flash the twrp.img with twrp GUI to the recovery partition (choose the button at the bottom named image to show the copied image)

It is

highly

recommended to verify your TWRP installation by booting into Android now

fastboot reboot

Then execute: adb reboot recovery

or in a Android terminal app execute: reboot recovery

If

you see TWRP afterwards

then

you are safe to use the key combo:

After installing TWRP correctly, you will still have the

original LG factory reset screen/menu

booting before TWRP, every time. So the correct and only way to get into TWRP

with a key combo

is to select two times "Yes" in the official LG factory reset menu, and only then you will get into TWRP (It's a restriction by LG. There is no key combo available in some / all / most LG devices to boot directly into recovery and so TWRP).

If that worked go into the reboot menu and choose reboot to recovery again so TWRP should boot up once again

Now all should be in place and TWRP should resist even booting into Android

This howto is for the

Nougat

bootloader (for LP or MM scroll up):

I said you need an unlocked device. So ensure you have it unlocked

and

OEM unlocking option is enabled (see screenshot)

Connect an USB cable and get ADB running (READ the FAQ!! or the general guide above)

Boot into Android and then type on your PC to reboot into fastboot mode:

adb reboot bootloader

Type on your PC (fastboot BOOT command has been removed from Nougat!):

fastboot flash recovery twrp.img

(replace twrp.img with the real file name you downloaded)

There is no 100% way to verify your TWRP installation so you have to take the risk but ensure you follow this next step briefly:

After installing TWRP correctly, you will still have the

original LG factory reset screen/menu

booting before TWRP, every time. So the correct and only way to get into TWRP

with a key combo

is to select two times "Yes" in the official LG factory reset menu, and only then you will get into TWRP (It's a restriction by LG. There is no key combo available in some / all / most LG devices to boot directly into recovery and so TWRP).

Do this right now!! open the factory reset screen to get into TWRP!

If you skip the step and boot into Android before doing this TWRP will be overwritten by Android so it is crucial important to do this step above

directly

after flashing TWRP!!!!! if you miss it you will have to flash TWRP again!

If that worked go into the reboot menu and choose reboot to recovery again so TWRP should boot up once again

Now all should be in place and TWRP should resist even booting into Android

Upgrade

Upgrading TWRP is easy. Just push the new image file to your device and flash from TWRP!

boot into TWRP (check the FAQ for a howto)

copy the new twrp.img to your device

while still in twrp

(e.g. enable MTP in TWRP and use a file explorer or by typing adb push twrp.img /sdcard on your PC (needs ADB installed. Again check FAQ for how to set this up))

In TWRP switch the view to show image files by choosing the button at the bottom named Image and walk to the place where you pushed the new twrp image file.

Choose the new twrp image file and when asked choose the "

recovery

" partition

done. You can now reboot into recovery again to check that the upgrade has worked.

Support

I have created a Telegram group for all stuff around Android : here

and another one if you want to keep up2date whenever I build something (TWRP, SHRP, LOS, /e/, ...): here

I'm normally also available in the official twrp IRC channel and besides that it is always the best way for getting direct TWRP support (channel #twrp)!

Before actually going there or if you're new to IRC please read and follow

FAQ #5 What is required to get support?

Thread rules

Never

ask for ETA's !

Sources

Official builds device tree: github

PREVIEW builds device tree github

Kernel: TITAN kernel

Thanks/Credits

TEAMWIN of course :)

@DevUt for the continues help on IRC ;)

@jcadduono for some help with qseecomd libs

@kessaras for the TITAN kernel and for being often enough my testing ***** ;)

XDA:DevDB Information

Official TWRP, Tool/Utility for the LG G4

Contributors

steadfaster, draymond1987

Source Code: https://github.com/TeamWin/android_device_lge_g4

Version Information

Status: Stable

Current Stable Version: 3.4

Stable Release Date: 2020-06-22

Current Beta Version: any PREVIEW

Created 2016-08-18

Last Updated 2020-08-21