yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
This project won't receive more updates. Thanks to all.

FEATURES

Full UX7 ported from G7 10f

v30a 8.0 H850 base. Modem included

Kernel compiled from H850 Oreo sources in permissive mode. Added KCAL and some ramdisk tweaks. Removed RTCD.

Added some missing apps and hidden features

Debloated and removed MLT

Rooted with Magisk. Thanks to @topjohnwu

Call recording enabled

Init.d and busybox support

Disabled signature verification

Added some popular apps to Extended Capture

KNOWN BUGS

OK Google doesn't work. Fixed in V1.1 update.

Jog zoom in camera doesn't work. Fixes in V1.1 update.

Signature option in camera doesn't work (and probably never will work). Removed in V1.1 update.

Strength setting for film effect in picture mode doesn't work and never will work

Live picture in camera only works in selfie mode

Have in mind that some advanced G7 features are impossible here due to kernel/libs limitation

ToDo

AOD numbers sometimes are slightly cut. I will try to adjust better for next version and improve brightness. Improved in V1.1 update.

Camera includes navigation bar. Best setting for our phone is to remove it to have more clean space. I will try to improve for next version. Improved in V1.1 update.

Add Pop-up mode to camera since it gives FC

Add more kernel features

FLASHING INSTRUCTIONS

UNLOCKED BOOTLOADERS!

ONLY H850!

ONLY CLEAN INSTALL!

In lastest TWRP:

Wipe system, data, dalvik&cache, cache

Flash Oreo bootloader (only coming from Nougat)

Flash rom zip

First boot will take much time, have patience!

Once reached SetupWizard, it will be very laggy due to Magisk. You must reboot then, to finish the dalvik generation

DOWNLOAD LINK V1.0

Mega: https://goo.gl/VGJ6YH

MD5: a0fa7a8298ea35163b1948ce6a32ab5d

No mirror links please!

UPDATE V1.1

More info: https://xdaforums.com/showpost.php?p=78107769&postcount=221

ADDONS

"Notch" mod by @tremalnaik, more info here

"FmRadio recorder" mod by @tremalnaik, more info here

THANKS

Me, for infinite hours spent with Oreo

@LameMonster82 for system and vendor G7 dump

DONATIONS

I don't need them, I don't need coffees or beers. I really hate see here people with high end devices asking for donations, but you can still donate money to charity. Donate money to people that really need them. If you like this port you can make me very happy just pushing THANKS.

I am not responsible on brick and so on

DON'T USE ANY PART, SCRIPT OR FILE OF THIS ROM WITHOUT MY PROPER PERMISSION

XDA:DevDB Information

H-ROM G7 PORT, ROM for the LG G5

Contributors

Astrako

Source Code: http://opensource.lge.com/osSch/list?types=ALL&search=h850

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.x

ROM Firmware Required: Oreo bootloader

Version Information

Status: Stable

Current Stable Version: 1.1

Created 2018-10-17

Last Updated 2018-12-13
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Will you consider to push "thanks" button in OP to say me "thanks" for all the hours spent with this project?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Mine too
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] renzetti.s:
great job.

lg g5 have new life now....
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Cimabu:
Awesome work once more my friend! Congratulations!!! ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kimaro:
Gracias paisano! [emoji123]

Thanks man! We really appreciate all your effort.

Here you are the required bootloader, just in case you want to add it to the OP.

http://www.mediafire.com/file/6qyxv6zfsk1vg13/LG-H85030a-Flashable.Bootloader.zip/file

It is from [MENTION=6815860]DavidFlint[/MENTION] stock rom post: https://xdaforums.com/lg-g5/development/stock-h850-30a-eu-rom-flashable-zips-t3850072

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] willsrockson:
Please can you add support to Lg G5 H30..Rom looks nice and I will like to have a taste..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Please STOP asking for H830 support!

I have said infinite times that I haven't a H830 so I can't do it blindly because it needs a lot of debugging.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] speedyburnzales:
great job !! thanks a lot !!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] willsrockson:
Sorry I didn't know
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
Thanks dude.awesome work.sad that notch does not work.can you do something to solve it?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] otakutw:
g5 doesn't have a notch....
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
Yes i know but i just thought that since g7 has a notch we could have it too in this rom.

Till now everything works fine...astrako really did a great work.this guy is something
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] speedyburnzales:
i'm just installing the ROM and i'm stuck in a Boot Loop. Any Idea ? Coming fron XenonHD Oreo8.1 Rom.

Followed these steps:

Wipe system, data, dalvik&cache, cache

(Flash Oreo bootloader (only coming from Nougat)) No -> as already on XenonHD Oreo 8.1 Bootloader

Flash rom zip

First boot -> stuck in Boot Loop
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Flash Oreo bootloader and reboot again. You need STOCK OREO Bootloader

And reboot will take much time as said, 10 minutes in first reboot until SetupWizard appears, and then you must reboot again (this will take less time)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] speedyburnzales:
that did the trick :))

thank you very much !
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] toribio68:
Ole,ole, ole, very good job you are a master

regards

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ffroms:
Hi!

This my first time with H-ROM (I've been using Flumics). First of all big thank you for this new ROM. It works almost perfect :)

I have only one problem. I can't turn on "OK Google" voice detection. As soon as I turn it on it turn it self off. Tried with cleaning cache and data but no luck.

Does anyone have same problem or have some kind of solution for this? So far I never had that problem on G5 or any other off my android devices.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
You are right, this feature doesn't work. I will take a look. I guess is due to updating GAPPS in rom to lastest version (from Opengapps). Thanks for reporting :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] alexinc:
Thanks for your hard work! Is flash working with this rom and magisk? As magisk breaks flash on original oreo with original kernel.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] zhypocritical:
Hello. I have a question. Is that when you have a horizontal screen, you're missing a piece of the screen. I think this applies to the G7 screen, and the G 5 will lack this, so can you make up the missing horizontal screen? :fingers-crossed:I typed it with a translator. I don't know if you can understand it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Torbz:
Can we have a port for for H830 model also please
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Sorry guys, try again the attached file. I am out of home and modified the file in phone without much time. You must clear data from camera app but reboot is not necessary. Tell me if manual mode is ok without lag and raw saving.

Of course mate I will take a look to this when have time ;)

Yes will be fixed too. As said I need time to do and fix all, just be patient :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
This only can happen if somebody with a H830 knows how to do a proper debug and send me proper logs and be ready to have the phone out of order several days. Is the only way that I can do this for H830.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kimaro:
Yes, it's a bit weird.

I used solid explorer with root access, file was overwritten but it did not work. I double checked it was modified.

Anyways I had to reflash today (xposed issues), I tried again and now it works.

Thanks guys!

Enviado desde mi SM-T580 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gefilus:
Horizontal screen is kinda on one side. The screen is not in middle. But thats not a big problem. Only when play games
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vkeza057:
... and while watching videos. :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Use notch addon, the link is in the first page. It allows to choose between a fake notch and a full screen
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
Using notch addon it would be better if the corners of navbar were rounded too.much better.but its already good enough.

Thanks again [MENTION=9336951]tremalnaik[/MENTION] for the notch solution.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Yeah, I know they would be much better, but I'm really a rookie at editing Android apps? It would take me ages to guess how it should be done.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
for a rookie you already have made a great work man.believe in yourself.you are good.maybe [MENTION=6917540]Astrako[/MENTION] could help.he is a genius i think!he was thinking to do a new layout in statusbar so… who knows!;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
This is in services.jar, is related with security but really I don't know much more about it. Here in my rom doesn't appear in log (using my own compiled kernel). I removed rtcd from /sbin too.... I guess this service isn't really important in a custom rom :good:

Once solved camera margins and jog zoom I will check in deep this "bug" of black border when screen is on landscape ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
really good to know that.as i said before you are the MAN!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcbravorendo:
Dear Astrako, thanks for your work.

I have just unlock the phone and install the last twrp recovery.

Do I need to root with Magisk before installing your rom?

Thanks,

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Root is already included in the ROM (Magisk 17).

You flash the ROM in TWRP, so existing root doesn't make any difference. TWRP can access every partition and every folder regardless of the permissions.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
[MENTION=6917540]Astrako[/MENTION], I have 2 G5's both with your port. Some xposed things don't work and i'm thinking of going back to stock on 1 of my fones, my main use one. I was just wondering if your kernel will work on stock g5 oreo. I was thinking of backing up boot.img with twrp and then flashing it back after I reinstall stock g5 oreo. Would it work and would this be the right way to do it? Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Yes of course, no problem to use in stock too. You can extract boot.img from rom zip, located in h/kernel folder. Also you need to add the modules, located in rom zip too, in system/lib/modules. You can copy&paste whole folder in twrp. You need to root always after flashing this kernel because lg bootloader detect as broken signature and won't boot. I'm stuying how to disable this (I don't know if is possible though) :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] abhishekdhadwal33:
Will it work for h860 indiam version??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
No, it won't, as the kernel is compiled specifically for the H850. Compiling the kernel for the H860 would require a lot of debugging, so that developing it without having an H860 at hand is very hard.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] abhishekdhadwal33:
Okk bro
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NewCity7:
4g/lte

czy da sie zmienic ikonke zasiegu zeby zamiast 4g na lg g5 h850 pokazywalo lte i lte+?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Ok. Sorry I didn't think this might not be relevant to your rom.

I have two G5's. One for testing oreo kernel, with stock oreo firmware/rom.

One which is in use, with fulmics nougat.

I'm planning on switching to your rom on my 'use' phone with next release.

Should be a nice change :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] erykfff:
Is Hi-FI module working on this rom?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
There's a whole discussion about the Hi-Fi module in the previous pages, use the search function and you'll find the answer.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcbravorendo:
Hello, Astrako. I installed the rom this weekend. The only problem that I have found is the sd card, it does not work.

My sd card is 64GB I do not know if it has to be related. Otherwise everything perfect.

Thank you for your work.

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] comesefosseantani:
On page 10 there's a zip to flash to make it work. Maybe it could be added to the OP. ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] strit20deco:
it will be very very good if you add a H-SETTING in settings section of the rom to easily add/cut the features .thank you very much
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vkeza057:
I have a H850 with 64 GB card and it works fine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jcbravorendo:
Finally, It works fine but changing the kernel to the mk2000 as I saw in a previous comment.

Enviado desde mi LG-H850 mediante Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
First I will update this rom soon and then I will start porting V40 apps and framework. Mods will be the lastest option since they are very tedious and boring to do.

Yes I didn't add the extFat driver to kernel included in rom when I compiled so some sd cards are problematic. I am testing now an updated kernel with many additional features including of course the exFat driver. I will release this kernel too soon for those interest on it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pikach18:
Thanks, this rom is a great work.

I have a problem, Quick Cover / Smart Cover doesn't work, G7 have similar cover, hope this function can be fix.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
ExFAT would be very useful, especially for connecting OTG drives . This will be a very interesting fix!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] renzetti.s:
:D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] strit20deco:
ok.thanks . i will add mods with apps lik uistting or quicktile....your rom is still the best
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
is this the notch-mod ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] renzetti.s:
[MENTION=6917540]Astrako[/MENTION] solved land horrible black in side...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] RobertPirainoBR:
It's possible to remove completely the notch?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
For the moment, download the notch mod from the first page and set it like [MENTION=4691155]renzetti.s[/MENTION] did in post 213. The notch will disappear completely in landscape.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] renzetti.s:
believe this is different. landscape black side border I mean...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
It also disables the black border. If you don't want the notch in portrait mode, just set any other mode int New Second Screen settings. I know what I'm talking about, I made that patch.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
H-ROM G7 PORT UPDATE V1.1

Changelog:

All previous fixes included (OK Google detection, camera lag in manual mode, hifi dac etc)

Added AOD from G7, resized properly for G5 AOD window boundaries (calendar and dual clock don't fit properly though). Analog clocks can't be bigger. AOD can show weather enabling automatic location in weather app

Removed navigation bar from camera, and resized some elements to fit better our screen

Added notch status bar setting for all apps (not only LG apps)

Added screen round corners

Improved autobrightness

Added screen rotation in all sides

Removed screen wake when plugging/unplugging cable

Removed scrolling-cache

Maybe more that I don't remember

Important: if AOD doesn't work for you, delete app data from AOD provider and AOD settings apps

Reboot will take a bit of time

> Download link <

md5: 312326f58571b2657b6e5f19567ce5e8
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] russy23:
Just a quickie..does this port have the same cam drivers as official release..i guess im asking is the cam quality as high as it should be..cause custom roms lose cam quality
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kye2000:
Just wondering, what made you remove scrolling cache? I was under the impression that this made things smoother but removing it speeds things up a little
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Camera quality is the same since this is a stock based rom.

Since I am testing a own compiled kernel being oriented to battery I have noticed that, as you say, with scrolling cache disabled all kind of transitions are slightly faster and IMO better overall ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Ok guys I forgot one thing in update file: If you notice that battery icon is slightly cut in AOD, then

download and flash again the update file

;) sorry for incovenience (sometimes to work with so many files make this happens...)

Now time to start porting V40 apps and framework.... ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Sure that's worth it?

I read this xda article the other day, LG V40 Thinq Mini Review
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Well V40 is UX 7.1, Oreo 8.1 based. And apps are really updated version than G7 (like V30 was respect G6). I think that "just for fun" it's worth a try. And I will try to make a full port, this is, porting V40 framework (as said Oreo 8.1). In my previous full V30 port it had a webview render bug.... will see what happen here now ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] muhammad suleman:
What is the screen on time on this rom?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vkeza057:
I usually get around 3 hrs sot. It is among the best I've used. Yesterday I got a full day standby with over 5 hrs sot.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
Ok.once again a great job dude!tell me,if i use [MENTION=9336951]tremalnaik[/MENTION]'s notch mod will i have the notch for all apps?and what about navbar rounded corners,will i lose them?about v40 port what can i say.from you... nothing is impossible!?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] KnightRider2008:
Probably off topic, but I think a great source for libs and files would be the G7 Fit since it comes with sd821.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
I think [MENTION=9336951]tremalnaik[/MENTION] must redo his notch mod ;) I started this afternoon with V40 files and port Oreo 8.1 framework seems quite challenging... :p

Yeah! Main problem now is that there is not any kdz extractor for kdz files with vendor partition included so, for example in the case of V40, one xda user kindly shared with me those folders. With G7 was similar. A dump made through twrp was shared in xda. Thanks to these people have been possible have this dumps.

Hopefully somebody will share G7 Fit files too and as you say we could use some of these msm8996 files too here :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I just made a thread here :)

First post in that entire forum.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] muhammad suleman:
Thats great to hear....
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Don't worry, I kept a note with every step I did to remove the notch on G7 H-ROM, I hope it won't be so different the V40.:silly:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] russy23:
i had to google notch yesturday, as i didnt know what you lot were on about, lol
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] damianwd:
I have problem with Google pay. I got message "it seems that another app is blocking access to wallet", I turned off all "draw over other apps" apps and I still can't add my credit card... I haven't any blue light filter apps.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Floating bar?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] damianwd:
off :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] russy23:
maybe you have to hide root
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] damianwd:
I did...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Linux User:
Is Magisk updated and all hide functions on? Check if magisk safety net check is passing with no problem. Reinstall Magisk if needed. I used to be on h rom but on lineage now. Had the same after some reboot magisk didn't worked properly. Safety net check fail. Reinstalled, restarted after cleaning cache and dalvik.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] damianwd:
No problem with magisk, I pass safety net every time... I did factory reset, so I have only stock apps and I still can't add my credit card...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Finally I was able to install this ROM and i must say it's amazing!

I have two questions/curiosities though:

1. stock oreo came with a vodafone boot animation and now I still have it with this ROM, is it included in H-ROM or for some reason stock eu left it on my phone? :confused:

2. I tried live photos in camera but, besides the actual photo, the rest of the "video" comes out totally black. Is it just me or is something you already know?

Keep up the good work [MENTION=6917540]Astrako[/MENTION]! Thank you!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
1. This is very strange! :eek: Rom cleans /cust during installation procedure.... check if you have some content in /cust and if so, remove it with a root explorer

2. Live video only works in selfie mode
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Black_Eyes:
Hope someone will port this amazing Rom to our G5 H830.

Thanks for your work.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Thank you for this fast answer. :)

Weird, I looked into /cust and I only found the lost+found directory.. nothing else :eek:

Just tried in selfie mode and it still is a black minivideo that at the end shows the photo...

My phone is definitely a little rebel..lol :D

By the way, This is not a real problem for me, just curiosity ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Did you make a clean install? The most important is to wipe /data (although you loose every program installed)

About camera really really strange.... for me worked fine in selfie mode. Can somebody check if this mode work?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
I am going to send a build to a H830 user that knows how to debug it properly so, maybe at the end, you could have this rom too :fingers-crossed:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Yes i wiped /data (wipe, not format) and /system on install... anyways, it's not a big deal for me ;)

The camera one may be more relevant if it happens to others too.. let's see if someone has the same