[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
[Guide][Tutorial] Root TWRP LG G5 using Autorecowvery[H830 & V20A only][Noobfriendly]

This is guide to root and install twrp on lg g5 T-Mobile using recowvery method.

Read 4th post before proceeding​

This method is to root & install TWRP on only T-Mobile LG G5 running Nougat 20a software. If your phone isn't on 20a then first downgrade/upgrade to 20a software.

Before asking a question, first, see FAQ in 3rd post. In that way you can save a lot of time.

For Video Guide refer to 5th Post

You need to disable antivirus before extracting files. Because we are using DirtyCow vulnerability here. Which is technically a virus (It's not dangerous for pc but for exploiting android to get root access). If you can't disable AV then don't proceed because process will not work

Download:​

1: Recowvery (2nd post)

2: Minimal adb (2nd post)

3: TWRP

A: H830 | For H850 (Refer to this Post and read carefully)

[Download TWRP 3.0.2 as 3.1.0 is having some little issues with flashing with autorecowvery] Always download latest TWRP available for your device to avoid most issues.

(rename it to recovery.img)

[IMG="Recovery Rename"]https://lh3.googleusercontent.com/ICwn8RKt39g-Yaz_Y5PqvdTCfqQCo2-EPkRCDQsH7FYSRKAztH-FQw9qePdhpwACH94J2OhejljzWNDufChZkSwR9JPeA338=w1107-h623-rw-no[/IMG]

Procedure:​

Drivers should be installed. Also install minimal ADB and fastboot.

1: Make sure to unlock bootloader. Backup internal data because it will be erased.

A: First enable developer options and toggle “Enable OEM unlock” to ON. Also enable “USB Debugging”.

B: Run Minimal ADB and Fastboot. Enter Command

adb devices

[IMG="Devices"]https://lh3.googleusercontent.com/0BrWYO2wwqFrVrGiR8OL3sHX8RQymrAQSveZH6xfsh_K6LiQdyttA4qgxtr2UdONUBxCW9z4T8uUHlKYT3ffusrml1GUmk11=w1107-h623-rw-no[/IMG]

C: You will see permission dialogue on phone. Tick “Always allow” and ok.

D: Now enter.

adb reboot bootloader

E: Now phone be in fastboot mode. Enter

fastboot oem unlock

F: This will wipe all data on internal storage. Now Enter

fastboot reboot

G: Now OS will get booted. Bootloader will be unlocked but phone should be in factory reset condition. So again enable “USB Debugging”.

THEN​

2: Connect phone with pc in MTP mode and copy recovery.img to phone’s internal storage (Make sure to select MTP as always to avoid problem during procedure). Extract recowvery software. (If it causes permission problems extract it to USB device and perform process from there)

[IMG="Copy Recovery"]https://lh3.googleusercontent.com/tnKvR98bJqUAt4OzkjS41qoh4eCKfajaTT52-x-Alg8VMWPJ1VcTQ0T8IU708kP4HCyZgowFP9AjLy87MF7IzrMNmtfLQZTo=w1107-h623-rw-no[/IMG]

[IMG="Like this"]https://lh3.googleusercontent.com/ehR7hi5H5Fs1EJNG3pkzH49ADCUfct0aWz6PVqSSphZPLsTCCEMza2OoxCbsMy_fD_grJRUNloI1xQN8i85yP8QcXcSfl10k=w1107-h623-rw-no[/IMG]

3: Run “EasyRecowvery.cmd”. Press “5” -->Enter then press “7” -->Enter to disable integrity check. Then enter “0” to go back. Skip it if you are using Recowvery G5 modified.

[IMG="Recovwery Run"]https://lh3.googleusercontent.com/vvE9_hQSAZybcNcTAhhi4rhFHFjnOgwewDrnMAVe6b_Hw25zHrPUUVwqZfvJ-fL2RdikP6PO3TxGRP4mRsVOmffloPxvruA0=w1107-h623-rw-no[/IMG]

[IMG="Like it"]https://lh3.googleusercontent.com/6TdM1KdPYB-YeE0mQurYXWGrrn5DoIymApGFCakMZ7Z5IuTFrf_ehw0c_T3Zq_oMTA0uxq_BaphbkX2LzMIpoH95hiNDuZEJ=w1107-h623-rw-no[/IMG]

4: Now press “2” and wait until it says warning. Press “y” -->Enter. (It won't say warning in Recowvery G5 modified)

[IMG="Option 2"]https://lh3.googleusercontent.com/3O0zLxTAPHpSjdCjjKnR9t4zrZ269xLYPqs02rycU0kn5z99R1n80wtNF7Pua6p_l9hgfl4gErc6BET7PdMmozn1Ibr2jqXq=w1107-h623-rw-no[/IMG]

[IMG="Op 2"]https://lh3.googleusercontent.com/MRRm4LjtOAU-ZhSZCNgO9N5R-RQ7SkiPwIOcsRPHDZzD91d3MkpTxp4j8LgVgtqK6B1uB1EWJZK-opPHCJKi5sIGyPaCMT0t=w1107-h623-rw-no[/IMG]

[IMG="opt 3"]https://lh3.googleusercontent.com/0nRvXbFwlivfdL7t2g8LAv3xBNzSFUROuGbHet7lA7NU_KP-KXnO_H3DBA8zbsXmQ158b19JUWaeVslTZsU4YosqdcaYqC5Y=w1107-h623-rw-no[/IMG]

5: It will do rest process. After Flashing TWRP it will flash “no-opt-encrypt” (This is most important to save twrp from being removed by OS)

[IMG="encrypt"]https://lh3.googleusercontent.com/tg1g_RxSyxVvDWHSXpQBWpptf5nQur0H1W3nF60aIJIYrBbQyNkuKyhqCyV8nykH-SFUGSr8ln5mE53cKWS_EGeZeow_DPYt=w1107-h623-rw-no[/IMG]

6: Phone will boot into TWRP. Here on phone it will ask for decrypt code. Cancel it. Swipe to allow modification.

7: On pc press any key, the flashing process on phone will automatically get started. Then it will reboot into OS.

8: To flash supersu, select option 3 from recowvery windows and phone will boot into twrp. Same as step 5-6 it will automatically flash supersu.

Now Your rooted and have twrp install.

Note: For removing Encryption.

To flash a custom rom and remove encryption in twrp, you need to once format data in twrp else you won’t be able to wipe and install any custom rom in your phone.

[IMG="Remove encrypt"]https://lh3.googleusercontent.com/8vv3bTm5qyVW-h4A5PEByXDFeu3NhxrYG1idVxqYC2A-9malQCs0rGpdb38hID03HJYcveikwxTj7hxzHoYqZZrVKoJC0Tdp=w1107-h623-rw-no[/IMG]