yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] ledvedder:
I'm interested in assisting.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] mallman:
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.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
tried it get unknown command
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] spanky34:
Same

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.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
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?)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
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
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] bigbiff:
does fastboot flash:recovery twrp.img work?

EDIT: nm gives syntax error
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
Ill try hold on
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] KOLIOSIS:
Or:

fastboot flash recovery recovery.img
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] spanky34:
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.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
mhhh, very strange, it seems a "custom unlocked" bootloader like Meizu products....

I hope to be wrong
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Killua96:
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
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] paperWastage:
No visible recovery partition available

Take a look at this post, and see where would recovery be hiding (actually hiding, or new name)

http://xdaforums.com/showpost.php?p=66121499&postcount=35
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] spanky34:
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:

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?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Killua96:
Still it's strange that both commands work, in 6P the other one doesn't work givingi the unknown command error.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
this is a custom bootloader by LG ...

Nothing real unlocked here....
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] spanky34:
I'm beginning to fear the same. :\
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
need to dm-verity OFF
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
I've gone ahead and updated the thread since there's a few people around the forums with unlocked H830s...one or two maybe.

This one's for them!

I also have Kali NetHunter ready for the G5 should any of you be willing to try it out.

https://github.com/jcadduono/nethunter_kernel_g5/commits/android-6.0

;)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
I have my tmo G5 from 2 hours.

I can try!

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] newbcake:
So, essentially, we made good progress, but it isn't suggested the public goes on and tries to flash the new image if they don't know what they are doing right?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
So I'm a little confused here on the new 1st post. So we currently don't have a way to flash anything but we have the files to flash now? I assume you have to have a specific flash tool that we don't know what it is, correct?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] yossijoe:
If we would have the commands to flash it. We could
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] arjuna_:
Did anyone see jcase's Twitter? He was saying that all we needed to do to get twrp is unlock the bootloader, flash twrp through laf, and then modify the stock boot.img to disable dm-verity. How do you flash through laf?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
1) Wait for team code fire

2) use a tool he created to access the laf backdoor which needs to be complied (java)

3) said tool is no longer available unless you've downloaded it while it was up.

4) continue to be patient.

5) have a nice day :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
i think now Team Codefire and [MENTION=5672995]jcadduono[/MENTION] can have solution for this .... ;) for all of us on TMO variant.

Especially after official news by LG Korea on his Developer site to support officially Official Bootloader Unlock for only European variant H850. Will be out until the end of April.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] arjuna_:
Sounds good thanks for the clarification.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Awesomeness!!!!!

---------- Post added at 11:07 AM ---------- Previous post was at 11:04 AM ----------

What is Kali NetHunter?

Nevermind I just read about it..... Woooooooooooow some power weed man. LOL I'm not sure if I would toke on that apk yet. ?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
Custom Kernel made from him
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] bbender716:
So you're telling me there's a chance
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
More than one ...

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Ahhhhhh ok. Dude looks like a serious Android DEV.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] deskjet390:
I just wanted to chime in here. I have actively been watching this thread like a hawk. Not because I do or ever will own a G5, but because of the direction that OEMs are now going with their devices. The unlockable bootloader devices are dying and, and with that, the android DEV community is dying as well.

I want to salute JCASE and CODEFIRE and everyone here actively participating on getting a working recovery for this device and jumping through all of the hurdles and the long hours of dissecting all of the safeguards to accomplish this. Recovery for this device absolutely needs to happen to keep this community going.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kchannel9:
Fully agree, :clap: :clap: :clap:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
I agree with you.......but your dissenting stance on the G5 leaves me curious as to why you feel the way you do towards a G5.....
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] HtcOnekid:
I return my g5 yesterday and got the v10 not missing noting, also those who updated their v10 to the latest T-Mobile mm update seem to be having the same issue with not being able to flash anything.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
mmmh. Sounds interesting

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] deskjet390:
I have a Nexus 6p......not really in need of a different device, and by the time i do the G5 will be obsolete.

sorry if i you thought i was talking bad about the device. It is a very great device.

I actually work for a telecom company that provides wireless services (we have a partnership with Verizon) and got to hold and examine the device about a month before it came out and i really like it.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
What is "data decryption" in twrp anyway? They say that they don't have it working correctly yet. Is that essential for a normal user?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
Just that.. Data deryption. Our phones are encrypted by default and currently twrp does not decrypt it once you've entered the password.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Cuffuffles:
But that means there should be no problem wiping and flashing a new ROM, right?

Obviously that'd be silly because no backups etc, but it'd be functionally possible?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
Based on the YouTube that would be my assumption as well. At the end of the day they want to release their product fully functioning. In other words it will be done when its done :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
But by encryption, do you mean like the user encrypting the phone and twrp is unable to decrypt the users encryption?

The way I understand your response is that the stock rom is encrypted and twrp can't decrypt it properly at this time?

But what effect does this have on us?

Thanks for the explanation. I think I'm going to flash and root tomorrow
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
How could you flash if /data won't mount due to recovery not decrypting? I would think one would know this if your going to root by using jcase / beasup lg master tool src which one must complie, run /exec to than dd a recovery which you do not have but if you did have would not be able to decrypt /data. Although, root could be achieved via laf backdoor However, in code fires YouTube they used their own twrp and not the one posted in this thread. I think patient is key unless your an experienced user...
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
Yes, I am far from experienced so I will take your advice and wait since I misunderstood the op. I thought twrp was updated though after filling in him of the issues.

Thank you for the explanation. I don't even care about my phone so if I can help, LMK. I have no data I care about yet and can exchange my device anytime for another one.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Paradoxumical:
If TWRP is working, it would be best (in my opinion) to do a complete wipe from there (format data). That should decrypt the data partition, then flash your ROM and a kernel which does not enforce encryption and dm-verity.

Well, at least that's what I know to the best of my knowledge.

Feel free to correct me if I'm wrong.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Cuffuffles:
This should work, but with no way to back anything up before hand and no KDZ etc from LG to return to stock, I would advise against doing that
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] matt4321:
Let's keep this on TWRP for the G5 please :)

Hope you all have a good day!

Forum moderator,

matt4321
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Ok, for the simpletons here (including myself sometimes), after reading that the fastboot commands have been removed by LG, and I also read here in the revised OP that we should flash SuperSU.... HOW do we get TWRP on to our phones? I mean I read about unlocking the bootloader with going into settings, selecting OEM unlock and then sdk tools to type in the one line command to unlock the bootloader, but what next??? Somebody please help me out here. I want to at least have a rooted phone now. I can wait for roms, etc down the line.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
If you look for tmo V10 on MM LG has made the same there removing write fastboot commands

We have to wait

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
Ok. Thanks. I thought somewhere the instructions existed where we could Flash the recovery and Superuser. I thought maybe I was going crazy because I just could not simply see where the instructions were to do all this. Thank you. :cowboy:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] tribalartgod:
I only partially agree with you... I don't believe the android DEV community is dying by any means. Individual DEVs are simply joining teams and picking and choosing which devices to work on. Primarily flagship devices. The manufacturers aren't necessarily locking things down to prevent us from rooting/unlocking/etc... They are doing so because so many people will jump right in to something they don't fully understand and potentially break things. Because of this, I believe the manufacturers are locking things down to protect themselves financially from lawsuits, returned devices, etc. The android community is as strong as ever... The DEVs are just becoming more organized is all. Because of this, there are less updates, but when the updates do come, they are major. I remember the days of waiting 6-8 months for root/unlocking... These days, it's usually done within a month or two of release. Not bashing by any means...just dropping my opinion on the matter...
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
Mods have asked to stay on topic here. Let us all respect that and take non topic related issues elsewhere. Kthx
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
So back to the topic on hand. What is used to flash with LG now in a repair or rom etc?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
[Recovery][H830] Team Win Recovery Project for the LG G5

^ thats the topic, the post above sounds like it should be in the questions and answers thread :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
Go Codefire .... We are ready to explode here ?

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
That's what I'm saying I bought the s7 traded it in for the g5 because I thought there was hope lost hope went back to the s7 now I'm back to the g5 because there's hope lol
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
Ahahh. What a Story

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
Lol I was the first one to try to flash the twrp and figured out out had no commands. You can imagine my disappointment
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
i think Codefire really really soon it will make you forget this Story :D
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kchannel9:
Just got the G5, now I'm invested

Just got the G5 today, as my vote of confidence that we will see TWRP/root sometime soon! If there is ANYTHING I can do to help, please let me know!!

:cool::good:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
:D:D:D:D
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
These ads are killing me, this is the longest I've ever owned an unrooted phone since the my touch 4g. Rock on team codefire !
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Shadow12347:
While my response is a bit off topic, if ads are your concern (on the internet at least) check out NoChromo. Its an ad filtering browser on XDA based on chrome, and I've been using it for a little while now and I am quite satisfied with it :). It works just about as good as when I was using AdGuard (no root needed and system wide, but not free), but didn't make my devices internet slower and drain a bit of battery like Adguard did haha.

But yes keep up the hard work Codefire! I'm praying and rooting for you guys! (See what I did there :cool: )
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] deskjet390:
I hope this makes it out to the community soon. I also hope LG isn't trying to stop this from happening. I am low key worried that LG's security experts are not wanting this to happen.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
I don't think that's the case or the original post on this thread would have been shut down too.

---------- Post added at 05:27 PM ---------- Previous post was at 05:10 PM ----------

I just checked and its only been five days since the teaser was released
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] deskjet390:
You can post all the prebuilt recoveries you want, but without a way to flash it you have absolutely nothing.

I'm probably just looking at it all wrong..... But the bounty to unlock a device is certainly much lower than the bounty to work with a manufacture to patch a massive security flaw. (I know most guys don't accept bounties and do it for the love of the game so don't flame me for saying that) Bounty can also be a loose term for any kind of reward not just money.

It would be great to see a new flagship get all the love of XDA and custom ROMs and all that good stuff and we are pretty much driving ourselves crazy waiting to see if it happens
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
#offtopic
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
[MENTION=5672995]jcadduono[/MENTION]

You had asked if codefire had let you know what was wrong with your build of twrp . so is the twrp listed on here the updated version or your original one?

I'm going to do some tweaking with my g5 so I am wondering before I start.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
it's updated with the issues fixed that were reported to me by autoprime. I have not gotten anyone to test the fixed version that is up here though.

the only issue is lack of encryption support on LG stock afaik.

encryption should work fine on AOSP roms like CyanogenMod though.

off-topic: I've been told that the Note 6 is going with a universal locked US variant, once again an unfortunate blow to T-Mobile customers. Canada's still good though, weeeeeee.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
Awesome that is the info I needed. Only thing I lack is the dll file. Do you have any direction to where to find it? I will gladly test it but I have no use for encryption as ill just flash su.zip anyway because there are no roms for us right now anyway.

---------- Post added at 10:36 PM ---------- Previous post was at 10:34 PM ----------

Edit two...about the note 6...I guess we will never own Sammy again after this bs with the s7 and forward
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
no idea what dll file you're talking about

you can grab twrp right off the first post though?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
Ya I already got the twrp and associated files. Just working on a flash tool :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
I'm pretty sure that before the end on April we on tmo will be the most lucky G5 owners because Codefire Guys will give us the Most Advanced and complete tool ever released for Lg devices and more complete than official LG bootloader unlock solution.

My only fear is that us tmo G5 could receive some automatic OTA that we atm can't deactivate and we risk to have somethin more closed with next sw release.

So Codefire : Hurry Up !!!

sent from my tmo G5

---------- Post added at 12:12 AM ---------- Previous post was at 12:10 AM ----------

FlashTool 2016 ? Need that damn of patched megalock.dll yes

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
Yes that damn thing but I'm also checking other things because I want to learn too. [emoji41] I should have time to do things tonight
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] igotroot:
I can feel it, coming in the air tonight...oh Loooord.

LOL that's how i feel. Root and Recovery baby!! Urgghhhh!!!

#Stoked
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
The suspense is killing me. I would like to know if they're still working on it or if we should pursue other avenues
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kwkw480:
Re watch the YouTube and then ask yourself that same question :)

Aka

No eta

Wip

Ready when it's ready

Or learn to hax ;)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] wolfgart:
I'm confident they are deciding now to release or not and maybe it remain very few time to know

sent from my tmo G5
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
[MENTION=2684188]autoprime[/MENTION] has worked with me in the #twrp channel to ensure everything is working alright, so I've gone ahead and made 3.0.2-0, and removed the testing part.

Every feature should be working fine except data decryption, which will require more work in TWRP encryption code, rather than the device tree.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Coachmark2:
Nice! Thanks [MENTION=5672995]jcadduono[/MENTION] . I suppose that we're just waiting on Team CodeFire to release their root method/tool before this can be generally available and usable.

Right now, the issue is that dm-verity is enabled. This needs to be disabled before the G5 will accept unsigned images over fastboot and we need root to do that. Do I understand the situation correctly?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] jcadduono:
No, I don't know where anyone got the idea that dm-verity had anything to do with flashing images or lockedness.

dm-verity is a file system verification mechanism that tells the kernel to abort booting (or actually mounting the file system that is being verified) if it finds that the file system is modified in any way from its original (hashed?) form.

It's easily completely disabled by flashing any root method that modifies the kernel, or my dm-verity-opt-encrypt zip.

It's nothing that you will have to worry about UNLESS you can't install a custom recovery.

dm-verity is the nightmare given to those with devices that can never boot custom kernels / modified boot images. This is because you can't root systemless because boot image modifications won't boot, and if you system root, dm-verity will stop you from booting too. This leaves you with only the option to live root every time you boot your phone, which requires a root access exploit that works all the time.

Canadian and US non-H830 users, this is your nightmare.

dm-verity boot prevention is only triggered when you modify the system partition (as that is the only partition on android that uses it so far).

Disabling dm-verity only requires taking the "verify" word out of /fstab.* in the boot ramdisk.

But yes you will have to wait for a publicly usable version of that tool that uses a hole in LG's factory maintenance protocol to flash images. I don't think you will be using fastboot flash on the G5, but I could be wrong.

From what I understand, you need to fastboot oem unlock the H830 which will allow booting custom recoveries and images, disabling secure boot verification, and then use their tool to actually flash images to boot/recovery.

This means that it will only ever work for the H830, not the H831 or H850 UNLESS they can figure out a way to activate fastboot oem unlock from the factory maintenance protocol on the other devices. Again, I'm only assuming here. I am a Samsung user, not an LG user.

It's a bit of a shame considering LG plans on releasing their own unlock tool for the H830 (and H850) within the next month or two anyways, so I've heard.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Coachmark2:
Thanks. That all makes sense. We appreciate your work.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Josh McGrath:
Very helpful. Thank you.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] joemossjr:
They have stated that they will only support the international variant with the unlocking tool