[LG V30 Guides, News, & Discussion] runningnak3d:
PROCEDURE PART 2: Installing TWRP and rooting

Make sure the SD card is in your phone.

Boot from your FWUL USB stick.

Put your phone into download mode. With the phone powered off, hold vol up and plug in the USB cable. You do not need to

touch the power button -- the phone will power on and enter download mode.

Once booted, login. The password is: linux

Double click the LG folder that is on the desktop

Double click on LG LAF (runningnak3d) icon and you will be at a terminal prompt.

The following are the commands that you enter into that terminal. You can copy / paste them if you like.

git pull
git checkout h932-dd-write
./lglaf.py

These next commands you will type into the LGLAF shell. It will look like this:

LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)
Type a shell command to execute or "exit" to leave.
#

You will type these commands at the # prompt that you see above. When you enter the commands, you will NOT get any indication that the command completed. However, if you get this:

Hello, I am LAF. Nice to meet you.

then you typed the command incorrectly, and you need to try again. There are TWO spaces between !EXEC and toybox.

Also, the phone will NOT indicate that flashing is taking place since we are using dd and NOT the normal WRTE opcode. When you enter !CTRL POFF, the phone will go to 100%.

Lastly CAPS matter. These lines need to be typed exactly (better to use copy / paste). If you mess up, it is no big deal, just try again.

!EXEC toybox dd if=/storage/external_SD/twrp.img of=/dev/block/sde bs=4096 seek=10246\0
!CTRL POFF

You can now pull the USB cable, and your phone will power off. You now have TWRP installed. At this point you can flash a ROM, or Magisk or whatever you like.

You

must

use the key combination to immediately boot to TWRP:

Power off your phone

Hold vol down + power.

When the LG logo appears, immediately release power (and ONLY power) and then immediately hold power again until you get the the factory reset screen.

You never let go of vol down until the factory reset screen appears. Once it appears, you can release both buttons.

Choose yes twice by using the vol down key and power to select, and you will be in TWRP.

You should only tap the power key to select yes. Don't press and hold, and don't spam the power key.

It takes TWRP a little bit to boot -- be patient.

If you don't do this, and you let the phone boot into the OS, then recovery-from-boot.p will wipe out TWRP, and you will have to do THIS part again.

By THIS part, I mean if you mess up the key combo, and the phone boots to the OS, you only have to do PART 2 -- not this entire process.

ROOTING:

OK, so now you are in TWRP, we need to flash a few things or TWRP will be wiped out, and your phone will be encrypted again.

First swipe to allow modifications

Choose wipe / format data / type yes

Choose reboot / recovery -- this will reload TWRP. Do not choose reboot / system. Make sure that when it reboots you are able to mount data without it prompting for a pin / passcode.

If it does, then you need to format data again and reboot to recovery because you chose WIPE and not FORMAT.

Pick install, and browse to your SD card where you have Magisk, dm-noverity-opt-encrypt, and rctd remover

You can install each one individually, or you can add them all together in the queue -- it is your choice. Also, Magisk needs to be flashed first -- the order of the other two zips doesn't matter.

Now that they are flashed, reboot to recovery yet again just for good measure. If everything looks good, reboot to system and you should have a rooted phone.

OPTIONAL:

If you would like a second copy of TWRP on your laf partition (I *highly* recommend this), follow these instructions:

Download the version of TWRP that you want to install onto laf.

Rename it to twrp.img

Boot your phone to TWRP, and connect it to your PC

Open a command prompt where you downloaded TWRP and type:

adb push twrp.img /sdcard/

adb shell dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/laf

With the phone off, hold vol up and plug in the USB cable and you should be greeted by your second copy of TWRP.

CLEANING UP:

If you do NOT want TWRP on laf, then we at least need to get the H932 laf back onto your phone.

Download this zip onto your phone: h932_laf.zip

Boot to TWRP

Choose install, and browse to where you downloaded the zip

When it finishes flashing, you will have the H932 laf back.

I can't say this enough, you should really consider keeping two copies of TWRP around. You will never be in a situation where you go: "Man, I wish I had download mode, but all I have is TWRP".

However, there are plenty of times that you may wish that you had a second copy of TWRP. Imagine flashing a ROM that wipes out recovery. Oppps. Imagine flashing a new version of TWRP and

it doesn't boot -- again -- opps.

-- Brian