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

Search This thread

jcadduono

Recognized Developer
Jan 17, 2014
1,489
6,226
32
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://xdaforums.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
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
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,489
6,226
32
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,152
1,951
28
Texas City Texas
Samsung Galaxy S22 Ultra
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,964
7,245
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
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
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,552
476
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    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://xdaforums.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
    18
    Thread re opened...

    I just want to make one thing clear

    Flaming/Trolling a Senior Recognized Developer who has done so much for this community is NOT how you go about getting more development accomplished.

    Please everyone, be kind to each other....respect those who have done much for this community, its very simple. Furthermore, you never know who the next great developer is going to be, so all users/developers/hackers should be treated with respect.

    This thread is now on our radar, please do not give us another reason to come in here and clean.

    Thanks,

    Baja
    15
    Good news I was able to put twrp into the tot and it installed 100% once it rebooted it reinstalled the factory recovery.
    So there's still some tinkering to be done but making progress.
    14
    Unless jcase somehow got it directly from LG, it's attainable somehow. I wonder if we could get him to share an unmodified aboot and let us work out the rest? Maybe a hint or two on writing to recovery while he's here ;)

    I got no files from anywhere, didn't need them for root. I will be in miami beach for a few days, I can dump recovery and boot from a device if someone wants to bring one up there today or on the 9th.
    12
    Yes man,

    I'm the same that always has worked for all LG community.

    And you are the same that on G4 irc channel last year pm'ed me to have G4 unlock.bin file.....

    Shame of you man

    An unlock bin that anyone with the ohone could have given me. A worthless file at that.. You then proceeded to continue to garass me for years, to the point i sold my flex.

    You harass devs until they stop, then you insult inspiring developers.