yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] sdembiske:
Check out Camera FV5 Lite and Cinema FV5 Lite (both available on Play Store for free - they also have paid versions if you want to upgrade to more functionality).

So far, the best out of the number I have tried on my UsU unlocked H812

. These have now become my go-to as I feel overall quality and performance is quite a bit better with these (there are two separate apps but you can switch to video mode in the Camera app if you have also installed the Cinema app).

Video and Recording/Playback quality is very good for the Cinema version, not getting any stuttering, etc. - seems very smooth. I'm quite impressed with the quality (colour/lighting/resolution, etc.) for a free app.

In the Camera app, you have to go into the app's settings, touch on the camera icon and then scroll down to Compatibility - touch on that and select at the bottom of the menu, Force usage of legacy camera driver, to get it to work properly and be able to focus on what you want to take a picture of. Quality of the picture seems very good.

What would be interesting is to compare these (before and after you install them) with this app: Camera2 probe - post the screenshots, if you don't mind, if there are any notable differences.
[G4 Android Development] raptorddd:
am on stock N right now. i was hoping to try again when new build come. was thinking to try oreo too.

thanks
[G4 Android Development] kessaras:
the stock google app i have used as a default camera app is the best one.

You do not need any manual control over everything to use the modded google cam app, this is not a digital camera :P

this is a smartphone. Quality depends on the blobs and kernel.

You'd need full manual control only if our camera sucked and you couldn't grab clear photos
[G4 Android Development] kinuris:
Hello. I'm using the last N and getting +35% CPU use when using network location services (high accuracy or low battery mode).

As my installation is a little stranger, because I'm using microG, so no Google location services, but UnifiedNLP, I'm not looking for a fix, just wondering if some other N user has noticed this high CPU use thing, with or without gapps.

Thank you in advance
[G4 Android Development] kessaras:
well... personally i do not have high cpu use when turning on gps.

While using maps, yeah. The app + our crap screen drain a lot of battery.

If someone else has similar issue too, then it would help to grab a screenshot of "top" command at first to see which procedure is the one that works the cpu to death.

in pc terminal:

adb shell

top

screenshot that.

Then i will post a small guide line, "how to" strace this procedure so we can all find out why it happens.
[G4 Android Development] kinuris:
When using only GPS, all is OK, while using maps or maps.me and so. I got the thing when I use WiFi or gsm positioning.

In other N using your base (RR or LOS) I'm not getting this behavior.

In the phone, it says is SystemUI who wastes CPU. I'll try with ADB when back at home.
[G4 Android Development] kessaras:
In our N i replaced the Lawnchair launcher with pixel 2 launcher from Android P.

It's more lightweight. Only a half mb.
[G4 Android Development] MatteoB92:
I'm so happy to see development for Nougat is going on after some months, I can't wait to try the update for the last base in which everything is working, for the moment [emoji39]

Inviato dal mio LG-H815 utilizzando Tapatalk
[G4 Android Development] kinuris:
Naaaaaa... I made a backup, a clean install and now is working as supposed. Thank you for you great work.
[G4 Android Development] choice2rejoice:
Whahahaha! ?
[G4 Android Development] sdembiske:
The problem is not so much with the camera per se (although quality is somewhat lacking according to some more photo quality discerning (?) members), but with very poor video recording and playback. There has been a number of members bringing up this issue with respect to the N version on steadfasterX's UsU unlock site and some 3rd party camera apps are not able to function with camera2 api activated (e.g., OpenCamera).

Don't get me wrong, I love this rom and have no reported problems with photo quality and video recording/playback with the Camera & Cinema FV-5 Lite apps but I and other members most certainly had problems with video recording and playback with the stock camera. I found for me, a very acceptable work-around.
[G4 Android Development] MUSTANG0012:
I saw i post in a thread for samsung galaxy j5 android oreo and they also were talking about sim not being detected sometimes. Now im not bothered by the fact that sometimes i have to restart ril daemon but they fixed it with adding ro.telephony.ril.config=simactivation to build.prop not sure if im saying something dumb but this might help?
[G4 Android Development] Minto107:
We have other problem. SELinux policies are too strict for our phone. If I remember correctly our RIL needs to create(or read) some file but sometimes policies deny it and this results in baseband unknown and no SIM card read.
[G4 Android Development] ThePiGuy:
But we are running in permissive mode - it's my understanding that all selinux requests are granted but they are logged as denials in permissive, so it shouldn't be an selinux issue
[G4 Android Development] Minto107:
This is what I recall. I know we're in permissive but this is what I remember that [MENTION=5461026]kessaras[/MENTION] has said about this issue
[G4 Android Development] MUSTANG0012:
oh like that. okey i misunderstood. sorry :p
[G4 Android Development] ThePiGuy:
Oh ok [MENTION=5461026]kessaras[/MENTION] knows much more about this than me, so if that's what he says the problem is then it probably is
[G4 Android Development] nigxxx:
i have todays build and i dont have it, it is not listed under apps
[G4 Android Development] kinuris:
Same here. And, this is some kind of annoying, the phone last to connect internet a bit, so I got an erroneous time for around 15 or 30 secs, so my smart watch, WhatsApp error...

It only happens with this rom., LOS unofficial is OK. Somebody knows why is this happening?

Ah. It happens with last build, but too with the April 4 build
[G4 Android Development] kessaras:
i didn't build yet after a small change. i will build when i will have completed a series of changes

here its connecting fast

i wonder too how its possible. but if i completely remove all policies even the qcom ones and even if we r running on permissive, it won't boot. it won't even go to the logo.

i've already seen why, because of a denial we get with the gpu device. How do you explain that ? i got no clue personally.

same is for the ril. the motorola ril we use it can't connect sometimes on boot, and sometimes it can. i can't explain it.

The only thing i can do and i will do but not now that i do not have enough time, its to restore to lg ril and update it to N, then check if it works in O.
[G4 Android Development] ThePiGuy:
Is it possible that the kernel defaults to enforcing before it hits that line you coded in forcing it to be permissive, and in that brief period of enforcing nature it denies the RIL
[G4 Android Development] Derpthunder:
battery consumption

I tried this ROM, both latest official and steadfasterx's unofficial and I wanted to ask if it's normal that the battery goes down from 100% to 0% in 2h40' on 70% brightness, playing YouTube over Wifi. No GPS, no bluetooth, no NFC, no audio, no SIM card in - everything except Wifi toggled off. No apps other than YouTube running either. The consumption seemed the same for browsing with Chrome, taking pics and anything. I did over 5 repeated tests like this and kept getting the same results.

Is this supposed to be like that? Is there a way to work around it?
[G4 Android Development] MUSTANG0012:
Have you disabled ambient play?
[G4 Android Development] jovanv:
Installed aoscp_h815-4.2-20180415-unofficial.zip over my previous 29A, after wipe of /data. Boot ok and almost everything seems fine at home.

Now, at work things are not so good:

1. The Wifi we have is 802.1x with PEAP and MSCHAPv2, the SSID is not broadcast. I've filled in the details and I chose "Do not validate" for the CA certificate. When I press Save the Settings app force close.

2. It cannot connect to the cellular network: with 29A I usually had a signal of 2-3 bars, now it's zero. It could be a transient effect, but the biggest problem is that it fails to get the correct time and date and things get nasty. Rebooting to recovery shows the correct time in TWRP 3.2.1.

3. (minor) I have a fitness tracker and in 29A I could use it to smart unlock the screen, now it says "Can't add device". I can connect to it and synchronise, so there is a BT connection. The smart unlock worked OK for the car handsfree though.

I attach the logicat.log (but note the date and times may be wrong). I could not find anything obvious in the logcat about the failing to connect to the 802.1x network (SSID is sic-wireless).
[G4 Android Development] Derpthunder:
No, I haven't. After searching this thread for the phrase I can see it's been mentioned a lot, to a degree it might seem obvious to everyone else but me so I might have made a fool of myself by not having that checked. Apologies if that's the case.

It would be hard to read through all 400 pages before flashing the ROM, though.

I'll flash back to AOSCP, switch Ambient Play off and test again. Thanks for the tip.
[G4 Android Development] Minto107:
It's good to read those 10+ previous sites and it'll definitely tell you what you'll be against ;) this issue is common and everyone encounters it. I believe I was the first one to discover it(I might be wrong tho) few months ago(and yeah it's still not fixed...)
[G4 Android Development] Derpthunder:
I'm almost done with the test and it seems that disabling that thing rewarded me with around 30' to add to those 2h40' of SoT.

If the battery stat estimates on how much more time it'll go for will be the final result, then 3h10' will still put this ROM 30' behind what I got from the Lineage OS.

Any idea if there's anything else like the Ambient Play that I could get rid of in exchange for more battery life?
[G4 Android Development] Minto107:
Not really. You can always tune down CPU settings as you might have noticed that phone gets quite warm during regular usage

Sent from Galaxy Tab A10 with 7300 battery ;)))
[G4 Android Development] king200:
I am using a Magisk module, "Enable Doze for GMS" that stops Google Play Services from being so aggressive. I haven't used the rom for enough time to make judgement. My battery is old too.
[G4 Android Development] sdembiske:
Refer to this post in steadfasterX's bootloader unlock thread for some additional considerations: Battery drain issues on N ... ? post # 464
[G4 Android Development] Derpthunder:
I'm done with the test - it survives for 3h31' now. So it's basically no different from Lineage OS.

After checking out that screenshot from [MENTION=4493588]king200[/MENTION] - on the one hand my test result is not that far from your average but on the other - your last SoT was almost 4h and I'm guessing that it wasn't the top score.

I think 3h31 ' SoT is enough for me to finally pop my SIM card in but I'll definitely look into flashing Magisk to squeeze out even more. Thanks a lot for the help.

[MENTION=6302635]sdembiske[/MENTION] Thanks, I'll take a look at that as well. Although, it says it's unofficially patched to work on Nougat to mitigate the battery drain on Nougat while the stuff here seems to be revolving around Oreo. Are you saying that app will work on O?
[G4 Android Development] vsTerminus:
I'm not entirely sure if this is welcome here, but it's worth a go.

H812 unofficially unlocked (UsU) - Just wanted to provide more info and a log regarding the camera and playback issues we are experiencing on this specific model in AOSCP Nougat.

Photos work fine.

Video Recording is a little different. Some apps can't record video at all or produce an unplayable file (Google Camera and any play store cameras that use Camera2 API). Some record video but in poor framerates (OpenCamera, SnapChat), and some record quite well (Cinema FV-5) as long as they are in Legacy / Compatibility mode.

Playback is also an issue, but only at 720p or higher. I've really only tested YouTube for playback, but it's fine up to 480p and then the framerate plummets if I go any higher.

Attached are logs of me booting a freshly installed AOSCP Nougat on my H812 and attempting to record 30 seconds of video with the included camera app. Reference Post 759 in the UsU thread if you want to know more about exactly what I did to generate these logs.

Anyway, this is not meant to be a complaint, just a behavior I have observed with as much info as I can provide in case someone is interested in looking into it. Thanks.
[G4 Android Development] sberta:
BT headphones:https://www.plantronics.com/us/en/product/backbeat-go-2

tell me if it's not ok.
[G4 Android Development] sdembiske:
Most likely the AppOpsXposed will not work on Oreo but the Amplify and Greenify (enable aggressive doze and greenify as much as you can) should - get the paid versions for full battery saving options. If you're not satisfied, just get a refund through Play Store. Refer to: ✭[GUIDE][26-07-2016]Extreme Battery Life Thread (Greenify+Amplify+Power Nap)✭ for more ideas and settings to use.

Other things you can do:

Do not use a live Wallpaper, choose a darker static one, etc.
[G4 Android Development] fi5z.x9:
Hi guys, in regards to peeps complaining bout battery life on the Nougat 4.2 update, I'd like to share my tips to help out. Btw [MENTION=5461026]kessaras[/MENTION] thanks for your dope efforts, your recent kernel update is so #onpoint ?

My disabled settings: pocket detection, d2w, gps location.

Kernel tweaks:

1. disabled 2 big cores, CPU boost.

2. changed little cores gov. to conservative

3. disabled temperature throttle (under thermal)

4. changed GPU gov. to powersave

On average I get 4+ hours sot ( without intense gaming.. #PES, #ShadoWguNLegends which cuts sot to'bout 3hrs.)

My advice, after a clean install, allow the system to do it's thing. Battery might drain at first, but it balances out after several recharge cycles. Also, avoid complete battery drain during usage (very important).
[G4 Android Development] kessaras:
with this chance i want to explain why dt2w and pocket crap cost battery life.

1) dt2w

the stock input synaptic sources for 8992 have a way to handle dt2w that doesn't work with cm/los/aosp/aoscp(etc, any custom rom).

same with 8994, 8996 , etc. All LG phones with our type of panel.

So we added long ago, since MM , a simpler coding to add that feature.

https://github.com/CypherOS/kernel_...dedceb0#diff-191658ae981bd79f9c38ec2449a20437

Same commit is everywhere. For all 8992 , 8996, 8994(if anyone brought up this source), for all roms.

Obviously that is not the right way to do it, but there was no other way.

That code is not perfect, it's just something someone come up to fix this missing feature.

2) pocket detection or whatever other roms call it.

in this commit i fixed iterations that flooded the log.

https://github.com/CypherOS/frameworks_base/commit/c6acad24d586a36dc457eedf0b7ac1ef3131451c

above those lines you see this:

repeats++

thats a counter. it starts counting as you understand 1,2,3,4,etc, unlimited number. It's a non stop counter.

That counter is what drains battery in pocket detection. It's not a great battery drain, but it is something.
[G4 Android Development] mathbond:
hi

everything was ok but after my phone turn off because of 0% battery, i am now stuck on the aosp logo and after a while it boot on twrp...

Am i forced to do again a clean install ?
[G4 Android Development] TJzuo:
Hey! Love the rom but for whatever reason, it runs SUPER hot and I can't get it to take a steady charge on anything below a 3 amp charger. Anyone else having this issue or know how to get it fixed?
[G4 Android Development] ThePiGuy:
What version at eyou running? Have you tried a full fresh install (wipe system, cache and data before install)?
[G4 Android Development] Lurensu:
Disable ambient play and reboot.

Charging is strange for me as well
[G4 Android Development] caponex:
I had the exact same problem with the Nougat version and only clean install did the trick. The good news was that I managed to do a backup with the TWRP and so I did not lose data.

It is not always the case, but when battery drops to 0, sometimes files get corrupted, and if they happen to be OS related, the problem occurs. I have no problems at all as long as I keep the phone charged.
[G4 Android Development] kessaras:
yes always have a backup of the data partition.

I can't trace where this strange error with data partition comes from. It happens rarely and randomly and usually im not connected and taking a log when it happens.

Last scheduled build for N is for tomorrow.

- New android P launcher

- Many bug fixes in kernel level and drivers updates.

- Slightly improved the double tap to wake issue and it happens rarely, but now with the fixed pocket detection its fine. ( not working 100% though )

That's for N for now and i'm moving to our O.

I will first help a couple of days ( this weekend ) with our los to fix the ril and come back to O to work to bring up LG G4 for Android Parfait AOSCP release.
[G4 Android Development] mathbond:
yep i do a clean install and all is ok

thanks for the explanation ;)
[G4 Android Development] vsTerminus:
I've noticed similar behavior. My device can sometimes get unusually hot during light use. Just browsing in the reddit is fun app for a little while had the phone hot to the touch.

H812-UsU, AOSCP 4.2 Nougat

I'm rooted with SuperSu and have xposed installed. Using Greenify, Amplify, and BetterBatteryStats.

I did a complete wipe and format before installing.

(I'll disable dt2w and see if that helps. I'm also still on the April 12th build, so I'll clean install the latest one tomorrow. Looking at the latest Titan kernel commits, I'm guessing that's my issue.)
[G4 Android Development] king200:
I am planning of flashing the 0415 release. The 0414 release completed 2 days ago.

I read that a clean flash is required. I will wipe, flash the rom and gapps with no Magisk. Then boot into system and do the initial setup. Then restore data in recovery and Magisk. Is what I'm doing any different from a dirty flash? Comments please.
[G4 Android Development] ThePiGuy:
Unless I have missed something, I don't think a clean flash is required to update. Just dirty flash the latest (did you say you are on 0414 and want to go to 0415? - it is advisable to clean flash between big version jumps but minor updates are fine).

Flash new version without wiping anything and then immediately flash gapps (if you boot between AOSCP will remove gapps and a clean install will be required to get them going again). I have no idea where magisk fits in. Probably doesn't need reflashing after dirty flash
[G4 Android Development] floko78:
No home button

Hi there,

I´ve recently upgraded to aoscp_h815-5.3.1-20180328-unofficial from 5.3., I did a clean install, wiped everything. But I never get home/back etc. buttons at all. I tried installing without gapps, tried https://www.xda-developers.com/broken-navigation-bar-lock-screen-ota-update/, but I never get those buttons. When installing 5.3 they are back.

Any hints or things I might try?

Thank you!
[G4 Android Development] ThePiGuy:
New AOSCP versions have navigation bar disabled by default as on the devices with hardware buttons it can cause bad bugs. Open settings (either from home screen or by opening notification shade and tapping the settings cog) and search for navigation. Something to do with navigaton bar should appear in the results allowing you to turn it on
[G4 Android Development] TJzuo:
I am running 5.3.1. And yes, I tried a clean install twice. Been using this for a day and haven't seen any other issues aside from minor lag. The battery drains super quickly in comparison to stock and lineage though.

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

Thanks, I'll give that a shot. Any other ideas?
[G4 Android Development] ThePiGuy:
Thinking about it now, [MENTION=8541360]Lurensu[/MENTION] is right - if you haven't disabled ambient play, you need to do it. It bugs out at he moment causing massive battery drain
[G4 Android Development] TJzuo:
Sweet! Been using it for a couple hours and it has already vastly improved battery life and charging speed. Thanks for the help!
[G4 Android Development] Minto107:
It must do so. Ambient play uses 100-150% CPU and it hangs all cores at max frequencies. I honestly don't know what they've screwed up as at the very beginning it worked fine and since 5.3.1(I believe) it drains battery like crazy
[G4 Android Development] king200:
I am using Nougat version. I cannot find setting for ambient display. For some reason, searching this thread for word, 'ambient' gives no results
[G4 Android Development] ThePiGuy:
It's ambient play, not ambient display. Not sure why searching for ambient doesn't come up with it though
[G4 Android Development] raptorddd:
Only on oreo
[G4 Android Development] kessaras:
AOSCP O.

Good news. I just thought of a way to restart rild automatically on boot if there is no sim detected.

getprop | grep sim should find a country code and a operator code. If that prop , the one I will choose, is null restart rild.

So simple. How didn't I thought of it sooner.....

I will add that this weekend and I will solve the sim not found issue on boot. No need of an app or root.

My idea is to eliminate the need of root.
[G4 Android Development] szafranski:
[MENTION=5461026]kessaras[/MENTION] do you still need logs due to bluetooth calls bug?

Btw thanks for solving other bugs :)
[G4 Android Development] raptorddd:
great..

what happened to the N build you were suppose to release???
[G4 Android Development] sdembiske:
Looks like it was primarily a kernel update: http://droid.binbash.it:8008/kernel/

latest is today, April 20.
[G4 Android Development] nhx10001:
Thank you for your awesone job man.

The G4 is still alive thanks to you :)
[G4 Android Development] steadfasterX:
My kernel builds are independent from the ROM ;)

Edit:

I'm experimenting with different ways to build in jenkins. I started right now a dirty build run (nougat) for all models. Hope that goes well:

https://lets.binbash.it:8800/blue/o...l/Build all LGE-G4 models - DIRTY/13/pipeline
[G4 Android Development] kallekula33:
Hey, perhaps a noob question (sorry for that) but can I jump directly from stock Android 6.0 (V20g-EUR-XX) to this ROM ? Needles to say that a clean flash will be done by wiping everything in TWRP before the ROm install. Good to know before I brick my sons phone and he will be upset with me :)
[G4 Android Development] ThePiGuy:
Officially, yes you need to update to v29a first. However, I have had no issues staying with v20g firmware
[G4 Android Development] kallekula33:
Ok, one thought though, how can I update to v29a ? is that stock ? I just wanna unlock the bootloader and install TWRP and clean flash this phone ;)
[G4 Android Development] ThePiGuy:
Are you on a h815? There are flashable zips on droid.binbash.it:8008/stock/LG/ just make sure you do not flash one that is for a different model of G4 than what you have - this will hard brick it.

Personally, I would just stick with v20g and flash the ROM as it is, and if you have any issues, that is the point at which I would upgrade the firmware
[G4 Android Development] kallekula33:
Yeah, I have the LG-H815 (European version). Yes, though about that to , to push a newer version of stock. I have problem with getting the ADB drivers to work, always same crap doing this maneuvers for different phones. I guess I need to install the windows drivers prior to doing anything with ADB ? Or can I skip this part?