yashsingh1/xdaforums huggingface dataset:
[LG G6 Guides, News, & Discussion] cstark27:
cstark27 v3.1

cstark27 v3.1

-JPEG quality increased to 98% by default

-Removed LG G6 Color Fix option hoping the model change fixes their color issues (you may Delete Data of the app)

-HDR+ Parameters moved to Advanced menu

-Normal Lens APK Config:

-LG G5, G6, V20​

-Rear Model: Nexus 6 (shamu), Front Model: Huawei Nexus 6P (angler), Config: Pixel 2 XL (taimen)​

-LG V30 and any other device​

-Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler), Config: Pixel 2 XL (taimen)​

-Wide Lens APK Config (I recommend setting HDR+ to On since Auto will not always trigger HDR+):

-LG G5, G6​

-Rear Model: Nexus 6P (angler), Front Model: Huawei Nexus 6P (angler), Config: Huawei Nexus 6P (angler)​

-LG V30, V20 and any other device​

-Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler), Config: Huawei Nexus 6P (angler)​

Download (normal lens): cstark27_GCam_5.1.018_24_v3.1.apk

Download (wide angle v3.2):

cstark27_GCam_5.1.018_24_v3.2_wide.apk

-v3.2 changes the model for G5 and G6 to Nexus 6P to fix color dots in low light, and changes V20 to Taimen model

LG G6 Lineage version:

cstark27_GCam_5.1.018_24_v3.2_wide_G6Lineage.apk

Outdated:

Download (wide angle v3.1, separate APK): cstark27_GCam_5.1.018_24_v3.1_wide.apk

Download (wide angle v3.1 with Nexus 6P model, if you have weird dot issues with the above):

cstark27_GCam_5.1.018_24_v3.1_wide_n6p.apk

NOTE: This is built using info from the LG V30 which has 3 camera ID's:

Camera 0 (back)

Camera 1 (front)

Camera 2 (back (wide angle))

I cannot guarantee success on other devices, especially if the phone does not even report all cameras through the Camera2 API (use Camera2Test app to verify your device info). If you are on LineageOS, please consult your dev to see if they can alter the camera ID's to properly match LG stock roms, if my version does not work.

Previous Versions:

cstark27 v3 wide angle beta 1 (with LG G6 LineageOS patch)

-Separate APK based off cstark27 v3

-Fix front camera crash

-Change "config" to Nexus 6P (ZSL on the wide angle does not process HDR+ currently, so this ensures the user always gets HDR+ processing)

cstark27 v3 wide angle alpha

-Separate APK based off cstark27 v3

-ALPHA version of wide angle support

cstark27 v3

-fix G6 video (and probably other Android 7.0 devices) thanks to Arnova8G2

-add LG G6 Color Fix option under advanced thanks to Arnova8G2

cstark27 v2.1

-EXIF fix, thanks Arnova8G2

-Enable HDR+ toggle by default

-Uncheck camera:use_photos by default to increase stability (turn back on and test if you want. Enabling this makes it use Google Photos.)

-Uncheck camera:enable_micro by default to increase stability (turn back on and test if you want. Enabling this enables Motion Photos for Oreo only(?)

cstark27 v2

-fixed video on Pixel configs for LG V30

cstark27 v1

-based off Scrubber's APK

-forced model of front camera to Nexus 6P for proper HDR+ Processing and color (thanks BSG)

-rear model is set to Taimen

As always, thanks to Scrubber (whose APK I started with), [MENTION=4860033]Arnova8G2[/MENTION], BSG.
[LG G6 Guides, News, & Discussion] logixdev:
Well, guys... Which version is better for LG G6? Google Camera by [MENTION=235507]ArtZ[/MENTION] or [MENTION=2712580]cstark27[/MENTION]?

Do they have different configurations?

BTW, Lens Blur is working on my G6 pretty good on your version [MENTION=235507]ArtZ[/MENTION] (:
[LG G6 Guides, News, & Discussion] fahmi182:
Thanks for you awesome works, can you create new version with:

- camera 0 (rear)

- camera 1 (rear/wide/tele)

- camera 2 ( front)

I'm curious.. i have so many dual-lens phone, tele and wide :)
[LG G6 Guides, News, & Discussion] vitoski:
[MENTION=2712580]cstark27[/MENTION] this is the confirmation that Nexus6 / Nexus6P model works great with LG G6 - see picture.

I took it with HDR+ Enhanced - as you see there is no purple tint and the colors are exactly as they are in life.

Thank you!
[LG G6 Guides, News, & Discussion] fahmi182:
There are random dots blue and red, wide lens version, tested with LG G6 H870DS, photo medium light on night..
[LG G6 Guides, News, & Discussion] Mefiboshet:
This is absolutely brilliant!!

Certainly the best GCam for the G6 by far.

Any chance of having user controllable JPEG quality?

Regarding the wide-angle, I'm getting a lot of hot pixels appearing in the image (zoom in on speaker in attached image - lots of red and blue dots).

Any idea why that is?

Thanks!
[LG G6 Guides, News, & Discussion] ArtZ:
Hello!

Tons of magenta with artificial low-light here with both cameras, even in HDR+ Auto. I get much better results with mine in HDR+ auto (no magenta cast whatsoever)

First two pictures are taken with your camera ('HDR+ auto') and last one with mine (same settings for a fair comparison). Results are consistent in a test of 13 pictures taken with each camera (39 pictures in total) and different views.

Regards
[LG G6 Guides, News, & Discussion] baironx:
In my test the normal camera was perfect no magenta cast, the wide camera generates a lot of Pixels burned in photos on the outside with low lights, many red and blue dots
[LG G6 Guides, News, & Discussion] cstark27:
You can try this version, with Nexus 6P model instead: cstark27_GCam_5.1.018_24_TAT_v3.1_wide_n6p.apk. Not sure if it will completely help but let me know. Outside of that my options at the moment are limited.
[LG G6 Guides, News, & Discussion] igoork:
So far so good! (Normal lens)
[LG G6 Guides, News, & Discussion] vitoski:
Here are two photos taken with HDR+ Auto.

One is with your latest version and the second with cstark27's.

No purple/pink tint on any of those.
[LG G6 Guides, News, & Discussion] ArtZ:
Repeat the test in a place where there're shadows. My dining room get the light from the living room. It's not really dark but the closest point of light is at 5 meters. All shadows have magenta cast. Even in the picture posted in post #1365 https://xdaforums.com/showpost.php?p=75364560&postcount=1365 sky is magenta.

Greys (shadows) have magenta cast.
[LG G6 Guides, News, & Discussion] cstark27:
[MENTION=235507]ArtZ[/MENTION] can you tell me what your device code name is? Please send a screenshot of Aida64 (https://play.google.com/store/apps/details?id=com.finalwire.aida64) System page.
[LG G6 Guides, News, & Discussion] ArtZ:
Go a bit darker, with shadows. You'll see magenta cast.

---------- Post added at 10:00 PM ---------- Previous post was at 09:58 PM ----------

I'll do it later. Diner time here.
[LG G6 Guides, News, & Discussion] MikeG6:
On Wide App after taking photo i see many blue/red dots. Beta version don't have this problem.
[LG G6 Guides, News, & Discussion] baironx:
First photo was shot with 3.1 wide, second photo was shot with 3.1 wide n6p! The difference is clear the burned Pixels are almost gone! Great job, my lens is 2,09 mm and Thanks to your work is reborn, in the far parts of the photos can distinguish written and objects, especially in bright light, before unthinkable
[LG G6 Guides, News, & Discussion] cstark27:
[MENTION=8202836]MikeG6[/MENTION]
[LG G6 Guides, News, & Discussion] vitoski:
I did and here are the samples. Again one taken with your version and the second one with cstark's.

Please not that the wall color on the right is red hence it gives already this odd light.

However I do not see purple/pink tint in shadows (look at the shadow from a shoe).
[LG G6 Guides, News, & Discussion] ArtZ:
Here it is
[LG G6 Guides, News, & Discussion] fahmi182:
Its better now, now put them together into one app :) toogle switch between lens.. will awesome..
[LG G6 Guides, News, & Discussion] Simon6513:
Yeah yeah, did all of that... :( That's getting really weird lol
[LG G6 Guides, News, & Discussion] jamorimpt:
Well when there's no hope you still have factory reset eheheh
[LG G6 Guides, News, & Discussion] Simon6513:
Haha yes, sometimes this is the only way unfortunately !
[LG G6 Guides, News, & Discussion] jamorimpt:
First post updated with version 1.4

V 1.4: https://www.androidfilehost.com/?fid=889764386195925141
[LG G6 Guides, News, & Discussion] NOTilyass:
whats new??
[LG G6 Guides, News, & Discussion] jamorimpt:
Dont have that info. Reread original post :)
[LG G6 Guides, News, & Discussion] dkimmortal:
COPy paste from original post of update
[LG G6 Guides, News, & Discussion] ichanitogwapito:
Wow it does actually gets the job done.. Wow wish i can use the wide angle tho
[LG G6 Guides, News, & Discussion] ASW1:
Not me. How?
[LG G6 Guides, News, & Discussion] sum1xda:
v1.4 seems to fix or at least greatly reduce the purple tint on low light shots using HDR+ Auto.

Using hdr+ ON setting will still produce the purple tint on low light shots.

Just wondering if this purple tint on low light issue is specific only with the H870DS, did anyone else see the issue with the normal H870 and hdr+ ?
[LG G6 Guides, News, & Discussion] Kaleidosc0pe:
Yes, same on my EU Variant.
[LG G6 Guides, News, & Discussion] sum1xda:
Thanks for the info.

Hmmm i guess all we can do is just wait and hope its going to get fixed in future releases although i am a bit skeptical this will get fixed completely unless the Author of the app actually have a LG G6
[LG G6 Guides, News, & Discussion] LeoRex:
The tint seems to be more apparent when HDR+ is put into 'On' rather than 'Auto'. Color is much better with the auto mode's programming. 'On' adds some exposure compensation to the shot. This requires the data stream to be reset... and why you get that delay with the circle animation. 'Auto' is constantly streaming data without any fussing.

If this can be tweaked in some resource file in the apk, the dev might be able to reduce or eliminate it, if he gets a G6 available to test with. Otherwise it could very well be due to the fact that the sensor it's designed for (the IMX378) is substantially better at dealing with diminished light .. that can't be fixed.

Still, I take few pictures at a level where that tint becomes an issue, especially since I prefer using the zero shutter lag of the auto mode. So I'm paying closer attention to it's stability and if they can get all the features working. Do that and I'll use this as my main app for pics... I'll drop to stock to take video or an occasional wide angle (which this app will never be able to use).
[LG G6 Guides, News, & Discussion] jamorimpt:
Google Cam (V1.4) vs LgCam (V10T-EUR)
[LG G6 Guides, News, & Discussion] Jostian:
There is a 'new' version of 1.3 out but not sure if its better or not than v1.4??
[LG G6 Guides, News, & Discussion] vitoski:
Anyone knows why version numbering is so confusing?

Moreover why there are two versions with almost 20 MB difference?
[LG G6 Guides, News, & Discussion] LeoRex:
sucker is tricky to evaluate... the focus point on the two are different (GCam looks to have caught the back rim of the mug and LG ... maybe the front??)

Ok, I guess it's telling that I can't really tell what the LG camera focused on.
[LG G6 Guides, News, & Discussion] jamorimpt:
Shot was done by pointing and shooting without choosing any focus point :) just tried to hold the phone at the same position eheheh
[LG G6 Guides, News, & Discussion] Sergykm:
Ok, guys.

Just for you new version 1.5. with raw support.

Link 1 (GDrive)

Link 2 (Mega)

Changelog:

1. Raw support. Now you can save jpg +raw with hdr+ (dng).

2. Developer options

3. Dirty Lens Warning
[LG G6 Guides, News, & Discussion] jamorimpt:
OP Updated with developer's v1.5 link.

Note: This version has no ZSL (Zero Shutter Lag) so it can take longer to take a shot, but I really don't see any difference with the LG G6.
[LG G6 Guides, News, & Discussion] ArtZ:
Well, just another example (pictures taken right now) 'HDR+ auto' and HDR+ set to 'High'

First [MENTION=1921483]Cstark[/MENTION]

Second [MENTION=235507]ArtZ[/MENTION]

ADDED: The corridor is in darkness and magenta is less visible but you can see that even the the red cloth has a magenta tint. The magenta cast becomes more visible when there's some light outside coming from the glass bricks. Whites become magenta as in the other pictures.
[LG G6 Guides, News, & Discussion] vitoski:
And here are my examples:)

Both taken with HDR+ Auto, level High.

Again I don't see any magenta cast in the shadows.
[LG G6 Guides, News, & Discussion] Gagi77:
At wide angle "... n6p.apk" is better (red-blue dots are much less) I tested at very low light.

---------- Post added at 09:55 PM ---------- Previous post was at 09:47 PM ----------

@ArtZ I agree, the purple lights on the upper left side of the leftmost flower are more pronounced.
[LG G6 Guides, News, & Discussion] ArtZ:
Obviously we don't get the same results
[LG G6 Guides, News, & Discussion] vitoski:
Yes indeed and I'm kind of wondering where does it come from. I used AIDA64 to compare my device with yours and they are exactly the same.

Two questions:

1. Did you side load cstark's version or you toggle between both versions (install/uninstall)?

2. Do you clean app data?

I was installing/uninstalling versions when switching between yours and cstark's. Then I set up parameters in GCam, quit app, killed it, started again and then took a picture.

The same procedure was used with both versions.
[LG G6 Guides, News, & Discussion] ArtZ:
Sağol! I though I was dreaming.

---------- Post added at 11:12 PM ---------- Previous post was at 11:04 PM ----------

Install and uninstall and after installing I clean cache every time to reset the application. I have to give permissions every time. The problem doesn't come from there.
[LG G6 Guides, News, & Discussion] directx1971:
[MENTION=2712580]cstark27[/MENTION] , i have tried your version , all i can say is "Perfection at its best" , really no magenta tint at all

The attached sample produces a magenta tint in all pixel configs but here you can see no tint at all in wide and normal:

They are HDR+ enhanced normal camera , HDR ZSL normal camera , and wide angle HDR+ enhanced:

Your version has everything inside; Portrait mode for front and back

And wide angle with a working portrait mode front and back , and WITH a working ZSL as well , it has been a while since We had a working ZSL with N6 config the last one was "MGC_5.1.018_7.0+C2API_min_3a_AllinOne", all that based on N6 config so no color cast at all , this is basically the perfect version i had in mind when i started development

Now you left me in the cold with nothing left to do (there is still the manual focus and the ZSL over exposure) but these are minor issues , Seriesly perfect work man.
[LG G6 Guides, News, & Discussion] cstark27:
Thanks for sharing your photos and experience! XDA won't let me thumbs up any more posts today lol....

We still need to figure out if all 3 cameras can coexist. I feel like the main calls just use LENS_FACING_BACK or _FRONT so it may require a bit of recoding. I'll be looking into ZSL wide angle first but maybe not right away. :good:
[LG G6 Guides, News, & Discussion] mingo_mgx:
Can you please make a lineageos version for cstark27_GCam_5.1.018_24_v3.2_wide?
[LG G6 Guides, News, & Discussion] cstark27:
If you promise to ask the Lineage Dev if he can adjust the G6's camera ID's :)

I guess the V20's is right.

Same ID config as the beta1_lineage build?
[LG G6 Guides, News, & Discussion] mikolaj19_96:
Probably

Wysłane z mojego LG-h870 przy użyciu Tapatalka
[LG G6 Guides, News, & Discussion] cstark27:
LG G6 Lineage version:

cstark27_GCam_5.1.018_24_v3.2_wide_G6Lineage.apk
[LG G6 Guides, News, & Discussion] fahmi182:
Hi Sir, can you created version for phones with tele lens:

- camera 0 (rear)

- camera 1 (rear (tele))

- camera 2 (front)
[LG G6 Guides, News, & Discussion] cstark27:
Your phone would need to report all sensors through the Camera2 API.
[LG G6 Guides, News, & Discussion] fahmi182:
Okay, im testing with Xiaomi Mi A1, can you guide me how to capture result camera2 api, im root this phone..
[LG G6 Guides, News, & Discussion] Vkboy:
Sir first this is not relevant thread to discuss it is for g6, qnd second sir i think it can not be done your rom need to support All camera through camera 2api. Thank you☺
[LG G6 Guides, News, & Discussion] fahmi182:
Yeah i know, i have LG G6 an V30 too, im curious to try with Tele Lens, so still relevan, im talkin about modify camera ID, my A1 have Oreo Rom with camera2 Api enabled.. so maybe we can try it..
[LG G6 Guides, News, & Discussion] waseembinahmed:
Thanks cstark....
[LG G6 Guides, News, & Discussion] vitoski:
[MENTION=2712580]cstark27[/MENTION], [MENTION=8590673]directx1971[/MENTION] any chance you could add lens blur mode switch, exactly like it is in the BSG's version?

Our phones are not capable of blurring background if there is no face in the picture (Portrait mode). Having possibility to switch between modes (Portrait mode, Lens blur) will make this GCam mod for G6 perfect - working HDR+ Enhanced, ZSL, Portrait mode for capturing people's faces and lens blur for other situations.

I've tried BSG version and switching between modes works fine, so maybe it's just a matter of meeting the code?

Thanks!
[LG G6 Guides, News, & Discussion] Mohsen_alinezhad:
Thanks Cstark

I enabled camera.op.nes in both normal and wide lens mods as it's said that it will help focusing if I am right.

But in normal lens the gcam crashes when I touch the screen.
[LG G6 Guides, News, & Discussion] jurastefo:
Perfect job big respect, Only question is has video camera set 60fps?
[LG G6 Guides, News, & Discussion] Mefiboshet:
Just a thought/suggestion to [MENTION=8590673]directx1971[/MENTION] and [MENTION=1921483]Cstark[/MENTION]:

I'm sure you've figured this out yourselves by now, but just in case..

I believe that the overexposure in ZSL mode can be alleviated (at least to an extent) by changing the exposure metering mode that GCam uses.

It seems that GCam is using a form of ETTR to determine the exposure, this inevitably results in brightened shadows at the expense of blown highlights.

Changing this would likely involve digging quite deep into the original GCam code, so I'm hesitant to even suggest such a modification, but if either of you have the (presumably) considerable time required to test this theory, that will be very much appreciated.

I've noticed that in certain situations, up to -2EV is required to achieve correct exposures.

On the other hand, scenes with a smaller dynamic range look fine with no EV compensation.

This unfortunately means that simply enforcing a constant negative EV bias is not a viable option.
[LG G6 Guides, News, & Discussion] :
Brother you can make GCam wide angle lense camera compatible with Moto X4. Moto x4 also has dual rear camera in which one has 8mp wide angle shooter and also supports camera 2.0 api.
[LG G6 Guides, News, & Discussion] Vkboy:
It will be great but can you increase lens blur lighting as it tends to super darken image and make it useless in almost all lighting except superbright conditions.

One more thing, i saw in some versions of gcam in moto g5 plus thread it got a slow shutter speed. I tested it and it gives a noticable difference in low - light condition. You can look at it may be it can help. [MENTION=1921483]Cstark[/MENTION] [MENTION=4860033]Arnova8G2[/MENTION]

---------- Post added at 08:53 AM ---------- Previous post was at 08:37 AM ----------

You can try pixel2mod v2 by Arnova8G2. It can be found on https://www.celsoazevedo.com/files/android/google-camera/. I hope it helps [MENTION=1606575]vitoski[/MENTION]
[LG G6 Guides, News, & Discussion] sandulea:
[MENTION=2712580]cstark27[/MENTION] I saw that there are 2 types of wide angle sensors used in G6 manufacturing. Is it possible that there are also 2 types of normal angle rear sensors, and that they are all used in different combinations on our phones? Some people reported no purple tint with the TAT versions, while others (me included) still had it. With your latest (N6P on wide, N6 on regular) some have purple tint on the normal angle, some on the wide, some on both, some on none. With 3.1 I have no purple tint on the regular rear camera, but still have it on the wide, while others have posted a night-time wide angle photo with no tint whatsoever. I find it strange that there are these differences. If relevant, I'm running completely stock V11G on the european H870.
[LG G6 Guides, News, & Discussion] vitoski:
It can be easily checked if we have two different sensors for normal angle camera, but it requires multiple users to check EXIF data of their photos. This is probably the only way of getting the confirmation.

The purple/pink tint was/is present in G6 on each and every version that uses any Pixel model and the photo is taken with HDR+ set to Enhanced in low light. It doesn't matter if this is the regular or wide angle lens, as long as the picture is taken in low light with HDR+Enhanced. On the other hand that purple tint doesn't appear with HDR+ set to Auto and probably this is the situation that you talk about ("Some people reported no purple tint with that TAT versions...").

The latest cstark's version which uses Nexus6 (regular lens) and Nexus6P (wide lens - second version released yesterday) do not produce purple/tint in low light. So far the only user who reported it and provided photos confirming the tint is ArtZ. We both were comparing our results yesterday in low lights and for now it is unknown why he's getting purple tint and other (including myself) do not.

The purple tint is present on our G6 phones from basically the very beginning when BSG ported Google Camera and gave us a choice of choosing the model. A couple of users on this forum have already confirmed that selecting any Pixel version as entry model for G6 produces purple/pink tint in low light when using HDR+ Enhanced regardless of other settings (Config, JPEG quality, HDR parameters).

In the last couple of pages back devs were trying to fix the purple tint by adjusting the color values for given light conditions. However while the tint level was significantly lowered you could easily say that it's still there, especially when comparing the same photo (scene + light) taken by GCam mod with Pixel 2XL model (Tiamen) and Nexus 6 / 6P (Shamu / Angler).
[LG G6 Guides, News, & Discussion] Mefiboshet:
ZSL (HDR+ on) vs no ZSL (HDR+ enhanced).

Safe to say that ZSL is not working as it should on the G6, as a Pixel in 'HDR+ on' mode would likely look closer to the G6 enhanced shot.

I'd avoid ZSL on the G6 unless shooting time critical or fast moving subjects.

Thanks again to [MENTION=2712580]cstark27[/MENTION] for his awesome GCam version.
[LG G6 Guides, News, & Discussion] sandulea:
I am familiar with the whole situation, having followed the thread from the beginning and doing my own tests. As I said, my G6 produces purple tint photos with the wide angle camera set to Angler on the latest Cstark version 3.1, HDR+ Enhanced, in low light. The previous cstark27 wide version, with the rear camera set to Taimen, also produced purple tint photos on the wide angle camera. That's why I'm raising the point.

Here are photo samples of a dark corner. They are uploaded to Google Drive so that they can be downloaded and the EXIF data pulled, if required. The first one is the stock LG cam showing correct colours and the second one is cstark27_GCam_5.1.018_24_v3.1_wide_n6p.apk because of the coloured dots issue. cstark27_GCam_5.1.018_24_v3.2_wide.apk shows the same purple tint as 3.1_wide_n6p for me.

Stock cam:

https://drive.google.com/open?id=1BklJBwcJAjGwenYkMlWbETHT0DLAmCP5

cstark27_GCam_5.1.018_24_v3.1_wide_n6p.apk:

https://drive.google.com/open?id=1DexoHWrNJe6C5J0gz-d3YtohVgqNoGFX
[LG G6 Guides, News, & Discussion] vitoski:
[MENTION=3505109]sandulea[/MENTION], yes but you are comparing wide angle. Have you compared regular lens? Do you also get the purple tint with the latest version from cstark27?
[LG G6 Guides, News, & Discussion] Juice3250:
The first picture is one taken with the Wide Angle camera here that I installed. The second is the stock LG camera on auto.

The LG is blown out but if you zoom in, it captured more detail. But overall I much prefer the camera here that I downloaded. It's hdr+.
[LG G6 Guides, News, & Discussion] sandulea:
No, i said above that i get no purple tint on the regular angle camera with the latest cstark mod.