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

Search This thread

Mihiranpura

Senior Member
Dec 7, 2011
99
21
OnePlus 5T
I am using OOS 10.0.1 and also using Audio mods. And i change the SElinux to permissive but when i install any DotFix the GCAM is not working. Is there any solution for GCAM without removing the audio mod.
 

Sarabveer

Senior Member
Aug 28, 2015
80
10
New Jersey
sarabveer.me
My GCam app crashes when I try to use the 2nd back camera. After the crash, sometimes the app is unable to open because it tries opening to the 2nd camera and crashes.

Info:
Phone: OnePlus 5
ROM: crDroid 6.12 (Android 10)
GCam: NGCam_7.4.104-v1.9
Config: Nik-1.9.xml
Fix: OnePlus5&5T-DotFix v6.0 (Magisk)

Log:
Code:
--------- beginning of crash
12-02 22:42:15.964 18817 18817 E AndroidRuntime: FATAL EXCEPTION: main
12-02 22:42:15.964 18817 18817 E AndroidRuntime: Process: com.google.android.GoogleCameraEng, PID: 18817
12-02 22:42:15.964 18817 18817 E AndroidRuntime: java.lang.IllegalArgumentException: supportsCameraApi:1990: Unknown camera ID 2
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:822)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:331)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mgf.a(Unknown Source:134)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mgg.a(Unknown Source:392)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mgw.a(Unknown Source:13)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mgw.e(Unknown Source:99)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mgw.b(Unknown Source:11)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at mhf.b(Unknown Source:9)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at lso.<init>(Unknown Source:11)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at kuf.a(Unknown Source:325)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at ebs.u(Unknown Source:1029)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at ebs.g(Unknown Source:158)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at dxy.g(Unknown Source:925)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at enp.a(Unknown Source:5)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at ent.b(Unknown Source:97)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at eol.onStart(Unknown Source:28)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at dwg.onStart(Unknown Source:48)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.google.android.apps.camera.legacy.app.activity.main.CameraActivity.onStart(Unknown Source:575)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.google.android.apps.camera.legacy.app.activity.main.CameraActivity.ReInit(Unknown Source:54)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.ButtonAuxMode.onRestart(Unknown Source:316)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.ButtonAuxMode$1.lambda$onClick$0$ButtonAuxMode$1(Unknown Source:105)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.ButtonAuxMode$1$$Lambda$0.accept(Unknown Source:43)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at java.util.ArrayList.forEach(ArrayList.java:1262)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.ButtonAuxMode$1.onClick(Unknown Source:72)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.view.View.performClick(View.java:7259)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.view.View.performClickInternal(View.java:7236)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.view.View.access$3600(View.java:801)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.view.View$PerformClick.run(View.java:27896)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:883)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:100)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:214)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:7356)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
12-02 22:42:15.964 18817 18817 E AndroidRuntime: Caused by: android.os.ServiceSpecificException: supportsCameraApi:1990: Unknown camera ID 2 (code 3)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Parcel.createException(Parcel.java:2085)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Parcel.readException(Parcel.java:2039)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.os.Parcel.readException(Parcel.java:1987)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.ICameraService$Stub$Proxy.supportsCameraApi(ICameraService.java:800)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.camera2.CameraManager.supportsCameraApiLocked(CameraManager.java:875)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.camera2.CameraManager.supportsCamera2ApiLocked(CameraManager.java:851)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:307)
12-02 22:42:15.964 18817 18817 E AndroidRuntime:     ... 33 more
12-02 22:42:15.969 18817 18817 W CAM_ShotTracker: Uncaught exception. Annotating all active shots.
12-02 22:42:15.991 18817 18817 I Process : Sending signal. PID: 18817 SIG: 9
12-02 22:42:16.005 20829 20829 E ng:crash_repor: Not starting debugger since process cannot load the jdwp agent.
 

shadowstep

Forum Moderator
Staff member
  • Jun 6, 2014
    5,176
    10,482
    30
    Ambala
    OnePlus 5
    Why EIS doesn't work, even tho I activated in settings? (searching in this thread is missing with the new xda update, sorry)

    It's not missing, it's there on the top bar. Click on "Search..." and then select "This thread" in the dropdown to search in whatever thread you're in. Also, EIS doesn't work in GCam. It's a known issue with no resolution.
     
    • Like
    Reactions: KatayHan

    pleomaxell

    Senior Member
    Oct 20, 2012
    333
    75
    It's not missing, it's there on the top bar. Click on "Search..." and then select "This thread" in the dropdown to search in whatever thread you're in. Also, EIS doesn't work in GCam. It's a known issue with no resolution.

    I am using the latest NGCam_7.4.104-v2.0 with Nik-2.0.xml and I am noticing that photos appear very dark as if the exposure is very low. Is this a camera issue or because of the xml?
     

    djibux

    Member
    Dec 6, 2015
    18
    1
    I feel the quality is really bad with the provided Nik-1.9-NON-ROOT. It's a shame because the preview is very fluid, much more than with other config files.
    I use the this Non-root.xml file instead. It seems to me the quality is better.
     

    shadowstep

    Forum Moderator
    Staff member
  • Jun 6, 2014
    5,176
    10,482
    30
    Ambala
    OnePlus 5
    I am using the latest NGCam_7.4.104-v2.0 with Nik-2.0.xml and I am noticing that photos appear very dark as if the exposure is very low. Is this a camera issue or because of the xml?
    Works fine here. Try using a different XML/customize settings on your own and see if it makes any difference.

    I feel the quality is really bad with the provided Nik-1.9-NON-ROOT. It's a shame because the preview is very fluid, much more than with other config files.
    I use the this Non-root.xml file instead. It seems to me the quality is better.
    GCam without root will always be worse off, no matter what XML you use. Blame OnePlus.
     

    Listerine

    Senior Member
    Aug 11, 2011
    59
    2
    Thanks for the files! I installed it and it works great. As an aside, on the website that stores all the gcam versions, when you click on "Stable Versions" it points the user to "Nikita-v1.7_GCam_7.3.020_Urnyx05_mod " for the OnePlus5T. That version is decidedly unstable since it crashes whenever one clicks on the secondary camera option. I don't know if you have any say in what gets linked, but I'd figure I'd mention it to you.

    By the way, does portrait mode do anything? I didn't seem to notice any bokeh like the OnePlus5T stock camera.
     

    S4turno

    Senior Member
  • Feb 10, 2012
    1,780
    9,842
    London, UK
    Xiaomi Poco F3
    Thanks for the files! I installed it and it works great. As an aside, on the website that stores all the gcam versions, when you click on "Stable Versions" it points the user to "Nikita-v1.7_GCam_7.3.020_Urnyx05_mod " for the OnePlus5T. That version is decidedly unstable since it crashes whenever one clicks on the secondary camera option. I don't know if you have any say in what gets linked, but I'd figure I'd mention it to you.

    I need to update that page, maybe today or tomorrow. Just need to find some time.
     

    TechnoGeek9

    Member
    Apr 30, 2016
    47
    6
    Hi ! Can someone guide me through the proper gcam installation steps for OP5
    I've tried installing the latest Nikita GCam and then when i took a picture i could notice a lot of noise in the picture and when i zoom in i could also notice dots in the pic i also tried to install the gcam mods from other dev's but nothing seems to work also i tried using the xml file on nikita gcam mod and still its no better than previous one how do i fix this issue ?
     

    shadowstep

    Forum Moderator
    Staff member
  • Jun 6, 2014
    5,176
    10,482
    30
    Ambala
    OnePlus 5
    Hi ! Can someone guide me through the proper gcam installation steps for OP5
    I've tried installing the latest Nikita GCam and then when i took a picture i could notice a lot of noise in the picture and when i zoom in i could also notice dots in the pic i also tried to install the gcam mods from other dev's but nothing seems to work also i tried using the xml file on nikita gcam mod and still its no better than previous one how do i fix this issue ?
    For the best possible GCam experience, you'll have to root and install a Magisk module. Everything you need to know is in the first and second post.
     

    theredmoose

    Member
    Dec 13, 2012
    32
    3
    Toronto
    I just upgraded from Nikita v1.4 to 2.0 and I noticed that the Lens, HDR+, and Motion options in the dropdown menu are no longer there. I tried finding them in the settings but no luck. Am I missing something?
     
    Slightly OT: Using Nikita GCam with dotfix 5.7 resurrection remix (cheeseburger). I'm able to click raw images using GCam and pretty much everything works just fine. But at times I want slightly more control and want to use open camera but opencamera isn't able to save RAW at all. Gets stuck at capturing (if raw is enabled works as expected otherwise) and only jpeg is saved. Also tried manual camera and same issue.
    I also have a 3T and both GCam and opencamera works fine there. Nothing like dotfix was required for that.
    Just wondering if dotfix is the culprit or something else is wrong (don't want to remove it as I still want GCam)

    PS. Wanted to search the thread but cannot find the option at all on the xda app. Do let me know where is the search option.
     
    Last edited:

    shadowstep

    Forum Moderator
    Staff member
  • Jun 6, 2014
    5,176
    10,482
    30
    Ambala
    OnePlus 5
    Just wondering if dotfix is the culprit or something else is wrong (don't want to remove it as I still want GCam)
    You can always disable DotFix and check if that's the issue. Even if it is, it won't be fixed since OpenCamera is out of scope for it.

    PS. Wanted to search the thread but cannot find the option at all on the xda app. Do let me know where is the search option.
    This thread should help: [Index] XDA 2021: Navigating the New Forum App
     

    zohar_ml

    Senior Member
    Apr 24, 2015
    217
    48
    Does the x2 lens work?
    I have a 5T running latest official LineageOs 17.1 and the 2x does nothing.


    I installed the rooted version (NGCam_7.4.104-v2.0) + the DotFix & applied the xml file.
    When I use the main camera I see the two lenses icons 1x 2x. pressing any of them and the screen go black for short time and comes back, but both options give the same field of view.

    Is there a way to use the tele lens?
     

    S4turno

    Senior Member
  • Feb 10, 2012
    1,780
    9,842
    London, UK
    Xiaomi Poco F3
    Update from Nikita: 8.1.101 v1.0
    Configs:
    The configs directory is /GCam/Configs8/. This is a new folder just for GCam 8, like Configs7 was new and exclusive to GCam 7.

    If you need help, see how to load configs.

    Notes:
    • GCam 8 is a new base. It's not packed with features like 7.x. It's probably not as stable too.
    • Android 11 introduced restrictions to which folders apps can see. You may have to set GCam to access "all files" inside Android's settings/permissions for the app in order to load a config file.
     
    Last edited:

    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.
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone