[ROOT] H932 - lafploit 1.5 up to v20a

Did this work for you?

  • Yes

    Votes: 136 72.0%
  • No

    Votes: 21 11.1%
  • No and I lost download mode

    Votes: 18 9.5%
  • No and I have a brick

    Votes: 14 7.4%

  • Total voters
    189
Search This thread
Jul 4, 2020
8
0
I rooted my V30 awhile back to Nougat, and now I want to restore to official firmware and relock the bootloader using these instructions.
Is it possible? I got the new patched version of LGUP for Pie from another thread, but when I try to flash an official v30 Pie kdz using "upgrade" it is giving me an error something along the lines of "0x4 cannot cross flash model h932 to h932" for some reason. I will pull up a picture in a little.
 

procaliius

New member
Aug 7, 2022
1
1
After much research with problems on FWUL not having the commands for lglaf working, I finally got it to work successfully with my v30. Follow the first post until you get to the “git pull” portion. From here, use these commands:

Code:
git clone https://gitlab.com/runningnak3d/lglaf.git
cd lglaf
git pull
git checkout h932-dd-write
./lglaf.py

Follow the lglaf commands in this comment exactly:
Post in thread '[ROOT] H932 - lafploit 1.5 up to v20a'
https://xdaforums.com/t/root-h932-lafploit-1-5-up-to-v20a.3842550/post-77672203

Or copy/paste these commands:

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

From here, go back to the first post and pick up the next step after the instructions for “./step1.sh”

Let me know if it doesn’t work for you. Good luck!
 
Last edited:
  • Like
Reactions: Shadowwolf218

DJ_MiX

Senior Member
May 11, 2008
465
34
New Jersey
Here you all go. This folder contains everything needed for download mode recovery. Read the instructions provided in the folder first. I just uploaded the most current OTA update as well. Was able to grab the link by taking a bug report as it was downloading the update. I am currently unrooted as I broke my download today so I could verify all the steps worked as written.

https://drive.google.com/drive/folders/1TZE4Gx8v6n-iD-eWlczn5ps9I8qO4wjt?usp=sharing
Guys need help lost DL mode, tried flashing LAF thru TWRP, but it never connects to phone.

Anyone have this file available?
 

Sunhawk01

Member
Feb 16, 2014
30
4
Milwaukee
smsi.miiduu.com
WARNING
  • DO NOT LET YOUR PHONE REBOOT, OR POWER OFF UNTIL I TELL YOU THAT IS WHAT YOU NEED TO DO.
    If you do, I am not sure what shape your phone will be in.
  • This should go without saying, but you MUST have your bootloader unlocked (check OEM UNLOCK in developer options AND fastboot oem unlock). If you don't, you will probably brick your phone.
  • If you use this on any model V30 besides the H932, you will be stuck in a bootloop, and you will not be able to fix it since you will have wiped out download mode!
  • This is safe if no mistakes are made (typos, missing a step, etc). However, if you do mess up, the risk is high that you lose download mode at best, or brick your phone at worst.
  • If you deviate from this procedure, and think: "I can just skip a step, or I can do this on my own Linux install". Don't complain if you brick your phone.

PREREQUISITES:
  • You MUST to be on 10d: link
  • You must have H933 10h laf installed. You will need the KDZ: link
  • We are going to flash this using the patched LG UP: link MOD EDIT: original link dead. Try THIS ONE instead
    It MUST be installed in: C:program Files (x86)LG ElectronicsLGUP
    You can't just unzip it anywhere and run it, it will not find the model file.
  • You need TWRP: link
  • You need an SD card that is formatted for FAT16 with TWRP copied onto it EXACTLY as it is named when you download it.
  • You need to grab FWUL (version 2.7 or later) and burn it to a USB stick: link
    Even if you have Linux, and you think you can install the dependencies, don't. I know this works from FWUL.
  • After installing TWRP, grab @weakNPCdotCom's latest TWRP flashable ROM threads: Oreo 20s or Pie 30d
  • MOD EDIT: If your phone is (or has been) on Pie, you need to use a later LGUP version to roll back to Nougat 10d, then SWITCH to the original LGUP version linked below for the remaining steps. See this post for details.

PROCEDURE PART 1: Getting a working LAF onto your phone
By far this is the most dangerous part of this procedure.
  • Make sure you are on or downgraded to 10d
  • Boot to download mode
  • In LG UP, choose partition DL.
  • Pick the H933 10h KDZ
  • Click start
  • You will be given a list of partitions to flash, ONLY check laf
  • Click start
  • You will get a warning about additional modified partitions -- ignore it, and click OK.
  • As a safety feature, LG UP will start flashing those modified partitions after laf completes flashing.
    After the flash is initiated, pay close attention to the "step" and as soon as it changes from laf to another partition, PULL THE USB CABLE!
    If you let it completely flash the H933 KDZ, your phone WILL reboot, and you WILL have a brick that can't be fixed.
    You NEED to pay attention. The additional partitions that are flashed are very small. The second that step changes from laf to
    the next partition, PULL THE USB CABLE!
  • Click OK and it will start flashing.
  • Once laf is flashed, and you have pulled the USB cable, you can click exit, and then re-open LG UP.
  • Choose partition DL again, and this time pick the H932 10d KDZ.
  • Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again.
  • When it completes, it will reboot your phone.
  • Go back into download mode. This time you will be running the H933 laf, and we can continue with PART 2


PROCEDURE PART 2: Installing TWRP
  • 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.

MOD EDIT: Refer to THIS POST to make sure that LGLAF is able to read the SD card

Code:
git pull
git checkout h932-dd-write
./step1.sh
When you are told to, pull the USB cable, and the 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 (with phone off, hold vol down + power. When the LG logo appears, immediately release and then hold power until you get the the factory reset screen. Choose yes twice and you will be in TWRP) to IMMEDIATELY boot into recovery. If you don't, then recovery-from-boot.p will wipe out TWRP, and you will have to do THIS part again.



CREDITS:
  • Lekensteyn -- His base work on the G2 / G3 gave me a GREAT headstart!
  • @steadfasterX - He added some real nice features, great guy to bounce ideas off, and just testing crazy ideas because he wasn't afraid to brick his phone :) Also, for FWUL
  • tuxuser - Helping with my lacking in Python
  • @smitel - His original reverse engineering of LG UP. Great inspiration!

-- Brian

XDA:DevDB Information
[H932] lafsploit 1.5, Tool/Utility for the LG V30

Contributors
runningnak3d

Version Information
Status:
Testing

Created 2018-09-14
Last Updated 2020-07-21
NICE > funny how ppl skip steps and cut corners thinking they are smarter than the tested methods, F**k up their devices, then complain to us devs...Good work here bud!
 

rdmd

Member
Sep 21, 2006
39
2
I did this root process a couple of years ago on my h932 with no problems. Now I've had to replace my h932 and I can't get FWUL to work properly. I seems like the problem may be a lack of an internet connection on FWUL. When I enter the code into the terminal prompt I get this message:

[android@fwul lglafsploit]$ git pull
fatal: unable to access 'https://gitlab.com/runningnak3d/lglaf.git/': Could not resolve host: gitlab.com


Any ideas?

Thanks.
 

rdmd

Member
Sep 21, 2006
39
2
Resolved the problem in the previous post by using an ethernet connection instead of wifi.

Got to part 2 where I'm having problems again. It seems like FWUL isn't finding the TWRP.img file for some reason. I rooted another h932 a bit ago and this worked fine with the same TWRP file on the same SD card. I get this message:


[android@fwul lglafsploit]$ git pull
Already up to date.

[android@fwul lglafsploit]$ git checkout h932-dd-write
Checking out files: 100% (17/17), done.

Branch 'h932-dd-write' set up to track remote branch 'h932-dd-write' from 'origin'.
Switched to a new branch 'h932-dd-write'
[android@fwul lglafsploit]$ ./lglaf.py
LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)
Type a shell command to execute or "exit" to leave.

# !EXEC toybox dd if=/storage/external_SD/twrp.img of=/dev/block/sde bs=4096 seek=10246\0
./lglaf.py:540: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
_logger.warn(e)
LGLAF.py: WARNING: Header field requires a DWORD, got bytes b'EXEC\xc2\xa0'
# !CTRL POFF
#

When I reboot into recovery I get the stock recovery, not TWRP.

Help please!
 
Resolved the problem in the previous post by using an ethernet connection instead of wifi.

Got to part 2 where I'm having problems again. It seems like FWUL isn't finding the TWRP.img file for some reason. I rooted another h932 a bit ago and this worked fine with the same TWRP file on the same SD card. I get this message:


[android@fwul lglafsploit]$ git pull
Already up to date.

[android@fwul lglafsploit]$ git checkout h932-dd-write
Checking out files: 100% (17/17), done.

Branch 'h932-dd-write' set up to track remote branch 'h932-dd-write' from 'origin'.
Switched to a new branch 'h932-dd-write'
[android@fwul lglafsploit]$ ./lglaf.py
LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)
Type a shell command to execute or "exit" to leave.

# !EXEC toybox dd if=/storage/external_SD/twrp.img of=/dev/block/sde bs=4096 seek=10246\0
./lglaf.py:540: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
_logger.warn(e)
LGLAF.py: WARNING: Header field requires a DWORD, got bytes b'EXEC\xc2\xa0'
# !CTRL POFF
#

When I reboot into recovery I get the stock recovery, not TWRP.

Help please!
Did you copy/plaste the command or type it out manually?
 
  • Like
Reactions: ChazzMatt

rdmd

Member
Sep 21, 2006
39
2
Did you copy/plaste the command or type it out manually?
I copy/pasted it just like before.

I'm starting to think something went wrong with Part 1 of the procedure getting the 933 laf on the phone, so I'm going to repeat that today and then try part 2 again.

I don't remember ever seeing the

./lglaf.py:540: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
_logger.warn(e)
LGLAF.py: WARNING: Header field requires a DWORD, got bytes b'EXEC\xc2\xa0'


warning stuff before, but I can't figure out what It's trying to tell me.

Thanks.
 

rdmd

Member
Sep 21, 2006
39
2
Figured it out after much hunting. There was a post with alternative code for the first set of FWUL commands that I found that worked where the ones in the original instructions did not. In case anyone needs them they are:

Code:
git clone https://gitlab.com/runningnak3d/lglaf.git
cd lglaf
git pull
git checkout h932-dd-write
./lglaf.py

The second set of commands at the LGLAF shell are the same as the instructions in the first posts in this thread.
 
  • Like
Reactions: ChazzMatt

rdmd

Member
Sep 21, 2006
39
2
New problem...

After getting my h932 10d rooted and updating to 20s and then to 30d I spent a bunch of time getting all my apps installed and set up. Everything was working great. I decided to make a backup with TWRP to save in case I ever wanted to return to this point. Strangely TWRP began requiring a password to encrypt data. I'd done several backups of this phone on 20s and 30d along the way and TWRP never asked for a password before. I have no log in password, pin, knock code, pattern or biometrics set up on the phone. Can I get around this by reinstalling no-verity-opt-encrypt-6.1.zip from TWRP? Do I have to reinstall lg-rctd-disabler-1.0.zip or H93230d_FullStock.zip? Things to wipe before flashing?

Thanks for any help.
 

mmmzon

Member
Apr 16, 2020
14
0
Hi there, I went through the whole 106 pages of this thread to find clear instructions on how to downgrade to 10d for H932. I am on 20d right now and wanted to root the phone to get new Lineage 20.0 version since it seems support is finally added for TMobile V30 model. All I can find is that I need to start with downgrading to 10d to be able to root the phone (unless I am mistaken, obviously). Could someone point to be concise instructions, please?
I have patched LG UP with fixed DLL (LGUP+V30DLL_PATCHED), correct GL drivers (LGMobileDriver_WHQL_Ver_4.8.0), and still get the following error when trying to refurbish the phone back to 10d (using H93210d_00_0111.kdz) version. I am clearly doing something wrong, but cannot seem to find an answer so why this is happening.

Error.PNG
 

mmmzon

Member
Apr 16, 2020
14
0
For those stuck in the same endless loop of hate, the magic trick is to use LG UP from LGUP_DualMode, and not directly dev version (LGUP+V30DLL_PATCHED). That at least got me to downgrade to 10d and then up to 10h LAF.

Now, I am stuck on another step. I tried to follow https://xdaforums.com/t/root-h932-lafploit-1-5-up-to-v20a.3842550/post-77672203 to the letter, using both FWUL 3.0 (latest) as well as updated (renamed) version 4, where I am able to push the TWRP image to the phone, and then factory reset it, only to come back with the following problem

The V30 will sit there for a while, and will power off and then goes back to stock ROM as if nothing happened.

D691fVwlHiR6HSsTjZQ3vxUWF95l03GSICMYmw60a1f3w27z3Z87svOt1_iP1DP0BZtuwBe4fIw2FXgaS4iwbluLuziJR6QoJXJXqlcF4_-v5pAMRc2crdbIYvefAxMrloTt66ml8HWbeIiJrcym8vpufnECqJPJ-55mOcx_r2wG0zlj7SoTMqfPsinkorVi_r2F5P5GTNeYLMZ4GklY7qdhjL8pF289l2HkX42YsfL4s3e8REFva38NXcsbv0ziyqLcD4TOU7gHmyGBRm1aLy094np8FmPTLJw-zRw4kTZO_J4pPF_lRff69doRvL7EhB-Qi_Gc8OiVKUgeOhUJJmbD23N_IBlPlZDRrofvJ1vHk0sipBDuZuHL6slQGDxbgHT8Karz4KfCw2jTfL5lWnFYmgRY-i_p0HM_uZFT4mTNKct3vn387taF7YvtdNHH0rRoAxTYLiQg17fOH-K0CdMXUGlbVzJDuUpDjYSw1S7VxAoQe8OLEiNrj9v3hvKX_Rj4Wa2T7PiG_sw6b21eKQqbjTpLw3HAuNq2aaO-ZmR2-yC8-jJ1pEvQANQBj4huQInvC7PIZQjZxbNVjFrXNxRyQnIjAyOoWOo0hEM55mbcxPuCXmDcXsa8j3SGKHiR-UePS68hZXSbnZ5gUBRzeP6XXDTyiiSOktMhrJwFLAQQI78cu1z3ZGnbWdTEhNTUMal1NUqCVjilWWRu7crr8W2FQ0_IOe3g6R5flq8aA5BHhjVnSaBnwsR4PiwM1tTeNObP3uxifY1YjA7X-lQDgVTLGFB5RwGTfRNZ8rmBhtkO29tWfrtv93NFFVD5KY4PNcCWMpgyMRAEFUW3YgMnYxKfzv35kmlE8XoKE2NGEMw1UokZ2_uk0DCEqqYxmyj4NlIVudVwb1M-7nlFvVOLizXR8gtShsFnlb54-9SxjS65QeiF0oahdMt1t6plg0b5xGIxzpaGhHSCykJZl8KMaog=w987-h1315-no


This follows the step

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. <<< here is where the screen shown above happens

Any clues / hints on what to do here? I tried different TWRP images with no luck. including TWRP-3.2.1-joan-v0.1, TWRP-3.2.3-7-default, and a few others. I think something is simply not working. I might have to go through the flashing process again it seems to make sure I am in the correct LAF
 

mmmzon

Member
Apr 16, 2020
14
0
After much research with problems on FWUL not having the commands for lglaf working, I finally got it to work successfully with my v30. Follow the first post until you get to the “git pull” portion. From here, use these commands:

Code:
git clone https://gitlab.com/runningnak3d/lglaf.git
cd lglaf
git pull
git checkout h932-dd-write
./lglaf.py

Follow the lglaf commands in this comment exactly:
Post in thread '[ROOT] H932 - lafploit 1.5 up to v20a'
https://xdaforums.com/t/root-h932-lafploit-1-5-up-to-v20a.3842550/post-77672203

Or copy/paste these commands:

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

From here, go back to the first post and pick up the next step after the instructions for “./step1.sh”

Let me know if it doesn’t work for you. Good luck!
I did not work, unfortunately, in my case. I do see that the "dd" does something because data is being copied from SDcard over to internal partition but when the phone completes the factory reset, it just shows the error screen reported in the previous post, and then defaults back to factory ROM.
I did that several times, with different TWRP versions, with no success.
 

NimaXDA

Senior Member
Jun 20, 2016
118
15
Karachi
It seems too difficult to root H932 even after reading all these 106 pages.
I'm gonna try my luck soon.

Well I managed to root my phone and flash FullStock Pie zip rom then I flash Havoc OS 3.11 but I didn't like it so I want to return back to Stock Pie. But after restoring the backup in twrp I stucked on the red T-Mobile logo.
 
Last edited:
  • Like
Reactions: Jo3y3030

Nooby1Kanoby

Member
Aug 17, 2023
10
0
It seems too difficult to root H932 even after reading all these 106 pages.
I'm gonna try my luck soon.

Well I managed to root my phone and flash FullStock Pie zip rom then I flash Havoc OS 3.11 but I didn't like it so I want to return back to Stock Pie. But after restoring the backup in twrp I stucked on the red T-Mobile logo.
What did you use to root your phone?
 

underworld737

Senior Member
Feb 17, 2022
94
22
OnePlus 9
Bump

But I'm on mAid 4.0 "the new name of FWUL" and when I ran the first 2 commands in the second step, "step1.sh" is missing

See post below, issue resolved.
 

Attachments

  • IMG20231215192208.jpg
    IMG20231215192208.jpg
    2.8 MB · Views: 8
Last edited:

underworld737

Senior Member
Feb 17, 2022
94
22
OnePlus 9
I read the posts, and I also tried running lglaf.py, but I get a error "RunetimeError: USB device not found" I don't know if this has to do with the SD card, which I have partitioned for fat 16 and 512m

Edit: got it fixed the same day, rebooting to download mode fixed it
 

Attachments

  • IMG20231215194155.jpg
    IMG20231215194155.jpg
    2.8 MB · Views: 10
Last edited:

Akumai

Senior Member
Mar 2, 2017
59
32
hi there, is this still supported? I'm having issues with the last step, i cant seem to get twrp on the phone. i enter terminal and i use the commands provided on page 106, but when it goes to 100%, i restart phone, press yes twice, it only goes to the stock erasing screen, no twrp there.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 78
    WARNING
    • DO NOT LET YOUR PHONE REBOOT, OR POWER OFF UNTIL I TELL YOU THAT IS WHAT YOU NEED TO DO.
      If you do, I am not sure what shape your phone will be in.
    • This should go without saying, but you MUST have your bootloader unlocked (check OEM UNLOCK in developer options AND fastboot oem unlock). If you don't, you will probably brick your phone.
    • If you use this on any model V30 besides the H932, you will be stuck in a bootloop, and you will not be able to fix it since you will have wiped out download mode!
    • This is safe if no mistakes are made (typos, missing a step, etc). However, if you do mess up, the risk is high that you lose download mode at best, or brick your phone at worst.
    • If you deviate from this procedure, and think: "I can just skip a step, or I can do this on my own Linux install". Don't complain if you brick your phone.

    PREREQUISITES:
    • You MUST to be on 10d: link
    • You must have H933 10h laf installed. You will need the KDZ: link
    • We are going to flash this using the patched LG UP: link MOD EDIT: original link dead. Try THIS ONE instead
      It MUST be installed in: C:program Files (x86)LG ElectronicsLGUP
      You can't just unzip it anywhere and run it, it will not find the model file.
    • You need TWRP: link
    • You need an SD card that is formatted for FAT16 with TWRP copied onto it EXACTLY as it is named when you download it.
    • You need to grab FWUL (version 2.7 or later) and burn it to a USB stick: link
      Even if you have Linux, and you think you can install the dependencies, don't. I know this works from FWUL.
    • After installing TWRP, grab @weakNPCdotCom's latest TWRP flashable ROM threads: Oreo 20s or Pie 30d
    • MOD EDIT: If your phone is (or has been) on Pie, you need to use a later LGUP version to roll back to Nougat 10d, then SWITCH to the original LGUP version linked below for the remaining steps. See this post for details.

    PROCEDURE PART 1: Getting a working LAF onto your phone
    By far this is the most dangerous part of this procedure.
    • Make sure you are on or downgraded to 10d
    • Boot to download mode
    • In LG UP, choose partition DL.
    • Pick the H933 10h KDZ
    • Click start
    • You will be given a list of partitions to flash, ONLY check laf
    • Click start
    • You will get a warning about additional modified partitions -- ignore it, and click OK.
    • As a safety feature, LG UP will start flashing those modified partitions after laf completes flashing.
      After the flash is initiated, pay close attention to the "step" and as soon as it changes from laf to another partition, PULL THE USB CABLE!
      If you let it completely flash the H933 KDZ, your phone WILL reboot, and you WILL have a brick that can't be fixed.
      You NEED to pay attention. The additional partitions that are flashed are very small. The second that step changes from laf to
      the next partition, PULL THE USB CABLE!
    • Click OK and it will start flashing.
    • Once laf is flashed, and you have pulled the USB cable, you can click exit, and then re-open LG UP.
    • Choose partition DL again, and this time pick the H932 10d KDZ.
    • Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again.
    • When it completes, it will reboot your phone.
    • Go back into download mode. This time you will be running the H933 laf, and we can continue with PART 2


    PROCEDURE PART 2: Installing TWRP
    • 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.

    MOD EDIT: Refer to THIS POST to make sure that LGLAF is able to read the SD card

    Code:
    git pull
    git checkout h932-dd-write
    ./step1.sh
    When you are told to, pull the USB cable, and the 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 (with phone off, hold vol down + power. When the LG logo appears, immediately release and then hold power until you get the the factory reset screen. Choose yes twice and you will be in TWRP) to IMMEDIATELY boot into recovery. If you don't, then recovery-from-boot.p will wipe out TWRP, and you will have to do THIS part again.



    CREDITS:
    • Lekensteyn -- His base work on the G2 / G3 gave me a GREAT headstart!
    • @steadfasterX - He added some real nice features, great guy to bounce ideas off, and just testing crazy ideas because he wasn't afraid to brick his phone :) Also, for FWUL
    • tuxuser - Helping with my lacking in Python
    • @smitel - His original reverse engineering of LG UP. Great inspiration!

    -- Brian

    XDA:DevDB Information
    [H932] lafsploit 1.5, Tool/Utility for the LG V30

    Contributors
    runningnak3d

    Version Information
    Status: Testing

    Created 2018-09-14
    Last Updated 2020-07-21
    41
    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.
    Code:
    git pull
    git checkout h932-dd-write
    ./lglaf.py

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

    Code:
    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:

    Code:
    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.
    Code:
    !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
    25
    PROCEDURE PART 1: Getting a working LAF onto your phone

    • Make sure you are on version 10d. Again, check in Software Info / Software Version if you are unsure.
    • Boot to download mode
    • In LG UP, choose partition DL.
    • Pick the H933 10h KDZ
    • Click start
    • You will be given a list of partitions to flash, ONLY check laf
    • Click start
    • You will get a warning about additional modified partitions (cache, OP, userdata) -- ignore it, and click OK.
    • Click OK and it will start flashing.
    • Once the flash completes, your phone will reboot into the OS. Just power off, and go back into download mode.
    • Choose partition DL again, and this time pick the H932 10d KDZ.
    • Select all partitions except laf. If you forget to uncheck laf, you will have to do this all over again.
    • When it completes, it will reboot your phone.
    • Go back into download mode. This time you will be running the H933 laf, and we can continue with PART 2
    16
    I've added link to WTF instructions pointing T-mobile H932 users to here. ALL other V30/30+/V30S can use that easier method, but T-mobile H932 HAS to use this method.
    12
    OK -- those are the final instructions for now. Root away!

    I have upgraded to Oreo, and then downgraded to 10d and tested this 4 times so I know it works fine. However, getting H933 laf onto your phone is dangerous. PLEASE pay attention and pull the USB cable. You can be too quick -- pulling it while it is still flashing laf. If you do, then you just need to flash 10d and start again. However, if you wait and your phone reboots, the H933 has a different RSA key and your phone is toast.

    I don't have a TMO G7 to test with, but this should work for them as well. Just need to find the correct laf to flash for them.

    -- Brian