yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] kessaras:
[Camera Fix][Flash fix]

Temporary camera fix for g4 lineage/aosp based, until LG releases the android 7 drivers later this year.

Use one of those two camera apps.

https://xdaforums.com/showpost.php?p=71283114&postcount=3110

and

https://xdaforums.com/showpost.php?p=72066099&postcount=3396

If you choose snapdragon camera and you want to be able to save to external sd,

move the app from /data/app to /system/app , set the same permissions every app has in the /system/app and reboot.

*When i have time i will do this app flashable to system too.
[G4 Android Development] kessaras:
Here tan.

PMs in xda can't attach files.

Don't forget to set the right permissions.

Also next time it happens don't forget that you can use terminal to edit it on your own too.

EDIT:

terminal inside twrp or

terminal from pc using adb shell

and "echo [write what you want to write] > /path to the /file"

Wrong. I saw that this file is encrypted. Echo won't do anything here. You need to echo the password already encrypted to succeed.
[G4 Android Development] stoner007:
Known bugs / isssue on 14.1

Hello, I reposrt just my experiences with LOS 14.1

Do not work well:

- cast (miracast)

- wifi direct

- not actual informations about music files played via blootooth - my car show previously played song instead of actual played song / on phone display it is OK

- in Camera App I can see two buttons: Blue for Camera and Red for Record - Red button cause app crash, but when I swith to recording mode, then can see one button for recording and video recording is working

All these things are working well in LOS 13.

Maybe it is problem of Lineage 14+ sources.

I tested last lineage-14.1-20170425-nightly-h815-signed and nearly last ;) lineage-13.0-20170428-UNOFFICIAL-h815.zip
[G4 Android Development] magiQx:
Personally i haven't noticed a slowdown on LOS. Think i will try the same as you, stock/imperium.
[G4 Android Development] Flaquito69:
Add on this list:

- VoLTE not working
[G4 Android Development] SiSoyYoFacu:
Can anyone check the iso and the shutter speed range? I'm about to flash and I want to know if i'm losing speed or sensitivity
[G4 Android Development] brossovitch:
Always assume camera is worse and/or less reliable on custom ROMs. No matter what device.
[G4 Android Development] PinBot01:
Is there a way to disable the LED while charging and when fully charged?

Done, found settings!
[G4 Android Development] ToomyC:
Camera save to sd card , its possibble ?
[G4 Android Development] sejmand:
For me no problem. Red button works in actual build and the last build(s).
[G4 Android Development] ToomyC:
ToomyC

Please help me ! Work picture save to sd card ?
[G4 Android Development] pjotr2k:
Hi i still got issues with android tv remot, i collected a log with logcat if anyone can readout whats wrong.

Im no developer so reading out the log is a bit off a mess for me.

in the log i can find a discovery failur just failed to connect, but there is also a bit of bluetooth a2dp request tht seem to go wrong.

Its working correct with Lineage OS 13 and stock rom, my network hasent changed at all and connecting using said LINOS13 and stock is no problem so its not the app itself.

I have also been googling this issue and there is nothing to find about it at all.

I hope someone can look in to this :)

To get the logs i had to use magisk to root and used CatLog from the time i started the app to the time i closed it so there might be a lot off crap in the log to.
[G4 Android Development] sejmand:
Picture and video from lineageOS camera works for me.
[G4 Android Development] kessaras:
https://xdaforums.com/showpost.php?p=72111120&postcount=3412

install one of those two camera apps.

if you chose snapdragon, move the app from /data/app to /system/app/

set the same permissions like the other apps have in there

reboot.

in those two apps settings you can choose to save to external sd if you wish.
[G4 Android Development] belrik:
Anyone tried enabling the Daydream VR functions and know of a persistent way to keep that enabled after upgrading?
[G4 Android Development] Mass13:
Since v20170418 I have issues to wake up screen, double tap almost never works, power button, I have to press 5 times

Anybody experienced this?

Any solution?

Thanks!
[G4 Android Development] belrik:
Haven't rooted or grabbed a computer to logcat but seeing same symptoms despite LOS 14.1 official I9505 build working fine with Android TV remote app. WiFi and Bluetooth are used to connect but the H815 can't connect, instantly returns to the list of "available" devices but never starts a pairing process.

Running the 20170502 build and latest nano gapps.

<EDIT> working now after installing a queued update on the Android TV device, seems that the remote control service on the TV wasn't working until this update was installed. Try installing any queued updates you have on Android TV or restarting devices? Peculiar part is that I have a TV and a Nexus Player and neither was responding until the TV was updated, some service advertisement issue at play here.</EDIT>
[G4 Android Development] brossovitch:
Had this happening since CM. Solution for me is to ignore it.. DT2W works I just tap 3-4times.

It only happens​ for me once per power cycle anyway. I just try and remember after each reboot to allow it to sit and then fiddle with it the one time.
[G4 Android Development] Mass13:
yeah, had this issue too since CM, but now it's every wake up, not only after a power cycle; even power button needs to be pushed 5 times to wake up screen fully, sometimes after pushing 2 times, screen wakes up but brightness level is almost zero, so I have to push 2 other time on power button to have full brightness...
[G4 Android Development] brossovitch:
Yep i get the same thing. Except not as often.

Sorry.

It'll be black screen then I just slowly tap the power button a couple times. Off on off on. Seems to work..

I think somewhere in this thread someone said it was an overlay problem or something.. Dunno.

For me it's just another thing to deal with.
[G4 Android Development] lectricas:
Have the exact same issue here. In oder to turn the screen on I need to push power button for 3-5 times.

Also phone reboots when I make calls sometimes.

The third issue is a camera. It is slow as when I use flash it does not shoot in a moment of a flash, but after it. So I got only black screen.

Black screens everywhere.

Any way to improve the camera?
[G4 Android Development] PinBot01:
Footej Kamera or ported HTC - Kamera FROM kessaras

Gesendet von meinem LG-H815 mit Tapatalk
[G4 Android Development] pjotr2k:
No updates pending anywhere have been trying everything but for me its no go with the lg g4 and lineage 14 :(
[G4 Android Development] Flaquito69:
Hi [MENTION=5776465]genesixxbf3[/MENTION]

This ROM need a special setup for activate VoLTE?

I used the rom since build 2017-0418 and VoLTE never worked. I've read almost all the post and I did not see any comment about it.

ROM running really smooth. 3 hours SoT, no overheating. Just camera flash bug and this.

In PR, is practically necesary the VoLTE due to coverage. If you can assist me... ?
[G4 Android Development] SiSoyYoFacu:
Please help me

Is there any important performance difference between official LOS and the unofficial LOS?

Right now i'm getting like 2hs of SOT with the last official build and the last llama kernel.

Any suggestion? What should I do? Maybe i can try with Imperium, but I really like Android N.

btw the battery is only 3 months old, and i always take care of it.

Thanks

PS: I dont want to root, I want to keep it simple, I'm already a not so simple guy.
[G4 Android Development] Flaquito69:
I'm running the last build and I catch 3 hr SoT with a new battery and powersave mode (honestly, I noticed no performance changes running on this mode). The ROM runs really stable (is my daily drive) with some bugs, in my case, not really important (camera flash not working properly and no VoLTE at the moment).

Nougat is technically new. I noticed the version consume a lot of battery (my wife use a T-Mo s7 runnng 7.0 and she charged her phone twice a day, 2 hr SoT combined on both charges. Bloatware disable). And is not a surprise for me if LOS consume battery because of the version.

Probably we not have the proper setup for catch more battery life. Probably the ROM, I don't know.
[G4 Android Development] kessaras:
propably you. Not lowering the brightness at all. quantum screen is a battery killer. get used to it.
[G4 Android Development] SiSoyYoFacu:
Any way, another question. Which is the difference between the official and unofficial build? Aside of the release-key and the the test-key and etc. Thanks
[G4 Android Development] brossovitch:
This has been asked and answered several times in this thread.
[G4 Android Development] kessaras:
1. key

2. official has a whole community support / unofficial has the op support and if someone is cooperating,helping the op

3. update,maintainance,release date of the builds. Official will always have updates, even if the op will quit, another one will take care of it / Unofficial is dead when the op quit.

4. official: the op is also usually the maintainer and a developer with at least some knowledge on java , c++, html, sql, and more.

Unofficial: the op can be anyone. Even you. You can download the repos , merge them, build them. So the unofficial will be slow to fix a bug (if there is any and only from the toolchain, since all the rest are the same with the official)

5. Official kernel will always be lineage/aosp stock / Unofficial kernel can be anything the op decides to merge in.

Maybe there are more differences that my mind can't think of right now. If there is anything missing, please add.

~~~
[G4 Android Development] brossovitch:
Todays update of ROM & LlamaSweet combined is very kind on the battery and performance of this device. At least for me.

Very good today.

I've been using an older 2900mah battery from an LG Stylo (Stylo2 I believe).
[G4 Android Development] Allanitomwesh:
Hello,

I now have a LG G4 and i wanted to know if I flash Lineage OS which bugs other than the listed video recording are there?
[G4 Android Development] kessaras:
none
[G4 Android Development] sejmand:
Didn't tested Chromecast in the last day... Doesn't work here.

The rest is fine.

NO CAMERA PROBLEMS (for me)

UPDATE:

Stock camera flash doesn't work

Google camera (I use) works fine...
[G4 Android Development] Flaquito69:
- no VoLTE

- Use Google Camera instead of stock (some bugs with flash and recording)

- If you use SD Card, activate developer settings -> development tools -> media provider and tap scan sd. Do this every time that you turned on the device.
[G4 Android Development] brossovitch:
Casting (screen mirroring) has never worked on cm14 or LOS14.1

I use "Local Cast" from the Play Store​. Works wonderfully, still no screen mirroring. https://play.google.com/store/apps/details?id=de.stefanpledl.localcast

Roku also works if you have one. As well as many other apps.

Casting from apps directly works. For example Youtube, HBO Go, Crunchyroll, etc..

Why do you say this? Is there an issue with media from SD? Never had an issue.

Please explain, I'm curious.
[G4 Android Development] Flaquito69:
Since I installed the ROM, I can't see my media on the device. Exploring the developer options (I'm coming from stock MM) I see the options.

At least me, I have this issue. Today I will format the SD to discard any compability or any other issue that I not noticed.
[G4 Android Development] brossovitch:
I was having severe SD card problems myself. Thats why I ask.

I figured out that my issue was caused by my GApps package installing Google Storage Manager and removing the stock Storage Manager.

I couldn't see my SD contents using the stock Files app or it would take more than 1 minute to load contents. Also couldn't get permission to delete from SD. I wiped everything and reinstalled the ROM and GApps without Google Storage Manager and it's fine, for now.
[G4 Android Development] Flaquito69:
What Gapps you used? I used the Gapps mini
[G4 Android Development] brossovitch:
I always use Aroma.
[G4 Android Development] Flaquito69:
How can I removed it? Unzip and zip again?

Sorry for my dumb question. In this type of mods I'm not an expert :D
[G4 Android Development] brossovitch:
Basically don't select it while installing.

As I said, I use Aroma. Aroma lets you select what apps to install during the installation.

It's very easy.
[G4 Android Development] Flaquito69:
Got it. I will do it. Download Aroma Gapps and reinstall ROM with it. Also format the SD Card, just in case.

Thanks !
[G4 Android Development] brossovitch:
You shouldn't need to format the SD.

But definitely wipe cache & dalvik(art) cache.

I think most users use Nano GApps package. Aroma is quite large.
[G4 Android Development] Flaquito69:
Much better!
[G4 Android Development] brossovitch:
Wait. I forgot, of you ise a GApps package that removes stock apps and change your GApps package you do need to reflash ROM. Forgot.
[G4 Android Development] Flaquito69:
I used Mini. Replace some apps like clock, calendar, etc. System apps replace only Package Installer.

In this case, can I do a dirty flash?

Also, I noticed it not have the Google Storage Manager installed or replaced. Just Storage Manager (com.android.storagemanager) Its weird because in file managee I can see the SD content. In gallery (like photos, video) i can't if I not do the "scan sd card" in developer settings.

Attached the mini gapps content and the media provider visual.
[G4 Android Development] brossovitch:
That is weird. However I don't have the stock gallery, camera, or music apps. I use Aroma to replace them completely so I have never noticed this issue. Sorry. I use Google Photos, Camera, & Play Music and PowerAmp Music Player.

So, you can flash another GApps package but should dirty flash the ROM afterwards. But it takes no time to wipe system, dalvik, & cache and flash the ROM and GApps again.

I don't know what version of TWRP you use but I can say the beta version of 3.1.0-0 is reeeeeaaaly fast at flashing ROMs.

I have all that same stuff installed as mini plis a few more. And Pixel Launcher instead of now launcher.

---------- Post added at 11:26 PM ---------- Previous post was at 11:16 PM ----------

By the way, I cannot even find that option on my device. But I did actually just set storage permission to Storage Manager..
[G4 Android Development] Flaquito69:
Got it! Probably I will do it. :)

---------- Post added at 11:33 PM ---------- Previous post was at 11:32 PM ----------

How can I do this?
[G4 Android Development] brossovitch:
Settings > Apps > Storage Manager

I don't no why mine was unchecked to begin with.
[G4 Android Development] Flaquito69:
Probably I found the problem.

"No permisions requested".
[G4 Android Development] brossovitch:
Darn..

That stinks. Have you tried ejecting and re mounting your SD from Settings > Storage... ?
[G4 Android Development] Flaquito69:
Nop... But I disable it and now can see the media. I will check if not have side effects.
[G4 Android Development] brossovitch:
Oh I forgot. This is something I do every time I setup a device with Marshmallow or higher...

I go to Settings>Apps>Gear Icon>App Permissions>Storage

Then, ensure everything is checked. I only do this for storage to make sure I have no issues.

Here's some screenshots.
[G4 Android Development] Flaquito69:
Got it. Works perfectly.

I will PM you if I have doubts about Aroma Gapps.☺️
[G4 Android Development] Maputo2309:
Camera Bug solved. Thank you guys very much.
[G4 Android Development] kessaras:
Which camera bug solved ?!

You can record a video?
[G4 Android Development] codeworkx:
On Snap with two shutter buttons dont go above 1080p then recording should work.

Another way is to switch to video only mode (only one shutter button).
[G4 Android Development] belrik:
Enabled Daydream VR functions with the standard XML edit as described elsewhere and it works pretty well. Only sometimes it locks the screen when changing apps. Performance, sensors and image are solid tho.
[G4 Android Development] Maputo2309:
... I Thing it was only a bug by myself. I hat problems with the Standard Camera by talking normal photos.... I never read that anyone else got it...
[G4 Android Development] kessaras:
Indeed ! video works if we lower the quality.

I test many apps; perfect camera, footej camera,

my ported apps; htc camera , snapdragon camera.

All are working ! Nice ! Then the bug in only on HD 1080
[G4 Android Development] sascha224:
After solving the video bug, the only issue I have now with the Camera app is that GPS (for EXIF location tag) couldn't be enabled. Permission for location is set for the Camera app, and in all other camera apps GPS works as expected. Does anyone know a solution for that?
[G4 Android Development] wartomato:
What exactly do you mean:

1. GPS data is not processed

2. You cannot enable it in the app

?
[G4 Android Development] sascha224:
I cannot enable GPS in camera app. If I try to enable it, the settings flips back to "disabled".
[G4 Android Development] wartomato:
Yes, true...it is the same vice versa...
[G4 Android Development] sascha224:
What do you mean with vice versa? It's enabled for you and you can't disable it?
[G4 Android Development] wartomato:
Correct. I enabled it long ago and just tested as i read your post... And yes, funny fact is the it does not stick on "disabled" for me.

I could delete the Apps settings to check, but maybe I am not able to set it to "enabled" again...
[G4 Android Development] lectricas:
Guys. Has anyone fixed the power button issue? It's really irritating. I've flashed 13 lineage but the problem is still exists. Will the clean flash of stock rom solve this issue?
[G4 Android Development] kessaras:
lol , mine triggers fine o_O. If you were not the war tomato, but you are, i'd say to check the app permissions. But i guess you already did that.

And another way to trigger it in the app settings , is to use sqlite editor ;)

which power button issue ? :confused:
[G4 Android Development] lectricas:
this one
[G4 Android Development] kessaras:
ah, this is not power button issue.

this is screen on issue. the 1st time after a reboot we need to do a screen off/on and then it's fine.

its still here. it will always be here unless LG releases those dam drivers for android 7 (later this year we hope)

Then our lineage and aosp based roms will be perfect.

ofc there will be bugs and error at first but everything can be fixed.
[G4 Android Development] lectricas:
What do you mean? What sequeence should I do to make it work properly?
[G4 Android Development] kessaras:
Nothing. It's a bug.

Lineage in g4 has 3 major bugs which only can be fixed when LG gives us the android 7 drivers. LG until now has only released android 6 and since 2015 we had no update. Only some security patches. So later in 2017 LG promissed to give android 7 drivers. Then all those major bugs will be fixed.

1. camera bug. Video can't record on hd resolution. Only on sd.

2. lockscreen bug (buttons-overlay bug)

3. lockscreen bug (screen stays dark. The one we are talking about now)

You just need to turn screen on/off/on after a reboot. After you do that once, then the screen works fine.

Always after a reboot you need to do that once
[G4 Android Development] lectricas:
So, this will help to temproray fix the issue?

Thank you.

One more question.

Do you know how to improve the speed of the camera? It is very slow on shoots and initialization. I've tried different cameras with the same effect.
[G4 Android Development] kessaras:
hmmm, you mean the fps right ?

that also is something coming from the drivers.

we don't have hal3 on lg g4 so we can't. this is unknown to me either, it depends if the awaiting drivers will have that
[G4 Android Development] lectricas:
No, I mean the power-black-screen issue.

You've said

You just need to turn screen on/off/on after a reboot. After you do that once, then the screen works fine.

I did that after the reboot.

The sequence of actions I did.

1)Reboot the phone

2)Phone rebooted - screen is on

3)Switch screen off

4)Switch screen on

5)Unlock the screen with swipe.

6)Do some stuff with the phone, then turn screen of.(lock it)

7) gave the phone 20 minutes to turn into sleep then grab it and pushed the power button.

8)get a black screen again

I have no idea what this thing is.

My camera starts slow and take photos very slow. I do not use video.

I want to make it Samsung Galaxy\Iphone speed like. Is it possible?
[G4 Android Development] kessaras:
Well I don't get it why you get a black screen again. Mine really works fine....

No, it's not possible for the camera without hal3. Forget that.

Any other information on this black screen?

It's temporary or it's black like dead ?
[G4 Android Development] lectricas:
Sometimes it works just fine. Actually after this after-reboot-screen-on-off thing, it works kinda better.

Althoug sometimes I have to press 5-10 times to switch it on.

Sometimes it is completely black.

Sometimes it seems like backlight does not turn on, so I barely see my screen.

So not sure how to reproduce this issue.
[G4 Android Development] wartomato:
Haha, [MENTION=5461026]kessaras[/MENTION], I know too who replied... Actually, Of course i did and of course I can manage to change it. But not necessary for me, as I like it turned "on"...

But still annoying to the regular user.
[G4 Android Development] kessaras:
don't worry about it.

it can't be fixed :D

we just have to on/off/on after reboot.

Until we have the android 7 drivers
[G4 Android Development] lectricas:
It worked great before I flashed the update -> seems like Lineage Os caused the issue.

My question is - will flashing stock ROM fix this?
[G4 Android Development] kessaras:
yeah stock is android 6 (MM). we already have those drivers since 2015 and there are no such bugs.
[G4 Android Development] lectricas:
Will stock fix the issue? I've installed Lineaga 13 and still had the issue.

So I thought it is not rom related...
[G4 Android Development] kessaras:
Lineage 13 doesn't have that issue. Did you clean flash ?

Anyway cleaning flash a stock based will not have that issue.
[G4 Android Development] Manuelmartad:
I have exactly the same problem and it does have the issue it happens on any aosp or los based Rom it doesn't happen on stock Rom
[G4 Android Development] kessaras:
An update information for all lineage/aosp based builds.

Camera video recording is working. It just cannot record a video on high quality.

The app used for that test is footej camera which allowed me to change the quality only.

The ROM used for the test is RR, based on lineage.

To make it work you have to change to medium quality video.

The bug is not at the resolution. We can record 1080p but not on a high quality.

Take a look on my screenshots and sorry that one of them its in Greek , but footej camera is grabing the phone settings for the language.

1st screenshot: Video information (i cannot upload the whole video here but i can upload the video details)

As you can all see, we can record on 1080p. Video duration is more than 35seconds which is enough to show you that its working.

2nd screenshot: (its in Greek but you will understand what to do) These are my settings for the video.

3rd screenshot: Set video quality for the back camera to normal/medium, not high.

*So its obvious that we only lose a little bit of quality here.

4th screenshot: (out of subject) HDR is also working fine

Lastly a photo on HDR. Here its obvious that we lose some quality comparing to the stock based roms.

**Stock based roms on HDR shot a better picture.

That's all. This bug is gonna be fixed for sure when we will have the Android 7 drivers.
[G4 Android Development] kessaras:
i'm just announcing it now and i will make a temporary thread for that until we have the drivers from LG.

I have a workaround fix for the camera.

I will share tomorrow when i will have some time again, because today i already spent half my day with this crap :D

**EDIT:

here it is. This is the temporary camera fix for all lineage 14.1 based roms.

https://xdaforums.com/g4/general/camera-fix-lineage-14-1-based-roms-t3607574

Enjoy