FORUMS
Remove All Ads from XDA

 View Poll Results: Which custom lib do you like better?

Savitar
 
22 Vote(s)
30.14%
Xlib2
 
51 Vote(s)
69.86%

[GCam] Google Pixel 1 / 2 / 3

1,006 posts
Thanks Meter: 4,873
 
By cstark27, XDA Ad-Free Senior Member on 5th December 2018, 07:19 AM
Post Reply Email Thread
Disclaimer
Quote:

I am not a developer per se but have been looking at the decompiled code for GCam for about a year now and released versions for LG and OnePlus phones. I have had a Pixel 2 the whole time and now with the release of the Pixel 3, started to mod for the Pixel 2.

Introduction
Quote:

This is a Google Camera mod for the Pixel 1, Pixel 2, & Pixel 3 only. For a Pixel 3, there is no or limited benefit over the stock app, at the moment. This mod is to bring Pixel 3 features to the Pixel 2 and Pixel 1, where possible.

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:

P3v11.4.31_GoogleCamera_6.2.024.apk
-You really might need to clear app data for it to start to work properly. Sorry for the hassle.

If you are rooted, install this optional Magisk module to set SELinux to Permissive to the modded app(s) can use the Hexagon DSP just like the stock app.
https://forum.xda-developers.com/sho...&postcount=243
This reduces the processing time a small amount and may be more battery efficient. The modded apps appear to be blocked from using the DSP/PVC for Processing, by default.

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

Previous Versions:


P3v11.4.2_GoogleCamera_6.2.024.apk

P3v11_GoogleCamera_6.2.024.apk

P3v10.1_GoogleCamera_6.1.021.apk
-Add Xlib2 (another reduced contrast option) and modify to support Pixel 3 Portrait bokeh on Pixel 2
-Add Portrait and Night Sight App Shortcuts from back.rider555

Known Issues on Android 8.1:
-Tapping to focus breaks autofocus. Exiting camera or switching modes/cameras fixes this.
-Night Sight will crash the very first time you use it after installation. It appears to run just fine after that until you Clear Data of the app.

P3v9.1_GoogleCamera_6.1.021.apk
-Disable HDR+ mode resetting for Pixel 1 when opening Camera
-Add "reduce contrast" option which loads a custom lib by Savitar to reduce black crush a little bit. I have not tested in all conditions. Feel free to test at your own discretion and provide your thoughts with comparison pics.

Known Issues on Android 8.1:
-Tapping to focus breaks autofocus. Exiting camera or switching modes/cameras fixes this.
-Night Sight will crash the very first time you use it after installation. It appears to run just fine after that until you Clear Data of the app.

P3v9_GoogleCamera_6.1.021.apk
-Revert default color accent to Google Blue by popular request
-Fix HDR+ mode resetting for Pixel 1
-Exif fix (big thanks to @Arnova8G2 for helping)
-Fix Night Sight for Android 8.1 (big thanks to BSG)

Known Issues on Android 8.1:
-Tapping to focus breaks autofocus. Exiting camera or switching modes/cameras fixes this.
-Night Sight will crash the very first time you use it after installation. It appears to run just fine after that until you Clear Data of the app.

P3v8.6_GoogleCamera_6.1.021.apk
-Change default color accent to Google Green
-Add P3 Mod Settings>Permanent Night Sight Suggestion
--Provides an always on button to enter Night Sight
-If P3 Mod Settings toggles are changed, the camera will restart automatically to apply the changes (be careful if HDR+ is Processing) (thanks @fu24 / namok)
Known Issues on Android 8.1:
-Tapping to focus breaks autofocus. Exiting camera or switching modes/cameras fixes this.
-Night Sight will crash the very first time you use it after installation. It appears to run just fine after that until you Clear Data of the app.
-Night Sight viewer is black. There is a fix for this but then it requires Flash to be set to Auto/On for it to work properly. I don't use Flash ever so this is not a good option to me at the moment. I opted for the black screen until a fix can be found. Thanks for understanding. Wait until the focus ring is gone, or choose your focus in the Focus Option on the top right, then click the photo.

P3v8.5_GoogleCamera_6.1.021.apk
-Cleaned up P3 Mod Settings. Settings not relevant for Android 8.1 are removed, and PVC toggle is removed for non-Pixel 2/3.
-Add P3 Mod Settings>HDR+ Enhanced for Portrait toggle. This increases dynamic range, at the cost of shutter delay. Force close the app is required for the setting to change. (Credit to BSG for the method)
-Tried to adjust some stuff for Wear remote shutter support but I need a proper log if there's issues still.

P3v8_GoogleCamera_6.1.021.apk
Must uninstall old version due to signature change.
-Support for Android 8.1 (referenced BSG's latest versions)
-Settings>P3 Mod Settings
--Toggles to switch Photo viewers (Classic or Google Photos), Enable Pixel Visual Core for ZSL HDR+, Disable Learning Based AWB in HDR Enhanced, & Disable Tracking Autofocus. The last 2 options only work on Android 9, so the toggles don't do anything for Android 8.1
Known Issues on Android 8.1:
-Tapping to focus breaks autofocus. Exiting camera or switching modes/cameras fixes this.
-Night Sight will crash the very first time you use it after installation. It appears to run just fine after that until you Clear Data of the app.
-Night Sight viewer is black. There is a fix for this but then it requires Flash to be set to Auto/On for it to work properly. I don't use Flash ever so this is not a good option to me at the moment. I opted for the black screen until a fix can be found. Thanks for understanding. Wait until the focus ring is gone, or choose your focus in the Focus Option on the top right, then click the photo.

P3v7_GoogleCamera_6.1.021.apk

P3v6_GoogleCamera_6.1.013.apk
Uninstall old version. This has a different package name (to fix Lens). The new app is in your app drawer labeled CameraP3.
-Lens option in More
-Pixel 3 Portrait mode (which seems to only improve the rear lens Portraits, so no improvement on Pixel 1 probably)
-Removed HDR+ Options for now due to bugs/instability/confusion

Only tested on Pixel 2. I don't have a Pixel 1 to test with to offer fixes for.

P3v5_GoogleCamera_6.1.013.apk
-Add workaround for Pixel 1 rear Portrait (only works on human faces)
Previous changelog:
For all Pixel:
-Enable Night Sight
-Enable manual focus button in Night
-Add HDR+ Config selection

Tested only on Pixel 2:
-Enable focus tracking
-Enable Photobooth
-Video FPS options (Auto/30/60)
-Google Lens Suggestions in Viewfinder
-H265/HEVC toggle
-Super Zoom (maybe??)
-"New" HDR+ Enhanced (colors may differ in extreme tinted light conditions, test it out; this is how the Pixel 3 behaves see https://www.teknofilo.com/analisis-pixel-3-xl/4/)

P3v4_GoogleCamera_6.1.013.apk
For all Pixel:
-Enable Night Sight
-Enable manual focus button in Night
-Add HDR+ Config selection

Tested only on Pixel 2:
-Enable focus tracking
-Enable Photobooth
-Video FPS options (Auto/30/60)
-Google Lens Suggestions in Viewfinder
-H265/HEVC toggle
-Super Zoom (maybe??)
-"New" HDR+ Enhanced (colors may differ in extreme tinted light conditions, test it out; this is how the Pixel 3 behaves see https://www.teknofilo.com/analisis-pixel-3-xl/4/)

FAQ
Quote:

Q: Do I need to change any settings?
A: This mod is optimized for the Pixels to run without changing any settings. There are some advanced settings in P3 Mod Settings. Experiment at your own will.

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

Thanks To/Credits
Quote:

B-S-G for fixes for Android 8.1
Arnova8G2 for general help and other fixes as he comes up with them

XDA:DevDB Information
[GCam] Google Pixel 1 / 2 / 3, App for all devices (see above for details)

Contributors
cstark27

Version Information
Status: Beta

Created 2018-12-05
Last Updated 2019-04-22
The Following 93 Users Say Thank You to cstark27 For This Useful Post: [ View ] Gift cstark27 Ad-Free
 
 
5th December 2018, 09:49 AM |#2  
Senior Member
Thanks Meter: 49
 
More
Thanks for your great work as always, greatly appreciated.
5th December 2018, 09:52 AM |#3  
Member
Thanks Meter: 11
 
More
The best Gcam mods.. thanks @cstark27
The Following User Says Thank You to raghus.id For This Useful Post: [ View ] Gift raghus.id Ad-Free
5th December 2018, 10:31 AM |#4  
Senior Member
Flag Berlin
Thanks Meter: 48
 
More
Gives me 410 gone Error when trying to Download
5th December 2018, 11:44 AM |#5  
Junior Member
Thanks Meter: 11
 
More
Amazing work 🥂 However, there seems to be a problem if the PVC is used. After rapidly taking multiple photos in normal mode or portrait mode, there is a delay to take the next shot. In Pv7 without the PVC, this wasn't the issue.
True, PVC does help process faster though.
The Following User Says Thank You to note3exynosbd For This Useful Post: [ View ] Gift note3exynosbd Ad-Free
5th December 2018, 11:48 AM |#6  
Member
Thanks Meter: 3
 
More
What's the problem with pixel 3 AWB in HDR Enhanced? Just wonder should I switch it off or not
5th December 2018, 12:23 PM |#7  
Junior Member
Thanks Meter: 7
 
More
@cstark27
Thanks a lot for this new mod. Works great!
One request:
If it is not too much trouble, could you allow the "Enable camera sounds" toggle to always appear in "Settings", irrespective of region?
The Following 2 Users Say Thank You to Nexus5xUser2 For This Useful Post: [ View ] Gift Nexus5xUser2 Ad-Free
5th December 2018, 12:31 PM |#8  
Junior Member
Thanks Meter: 4
 
More
This is the best app Ive ever used. Thanks a bunch for the work.
The Following User Says Thank You to Gerard48 For This Useful Post: [ View ] Gift Gerard48 Ad-Free
5th December 2018, 12:40 PM |#9  
Senior Member
Thanks Meter: 21
 
More
This is truly the best mode thus far. Kudos for the work, man.
5th December 2018, 01:13 PM |#10  
Senior Member
Thanks Meter: 226
 
More
Same here
Quote:
Originally Posted by PsychOlli

Gives me 410 gone Error when trying to Download

Sent from my Pixel 2 XL using Tapatalk
5th December 2018, 01:38 PM |#11  
Junior Member
Thanks Meter: 4
 
More
@cstark27 topshot/recommended shots stopped working with photos shot with p3v8. also tried clearing data and cache many times with no luck. i also have the motio photo on. rest is working sooper fine. thanks for the update✌️
Post Reply Subscribe to Thread

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