Google Camera Mod Thread for OnePlus 5/T [OFFICIAL]

Search This thread

xGuhh

New member
Jun 22, 2018
3
1
Native oos camera works fine front and rear with v8 and 2.3 fix.

Sent from my OnePlus5T using XDA Labs

how strange ... I already uninstalled the v2.3 fix, I tested the native oss camera front and back and it worked normal. When I reinstall the v2.3 fix, the back camera stops running. =/

* edit 1 - i'm so stupid... I was using the module for 1+ 5 ... My device is the 1 + 5T... All works fine!
 
Last edited:
  • Like
Reactions: tcat007

Amruth Pillai

Senior Member
Nov 24, 2012
133
92
25
Bangalore
Samsung Galaxy S21 Ultra
Guys, I followed the exact same steps on this post (https://forum.xda-developers.com/showpost.php?p=75285158&postcount=2050), but I still couldn't get the HDR+ Enhanced to work.

I'm running a decrypted rooted OB12 xXx 11.0 ROM. I installed the two fixes (OP5 Fix v2.3 and Pixel Colors) over Magisk. Then I installed the Arnova's v8 (GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk) app. But I still get photos shot using HDR+ Enhanced and Portrait Mode completely pink.

Am I doing something wrong, did I miss a step here? Please help.

-------- UPDATE --------

Okay, I guess this is what they mean when they say a little bit of searching helps :D Found the fix posted by @shadowstep here (https://forum.xda-developers.com/showpost.php?p=76867106&postcount=3432).

In short, all you need to do is update to the latest xXx Essentials Magisk Module. It was default in v2, so I got the v4 from here (https://forum.xda-developers.com/devdb/project/?id=21357#downloads) and voila, works like brand new :)

Thanks for the amazing port everyone who is responsible for this. It's a blessing for our phone and for photographers alike :)
 
Last edited:

shadowstep

Forum Moderator
Staff member
  • Jun 6, 2014
    5,203
    10,563
    30
    Ambala
    OnePlus 5
    how strange ... I already uninstalled the v2.3 fix, I tested the native oss camera front and back and it worked normal. When I reinstall the v2.3 fix, the back camera stops running. =/

    * edit 1 - i'm so stupid... I was using the module for 1+ 5 ... My device is the 1 + 5T... All works fine!

    Don't worry, we've all done stupid things like this. :) I've updated my summary post with links to the camera lib fix module and flashable zip for the OnePlus 5T as well, because why not, and it will avoid things like these from happening. Enjoy the mod!

    Guys, I followed the exact same steps on this post (https://forum.xda-developers.com/showpost.php?p=75285158&postcount=2050), but I still couldn't get the HDR+ Enhanced to work.

    I'm running a decrypted rooted OB12 xXx 11.0 ROM. I installed the two fixes (OP5 Fix v2.3 and Pixel Colors) over Magisk. Then I installed the Arnova's v8 (GoogleCamera-Pixel2Mod-Arnova8G2-V8.apk) app. But I still get photos shot using HDR+ Enhanced and Portrait Mode completely pink.

    Am I doing something wrong, did I miss a step here? Please help.

    -------- UPDATE --------

    Okay, I guess this is what they mean when they say a little bit of searching helps :D Found the fix posted by @shadowstep here (https://forum.xda-developers.com/showpost.php?p=76867106&postcount=3432).

    In short, all you need to do is update to the latest xXx Essentials Magisk Module. It was default in v2, so I got the v4 from here (https://forum.xda-developers.com/devdb/project/?id=21357#downloads) and voila, works like brand new :)

    Thanks for the amazing port everyone who is responsible for this. It's a blessing for our phone and for photographers alike :)

    That is exactly why searching before posting is considered the fastest way of finding a solution. Glad you did that eventually!
     

    shadowstep

    Forum Moderator
    Staff member
  • Jun 6, 2014
    5,203
    10,563
    30
    Ambala
    OnePlus 5
    Is there any chance that 4mp on front camera will be fixed to 16mp? 3T makes 16mp photos on front camera with Gcam

    That's like asking "will the dots be removed which are displayed after a picture gets clicked with Gcam? They're not there on the 3T". :p 3T is a different device than 5, and its camera HAL is more compatible with the Google Camera mod than the one that is there on 5. There may be a chance this is fixed in the future, but for now, it's not a major issue. The only major issue that is left now is to get slow-motion working. :)
     

    b00ster

    Senior Member
    Jul 24, 2011
    93
    41
    Krakow
    That's like asking "will the dots be removed which are displayed after a picture gets clicked with Gcam? They're not there on the 3T". :p 3T is a different device than 5, and its camera HAL is more compatible with the Google Camera mod than the one that is there on 5. There may be a chance this is fixed in the future, but for now, it's not a major issue. The only major issue that is left now is to get slow-motion working. :)
    But portrait mode photos from the front camera on 1+5T are made in 16mp...
     

    AndroidGX

    Inactive Recognized Contributor
    Jun 24, 2010
    3,339
    9,091
    ★ Montpellier ★
    Just a quick question but: if I use Serjo87 cam, do I need to use op5t camera modules fix ? (or not ?) :highfive:
    Cheers'

    *edit* : looks like yes it is needed otherwise pink detected when HDR+ enchanced ^^
     
    Last edited:

    Arnova8G2

    Senior Member
    Sep 22, 2012
    1,847
    17,794
    Is there any chance that 4mp on front camera will be fixed to 16mp? 3T makes 16mp photos on front camera with Gcam
    An OP3T user gives you an answer
    The front camera results will always be 4mp. With the fix installed you got 16mp jpegs/dngs, but if you zoom, there is some pixelization. You can try to take two identical pictures. One with the front camera and one with the rear one. The detail on the rear one is much better (as it is resolved @ 16 mpx). Front camera seems to always use pixel binning (4 sensor pixels = 1 picture pixel). It seems that with the fix, the imagem is processed as a 16mpx despite only containing information of 4 mpx. Also, the 4mpx results are identical to the 16mpx ones
    Whose 16Mpx have no interest, if you have the same result

    ---------- Post added at 12:50 PM ---------- Previous post was at 12:49 PM ----------

    Front camera crashed with the OP camera using this fix on Beta 12, OP5.
    There may be changes in this beta version
     

    mohitgalaxy3

    Senior Member
    Apr 18, 2011
    1,860
    529
    33
    Kuala Lumpur
    OnePlus 8T
    Change log :
    - Updating libs with the OxygenOS 5.1.3 release
    - Remove the green hue on All RAW camera and Gcam Mod

    For OnePlus5T
    TWRP by @Ch3lly
    twrp-Camera_lib_fix_dots+hdr+_4mp-op5t-v2.3.zip
    https://forum.xda-developers.com/showpost.php?p=76866071&postcount=3429

    magisk-Camera_lib_fix_dots+hdr+_4mp-op5t-V2.3.zip
    https://forum.xda-developers.com/showpost.php?p=76863941&postcount=3420

    The summary post by @shadowstep for OnePlus5
    https://forum.xda-developers.com/showpost.php?p=75285158&postcount=2050

    Flashed the magisk module for OP 5T on OB10 and stock camera crashes as soon as I click a pic from front camera. Any fix for this.
     

    Top Liked Posts

    • There are no posts matching your filters.
    • 191
      EDIT: Updated information is now maintained in the first post.
      152
      google-camera-small.png

      Google Camera Mod for OnePlus 5 (cheeseburger) and 5T (dumpling)

      1. Camera HAL Confusion
      a. Camera HAL Basics
      • First, let's understand what a camera HAL is. A camera HAL is what allows a ROM to "talk to" the camera hardware; without it, the camera would be non-functional. Think of the camera HAL as the steering wheel and pedals of a car. The steering wheel/pedals allow for control of the internal components of the vehicle by providing an external interface for the driver (the ROM) to make use of the internal components.
      • At present, the source code of the camera HAL included in OxygenOS has not been released by OnePlus. Instead, OnePlus has compiled that source code and shipped it on the OnePlus 5/5T as a BLOB (Binary Large OBject). This has been a major setback for custom ROM developers because having access to the camera HAL source would make porting the stock OnePlus Camera to a custom ROM a much easier endeavour.
      b. Camera HAL, Google Camera Mod and Root Requirements
      • The latest releases of the mod require you to be rooted (as you mandatorily need to install DotFix, which contains a modified camera HAL compatible with the latest releases) or the pictures that you click will come out with pink/purple/green tint on them, or will have a dotted pattern on them, or the camera might not work at all. So if you're rooted, then you're good to go. However, if you're unrooted (and prefer staying that way), then you can still use an specific version of the mod which works fine (with a few issues/restrictions, of course). All the downloads for rooted as well as non-rooted users are in the next post in the thread (post # 2).
      2. Known Bugs and Workarounds
      [Unrooted Only] Dotted Pattern Overlay
      • Issue - A dotted pattern overlay is visible in the HDR+ pictures (when completely zoomed in)
      • Resolution - You have to root, install DotFix as well as the recommended version for rooted users from point 3
      [Unrooted Only] Front Camera HDR+/Portrait Mode Non Operational/Captures Distorted Pink/Purple/Green Lines
      • Issue - Front camera captures distorted pink/purple/green lines while using HDR+ or Portrait Mode
      • Resolution - You have to root, install DotFix as well as the recommended version for rooted users from point 3
      [Rooted Only] HDR+ Front Camera Pictures Restricted to 4.0 Megapixels
      • Issue - HDR+ pictures that are clicked with the front camera are restricted to 4.0 megapixels, even though the maximum resolution of 15.9 megapixels is selected for the front camera under settings
      • Resolution - None available yet; details of why this is the case are mentioned in this post
      [Both] Zero Shutter Lag (ZSL) Non Operational
      • Issue - Zero Shutter Lag (ZSL) doesn't work
      • Resolution - None available yet
      [Both] DotFix Magisk Module Incompatible with Audio Mods
      • Issue - Some audio mods interfere with the DotFix Magisk module due to which they don't work as intended
      • Resolution - Uninstall the audio mods or try setting SELinux to permissive using SELinux Switch from this post of mine.
      More troubleshooting tips and tricks are present here and here. You can also read the Telegram channel's FAQ here.
      3. Important Notes and Links
      a. Important Notes
      • Everytime you change a settings, make sure you force-close and swipe it away from recents, and then restart the app so that the new settings are applied correctly. A sure shot way to make sure the settings have applied is to restart your phone.
      b. Links
      • Complete list of all Google Camera Mod ports: Link
      • Capturing a logcat if you're facing a crash when opening/using the Google Camera Mod: Link
      • Useful files and tools: Link
      • Photo comparison samples: Link
      4. Post Update Information and Credits
      a. Post Update Information
      • Last Updated: 21st February 2021
      b. Credits
      • @B-S-G, for doing the initial port and bring us Google Camera's HDR+ to multiple devices
      • @Arnova8G2, for all the work he's done and still continues to do to bring us these ports
      • @defcomg, for the front camera Portrait Mode fix
      • @MrAimenify, for fixing viewfinder lag and updating libraries
      • @Urnyx05, for creating his own versions of the mod for everyone on OP5/T
      • @Nikita, for creating his own versions of the mod for everyone on OP5/T
      • @S4turno, for unknowingly inspiring me to make this post, hosting all the Google Camera Mod ports on his server, and for helping the community with updated information regarding the mod
      • @Zackptg5, for the MMT-Ex Template
      • @Adam Conway, for this great XDA article on how cameras work in custom ROMs
      • @Rohit jat, for originally creating the thread and Telegram discussion group
      • All of you guys for viewing this post
      59
      New version of GCam 6.1.021 is out!

      Changelog:
      - Fixed front crash in NS on Mi8
      - Added an option to change the folder where to save portrait photos
      - Replaced Savitar lib with sRGB b2
      - Replaced XLib v2 with v2S

      Here is the link:
      https://mega.nz/#!0noREACT!lQBXD-mINnlCjtlEI_MKb8xBLIIBLdqpLoItrir50vo

      I'm working on GCam 6.2 based on BSG, too. But, at the moment, it's still pretty buggy and unstable. So, I'm trying to fix most of the bugs.
      56
      New update of GCam 6.2.024 is out!

      Changelog:
      - Changed base; now, it's based on cstark27
      - Added the option to change model; on front camera, only Nexus 5X hasn't got any issues on OP devices (thanks Arnova8G2)
      - Fixed portrait mode on OP5/5T
      - Fixed slow motion on OP5/5T and on devices with Snapdragon 845 and 855 (thanks to back.rider and Arnova)
      - Removed Pixel Visual Core Config
      - Removed some specific code for Pixel devices
      - Fixed black spot on OP5/5T
      - Fixed Night Sight on OP5/5T
      - Changed package name (it can be installed side by side with my GCam 6.1)
      - Removed Google Play Services dependance; now it works also without them (thanks Arnova8G2)
      - Fixed front green tint
      - Disabled Sabre (aka Super Resolution) on front camera to fix crashes on Mi9 and Mi8
      - Changed resolution of motion photos to fix some crashes on Mi9 and other devices

      Here is the link:
      https://mega.nz/#!1nYBiSoT!eoHmomdHQ73REF4OnyRd_e7-ZoUlspC6pFVpgflu5Lo

      KNOWN BUGS:
      - Sometimes, slow motion doesn't work
      - Photobooth doesn't work
      - It may crash on different devices from OP5/5T
      - Viewfinder lags on OP5/5T
      56
      I realized this was never posted in this thread, so for those of you who might be wondering why Arnova8G2 has been missing in action for sometime now, it's because he met with a motorcycle accident and he's in the hospital, where smartphones and other portable electronic devices are forbidden. The accident was a major one and he's started to use the wheelchair now and hopefully with rehabilitation/physiotherapy, he'll be able to walk soon. Let's keep him in our thoughts and pray for his speedy recovery.