[GCam] OnePlus 6 / 6T

Search This thread

cstark27

Senior Member
Jul 2, 2010
1,240
7,270
Introduction
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/hdr-low-light-and-high-dynamic-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/13315168/google-pixel-camera-software-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/portrait-mode-on-pixel-2-and-pixel-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/behind-motion-photos-technology-in.html

Pixel 3

Installation instructions
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
https://www.celsoazevedo.com/files/android/p/gcam-oneplus-6-6t/


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

Previous Versions:

Dec 20, 2018
MGC_6.1.021_BSG_Arnova_TlnNeun_1.2_Final

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
If you face tint or performance issues, Clear App Data and reboot.

Q: How to get Top Shot working?
A: https://xdaforums.com/showpost.php?p=78342714&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
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/0B5tsf-_V_ltYak9hNEM3NHp3UmVnWFJ5ZDhYdTgxS0xhZWNn/view?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 2019-12-15
 
Last edited:

CareDood

Senior Member
Mar 2, 2012
87
48
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!
 

cstark27

Senior Member
Jul 2, 2010
1,240
7,270
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. :good:

Another bug: successive captures can either freeze the app or process/capture very slowly.
 

Arnova8G2

Senior Member
Sep 22, 2012
1,879
17,840
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 [B]Rect(0, 0 - 2304, 1728)[/B]
- colorFilterArrangement = 0 
- exposureTimeRange = [13103, 49035740046] 
- lensShadingApplied = true 
- maxFrameDuration = 49035908400 
- physicalSize = 5.16096x3.87072 
- pixelArraySize = 4608x3456   <------- replace by [B]2304x1728[/B]
- 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.
 

dachao

Senior Member
Oct 28, 2010
575
73
Just tested the camera and no front HDR and no portrait mode on the front or the back camera.
Back camera will not take pictures with zoom.
 
Last edited:

velato2006

Member
Mar 10, 2012
38
13
Just tested the camera and no front HDR and no portrait mode on the front or the back camera.

He already mentioned in first post its alpha version and some features like front hdr is not available yet. Dont expect too much.

---------- Post added at 11:03 PM ---------- Previous post was at 11:00 PM ----------

Its enabled I think

I have Full level with camera2 probe app

Just checked, yea full level is enabled but level 3 and legacy mode level is disabled. Must we enabled those too or is full level enough?
 

cstark27

Senior Member
Jul 2, 2010
1,240
7,270
@cstark27 Here is your modified version with activeArraySize and pixelArraySize
Do the test
https://drive.google.com/open?id=13aOM-9SmM0usmfNkzgO5Cfv5yJ8OPwM6

Edit : Oneplus has to hide the resolutions use on InputsString this is used for portrait mode

Thanks I will check this out later tonight. I need to double check my FFC HDR+ config is right. I remembered with Nexus 6 HDR+ config, it would make FFC be yuvprocessing or whatever. So that may be part of the problem too ;)
 
  • Like
Reactions: kalpik

Top Liked Posts