yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] c0mrade69:
Hey there.

After flashing i have problem with my SD card. Is corrupt and cannot be formated.

command ‘39 volume partition disk:179,0 public’ failed with ‘400 39 command failed’

anyone else have same issue? How to fix that?

its 64 GB SDXC Kingston
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Clayman_32:
Flash mk2000 kernel latest for oreo, it solved your problem
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] c0mrade69:
Thank you for quick reply!

Can you please provide download link and complete steps how to do it?

Im very new to this O:)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] c0mrade69:
I searched web and I think I can flash kernel over twrp, flash zip from SD, right?

Here I came to another problem.

I can not access SD card (as Is not accessible because of problem 1 ). I copied the zip in windows to internal storage. But I also cannot access it.

SO how to flash it? How to make partitions available?

Cannot even wipe any cache or partition.

[IMG="wipe error"]https://i.imgur.com/CApoYqM.png[/IMG]

Please help :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dylank:
You need to format (not wipe) data first because its encrypted on the stock rom, then you can wipe all the partitions and flash the rom
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] c0mrade69:
thank you very much! it worked
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] odysseas63:
LG Bridge & Smartworld not working

Hello,

I used this rom for a little bit and i really liked it :p ! But then i noticed that LG smartworld is not working and LG bridge detects an h850 marketing model, which means that basically its unusable. Then i noticed that safetynet fails completely. Even after I updated magisk to the latest version :confused: . So is there any way to fix these problems? Is it possible that smartworld isn't working because of safetynet? Because in the screenshots it showed that safetynet is completely fine
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dietoro:
Maybe you can try hide magisk and other modules to pass the problem BUT be aware to reboot everytime without adding zip module files one on another in order to avoid bootloop.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] odysseas63:
Thanks for answering.

I tried almost every module i could find but it didn't seem to work :confused:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Hassaan Masroor:
Any luck at removing the horizontal notch of second screen? Basically want to disable the second screen completely.

Also, the ROM is great but standby time not as good as LineageOS 16.0. Any kernel update or some battery mod would be highly appreciated.

Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] odysseas63:
Is there a way to apply a theme on this rom?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] c0mrade69:
Hey guys, having problem with "Screen Overlay Detected" in one very important app.

[IMG="Screen Overlay Detected"]https://i.imgur.com/ssVacw9.jpg[/IMG]

I tried to manually remove special access permission - "Draw over other apps" - from all apps, user and system, but still getting this annoying warning and simply can't use that app.

Also disabled "Comfort view" as read on some forum that this could be case too. Nothing helped.

Any idea where could be problem ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] FranzB:
Only information for people having the same problem after flashing ...

I came from original oreo ( kdz file ). I flashed with TWRP ( Wipe Calvik, Data, System, Cache ) and rebootet. Then after a while i got "Decryption error". Reboot and "format Data" did it for me.

Thanks to Astrako for the wonderful work !
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Notch can be disabled in framework.jar, leaving a statusbar with rounded corners and worse even in landscape with a strange round window but I really like having like now with two options to choose. Today I tried to remove from landscape changing some values like you in UI but for now I hadn't luck. I will check that value. Thanks for suggestion, I like when people try to help too :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] raptorddd:
congratulations friend another amazing work like always. :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Muchas gracias ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I found a third (and better of the previous one I found) option: in lge-res.apk resources, there are three values for the three possible resolutions of the phone: I'm sure about the qhd=94 because I measured it, and it's exactly the height of the black bar in landscape mode. These values are in /res/values/integer.xml. I didn't check but I think that also the hex values in public.xml are the same.

EDIT: I modified these values and now the interface fills the whole screen in landscape. The only problem left is the black overlay that covers the part of the screen near the hypotetical notch. If it could be useful, I noticed that showing the layout limits from the developer's settings, this black area is not detected, as it overlays everything, but showing the pointer's position the pointer's track is shown over the black area.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] comesefosseantani:
thank you for the hard work keeping our G5 alive! :cool: can't wait to try it! :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Thanks you OP for you hard work.

But this mega download option is so bad. I almost downloaded the file which took over and hour and just as it finished it tells me I have gone over my limit and if I wish to continue i must pay or wait 3 hours to continue with a nice little countdown timer. I didn't even download anything else from mega for months so the download limit is not suitable for xda.

I am actually going to petition XDA to ban MEGA from xda when I get a chance.

EDIT: Please sign if you agree https://xdaforums.com/general/general/petition-t0-ban-mega-xda-t3855850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kye2000:
Mega is amazingly quick most of the time
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Read the petition, 3 hour wait to resume download isn't quick.

Edit: Would anyone else who wants to comment on this issue please post on the petition thread and leave this for rom discussion, thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kye2000:
It doesn't happen for most people so removing it for the benefit of a few people is not a great idea. Plenty of devs use it for a reason
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] xlxcrossing:
The only major problems I had were voice assistant setup saying "check your connection" and phone saying invalid battery when getting low. I will check the post about voice setup I read a few pages back. So far the performance gain is night and day... so speedy and responsive and not just apps but internet pages as well. The battery life appears to be a bit worse than Nougat probably because of the performance trade off. Seeing if Greenify helps at all....haven't really felt this app has worked very good or at all last few versions of Android to preserve battery life. Thanks for porting the UX7 it really does look nicer. I have xposed working fine with magisk installed. Using Flat Style Colored Bars to blend status and nav per each app...one of my favorite modules.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
The add on hi-fi DAC does not work 100%. The device reboots (edit: hot reboot, not full) when you either plug in or plug out a headfone jack. If your boot the fone with the headfone jack pre inserted you will get sound but the hifi dac settings are grayed out. I know that the G7 built-in dac is more sophisticated that the G5's add on module where the G7 has added equalization capabilities so must be some incompatabiltiy going on here maybe. Anyway USB Audio Player pro, for those that use it to access the hifi dac, seems to work just fine and wil play high-rez files although I haven't tested with the highest rez files yet.

Other than that the rom seems to me to be very responsive even better than the G5 Oreo rom which I had some lag issues with.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Add this line to build.prop and check if DAC works:

persist.audio.hifi_dac=OFF

This enable all advanced G7 audio settings including quicksettings tile, but here of course without DAC they don't work.

If your G5 reboots, could you try grabbing a log when connecting DAC? I haven't one so can't test for myself.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
I tried that but no change really. Tested OFF and ON. Not sure if i did this log thing right as never did it before. See attachment.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Unfortunately the log is too short. Try the following steps if you can

First you must install adb in pc if you haven't. You can grab it here

1. Enable USB debugging in G5

2. Connect to computer

3. Open a terminal (cmd, power shell, etc)

4. Execute adb shell and accept dialog in G5

5. Then, clear log buffer with logcat -c

6. Execute logcat

7. Connect headphone with dac connected

8. Then once captured all this log, copy all text in terminal window to a text file and attach here
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Weird problem. When I get the usual pop-up to authorize usb debugging and accept, I get a toast notification that says "because an app is obscuring a permissions request, Settings can't verify your response". So unless I fix this I can't follow your instructions. Never seen that before.

Last time I did the log in Terminal Emulator Logcat>/sdcard/log.txt. Is there a way to do it in Terminal Emulator on device maybe?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
That toats is due to an app that is overlapping the rest of elements. Check if you have enabled Floating bar, or any other app that is above others.

If not, try with MatLog app. Do the same, clear log, start record (you can do with a widget if I remember well), and then trigger the reboot with headphones.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
You were right about the Floating Bar.

I got logs using adb on pc. I think some info went off the cmd windows because it was so long but as soon as I plugged in the headphones of course adb logcat disconnected because of the reboot. attached is what I copied from the cmd window.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Still is too short. Try again with following, please. Disable LG G5 in Windows device manager (you will see something like My Lg Phone or similar). Once disabled disconnect and connect G5 to PC and repeat the same procedure, check if now logcat doesn't stop when G5 reboots. If so, then copy me all possible lines from logcat. After than you can enable again the phone in device manager :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
No i'm afraid that didn't work. Adb logcat disconnected like last time.

I wonder if apk that manages sound from nougat system could be copied over manually. I have 2 G5's one with nougat. Probably more complex than that though :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Ok, anyway, try to grab a log with matlog app, recording it too.... I think this mustn't hard to fix, but I can't do without a proper log :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
I used logcat extreme app as matlog app confused me. Anyway I still don't think these logs captured anything useful because the reboot killed the app!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
Thank you for your work,really appreciated. If i may ask one small favor,could you please tell me how to disable the nagscreen/warning popup whenever i click on mobile data enable/disable?

This totally ruins fluidity in the otherwise very good rom,aside from this its almost perfect. Thank you again for spending your time with this

Edit: No idea how hard it is to do but so far Mobile and Airplane Mode popup remover would be wonderful
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
One of the log has almost at the end the reason for failure so this is what I need to try to fix it, so thanks. Maybe tomorrow or Monday I could send you something to test :good:

Yes I agree that these warnings are totally unnecessary and annoying so I will remove, give me a bit of time to do it :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] renzetti.s:
change rom in your sign
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Estupendo !

Done :p
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] RobertPirainoBR:
Hi Astrako, its possible to port H-Settings to Oreo? ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
For now not, is very tedious and prefer to focus on other things. Maybe in future :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] daniLaLaLaLaLa:
why would you want a notch? it's weird.. and even weirder for screen with aspect ratio 16:9 like us..

anyway [MENTION=6917540]Astrako[/MENTION], i'm so happy to see another awesome work by you here... eventhough i don't own G5..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ggehuliang:
thanks for your hard work making this awesome rom !

I have the same issue with the HiFi add-on module and I'm looking forward to your early fix :)

by the way , it seems that the Always-on display doesn't work properly occasionally , not on the center so that the last number only display half
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Yes, about AoD I would like to leave it at least as G5 stock is, but is very hard really to mod it or understand how works. Is in my list of "to do" things to improve.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Psdragon:
Its just my opinion.i like it and since g7 has one i think we could have one too but if not its ok.great job.im using this rom since first day and i have no words its funtastic.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
I noticed AoD too slight problem. I believe I had this problem to on Nougat, I think it had something to do with changing DPI setting in Settings. Was never sure if it was Fulmics Rom problem or stock problem. At least the G7 AoD is a bit better designed than G5 stock as the font used it a bit more clear to see and notifications a bit more spaced out and again easier to see.

========================================================================

I have problem, sim not detected. I'm not sure if it's hardware or software. Last week my sim tray broke and got stuck inside slot and I'm concerned this messed up the hardware contacts. However G7 rom has constant "sim not detected" notification so I'm thinking maybe it's software caused by new G7 rom flash. I suppose I could re-flash nought to and see if sim works but that's laborious. I suppose if anyone had same issue it would be mentioned already so maybe my sim slot is now faulty :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] grzanek94:
Guys, please tell me. That rom is good for daily use?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] speedyburnzales:
Absolutely ! Despite of the already mentioned small hickups (AoD position, Hifi DAC warmstart with hearphone plug in/out) it's a great, great ROM.

---------- Post added at 08:54 PM ---------- Previous post was at 08:48 PM ----------

Btw. With this ROM you can take videos in UHD/60fps !!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I tried UHD at 60fps but I just got actually about 40fps, and both Wuffy and MediaInfo detect the framerate as variable between 10fps and 60fps. I wouldn't use for a professional shooting, but I still have to see if in good lighting conditions may be possible to get a stable 60fps.

By the way, I also noticed an extreme improvement from the stock roms (both Nougat and Oreo) in terms of mobile signal: now I have a decent HSDPA or EDGE connection in my room, while with stock rom I didn't have almost any signal.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
the second these nagscreens go away (airplane,gps location and mobile data popups) this will be the best up-to-date ROM for the G5, so yes

have it for 2 days now and it didn´t crash,bug out or freeze on me once
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I totally agree with you, even if this is the first version, this is the best ROM you can have on your G5 and it's absolutely stable, nothing ever crashed in a week, and I have both Magisk and Xposed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Ok guys, those that have the HiFi module, could try flashing the following zip file and check if is fixed?

If still reboots or do anything strange, please grab a logcat when pushing and pulling headphones :good:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WORF84:
I searched the thread and I understood it as the full screen aspect ratio isn't set because of camera issues if so?

I rather have fullscreen than LG Camera.

There are alternatives...

How can I set full screen for video playback, to ignore the notch?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Anyone has tried a dirty flash from stock EU?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ggehuliang:
it is still rebooting while pushing and pulling headfone

i'm not sure whether the log is useful or not , check it plz

i have issue while uploading files to xda so that i had to use pastebin:)

pulling log: https://paste.ubuntu.com/p/Cz5wQMwGsG/

pushing one: https://paste.ubuntu.com/p/vJdbwFx9Z2/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Yeah can confirm fix for DAC didn't work. Don't have time to do logs right now. I had to reflash the rom to see if it would fix my sim problem which didn't work btw so looks like my sim slot is faulty. Should I put back in build.prop edit that was instructed earlier or is that irrelevant now?

I fear this might be hard to fix because the real G7 dac is permanently attached on the mobo where drivers and software are activated on boot where the addon dac is recognized as a connected dac device only when the headphone jack is inserted, not when it's simply connected, and that is when the system fails. Also I think the settings screen for the dac needs to be the same as the G5 where in the G7's it's completely different with settings the G5 addon dac is defiantly not capable off on a hardware level. I don't have enough knowledge how porting works to know if this is possible to remedy, hopefully it is as the rom is really great besides. I will upload more logs if the previous posters submission didn't help.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Ok thanks for reporting it. The log of the other user are too short, so if is possible for you, please try to grab a log like other you sent me.

I think that at the end could work on G5, since even for using G5 without DAC, the volume slider of advanced audio setting still work, but also, could be possible that it didn't work. First I want try AudioServer code in services, if not work at the end, then porting advanced audio settings from G5 stock is also a possibility :good:

Hope you finally fix SIM slot ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ggehuliang:
sorry for sending wrong logs to you , this is my first time to do this.

i try again after searching how to catch logs correctly, hope it's useful for you this time:o

the size is up to 2mb

https://mega.nz/#!HUgmRI5Y!bfxc449t2tOG3dsorGOiaOFSzdWru_1_Asq_bbt0KhQ
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
Ok wont give up so. More logs, one when connect and one when disconnect jack.

Edit: If anyone else likes to provide logs I find Logcat Extreme app easy to use. Start app, press + sign on bottom right and select record, then plug jack in or out. Find logs in "Internal storage>LogcatX>logs.txt"
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astrako:
Thanks for log! I will take a look ASAP :o I''m happy to see that people is helping me to fix it :good: Hopefully we will find a solution (I can't do alone without your tests and logs)

In the other side, I didn't forget the other things that I have in mind:

- Adjust full screen in landscape (tried some things but no result for now)

- Bring G5 Oreo camera (almost done)

- Remove toast for data, airplane mode and sync (almost done)

- Improve AoD (50% done)

- Upstream kernel to lastest linux stable release (3.18.124) and add some features (already compiled and testing 3.18.94)

- Port some mods like my N rom (this will be the last for sure)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ezzony:
I don't want to give you more to do but since these are related I'm mention them now. 2 things.

1. If sim is not inserted there is constant notification which I never seen before on any android version. Yes icon in status bar but this is notification I'm talking about.

2. I like immersive mode. I didn't not see this option in quick settings so I added it with quick settings app. However did not really solve the problem because when I enable it the status bar still appears as a kind of shadow with nothing on it which just serves to make make screen smaller. Maybe this has something to do with notch stuff I dunno.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
I really cant wait and might start to come off as needy but: Please,also remove toast for GPS (the popup for better precisition,comes after you enable it and return to normal phone use). Maybe, add boot into recovery option,too but only if you're comfortable spending this much time on it.

Thanks again for doing all this btw, i cannot stress this enough! YOU made Oreo fun on the G5 since even self-debloated stock OreoRom isn't as fancy as your Rom.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I finally got to remove the black corners and show the screen at full size. Beside setting to 0 all the notch insets (have a look at post 45), I kept trying following your advice about looking in framework.jar. In order to remove the black area near the upper part of the phone, just go to classes3.dex in framework.jar and then in com/lge/internal/R$bool you will find starting from line 1235 this code:

const v0, 0x6009b
sput v0, Lcom/lge/internal/R$bool;->config_use_roundcorner_mask:I

Replace 0x6009b with 0x0 and black corners will disappear.

Then, in classes2.dex, go to com/lge/config/ConfigBuildFlags, line 716, look for

const-string/jumbo v0, "NOTCH"
sput-object v0, Lcom/lge/config/ConfigBuildFlags;->LGE_DISPLAY_SHAPE:Ljava/lang/String;

and replace "NOTCH" with anything else, such as "NORMAL".

In this way, many other functions, who call this parameter to check if the phone has a notch, will think that the phone has a different shape so they won't apply the settings that only real notched display require.

It works both in landscape and portrait modes, I just hope I didn't forget anything, because I tried so many modifications before obtaining this result, and I might have forgotten some of them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] RobertPirainoBR:
I got some bugs today but I think its related to an Magisk module that corrupted my files, my sensors dont work anymore. I will try to restore phone to Marshmallow or Nougat from LG UP and do root/twrp all again, and I will be done to back for H-ROM. I think my drivers are corrupted for bad Magisk module install. If someone could help me, please send private message, and sorry for my bad english.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] muhammad suleman:
Hi -

What is the best way for me to flash this rom?

As im currently on stock rooted marshmallow with twrp installed.

Please guide

Your help will be highly appreciated