FORUMS
Remove All Ads from XDA

[GCam] OnePlus 6 / 6T

1,006 posts
Thanks Meter: 4,873
 
By cstark27, XDA Ad-Free Senior Member on 30th May 2018, 05:33 PM
Post Reply Email Thread
Introduction
Quote:

Releases in this thread are mainly done by @Arnova8G2 as I have since sold my OnePlus 6 and moved on to other devices.

What is Google Camera (AKA GCam)?


Google Camera is the camera app for the Google Nexus and Google Pixel phones. It is not designed or intended to be run on other phones.

What is HDR+?

Basic: HDR+ is Google's proprietary image processing routine, and is more than just traditional "HDR' modes. HDR+ employs image stacking to control exposure, and also to preserve details, reduce noise, increase sharpness, etc. It is an all-in-one package.

Advanced: https://ai.googleblog.com/2014/10/hd...mic-range.html

Google Camera Features

Pixel 1
  • Zero Shutter Lag (ZSL) HDR+ - The Pixel 1 introduced ZSL HDR+ which means when you open the camera, the system utilizes the Hexagon DSP to constantly buffer frames and marks the time slot of when you pressed the shutter button.
    * -- Quote from Marc Levoy via The Verge:
    "The moment you press the shutter it's not actually taking a shot — it already took the shot," says Levoy. "It took lots of shots! What happens when you press the shutter button is it just marks the time when you pressed it, uses the images it's already captured, and combines them together."
    It's a major usability improvement on the HDR+ mode in last year's Nexus 6P and 5X. "What used to happen last year is you'd press the shutter button and you'd get this little circle going around while it captured the images you need for the burst; now it's already captured those," says Levoy. "And that's big, because that means that you can capture the moment you want."
    * -- https://www.theverge.com/2016/10/18/...are-marc-levoy

Pixel 2
  • Portrait Mode - Simulates bokeh for improved subject separation from the background. The front camera of the Pixel 2 only provides Portrait Mode when a human face is detected, and the rear camera can work on an object, an animal, a human, etc because it uses information from the Dual Pixel PDAF sensor to detect depth. Google Camera ports for non-Pixel phones can NOT do this so all ports for non-Pixel phones utilize the front camera technique for both front & rear (which means all ports for non-Pixel phones can only properly apply bokeh when a human face is detected).
    * -- Advanced read: https://ai.googleblog.com/2017/10/po...ixel-2-xl.html
  • Motion Photos - Provides short clips of moments before and after you take the photo.
    * -- Advanced read: https://ai.googleblog.com/2018/03/be...nology-in.html

Pixel 3
  • Top Shot - When Motion is set to Auto or On, Pixel will recommend a better photo to you if it detects one. Like if you captured a photo when someone blinked.
    * -- Demo: https://www.youtube.com/watch?v=BMa1H97zUQ8
  • Photobooth - Automatically capture a photo when Pixel detects a silly face or a smile.
  • Super Res Zoom - Enhances zoomed picture quality by purposely shifting the camera module using OIS (Pixel 3 only) to gather more data.
    * -- Advanced read: https://ai.googleblog.com/2018/10/se...super-res.html
  • Motion Metering - On the Pixel 3 Motion Metering is used in the "default photo mode" to detect subject motion and if it detects enough motion, Pixel will shoot with a faster shutter speed to reduce subject blur. The Pixel 1 and 2 get to use this in Night Sight only.
    * -- Further reading (about 1/3 down the article): https://ai.googleblog.com/2018/11/ni...-on-pixel.html
  • Synthetic Fill Flash - Pixel 3 will brighten faces in selfies.
  • Tracking Autofocus - Tap on a subject or area to keep focus when the subject or phone moves.
  • Learning Based White Balance - Google's attempt to fix white balance for low light photos. Used in Night Sight and HDR Enhanced on the Pixel 3.
    * -- Further read (about 1/2 down the article): https://ai.googleblog.com/2018/11/ni...-on-pixel.html
  • Portrait Mode Learned Depth - Pixel 3 improves the rear camera Portrait Mode depth detection for more consistent and more pleasing bokeh.
    * -- Advanced read: https://ai.googleblog.com/2018/11/le...n-pixel-3.html

Installation instructions
Quote:

Root is NOT needed.
* -- Download APK to your Phone (or PC then transfer to your phone)
* -- Locate APK with File Manager and Install
* -- You will be prompted to Allow Unknown Sources. This is normal for APK's not downloaded from the Play Store.

Download
Quote:

Dec 20, 2018
MGC_6.1.021_BSG_Arnova_TlnNeun_1.2_Final

Alternative download location (thanks to @s4turno):
https://www.celsoazevedo.com/files/a...google-camera/

Previous Versions:


Nov 27, 2018
GCam_Pixel3Mod_1.3_build.6.1.021.apk
- Fixed motion focus
- Fixed Motion photo
- Night Sight and Photobooth Works on Oreo
- Faster than previous versions

Nov 20, 2018
GCam_Pixel3Mod_1.3beta_build.6.1.0210.apk

GCam_Pixel3Mod_1.2beta_build.6.1.013.apk

Nov 7, 2018
GCam_Pixel3Mod_1.1_build.6.1.013.apk
- Fixed green tint on front camera for some device.
- Fixed crash instantly when open the app on some device.
- Fixed focus in Night
- Deleting the folder for portrait mode
- Fixed Touch focus on some device.
- Fixed black viewfinder in Night on android 8.1 works on some device ( by B-S-G )
- And some stability correction.

Nov 5, 2018
GCam_Pixel3Mod_1_build.6.1.013.apk
- Fixed Night Sight for OP6
- Fixed black spot in the middle of the photo for op5 / op5t
- Fixed the package installer bug on android 8.1
- Fixed the viewfinder lags on some device

Nov 2, 2018
GoogleCamera_6.1.013.216795316-debug2.apk
-- Fix of the processing circle is 2/3, but there is no image at the output.
-- Improved stability for OxygenOS 9.0.2
-- Fixed front camera for custom rom OP6
-- Fix the green tint on the front camera ( On some device )
-- Fix the pink tint on the front camera ( On some device )
-- Fix for Android 8.1 ( test Lineage OS 15.1 )
-- Improved processing ( test make 10 images in 8 seconds none of them blurry )

Oct 30, 2018
GCam_6.1.013_stable_OP6.apk
For people who have a problem with gcam versions. I installed Oxygen to fix the overheating bug and other bug reported.
I will post a stable version for OP6.
I deactivate what does not work Night Sight, Slow motion, Photobooth for Top Shot doesn't work anymore, I don't know how it happened.
Disable zoom in portrait mode, Resampling disabled (used 16.3MP).
This version is stable can be used at any time it will give me time to work properly on the mode that does not work.

Oct 26, 2018
GoogleCamera_6.1.013.216795316-debug.apk
A debug version

Oct 18, 2018
GoogleCamera_6.1.009.215420794-beta2.apk
Works on Android 8.1
- Add fix from B-S-G mod
- Fix all devices with a green hue on the front camera
- Fix pink tint for some device Samsung
- Some fix for OP5t

Oct 14, 2018
GoogleCamera_6.1.009.215420794-beta-1
-Based off Google Camera 6.1 from Pixel 3
-Beta version (not 100% stable)
"Version one can be more stable for OP6, Mi5, Mi5s on Pie.
All works except Slow motion, Photobooth and Zoom for OP6."

Oct 4, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-1.4.apk
-Fixed capture bug

Oct 3, 2018
BSGPortrait_GCam_5.3.015-Pixel3Mod-Arnova8G2-1.3.apk
-GCam v5.3
-Pixel ZSL working for Pie from Arnova8G2
-Portrait fix from BSG

Sep 30, 2018
GCam-5.1.018-Pixel2Mod-Arnova8G2-V8.3bfix.apk
-Pixel ZSL is fixed (Arnova8G2)
-Portrait mode is fixed (BSG)
-N6P Model is fixed (defcomg)
-Autofocus works fine (Arnova8G2)

Sep 27, 2018
N6PbsgfixPortrait-GoogleCamera-Pixel2Mod-Arnova8G2-V8.2.apk
-Pixel ZSL is fixed (thanks BSG)
-Portrait mode is fixed (BSG)
-N6P Model is fixed (defcomg)
-Autofocus works fine (BSG)

Oxygen OS Pie use this
bsgfix-GoogleCamera-Pixel2Mod-Arnova8G2-V8.2.apk
OP6_GoogleCamera_5.2.025-Final_fu24-15c.apk
OP6_N6_GoogleCamera-Pixel2Mod-Arnova8G2-V8.2.apk
-----OLD VERSIONS for Oreo-----
OP6_test_1.2.2_GCam_5.3.015-Pixel3Mod-Arnova8G2-Test-focus-2.apk
or
GoogleCamera-Pixel2Mod-Arnova8G2-V8.2.apk
----------------------------------------------------------------------------------
GoogleCamera-Pixel2Mod-Arnova8G2-V8.1.apk

July 24, 2018
OP6_test_1.2.2_GCam_5.3.015-Pixel3Mod-Arnova8G2.apk
fixed_purple_tint_GCam_5.3.015-Pixel3Mod-Arnova8G2.apk
GCam_5.3.015-Pixel3Mod-Arnova8G2-test-fix-defcomg.apk

July 22, 2018
defcomg-fix_GCam_5.3.015-Pixel3Mod-Arnova8G2.apk
defcomg-fix_OP6v0.7.1test_GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk

July 21, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-v4Beta4-op6-test-fix-hue.apk

June 29, 2018
OP6v0.7.1test_GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk

For other SD845 phones to try:
OP6v0.3_MGC_5.1.018_FINAL_3.4A

July 20, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-v4Beta4.apk

July 17, 2018
OP6_5.3.015-Pixel3Mod-Arnova8G2-v4Beta3-Fix.apk

July 12, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-v4Beta3.apk

July 11, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-v4Beta2.apk

July 9, 2018
GCam_5.3.015-Pixel3Mod-Arnova8G2-v4Beta1.apk

July 3, 2018
GoogleCamera_5.2.025-Minimal-Beta-Final.apk

June 28, 2018
OP6v0.6test_GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk

June 21, 2018
OP6v0.5_GoogleCamera-Pixel2Mod-Arnova8G2-V8
-Added Nexus 6 HDR+ Config toggle (this is the old config with better focus)
-Added Reduce SD845 Tint toggle (same effect as v0.2 MGC)
-Added Manual AWB Gains toggle and 4 color choices below it
--Enable Manual AWB Gains and adjust the numbers until you see a decent color image. See if your settings look good in most lighting conditions. Mine are currently at Red 1.5 / Green 1 1.0 / Green 2 1.0 / Blue 2.0 but it has to be changed to 2.0/1.0/1.0/1.5 in different lighting conditions but I don't have a lot of time to tinker with it.
OR
OP6v0.3_MGC_5.1.018_FINAL_3.4A
-Open settings after installation and go back to Camera or force close app
-Added Reduce SD845 Tint toggle (same effect as v0.2 MGC)
-Added Manual AWB Gains toggle and 4 color choices below it
-Added camera reset option of Namok/SerJo87
--Enable Manual AWB Gains and adjust the numbers until you see a decent color image. See if your settings look good in most lighting conditions. Mine are currently at Red 1.5 / Green 1 1.0 / Green 2 1.0 / Blue 2.0 but it has to be changed to 2.0/1.0/1.0/1.5 in different lighting conditions but I don't have a lot of time to tinker with it.

June 20, 2018
You must clear app data after install
OP6v0.4GoogleCamera-Pixel2Mod-Arnova8G2-V8
Changelog:
-ZSL HDR+ working
-HDR+ on Front camera
-Changed config to "test fix 2017 Pixel ZSL" that Arnova put in there
-Tint issue still present but I added a toggle to "reduce" it like in the previously posted MGC version

June 19, 2018
GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk (patched for OnePlus 6)
OR
OP6v0.2_MGC_5.1.018_FINAL_3.4A
Tint is removed in some scenarios, may be weird in other scenarios. Needs testing.
-Install OP6v0.2_MGC
-Clear Data
-Open app, accept permissions
-Open Camera settings>BSG Mod settings>enable Pixels auto-HDR+
-Force close

June 7, 2018
OP6v0.1_MGC_5.1.018_FINAL_3.4A Still has the color tint issue but the Pixel profile toggle works and ZSL HDR+ mode works, but is VERY LAGGY. If you click the photo thumbnail then go back to camera you can usually take a photo with ZSL HDR+ before it lags again.
-Install OP6v0.2_MGC
-Clear Data
-Open app, accept permissions
-Open Camera settings>BSG Mod settings>enable Pixels auto-HDR+
-Force close

June 6, 2018
OnePlus6v0.2_GoogleCamera-Pixel2Mod-Arnova8G2-V7.9.7 Changed default frame count to 3 and added a "fix" for the viewfinder changing colors, but this doesn't fix the captured picture colors.

June 5, 2018
OP6-GoogleCamera-Pixel2Mod-Arnova8G2-V7.9.9 No HDR+ but you can try to play with the override settings.
OR
OnePlus6v0.1.5_GoogleCamera-Pixel2Mod-Arnova8G2-V7.9.7. Updated so other SD845 devices could try the same fixes.

June 4, 2018
OnePlus6v0.1_GoogleCamera-Pixel2Mod-Arnova8G2-V7.9.7. Front cam captures but no HDR+. No crash in settings. All other issues listed below are present.

May 30, 2018
OnePlus6_cstark27_GCam_5.1.018_24_v3.7 - Front cam captures but no HDR+. No crash in settings. All other issues listed below are present. May work on some other SD845 devices.
OR
OnePlus6_GoogleCamera-Pixel2Mod-Arnova8G2-V7.9.5 - Settings crashes and no front capture. May work better in bright light and colors may not come out as wrong. All other issues listed below are present. May work on some other SD845 devices.

FAQ
Quote:

If you face tint or performance issues, Clear App Data and reboot.

Q: How to get Top Shot working?
A: https://forum.xda-developers.com/sho...postcount=5141

Q: Why does the resolution only show 4MP & 12MP?
A: This is a limitation from the API by OnePlus. If the GCam version you are using has a "Resampling" option, set it to None. This will NOT update the resolution list in the Settings, but the photos should come out at a higher resolution if you check the EXIF info.

Q: Can I use the second lens on the rear?
A: No, it is not made available through the API.

Thanks To/Credits
Quote:

If you want to show your appreciation to the devs, please consider donating to:
@Arnova8G2
BSG @ 4PDA (his donate info is in his profile page)
@defcomg
s4turno for his backup hosting

Camera2 Test Report
https://drive.google.com/file/d/0B5t...ew?usp=sharing

XDA:DevDB Information
[GCam] OnePlus 6 / 6T, App for the OnePlus 6

Contributors
cstark27, Arnova8G2, BSG, defcomg

Version Information
Status: Beta

Created 2018-10-15
Last Updated 2018-12-23
The Following 275 Users Say Thank You to cstark27 For This Useful Post: [ View ] Gift cstark27 Ad-Free
 
 
30th May 2018, 05:57 PM |#2  
Junior Member
Thanks Meter: 5
 
More
Thanks for this - it's really encouraging. I am seeing an odd colour cast, green or at least cooler colour hue after hitting the shutter.
The Following 3 Users Say Thank You to jdhewitt For This Useful Post: [ View ] Gift jdhewitt Ad-Free
30th May 2018, 06:02 PM |#3  
_MartyMan_'s Avatar
Senior Member
Flag Budapest
Thanks Meter: 388
 
More
Thank you very much!
The Following User Says Thank You to _MartyMan_ For This Useful Post: [ View ] Gift _MartyMan_ Ad-Free
30th May 2018, 06:05 PM |#4  
alxioa's Avatar
Senior Member
Flag salonika BY night
Thanks Meter: 9
 
More
Τhank you very very mutch
30th May 2018, 06:23 PM |#5  
=dave='s Avatar
Senior Member
Thanks Meter: 184
 
More
woah, looks promising! thank you very much
30th May 2018, 07:28 PM |#6  
Junior Member
Thanks Meter: 3
 
More
Great , will test it tomorrow after receiving my OP6
30th May 2018, 08:35 PM |#7  
cstark27's Avatar
OP Senior Member
Thanks Meter: 4,873
 
Donate to Me
More
Updated OP with a new build, based off my latest version I was building for the LG V30. Borrowed some code from @Arnova8G2 to fix the back camera. Settings should work now and front camera will capture, but no HDR+. Portrait Mode still broke. Need to test capture in sunlight.

Download OnePlus6_cstark27_GCam_5.1.018_24_v3.7
The Following 14 Users Say Thank You to cstark27 For This Useful Post: [ View ] Gift cstark27 Ad-Free
30th May 2018, 08:44 PM |#8  
Member
Thanks Meter: 49
 
More
Wink
Quote:
Originally Posted by cstark27

Updated OP with a new build, based off my latest version I was building for the LG V30. Borrowed some code from @Arnova8G2 to fix the back camera. Settings should work now and front camera will capture, but no HDR+. Portrait Mode still broke. Need to test capture in sunlight.

Download OnePlus6_cstark27_GCam_5.1.018_24_v3.7

Thanks a billion for getting this to run on OP6.

No dots on this device in processed images, which is awesome.

New release gives quite pinkish results, but hey I know its a work in progress, great progress!
30th May 2018, 08:50 PM |#9  
cstark27's Avatar
OP Senior Member
Thanks Meter: 4,873
 
Donate to Me
More
Quote:
Originally Posted by CareDood

Thanks a billion for getting this to run on OP6.

No dots on this device in processed images, which is awesome.

New release gives quite pinkish results, but hey I know its a work in progress, great progress!

Try to play around with Settings>Advanced>Model (force close after change) and let me know if there is a better result with a different model.

Another bug: successive captures can either freeze the app or process/capture very slowly.
The Following 5 Users Say Thank You to cstark27 For This Useful Post: [ View ] Gift cstark27 Ad-Free
30th May 2018, 09:48 PM |#10  
Senior Member
Thanks Meter: 17,266
 
Donate to Me
More
Quote:
Originally Posted by cstark27

Updated OP with a new build, based off my latest version I was building for the LG V30. Borrowed some code from @Arnova8G2 to fix the back camera. Settings should work now and front camera will capture, but no HDR+. Portrait Mode still broke. Need to test capture in sunlight.

Download OnePlus6_cstark27_GCam_5.1.018_24_v3.7

For the use of the frontal hdr + you have to modify the libs like Op3T / Op5 / Op5t
Code:
android.sensor.info: 
- activeArraySize = Rect(0, 0 - 4608, 3456)  <------- replace by Rect(0, 0 - 2304, 1728)
- colorFilterArrangement = 0 
- exposureTimeRange = [13103, 49035740046] 
- lensShadingApplied = true 
- maxFrameDuration = 49035908400 
- physicalSize = 5.16096x3.87072 
- pixelArraySize = 4608x3456   <------- replace by 2304x1728
- preCorrectionActiveArraySize = Rect(0, 0 - 2304, 1728) 
- sensitivityRange = [100, 1600] 
- timestampSource = SOURCE_REALTIME 
- whiteLevel = 1023
I will do a test with your version with these raw resolution.
The Following 20 Users Say Thank You to Arnova8G2 For This Useful Post: [ View ] Gift Arnova8G2 Ad-Free
30th May 2018, 10:21 PM |#11  
Member
Thanks Meter: 13
 
More
Thanks a lot for this. Will try it too. Do we have to.enable camera 2 api or is it enabled by default?
Post Reply Subscribe to Thread

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