yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
@aleasto, first of all, thank you for building this for us. In the time I was on this rom, it seemed as stable as official 17.1. Unfortunately I have the same camera issues as with the official 17.1, and that the camera would crash from time to time. It seemed like I was the only one with the issue, but since then others have been experiencing the same thing. Can I please turn your attention to this post from the official thread?

https://xdaforums.com/t/rom-h830-h8...eos-17-1-for-g5.4039807/page-39#post-84238985

Epifistu has the H850 variant, while I as well as disk@tek@ have the RS988 variant, but we're all experiencing the same issue. Hopefully Epifistu's logcat can help solve this issue we're having.

For me personally, the camera apps I was using were Gcam (trCamera mod) and snapchat. Both apps would crash from time to time and I would have to wait a bit for them to work again.

FWIW, my camera and I'm assuming the other two users above have no actual HW issues with our cameras. Speaking personally, I am currently back to stock because of this issue and I have no issues with the camera running the stock rom, nor have I had issues in the past with previous LOS builds.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pupido:
How do I disable Trust's notifications?

Every time I reboot I get this annoying notification.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Ack.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] VortexHD:
Anyone else experiencing the same issue as me when I install LineageOS 18.1 or 17.1 they both work fine but as soon as you install GAPPS the phone overheats a lot?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Mineshaft4:
Hello, Thank you for building this rom its great to still see support for this device!

Would you be able to build other roms for this device? Would really like to see Pixelexperience, AospExtended, RR, DerpFest or Syberia rom on here.

Thanks for the support :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
New build fixes camera crashes
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Thanks for the new build aleasto. I can confirm that at least so far I haven't had the camera crash using trcamera/gcam. I think that an old bug might have resurfaced though? When recording video, recorded audio is really quiet again. This was a really old bug that was just fixed I think a little over a year ago? Did your fix for the camera crashing possibly affect recording volume?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Unlikely
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Mind you I haven't been an active user of lineage as of late so I don't know if this issue perhaps came back before. I do know it was fixed at one point.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
New build out

Fix kernel panics
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Henryyangjunhan:
Maybe you coukld flash it on h830 or h850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ponce70:
sorry guys, a suggestion: I had a previous (working) installation of 17.1 and I just flashed this: most of the things are working fine but I have some issues with google apps crashing (I tried flamegapps but they're still beta).

I think maybe starting from a clean state to flash this again and then nikgapps could help: which are the things you suggest to wipe from twrp to achieve that? it's safe to wipe /system or is better not to?

EDIT: in the end I tried this and it went fine!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pupido:
Do any of you use edxposed on this rom?

Does edxposed work?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Yes ,i'm using it and works normal.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pupido:
Thank you for your reply.

Which versions are you using of:

1) Riru-Core

2) EdXposed magisk's module

3) EdXposed manager apk

In which order did you install them?

I ask because installing Edxposed is very dangerous if you get the wrong version and installation order wrong.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Well done @aleasto and co.! This ROM is working so well for me that I'm back to updating only after security updates (monthly).

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@aleasto thank you very much.

Flashed it yesterday with NikGapps and Magisk onto my H850.

Even 2nd lens is working.

Only a shame the IR blaster doesn't.

Still setting it up.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Astowsky:
Hello.

Does anyone have issues with quick charging using this rom? Previously I was on lineage 16 and had no issues. I would like to know if its something releated to rom or my G5 started to have some hardware problems.

Otherwise its a great rom, everything works fine :).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Fun fact: today I wrote my 1st SMS and immediatly got a warning that SMS/MMS app is (not can be) sending a huge amount of SMS and if I want to further grant sending them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
New builds out

March security patch
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Thx very much.

Directly made a dirty flash which went well.

I had to reinstall NikGapps and Magisk as they got somewhat killed by the flash.

That was unexpected as I previously only flashed Samsungs where Gapps and Magisk don't care about dirty flashing.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
I double that.

Even though magisk and nikgapps restore scripts were executed after upgrade they both were missing on restart.

Never had any issues after numerical upgrades on official 17.1 los.

But this problem even more than just flashing over nikgapps and magisk.

Magisk is fine but Google play services cannot get permission to SMS now. And I see constant error that gplay throws to notification drawer. Phone app can't get numbers for contacts even though contacts are present.

Very very sketchy update.

I guess I'll have to remove nikgapps completely to make it work again...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
Ok. Be damned the second I decided to upgrade. NikGapps is a nightmare.

I can NOT remove it. I wiped the system partition, removed every other app with the name google in it in data... And still there is something. Everytime I flash NikGapps over seemingly virgin system sms permission is missing for play services. But without this permission Google Pay is refusing to work.

I'm desperate at this moment. I need help and open to any suggestion.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Errors not on mine.

After installation of NikGapps and Magisk everything is like before.

Phone and SMS just tested and working good.

Gotta admit I'm using "True Phone and dialer" as phone app.

The one which is integrated didn't show/offer enough contact fields.

Things I've noticed addionally:

Phone speaker loudness is too high. Tried but didn't get it low enough.

"Double Tap to wake up" seized working
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
"Format Data" done?

Perhaps, if that doesn't work either, change file system to f2fs and back to ext4?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@disk@tek@ checked granted access in app info?

On mine Playstore is allowed to access:

all Data, contacts, SMS, Location, Phone.

I've deleted for tests contacts and SMS just now.

Play services has none.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
I do not want to loose my data. This is my only phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
You might not even notice this. For me it comes up to light only when I use Google Pay.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
In TWRP filemanager deleting the "Android" folder in internal and external storage might help.

Of course you will loose app settings.

What about TWRP Backup and restoring afterwards?

Pics and downloads will not be saved.

Export them with filemanager via OTG to a stick.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
I have only LOS 17.1 in TWRP backup. I have not done backup for 18.1 since I was not sure how it's going to be working.

I've dirty flashed LOS 18.1 over a couple weeks ago and it worked nice. Since I had no problems with upgrades before I decided to upgrade today. And you know how this ended.

Just now I wiped system and flashed previous version of 18.1 + NikGapps. Permissions were intact. But since I deleted all google apps I had to install Google Pay again. And after doing just that strangely permissions were gone.

Now I'm going to start from a "clean" start. I'm restoring my system and data TWRP backup of 17.1 LOS and then I will flash January version of 18.1 and will see how it goes next.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@disk@tek@ I wish you luck
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Consider using MindTheGapps or opengapps
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
I've been using opengapps for 10, but they were not available for 11. So I decided to give NikGapps a try.

Nikhil said SMS permission problem is an OS issue, not gapps related.

Might it be that recent security updates screwed this over?

Thanks a lot. I managed to restore the phone to mostly yesterday's condition. LOS 18.1 (0130) with working Google Pay on NikGapps.

Doing TWRP backup now. Don't know if I dare today to test further with other gapps and latest LOS. 😅
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] greenoid:
Before I take the jump, how about some LG G5 specials, like

Always on Display

Double Tap to wake up

Fingerprint Sensor

IR Blaster

Magisk Hide for Banking Apps (my ING is able to pay via NFC at the moment)

Is it a good idea to backup original LG apps like the camera before und does it work to reinstall?

A thousand thanks for keeping one of the best (repairable) smartphones alive.

Greenoid
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
Always on Display NO

Double Tap to wake up YES

Fingerprint Sensor YES

IR Blaster NO

Magisk Hide for Banking Apps (my ING is able to pay via NFC at the moment) YES

Original cam app won't work on 11.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Original apps usually won't work without stock firmware.

Open Camera (F-Droid) makes both back lenses usable on mine.

Easy to switch lenses and loads of options.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@disk@tek@ btw. just found bitgapps 64 here
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Used to on the previous ROM but doesn't any longer on mine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
I had quickly pushed hot-fixed builds for tap to wake, please redownload
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Thx very much.

Do you know if Gapps and Magisk will survive a dirty flash this time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Magisk won't survive if you're encrypted, unless you decrypt with twrp.

For gapps you need a proper package.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
I don't encrypt as I read about to much hazzle with that.

But it didn't survive last dirty flash.

NikGapps I've used and will do again, 'cause I doubt it's a good idea to switch Gapps when dirty flashing.

Edit 1h later:

Dirty flashing went well.

"wake up on double tap" 👍

NikGapps and Magisk made a nice show on the screen about backing up and restoring.

Just Magisk Manager survived, but all other apps as well.

Google playstore had forced closes.

So I had to reflash both.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] xdafanboii:
Has anyone tried researching which GCAMs are the most up to date and stable and which work with 18.1?

Also can something be done about IR blaster issues? (i.e. once the IR blaster is set off, it works for one time and stops working until you restart the device). You can actually see the IR blaster flashes, so I watched how it works through another phone's camera. After the first blast (which looks normal), it 'hangs' and emits flashes every couple of seconds and it doesn't stop until you restart the device. Closing app does nothing. Even days after the first use, it just continues flashing over and over again. It would be the same if you turned on the flashlight, got it working for a few seconds and after that, the flashlight continued to turn on itself for a brief second and then off again. It would stop responding and 'hanged' in that state, until you restarted the phone.

I haven't tried flashing 18.1 yet but I assume the issue is still there from the 17.1. It would be awesome if the issue was finally fixed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] keneankit01:
have you fixed this issue I am facing same issue I would like to know how to fix it
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Do you get the same error? If you do, then it as aleasto said, check your vendor/lineage. I had an automatic change to it (networklocation providers) that I should have done with sed, but just copied an edited file over, so when the original changed in another place, I was left behind. (Good lesson.)

If you get a different error, check your build log. It might have something to do with a missing perl module. My system had 5.32, but the build system was expecting 5.26. So, I just put a link from 5.26 -> 5.32 in /usr/share/perl (Debian testing).

My build script has the following to generate a buildlog (you'll have to change to suit your directory structure).

#!/bin/bash
# LineageOS build script
# 2017, Felix Niederwanger <felix@feldspaten.org>
# https://github.com/grisu48/LineageBuild
# Feel free to share and distribute!
## Altered by RLF, 2019

SYS_DIR="/home/rfrazier/android/lineage/lineage-18.1"
JJ="-j2" # Number of processes for build
CUR_DIR="$PWD"
RomVariant="lineage"
RomBuildType="userdebug"
RomVersion="18.1"
TODAY=$(date +%Y%m%d)
DEVICE=h850
LOGDIR="/home/rfrazier/android/buildlogs"
BUILDDIR="/home/rfrazier/android"
BUILDS="/home/rfrazier/android/builds/${DEVICE}"
PRODUCT_DIR="$SYS_DIR/out/target/product/h850"
cd "$SYS_DIR"

# Setup build environment
source build/envsetup.sh

unset JAVA_TOOL_OPTIONS

LOGFILE="${LOGDIR}/${RomVariant}-${RomVersion}-${TODAY}-UNOFFICIAL-${DEVICE}.log"

~/android/cleanup_lgg5-18.1.sh

# for clean builds
# make clobber &>>${LOGFILE}

## Building
echo "Building for device $DEVICE ... "
echo " Lunch ... "
time lunch "${RomVariant}_${DEVICE}-${RomBuildType}" &>>${LOGFILE}
status=$?
if [ $status -ne 0 ]; then
echo "Lunch failed for device ${DEVICE}"
echo "Check log file for details"
exit 3
fi
echo " mka -j4 target-files-package otatools- (This is gonna take some time) ... "
time mka target-files-package otatools &>>${LOGFILE}
status=$?
if [ $status -ne 0 ]; then
echo "mka failed for device ${DEVICE}"
echo "Check log file for details."
exit 5
fi
echo "Completed build for ${DEVICE} :-)"
croot
if [ $? -ne 0 ]; then
echo "Croot failed for device ${DEVICE}"
echo "Check log file details"
exit 4
fi

cd "$SYS_DIR"

## Signing
echo "Signing the APK."

time ./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs \
$OUT/obj/PACKAGING/target_files_intermediates/*-target_files-*.zip \
signed-target_files.zip &>>${LOGFILE}

## Final packaging
cd "$SYS_DIR"
echo "Generating installable zip"

time ./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey \
--block --backup=true \
signed-target_files.zip \
${BUILDS}/${RomVariant}-${RomVersion}-${TODAY}-UNOFFICIAL-${DEVICE}-signed.zip &>>${LOGFILE}

cp $PRODUCT_DIR/recovery.img ${BUILDS}/${RomVariant}-${RomVersion}-${TODAY}-recovery-${DEVICE}.img

echo "Build Done"

Best wishes,

Bob

PS To answer your original question, I've not had problems in building lately. My last build was, last night, 06Mar2021, to take on board the March security updates. The previous build was 10Feb2021, to take on board the February ones. I'm more or less back to building once a month. :)

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
Can you please check if play store services sms permission might be allowed?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Well right now they aren't, as I've turned them off before updating.

Didn't notice any Playstore probs afterwards, but I Google Pay might need it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dietoro:
which gapps do you installed? I want to make clean flash from fulmics 5.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] iGSkill:
Good day, is this an issue? I am installing applications with obb file from Google Playstore but it fails. When I browse on my file manager and go to /Android folder, there is not obb folder but when I create obb folder, it renames to /Android/obb(1) and can't be renamed as /Android/obb. Already tried these steps on twrp file manager and root file managers but doesn't fix. Can anyone help?

BTW im on latest version of this LOS 18.1 on RS988
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@dietoro

If you mean me: NikGapps

@iGSkill would you tell us which app?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] iGSkill:
For example is ragnarok mobile or call of duty mobile. they both have obb files but can't install via playstore. Also tried offline version installer, apk plus obb. apk was successfully installed but i can't create or see obb folder in /Android folder

Look below my attachment, I created a folder named obb in /Android but it automatically renames as /obb(1) and no /obb folder is to be found
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dietoro:
Thanks, so then .. NikGapps FULL for me

But now..

can I fresh install from nougat? (fulmics 5)

Can you describe the procedure you used?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
I wasn't precise enough, I meant NikGapps CORE.

Usually I use the smallest package available as this makes it easier to identify probs with Google stuff which was installed separately afterwards.

Afaik everything which is not in Core can be installed from Playstore.

But it's up to you.

As I've made a first time flash from stock Oreo I had to make a clean install anyhow which was (in TWRP3.5.0-9) wiping everything +Format Data rebooted to TWRP for a sure mount of Data, then flashed ROM and tested if it boots, flashed NikGapps and tested booting, then Magisk22 (before changed extension to .zip).

I'd recommend a clean flash anyhow as for upgrading it's likely to get problems if that wasn't done cleanly.

BUT if I'd be coming from Nougat I'd check first, if in stock Oreo anything was updated regarding bootloader/baseband.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Sorry mate but these to are by far to big for my terrible DSL speed.

Would last nearly an hour to down 1GB.

Peculiar thing I found out:

although Totalcommander and Ghost Commander have root privilege they both don't show the OBB folder in "Android" folder but it can be seen in TWRP file manager.

I too have that folder I didn't even know it was there.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
When I turn on a paired BT device, such as a headphone, it doesn't auto connect to the phone. I have to connect manually, and if the phone goes in sleep mode, the controls don't work.

I've set Bluetooth and Bluetooth MIDI to not optimize battery use. I've also set my player, poweramp, to stay loaded. All to no avail.

Does anyone know how I can fix this?

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
+1, issue still persisted when I tested it, hoping too it can be fixed someday
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nausikaa:
Thanks so much for this!

Has anyone had trouble getting mobile data to work? Mine's finding the APNs fine, but no connectivity.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Configuring it manually doesn't work either?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nausikaa:
Thanks for the direction! Okay, so the APNs are all read-only. When I try to deselect "Automatically select network" in mobile data settings:

03-20 12:07:08.944 28165 29196 D NetworkScanHelper: Sync network scan error, ex = java.lang.Throwable: 1
03-20 12:07:08.975 28165 29180 D SettingsActivity: No enabled state changed, skipping updateCategory call
03-20 12:07:08.982 28165 28165 I NetworkSelectSettings: Network scan failure 1: scan request 0x1, waiting for scan results = 0, select request 0x0

Not sure what this means but happy to dig deeper with any guidance!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Which device anyhow and from which ROM were you coming?

What preferred network type is set?

Pulled a log or where from did you get the posted info?

I just see that it doesn't find anything but you see that as well.

When I deselect automatic mine takes ages to find something.

On automatic it has direct connection.

Tried to flash a 2nd time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Hope flashing helps. I have no further ideas.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] etmatrix:
Could you give me some informations on your device? I have a H850 and NFC doesn't work with official LOS 17.1 and all others LineageOS custom build. I would like to understand if the firmware is different.

I tried to flash the boot.img from custom rom, but I have always the same error.

There is also an issue opened on gitlab but none has informations on it.

In my log I have this row "NxpHal : FW download denied while SPI in use, Continue NFC init" but I don't understand if firmware is succefully loaded.

Thank you for your help and sorry for OT.

EDIT

From source

status = phNxpNciHal_fw_download();
if (status == NFCSTATUS_SUCCESS) {
fw_download_success = 1;
}
status = phTmlNfc_Read(
nxpncihal_ctrl.p_cmd_data, NCI_MAX_DATA_LEN,
(pphTmlNfc_TransactCompletionCb_t)&phNxpNciHal_read_complete, NULL);
if (status != NFCSTATUS_PENDING) {
NXPLOG_NCIHAL_E("TML Read status error status = %x", status);
phOsalNfc_Timer_Cleanup();
phTmlNfc_Shutdown();
status = NFCSTATUS_FAILED;
}
break;
}

In my log I have

NxpHal : TML Read status error status = 16f

So download firmware is failed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
Quick answer: as far as I'm concerned only dirty flashing step by step from los 16 keeps NFC and cameras. I've dirty flashed since los16. You can look through my old messages. Sorry, as of now can't say no more. I'll get back to you and direct you when I'll have more time on my hands if you are out of luck by that time.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
This ROM is my daily driver on H850 and working very well.

Thanks again @aleasto.

Funny/annoying is only that when I write in WhatsApp and in the same time I get a notice, everything I wrote gets deleted.

Dunno if it's only me who has this or if I've just overlooked somebody elses post stating the same.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
Here is my own quote:

So after that obviously I dirty flashed 18.1. I know it's a long way. But I'm sure after that you'll have your G5 with NFC and Cams.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] etmatrix:
Thank you @disk@tek@ today I solved the issue I read all thread LOS UNOFFICIAL 17.1 and I have found this message I followed it and now I have a LOS 17.1 Official with NFC working. When you install LOS for the first time have you an encrypted filesystem? If yes have you removed the pin before clean all?

I think without remove the pin the chip NFC remain locked and we can't download firmware, here I posted my teory, maybe a day a will prove it.