[Recovery][H830] Team Win Recovery Project for the LG G5

jcadduono

Recognized Developer
Jan 17, 2014
1,492
6,201
0
28
Thunder Bay
adduono.com
Team Win Recovery Project 3.0.2



WARNING: The stock boot image has dm-verity, which prevents you from booting if you swipe to enable system modifications!
SOLUTION: Flash a root such as SuperSU or phh-superuser. You can also flash no-verity-opt-encrypt.zip.


NOTICE: The LG G5 H830 currently has flashing locked!
You will need to use a tool to get around this limitation. At the moment, Team Win nor myself cannot provide anything for this.
The community, and user @tungkick has however provided an alternative method of flashing, which can be done via a full firmware flash using a TOT file.
See here for instructions: http://forum.xda-developers.com/tmobile-lg-g5/development/root-h830-t3384526


A message to those with other variants of the G5:
Should there be a time where your flashing mechanisms get cracked, simply mention my name on this thread or via private message and I would be happy to create a thread with TWRP for your device.
I have device trees ready for ALL variants of the G5, pending their unlock!

WHAT IS TWRP?

Oh come on, you know what it is - don't try to fool me!
In case you're serious, though...

Team Win Recovery Project is a custom recovery for Android devices.
It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, and root your device.

DOWNLOAD

You can find the device page here:
https://twrp.me/devices/lgg5h830.html

CHANGES
  • v3.0.2-0 - See here for the changes.

FEATURES
  • MTP support
  • USB Mass Storage support
  • Micro SDcard and USB OTG storage support
  • f2fs file system support (read, write, format, backup & restore)
  • exFAT file system support (read, write, format)
  • NTFS file system support (read, write)
  • ADB root
  • Full SELinux support
  • Built in android 6.0 tree

KNOWN ISSUES
  • LG encryption is not supported yet in TWRP 3. Your device will hang for a while when trying to enter a password. Skip it.

CONTACT & SUPPORT

You can find us on IRC at #twrp on chat.freenode.net.
You can also post in this thread and I will attempt to answer any questions you may have.

SOURCE CODE

Device tree: https://github.com/jcadduono/android_device_lge_h850 (International)
Device tree: https://github.com/jcadduono/android_device_lge_h830 (T-Mobile)
Kernel sources: https://github.com/jcadduono/nethunter_kernel_g5/tree/twrp-6.0 (recommend using stock-6.0 branch for your custom kernels!)
TWRP: https://github.com/omnirom/android_bootable_recovery

CONTRIBUTIONS

Gerrit for TWRP: http://gerrit.omnirom.org/
Gerrit for officially supported devices: http://gerrit.twrp.me/

XDA:DevDB Information
Team Win Recovery Project - LG G5, Tool/Utility for the T-Mobile LG G5

Contributors
jcadduono, The Team Win Recovery Project team
Source Code: https://github.com/jcadduono/android_device_lge_h830


Version Information
Status: Testing

Created 2016-04-01
Last Updated 2016-05-23
 

mallman

Senior Member
Aug 17, 2008
2,018
140
0
i may be able to do it in a few hours as well but until then, I wanted to ask, is it not possible to fastboot boot <img> without flashing it? Only asking because that's what i've been doing lately with my huawei watch for testing without overwriting my recovery.
 

spanky34

Senior Member
Jun 20, 2010
108
29
0
Champaign
tried it get unknown command
Same
Code:
fastboot flash recovery twrp-3.0.1-0-h830.img
target reported max download size of 536870912 bytes
sending 'recovery' (19560 KB)...
OKAY [  0.488s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 0.516s
I wonder if we need to put the phone into download mode for it to take the flash... Not sure how to get there. The old hold volume up and insert usb cable trick from the G4 isn't working for me.
 
Last edited:

jcadduono

Recognized Developer
Jan 17, 2014
1,492
6,201
0
28
Thunder Bay
adduono.com
tried it get unknown command
Awesome, anyone else? Looks like they really did lock it.
fastboot flash returns unknown command
fastboot boot returns unknown command

It seems that attempting to send an unsigned boot image returns in unknown command. I'm assuming that's just a generic error code returned by qualcomm secure flash due to invalid signature, rather than the command actually being unknown. (maybe fastboot does not have "invalid signature" return codes?)
 

joemossjr

Senior Member
Feb 14, 2011
2,075
1,889
0
24
Texas City Texas
im getting the same cant flash it apparently they put us in a cage and only unlocked one out of two locks

---------- Post added at 07:18 PM ---------- Previous post was at 07:12 PM ----------

This sucks

Sent from my LG-H830 using Tapatalk
 

bigbiff

Senior Recognized Developer
Jun 8, 2010
6,787
6,764
243
im getting the same cant flash it apparently they put us in a cage and only unlocked one out of two locks

---------- Post added at 07:18 PM ---------- Previous post was at 07:12 PM ----------

This sucks

Sent from my LG-H830 using Tapatalk
does fastboot flash:recovery twrp.img work?

EDIT: nm gives syntax error
 
Last edited:
  • Like
Reactions: KOLIOSIS

spanky34

Senior Member
Jun 20, 2010
108
29
0
Champaign
fastboot flash recovery twrp.img didn't work. Fails with the unknown command error.

fastboot flash:recovery twrp.img doesn't work because it doesn't like the syntax.
 

spanky34

Senior Member
Jun 20, 2010
108
29
0
Champaign
But the command to unlock bootloader hasn't changed? In the 6P its "fastboot flashing unlock"
https://source.android.com/security/verifiedboot/verified-boot.html
I was already unlocked and tried to run that command earlier and it didn't work at all, as in, didn't like the syntax at all. I updated my fastboot and ran it just now on my already unlocked device:
Code:
fastboot flashing unlock
...
(bootloader)    Device already : unlocked!
OKAY [  0.020s]
finished. total time: 0.021s
Locking / unlocking with the newer fastboot won't yield any different results will it?
 
Last edited:

Killua96

Senior Member
Apr 5, 2012
1,545
477
113
Castelvetro di Modena
I was already unlocked and tried to run that command earlier and it didn't work at all, as in, didn't like the syntax at all. I updated my fastboot and ran it just now on my already unlocked device:
Code:
fastboot flashing unlock
...
(bootloader)    Device already : unlocked!
OKAY [  0.020s]
finished. total time: 0.021s
Locking / unlocking with the newer fastboot won't yield any different results will it?
Still it's strange that both commands work, in 6P the other one doesn't work givingi the unknown command error.