Email Thread
OP Senior Member
Thanks Meter: 2,566
 
More
No longer working on this project. Thanks and I hope you had fun.

NOTE: I am not a developer but I have tried my best to create a port that has most of the basics working on my LG V30. I cannot promise I can fix any bugs for other devices but if I have time, I can try to look into some. This version is based off Scrubber's [4PDA] and uses information I've learned from using and looking at Arnova8G2's, BSG's and others versions. All their work is much appreciated and is the only thing that makes this possible.

NOTE: This is how the V30's Camera ID's are laid out. My normal lens app uses ID 0 and 1. My wide lens app uses ID 1 and 2.
  • Camera 0 "LENS_FACING_BACK"
  • Camera 1 "LENS_FACING_FRONT"
  • Camera 2 "LENS_FACING_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.

Xiaomi Mi A1: @sipollo made a Magisk mod for your phone's telephoto lens here: https://forum.xda-developers.com/mi-...-lens-t3767531

My normal version should work fine on devices that have a decent Camera2 API support. Snapdragon Galaxy S8, Note 8, Nokia 6, Nokia 8, Essential PH-1, HTC U11, etc.




**********
**********
If you upgrade to Oreo and experience reboots while using GCam, then follow the steps in this post https://forum.xda-developers.com/sho...postcount=1069
**********
**********



----------------------------------------------------------------------------------------------------
cstark27 v4.2
If you have issues, Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data

-If device has more than 3+ camera sensors, displays a new side menu "Wide Angle"
--Click this item and it opens Settings and displays a message "Switching rear Camera ID. Press back to complete." So just press the back button when you see the settings menu pop up. I can't figure out a way to do this programmatically.
--On first install you may have to click this twice for it to start working
--After this is toggled the side menu will say "Default Camera" to indicate you can switch back

-The Camera Switch icon is green now to try to indicate you can Long Press this to do the same function as above (alternate between rear camera ID's)

v4.2 fixes:
-Resolution for main and aux lens separated thanks @fu24

v4.1 adds:
-Add LG G6 Lineage Toggle

-Add Advanced>Default HDR+ Mode for Normal and Wide Lens options
--Switching rear cameras will change the HDR+ to the specified mode
--Usage: If you want the regular lens to usually be HDR+ ZSL, but the Wide Angle to always be HDR+ Enhanced. You can also select No Change (default) so HDR+ mode is not changed by the system and will keep what you choose when switching rear cameras

Credits Arnova8G2, arthur, namok, fu24, Tolyan009/TlnNeun

cstark27_GCam_5.1.018_24_v4.2t3.apk

Alternative download location: https://www.celsoazevedo.com/files/a.../dev-cstark27/ courtesy @S4turno

Alternate versions posted by @fu24 which has a toggle for standard/wide angle in the settings and much more customization options: https://forum.xda-developers.com/sho...&postcount=505
----------------------------------------------------------------------------------------------------

There is no model or config to set, you should be good to go after installing.





Previous Versions:

cstark27 v4.0
If you have issues, Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data

-If device has more than 3+ camera sensors, displays a new side menu "Wide Angle"
--Click this item and it opens Settings and displays a message "Switching rear Camera ID. Press back to complete." So just press the back button when you see the settings menu pop up. I can't figure out a way to do this programmatically.
--On first install you may have to click this twice for it to start working
--After this is toggled the side menu will say "Default Camera" to indicate you can switch back

-The Camera Switch icon is green now to try to indicate you can Long Press this to do the same function as above (alternate between rear camera ID's)

-Black Level calculation adjusted to see if purple tint in shadows is fixed

-Updated code of Settings Restart to newest version

-Adjusted detection code for Hexagon DSP so mainly just LG's don't use it automatically

Credits Arnova8G2, arthur, namok, fu24, Tolyan009/TlnNeun

cstark27 v3.8
If you have issues, Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data

LG G6 Lineage users can use the toggle in the wide angle APK to fix their camera ID issue. You must force close the app.

-Renamed standard lens package name to avoid interference with other versions (uninstall your current version)
-Set Use_Photos on by default
-Ported Camera relaunch after going into Settings from namok/SerJo87/Arnova8G2 (no longer have to force close when changing a setting)
-Changed Frame Count to have a faster setting (may be useful for photos of children)
-Added toggle to remove Portrait Mode default zoom level


cstark27 v3.7
-Added Advanced>Disable ZSL Toggle (this switches between Pixel 2 HDR toggle and Nexus 6 No ZSL HDR toggle)

-Added Advanced>Model so users can experiment with phone Models (only for the rear camera). You do not need to adjust this if you don't want to, the default setting is the same as before (AUTO).

-Added Experimental>Use Hexagon DSP and set it to No by default. This used to be "auto", effectively, and on most Snapdragon phones it would be using the Hexagon DSP in previous versions. In my testing I have found better performance when taking multiple photos quickly, by turning this to "no". Let me know your results...


cstark27 v3.6
If you have issues, Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data

LG G6 Lineage users can use the toggle in the wide angle APK to fix their camera ID issue. You must force close the app.

-Added 5 Exposure Time settings for Adaptive Shutter Speed. "Super Slow" is the same as V3.5. "Very Slow" is about 2x faster and so on and so forth. On my phone "Slow" is not actually Slow and matches normal HDR+ Enhanced speed. But it may change depending on device so I left it.

-Normal APK: Save HDR+ choice after going into Settings (credit Miniuser123)

-Organized Settings>Advanced by grouping all HDR+ Enhanced stuff into a section. Changed a couple strings so they'd be translated to other languages.

-Skip Color Fix if Adaptive Shutter is enabled

-Removed Slow Motion menu item unless you have a LG G5, G6, V20, or V30. BUT, you can enable it in Settings>Experimental.

-Wide APK: Change HDR+ Config to Taimen so ZSL (Zero Shutter Lag) is back, but I've defaulted HDR+ to Enhanced. This won't change until you clear app data or go into settings though.

-Wide APK: Remove Slow Motion menu item


cstark27 v3.5
-Clearing App Data is recommended. Open "Camera"> Settings>About>View App Settings Page>Storage>Clear Data
-Added Advanced>HDR+ Enhanced Portrait Mode : This forces Portrait Mode to use HDR+ Enhanced which will offer better dynamic range but you lose Zero Shutter Lag (Thanks Arnova8G2 for this cool trick)
-Added Advanced>HDR+ Enhanced Adaptive Shutter Speed : This is the Slow Shutter mod from miniuser123. I would say this is "beta" for LG devices. I know on my V30 some tuning is needed to the parameters but I want your guys feedback first. It only affects HDR+ Enhanced. The shutter speed will slow down the darker your scene is. You probably want a tripod or something to prop your phone against, for best sharpness. In normal lighting the shutter speed seems to be the same as before so I don't think it would be a negative to leave this on - but it's your choice and needs testing.
-Added LG G6 Lineage Camera ID Fix toggle to Wide Angle APK so there shouldn't need to be separate Lineage builds for G6 anymore
-Optimizations courtesy of Arnova8G2


cstark27 v3.4
-Added Lens Blur Mode on side menu
-Added Advanced>LG G6 Color Fix from cstark27 v3
-Removed Zero Shutter Lag option from Wide Angle due to issue with very over-exposed highlights. Will be brought back when this issue is fixed.
-Removed Disable ZSL toggle as it did not fix anything and caused more problems


Quote:

cstark27 v3.3
-IMPORTANT: CLEAR APP DATA after installing. This version changes the configs a little bit so more problems may happen if you do not erase app data.
-Fixed Wide Angle HDR+ Processing with Zero Shutter Lag (ZSL)
-Improved Re-focus after touch to focus
-Added JPEG Quality toggle
-Added Disable ZSL Config: switch between Pixel ZSL or Nexus 6 No ZSL configs
-Adjust look of settings and add About section from Arnova8G2

LG G6 owners: There may still be a purple tint in shadows in low light when using HDR+ Enhanced. I am still working on a solution but it is hard to find without having the device. There are apps that provide a black level offset to correct this but in tests we have seen that only the first HDR+ Enhanced photo is usually purple tinted but remaining photos are fine. Tapping to set focus and exposure also seems to help. I would also try the "Disable ZSL" setting and see if that helps. Huge shoutout at Mefiboshet for all of his testing and letting me pester him with test versions all the time.

2 Separate APK's (download both, they do not require each other though so you can use a different normal lens version if you want):
Download Standard Lens + Front Cam cstark27_GCam_5.1.018_24_v3.3
Download Wide Lens + Front Cam cstark27_GCam_5.1.018_24_wide_v3.3


There is no model or config to set, you should be good to go after installing. But here is the setup:

-Normal Lens APK Config:
--LG G6
---Rear Model: Nexus 6 (shamu), Front Model: Huawei Nexus 6P (angler)
--All other devices
---Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler)
-Wide Lens APK Config:
--LG G6
---Rear Model: Nexus 6P (angler), Front Model: Huawei Nexus 6P (angler)
--LG G5, V20, V30
---Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler)


cstark27 v3.1 standard and v3.2 wide
-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

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), Arnova8G2, BSG and all the other devs working on these projects.
Junior Member
Thanks Meter: 3
 
More
Oh nice! Already using one of your previous versions. They work very well. Will try the new ones out.
Senior Member
BIH
Thanks Meter: 349
 
More
Quote:
Originally Posted by cstark27

NOTE: I am not a developer but I have tried my best to create a port that has most of the basics working on my LG V30. I cannot promise I can fix any bugs for other devices but if I have time, I can try to look into some. This version is based off Scrubber's [4PDA] and uses information I've learned from using and looking at @Arnova8G2's, BSG's and others versions. All their work is much appreciated and is the only thing that makes this possible.

NOTE: This is how the V30's Camera ID's are laid out. My normal lens app uses ID 0 and 1. My wide lens app uses ID 1 and 2.

  • 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.


Working on my V30: Optical Image Stabilization; Front/Rear/Wide HDR+ ZSL & Enhanced; Front/Rear/Wide Portrait Mode; Front/Rear/Wide 1080p 30fps video; will test other functions later but the menus work


cstark27 v3.3
-IMPORTANT: CLEAR APP DATA after installing. This version changes the configs a little bit so more problems may happen if you do not erase app data.
-Fixed Wide Angle HDR+ Processing with Zero Shutter Lag (ZSL)
-Improved Re-focus after touch to focus
-Added JPEG Quality toggle
-Added Disable ZSL Config: switch between Pixel ZSL or Nexus 6 No ZSL configs
-Adjust look of settings and add About section from @Arnova8G2

LG G6 owners: There may still be a purple tint in shadows in low light when using HDR+ Enhanced. I am still working on a solution but it is hard to find without having the device. There are apps that provide a black level offset to correct this but in tests we have seen that only the first HDR+ Enhanced photo is usually purple tinted but remaining photos are fine. Tapping to set focus and exposure also seems to help. I would also try the "Disable ZSL" setting and see if that helps. Huge shoutout at @Mefiboshet for all of his testing and letting me pester him with test versions all the time.

2 Separate APK's (download both, they do not require each other though so you can use a different normal lens version if you want):
Download Standard Lens + Front Cam cstark27_GCam_5.1.018_24_v3.3
Download Wide Lens + Front Cam cstark27_GCam_5.1.018_24_wide_v3.3


There is no model or config to set, you should be good to go after installing. But here is the setup:

-Normal Lens APK Config:
--LG G6
---Rear Model: Nexus 6 (shamu), Front Model: Huawei Nexus 6P (angler)
--All other devices
---Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler)
-Wide Lens APK Config:
--LG G6
---Rear Model: Nexus 6P (angler), Front Model: Huawei Nexus 6P (angler)
--LG G5, V20, V30
---Rear Model: Pixel 2 XL (taimen), Front Model: Huawei Nexus 6P (angler)




Previous Versions:


cstark27 v3.1 standard and v3.2 wide
-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

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), @Arnova8G2, BSG.

Working great!
Senior Member
Thanks Meter: 176
 
More
Woo you da man

Subscribed 👍
Junior Member
Thanks Meter: 2
 
More
It's working great. May I ask if this version has some kind of implementation that reduce the blurriness?
Also I'm using it right now, and I do see that its less blurry? Maybe it's a placebo effect?
Anyway it works great on LG V30
Also thank you very much for your hard work!
OP Senior Member
Thanks Meter: 2,566
 
More
Quote:
Originally Posted by mxsoundtube

It's working great. May I ask if this version has some kind of implementation that reduce the blurriness?
Also I'm using it right now, and I do see that its less blurry? Maybe it's a placebo effect?
Anyway it works great on LG V30
Also thank you very much for your hard work!

I haven't put anything in yet, intentionally, to improve subject blur. But the normal lens is using a different HDR+ config this time which fixed a refocusing issue so it's possible it has other benefits as well I would guess - but I can't say for sure.
Senior Member
Jakarta
Thanks Meter: 97
 
More
Quote:
Originally Posted by cstark27

I haven't put anything in yet, intentionally, to improve subject blur. But the normal lens is using a different HDR+ config this time which fixed a refocusing issue so it's possible it has other benefits as well I would guess - but I can't say for sure.

Hi Sir, can you add manual/custom blacklevel for front camera?
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by cstark27

I haven't put anything in yet, intentionally, to improve subject blur. But the normal lens is using a different HDR+ config this time which fixed a refocusing issue so it's possible it has other benefits as well I would guess - but I can't say for sure.

I think that's it because before when I try to tap to focus I seem to get more blurry picture than if I don't tap to focus.
Does it make your pictures also less blurry as well?
Senior Member
Boston, Massachusetts
Thanks Meter: 136
 
More
Just a quick T H A N K Y O U !
Member
Thanks Meter: 15
 
More
Thanks very much for your time and effort. I am using both cameras and have had no problems on the V30.. 👍
Senior Member
Chennai
Thanks Meter: 49
 
More
After the latest update... I see this toast coming everytime I capture a pic.... Screenshot attached...
Attached Thumbnails
Click image for larger version

Name:	Capture+_2018-02-10-11-38-56.jpg
Views:	19748
Size:	277.3 KB
ID:	4414903  
Reply Subscribe

Tags
lg v20 v30 g5 g6 wide angle

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread