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

I-IoLLoW

Senior Member
Oct 1, 2013
1,243
1,547
0
Pittsburgh
jcase -
"On all variants. Not really, seems like a waste if you guys are unlocked. Get a stock aboot, disable dm-verity, build a twrp, flash twrp."

I am no programmer but I know the basic android boot steps. aboot get's loaded right before the bootloader and apparently it's not very difficult to disable dm-verity.

We just need to wait for an aboot. I would assume it would be released by LG at some point, idk. Need a kdz or tot.
That's essentially it. We have no kdz/tot and I would want to look at one. Building an aboot shouldn't be difficult, I've built kernels and roms. But it's the flashing part we can't do right now. @jcase is much smarter than I am but at least he gave us hope lol.

Sent from my LGLS990 using XDA-Developers mobile app
 

Bstrong9211

Senior Member
Jun 10, 2012
127
22
0
Maybe we can start a bounty to get some extra brains interested? I'm willing to chip in a six pack to whoever gets us a reliable root method.

Sent from my HTC6525LVW using Tapatalk
 
  • Like
Reactions: Josh McGrath

igotroot

Senior Member
Dec 4, 2010
1,253
157
0
Getting Root 1St would be great. I can live with LG'S UI, but the spyware bloat I can live without! Plus I'd like to restore some app data as well. If it weren't for my crappy, on my 2ND one, Sony Z3 underperforming I would have held back buying one, but the only thing at this point that will make me return the G5 is a fully accessible HTC 10 if it's all that as the rumors say.
 
  • Like
Reactions: I-IoLLoW

Cuffuffles

Senior Member
Dec 18, 2014
183
60
0
Is it not the case where even if we don't currently know how to write to the phone, there must be a way to do so otherwise LG wouldn't be able to update the bootloader etc? Also, wouldn't it mean something like the LG Flash Tool would be impossible?

My guess is they've hidden/disabled it but I'm thinking it must be there. Obviously @jcase worked it out somehow and as soon as we get that aboot, disable dm-verity (I'm assuming someone already tried the adb disable-verity?) and work out how to write that modified aboot it should be smooth sailing from there.

I am relatively new to the whole android thing. I flash roms and kernels all the time but am very new to development, though it's something I really want to learn, so if I got something wrong please let me know!
 

igotroot

Senior Member
Dec 4, 2010
1,253
157
0
To the best of my knowledge, and adding on to what Cuffuffles said, if an OTA came in (which I haven't heard of one being released for the G5 as of yet), that file would probably hold the secret of what and where to, and how to, flash the phone. Evidently LG has hidden it.
 

Cuffuffles

Senior Member
Dec 18, 2014
183
60
0
To the best of my knowledge, and adding on to what Cuffuffles said, if an OTA came in (which I haven't heard of one being released for the G5 as of yet), that file would probably hold the secret of what and where to, and how to, flash the phone. Evidently LG has hidden it.
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-IoLLoW

Senior Member
Oct 1, 2013
1,243
1,547
0
Pittsburgh
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 emailed him and he may shed some light publicly later this year but until then it won't be released and I don't blame him. I really contacted @jcase because I'd like to start learning this stuff for myself and wanted pushed in the right direction(books, websites, did he go to school for this, etc) But I don't think I was clear enough with him and I don't want to bother him further - he is a busy guy and I was shocked he even wrote me back. Point is, I'm pretty sure we are on our own for the foreseeable future. He clearly found a way so it's possible, that alone is worth a big thank you. Hope is kinda priceless, lol. But he doesn't owe any of us a damn thing and there are multiple reasons not to release whatever exploit he has found.
Sadly the main issue with XDA these days is that it is overloaded with people just looking for handouts and has caused a bunch of the great developers and security professionals to leave or at least not be as active.....

Sent from my LGLS990 using XDA-Developers mobile app
 

Cuffuffles

Senior Member
Dec 18, 2014
183
60
0
I emailed him and he may shed some light publicly later this year but until then it won't be released and I don't blame him. I really contacted @jcase because I'd like to start learning this stuff for myself and wanted pushed in the right direction(books, websites, did he go to school for this, etc) But I don't think I was clear enough with him and I don't want to bother him further - he is a busy guy and I was shocked he even wrote me back. Point is, I'm pretty sure we are on our own for the foreseeable future. He clearly found a way so it's possible, that alone is worth a big thank you. Hope is kinda priceless, lol. But he doesn't owe any of us a damn thing and there are multiple reasons not to release whatever exploit he has found.
Sadly the main issue with XDA these days is that it is overloaded with people just looking for handouts and has caused a bunch of the great developers and security professionals to leave or at least not be as active.....

Sent from my LGLS990 using XDA-Developers mobile app
I would also love to learn things like that, currently learning reverse engineering for this reason.
Even if he doesn't share his method, surely sharing an unmodified aboot wouldn't be too much? I mean, it's obviously not publicly available so I guess it's possible he can't for whatever reason.
You're right though, the fact we now know it's at least possible means other devs can do something about it.

I don't know too much this low down in android, but I'd guess it's impossible to get an aboot from the phone itself without already having root?
 

I-IoLLoW

Senior Member
Oct 1, 2013
1,243
1,547
0
Pittsburgh
I would also love to learn things like that, currently learning reverse engineering for this reason.
Even if he doesn't share his method, surely sharing an unmodified aboot wouldn't be too much? I mean, it's obviously not publicly available so I guess it's possible he can't for whatever reason.
You're right though, the fact we now know it's at least possible means other devs can do something about it.

I don't know too much this low down in android, but I'd guess it's impossible to get an aboot from the phone itself without already having root?
Pretty much. The aboot would only help with an unlocked bootloader(which jcase thought we had thanks to xdaportal) or root but our bootloader is flash-securedand no root exploit as of yet. So currently we need twrp to gain root or root to gain twrp, essentially, lol. Finding a successful root exploit is what we need, IMO.

Sent from my LGLS990 using XDA-Developers mobile app
 
  • Like
Reactions: wolfgart

jcase

Retired Forum Moderator / Senior Recognized Develo
Feb 20, 2010
6,331
15,766
0
Sequim WA
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.
 

I-IoLLoW

Senior Member
Oct 1, 2013
1,243
1,547
0
Pittsburgh
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.
If only I didn't live in PA.......almost road trip worthy though.... BTW, again, thank you for everything you do. I can't say it enough....

Sent from my LGLS990 using XDA-Developers mobile app
 

Josh McGrath

Senior Member
Jan 16, 2013
2,468
1,018
183
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.
I am in Texas but I could overnight my phone to you if it comes down to it. But hopefully someone is in that area can do it as its my only phone to use and I'm.now down with strep throat.
 

arjuna_

Senior Member
Aug 6, 2010
316
89
48
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.
Thanks a lot for agreeing to do this. It'll be a great help. Is it possible to do this remotely if there isn't someone in the area that can meet up with you? Not sure if this is a dumb question but just wondering. I'm sure a lot of people would be willing to let you try if that is possible.
 

ledvedder

Senior Member
Feb 15, 2013
1,660
181
83
I hope we get an answer soon, before my return period runs out. If root will never be possible, I will be returning my G5 and going back to my S6 again. I did the same thing with the S7 that I jumped to.

Sent from my LG-H830 using Tapatalk
 
  • Like
Reactions: I-IoLLoW