• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Gcam] All about op7pro gcam

Search This thread

elmarian756

Senior Member
Mar 7, 2016
154
233
gcamapk-512-300x300.png

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+?
HDR+ is Google's proprietary image processing routine. HDR+ employs image stacking to control exposure, and also to preserve details, reduce noise, increase sharpness, etc. It is an all-in-one package.

Installation instructions
Download APK to your Phone and Install it (No Root needed)


JOIN US IN TELEGRAM
(more updates about XML, APK's there)

Xiaomi Mi 9/Pro GCam Telegram
OnePlus 7/7T/Pro GCam Telegram


RECOMMENDED SETTINGS
(PLEASE READ THE FAQ BEFORE ASKING SOMETHING)


GCAM FAQ

GCAM TUTORIALS
MAGISK MODULE FOR AUX









For those who don't know, celso's page now has a device specific section. Op7pro is here and you can download gcams of your taste as well the xml files:

https://www.celsoazevedo.com/files/android/google-camera/f/oneplus-7-pro/

Main development is being done by Arnova. He works 6.1 6.2 and 6.3 versions.

You may find way difficult to configure this gcams due to the vast amount of settings but is very improved on some areas, as well others still needs some fix and testing. If you feel like experimenting this gcam is the one to go. Just use XMLs and please don't ask the same questions a trillion times.

A quick word by arnova about 6.2:

"Quick summary on my side 6.2:
- great quality / accuracy
- fast processing and shutter
- known "bugs" for XMLs (2x to implement it, and crashes if right procedure is not done)
- eats battery slightly more than 6.1
- inside shots are better quality
- zoom isn't that bad
- HDR works pretty well"

A more simple and stable version is xcam by Xtreme. Based on the old good reliable 6.1 by arnova.
Way less settings to play with. Simple, stable, yet still VERY configurable gcam. Recommended for most users. And dev is always listening to users and requests.


So here is a small FAQ to prevent a RAIN of answered questions:

What is the best gcam or Xml? - None. It is ALL experimental and although there almost everything works, there are all different. Better is just a matter of taste and need.

SlowMo does not work? Nope, perhaps on a future version.

OMG HOW DO I SWITCH BETWEEN LENSES? - sadly there is no easy way yet. Some versions of twrp, kernels, NFS injector magisk module, setting selinux correctly (read info at the end of the post) or arnova's magisk module enables aux cameras support on op7pro. So no easy for non root users. I will keep you guys posted if this changes.

Keep in mind that having the device ready for aux on gcam, Does not mean that any gcam will switch between lenses.
Gcam must be enabled to use aux and the method for aux you are using may not work with that particular gcam.

Main camera captures only at 12 mpx? - yes, gcam is capable of 48 mpx but libs need to be modified. Arnova is working on that. (He hasn't stated if this is impossible or not just yet, he is working on the proyect). Those 12 mpx will be the 48 mpx quad bayered photo. The purpose of this mod will be a full 48 mpx HDR gcam photo working. Fingers crossed.

google photos gives a strange tint on pics taken? - Yes, a google photos bug, unrelated to camera.

Phone heats up and battery drains? - gcam consume a lot of juice so there is that.

Portrait mode problems, fc, etc? - image format has to be Yuv on op7pro.


Stock or gcam? - I personally prefer gcam shots but stock has a great performance on daylight, and nightmode is average. Stock is no good on faces, and quality overall is not of my taste. Both together is for the win.

Wide and tele lenses performance? - downside is that gcam must restart in order to switch lenses. Wide lens correction of stock cam is amazing, i have seen some gcam with this settings, haven't tested it yet. As regards tele lens, it is combined with super res zoom. Amazing results although stock zoom algorithms are not bad at all.

To enable Aux camera support on gcam, after a lot of hard work of devs and resarch of users, it has been discovered that the app should be installed in priv-app in order to get full elevated permissions. This can be achieved by using the magisk module "app systemizer" or as it was explained on this same thread:

"Multi-Lense GCam without SELinux Permissive
As it turns out, the multi-lense modded Gcam app requires elevated permissions to switch between the auxiliary back cameras. Note that these are not standard android permissions, but lower-level system permissions that generally cannot be enabled by a standard user app.

By rooting and setting SELinux to permissive, you allow the camera app to access these permissions, but you leave yourself with a rather large security vulnerability as now every app on your phone has access to these permissions. You can provide individual apps with these permissions simply by installing them as a priv-app in the systems app folder without setting the global SELinux status to permissive. This can be done either by manually moving the Gcam apk to the priv-app folder, or with a Magisk module; either way, you have to be rooted to do so at the moment.

Here are the steps I took to enable switching between the lenses without installing the NFS injector module or manually setting SELinux to permissive:

1) Install the previously shared multi-lense Gcam app as a standard user app by installing the apk as you would normally.

https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

2) Open the camera app and enable the usual set of permissions (local storage, camera, etc.)

3) Install this Magisk module in Magisk or manually move the Gcam apk to /system/priv-app and reboot
https://drive.google.com/file/d/1oAwmp8L5pJNgB3GtGvj4IXir0oIVCULD/view?usp=sharing

The Magisk module attached simply creates a copy of the Gcam app and its included lib in the /system/priv-app folder and does not modify any other security setting. The Gcam app may crash when opening if you do not install it as a standard user app first and set it up before installing it as a system app (at least it did for me at first)."


Now once you have AUX access enabled, depending of the gcam version you are using, the next step is to know how to swich between lenses. If you are using the recommended gcam on this post, first i recommend to set the auxiliar switch mode to "long press". Then you will be able to switch between main and telephoto if you long press the arrows camera change icon. Single press this icon will cycle through front and previously used camera.
If you long press the photo preview icon on the viewfinder, the camera will change and start switching between main lens and wide angle. (Note that you may have this reversed, the important thing to know is that pressing the photo preview icon on the viewfinder will let you use the other secondary lens, and they will always will cycle with the main lens.)

If you are using the arnovas recent test apks you should be able to see a pine icon. Just click there to change lens. Bare in mind that this recent version are still up to bug correcting, so you may find unexpected results.

If you find grainy or noisy video while shooting video on medium to low light conditions on wide or tele, you need to lower exposure by tapping on screen and lowering exposure with the floating slider controller.

Thanks to Arnova and all the users on telegram testing out this magnificent work. Will keep posted if a rootless version of this method is found.
 
Last edited:

felek73

Senior Member
Jun 28, 2009
749
116
Warsaw
Hi! As some of you users may know, arnova tried to enable aux cameras for gcam for the op7 pro. The thing is that a line is missing on vendor / build prop.
The line is vendor.camera.aux.packagelist=org.codeaurora.snapcam

Problem is that if i edit Vendor/build.prop after reboot it regenerates back to default.

Found out that in system/build.prop there is a couple of lines but coding is not my strong point here.

The lines are:

Expose aux camera for below packages
#ifndef VENDOR_EDIT
#vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.qualcomm.saltproject2
#else
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.oneplus.factorymode,com.oneplus.camera,com.oneplus.healthcheck
persist.vendor.camera.privapp.list=com.oneplus.camera
#endif
#ifdef VENDOR_EDIT
persist.vendor.camera.oissr.debug=0
#endif
#enable IZat OptInApp overlay
persist.vendor.overlay.izat.optin=rro


Any ideas or someone experienced on this?
Will try this later. Is there any telegram channel where arnova is active for OP7 Pro?
 

elmarian756

Senior Member
Mar 7, 2016
154
233
Thanks for the link!
I had completely missed that telegram group..-

Yes, in that group this came up last night. (Cant attach screenshots for some reason). Diggin up i found that i need to edit vendor build prop through a magisk module or twrp in order to the changes to stick. No luck still since i dont have twrp and do have magisk. But not such module Perhaps bringing this up on xda it someone figure this out! Please if someone works this out let us know!
 

synapsesburned

Senior Member
Jun 11, 2010
62
18
Really? Can you point me to the gcam version, and if you are rooted, or have any magisk modules?

Weird, right? So I don't know if it's coincidence or a glitch or something -- when I was on 9.5.3 I was completely stock and I tried a ton of ports but none was working. Since 9.5.4 I've been rooted, etc. and it's randomly started working with all lenses on a couple different ports.

I'm running 9.5.6 with Kirisakura 1.0.0 (installed through EXKM), TWRP 3.3.1-18 with the following Magisk modules:
- Companion Module for Kirisakura Kernel
- Init.d Injector
- liboemcrypto disabler
-microG Installer
-NFS-INJECTOR
-OxygenOS Gmail Battery Fix
-Riru - Core
- Riru - EdXposed - SandHook
-Systemless Hosts
-Wifi Bonding (Qcom)
-xXx NoLimits 7.0 for One Plus

The best gcam port for using all lenses I've found was the one I was using on my S10+: MGC_6.1.021_BSG_Arnova_TInNeun_4lens_V1.3.03119.0645-02j.apk
 
  • Like
Reactions: elmarian756

elmarian756

Senior Member
Mar 7, 2016
154
233
Weird, right? So I don't know if it's coincidence or a glitch or something -- when I was on 9.5.3 I was completely stock and I tried a ton of ports but none was working. Since 9.5.4 I've been rooted, etc. and it's randomly started working with all lenses on a couple different ports.

I'm running 9.5.6 with Kirisakura 1.0.0 (installed through EXKM), TWRP 3.3.1-18 with the following Magisk modules:
- Companion Module for Kirisakura Kernel
- Init.d Injector
- liboemcrypto disabler
-microG Installer
-NFS-INJECTOR
-OxygenOS Gmail Battery Fix
-Riru - Core
- Riru - EdXposed - SandHook
-Systemless Hosts
-Wifi Bonding (Qcom)
-xXx NoLimits 7.0 for One Plus

The best gcam port for using all lenses I've found was the one I was using on my S10+: MGC_6.1.021_BSG_Arnova_TInNeun_4lens_V1.3.03119.0645-02j.apk

Great, so it works, lets start from scracth: can you tell me where can i download that apk? I will start from this app and next replicating the same conditions until i get what makes it work!
 

synapsesburned

Senior Member
Jun 11, 2010
62
18
Great, so it works, lets start from scracth: can you tell me where can i download that apk? I will start from this app and next replicating the same conditions until i get what makes it work!

Download the apk here: https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

and here's a link to my saved config file with all of the lenses setup/working: https://drive.google.com/file/d/1r-rl-TuF6OsGMB4d-9bMF0bqdyJNFO-O/view?usp=sharing

I've found that it can only switch between two sets of lenses at a time (normal/wide or normal/tele) and that in order to toggle in night mode it works best on cycle and not long press. To switch between lens sets you need to long press on the photo preview.
 

elmarian756

Senior Member
Mar 7, 2016
154
233
Weird, right? So I don't know if it's coincidence or a glitch or something -- when I was on 9.5.3 I was completely stock and I tried a ton of ports but none was working. Since 9.5.4 I've been rooted, etc. and it's randomly started working with all lenses on a couple different ports.

I'm running 9.5.6 with Kirisakura 1.0.0 (installed through EXKM), TWRP 3.3.1-18 with the following Magisk modules:
- Companion Module for Kirisakura Kernel
- Init.d Injector
- liboemcrypto disabler
-microG Installer
-NFS-INJECTOR
-OxygenOS Gmail Battery Fix
-Riru - Core
- Riru - EdXposed - SandHook
-Systemless Hosts
-Wifi Bonding (Qcom)
-xXx NoLimits 7.0 for One Plus

The best gcam port for using all lenses I've found was the one I was using on my S10+: MGC_6.1.021_BSG_Arnova_TInNeun_4lens_V1.3.03119.0645-02j.apk

Download the apk here: https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

and here's a link to my saved config file with all of the lenses setup/working: https://drive.google.com/file/d/1r-rl-TuF6OsGMB4d-9bMF0bqdyJNFO-O/view?usp=sharing

I've found that it can only switch between two sets of lenses at a time (normal/wide or normal/tele) and that in order to toggle in night mode it works best on cycle and not long press. To switch between lens sets you need to long press on the photo preview.

Thanks! Installed and applied the xml but i cant use multi lens yet. Will try the kernel and the modules to see if the changes are there. I have the same rom, so not that far away from it
 

synapsesburned

Senior Member
Jun 11, 2010
62
18
Thanks! Installed and applied the xml but i cant use multi lens yet. Will try the kernel and the modules to see if the changes are there. I have the same rom, so not that far away from it

No problem - wish I could be more helpful with what specifically caused it to work but tbh I wasn't expecting it to and didn't test gcam again until after I got everything setup. Here's my NoLimits profile config too (didn't change much): https://drive.google.com/file/d/1-08Ri-uE99dPaokHunQXFTWaiqdRkGmQ/view?usp=sharing
 
  • Like
Reactions: elmarian756

elmarian756

Senior Member
Mar 7, 2016
154
233
No problem - wish I could be more helpful with what specifically caused it to work but tbh I wasn't expecting it to and didn't test gcam again until after I got everything setup. Here's my NoLimits profile config too (didn't change much): https://drive.google.com/file/d/1-08Ri-uE99dPaokHunQXFTWaiqdRkGmQ/view?usp=sharing
Arnova is making a magisk module to simplify what apparently, your kernel enables. Will report back and if it works, i will edit OP with the guide. Fingers crossed
 
  • Like
Reactions: synapsesburned

elmarian756

Senior Member
Mar 7, 2016
154
233
After an afternoon of trial and error, we discovered that NFS injector enables aux. Still working on something more specific but it works!! OP updated
 

mcn1970

Senior Member
Sep 1, 2015
898
123
Samsung Galaxy Note 20 Ultra
Download the apk here: https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

and here's a link to my saved config file with all of the lenses setup/working: https://drive.google.com/file/d/1r-rl-TuF6OsGMB4d-9bMF0bqdyJNFO-O/view?usp=sharing

I've found that it can only switch between two sets of lenses at a time (normal/wide or normal/tele) and that in order to toggle in night mode it works best on cycle and not long press. To switch between lens sets you need to long press on the photo preview.
i installed the app and config file, but looks like photosphere effect in the viewfinder is still there, eventough is off
 

Attachments

  • IMG_20190531_125954.jpg
    IMG_20190531_125954.jpg
    250.1 KB · Views: 1,445
Last edited:
  • Like
Reactions: z1c_wh

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    gcamapk-512-300x300.png

    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+?
    HDR+ is Google's proprietary image processing routine. HDR+ employs image stacking to control exposure, and also to preserve details, reduce noise, increase sharpness, etc. It is an all-in-one package.

    Installation instructions
    Download APK to your Phone and Install it (No Root needed)


    JOIN US IN TELEGRAM
    (more updates about XML, APK's there)

    Xiaomi Mi 9/Pro GCam Telegram
    OnePlus 7/7T/Pro GCam Telegram


    RECOMMENDED SETTINGS
    (PLEASE READ THE FAQ BEFORE ASKING SOMETHING)


    GCAM FAQ

    GCAM TUTORIALS
    MAGISK MODULE FOR AUX









    For those who don't know, celso's page now has a device specific section. Op7pro is here and you can download gcams of your taste as well the xml files:

    https://www.celsoazevedo.com/files/android/google-camera/f/oneplus-7-pro/

    Main development is being done by Arnova. He works 6.1 6.2 and 6.3 versions.

    You may find way difficult to configure this gcams due to the vast amount of settings but is very improved on some areas, as well others still needs some fix and testing. If you feel like experimenting this gcam is the one to go. Just use XMLs and please don't ask the same questions a trillion times.

    A quick word by arnova about 6.2:

    "Quick summary on my side 6.2:
    - great quality / accuracy
    - fast processing and shutter
    - known "bugs" for XMLs (2x to implement it, and crashes if right procedure is not done)
    - eats battery slightly more than 6.1
    - inside shots are better quality
    - zoom isn't that bad
    - HDR works pretty well"

    A more simple and stable version is xcam by Xtreme. Based on the old good reliable 6.1 by arnova.
    Way less settings to play with. Simple, stable, yet still VERY configurable gcam. Recommended for most users. And dev is always listening to users and requests.


    So here is a small FAQ to prevent a RAIN of answered questions:

    What is the best gcam or Xml? - None. It is ALL experimental and although there almost everything works, there are all different. Better is just a matter of taste and need.

    SlowMo does not work? Nope, perhaps on a future version.

    OMG HOW DO I SWITCH BETWEEN LENSES? - sadly there is no easy way yet. Some versions of twrp, kernels, NFS injector magisk module, setting selinux correctly (read info at the end of the post) or arnova's magisk module enables aux cameras support on op7pro. So no easy for non root users. I will keep you guys posted if this changes.

    Keep in mind that having the device ready for aux on gcam, Does not mean that any gcam will switch between lenses.
    Gcam must be enabled to use aux and the method for aux you are using may not work with that particular gcam.

    Main camera captures only at 12 mpx? - yes, gcam is capable of 48 mpx but libs need to be modified. Arnova is working on that. (He hasn't stated if this is impossible or not just yet, he is working on the proyect). Those 12 mpx will be the 48 mpx quad bayered photo. The purpose of this mod will be a full 48 mpx HDR gcam photo working. Fingers crossed.

    google photos gives a strange tint on pics taken? - Yes, a google photos bug, unrelated to camera.

    Phone heats up and battery drains? - gcam consume a lot of juice so there is that.

    Portrait mode problems, fc, etc? - image format has to be Yuv on op7pro.


    Stock or gcam? - I personally prefer gcam shots but stock has a great performance on daylight, and nightmode is average. Stock is no good on faces, and quality overall is not of my taste. Both together is for the win.

    Wide and tele lenses performance? - downside is that gcam must restart in order to switch lenses. Wide lens correction of stock cam is amazing, i have seen some gcam with this settings, haven't tested it yet. As regards tele lens, it is combined with super res zoom. Amazing results although stock zoom algorithms are not bad at all.

    To enable Aux camera support on gcam, after a lot of hard work of devs and resarch of users, it has been discovered that the app should be installed in priv-app in order to get full elevated permissions. This can be achieved by using the magisk module "app systemizer" or as it was explained on this same thread:

    "Multi-Lense GCam without SELinux Permissive
    As it turns out, the multi-lense modded Gcam app requires elevated permissions to switch between the auxiliary back cameras. Note that these are not standard android permissions, but lower-level system permissions that generally cannot be enabled by a standard user app.

    By rooting and setting SELinux to permissive, you allow the camera app to access these permissions, but you leave yourself with a rather large security vulnerability as now every app on your phone has access to these permissions. You can provide individual apps with these permissions simply by installing them as a priv-app in the systems app folder without setting the global SELinux status to permissive. This can be done either by manually moving the Gcam apk to the priv-app folder, or with a Magisk module; either way, you have to be rooted to do so at the moment.

    Here are the steps I took to enable switching between the lenses without installing the NFS injector module or manually setting SELinux to permissive:

    1) Install the previously shared multi-lense Gcam app as a standard user app by installing the apk as you would normally.

    https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

    2) Open the camera app and enable the usual set of permissions (local storage, camera, etc.)

    3) Install this Magisk module in Magisk or manually move the Gcam apk to /system/priv-app and reboot
    https://drive.google.com/file/d/1oAwmp8L5pJNgB3GtGvj4IXir0oIVCULD/view?usp=sharing

    The Magisk module attached simply creates a copy of the Gcam app and its included lib in the /system/priv-app folder and does not modify any other security setting. The Gcam app may crash when opening if you do not install it as a standard user app first and set it up before installing it as a system app (at least it did for me at first)."


    Now once you have AUX access enabled, depending of the gcam version you are using, the next step is to know how to swich between lenses. If you are using the recommended gcam on this post, first i recommend to set the auxiliar switch mode to "long press". Then you will be able to switch between main and telephoto if you long press the arrows camera change icon. Single press this icon will cycle through front and previously used camera.
    If you long press the photo preview icon on the viewfinder, the camera will change and start switching between main lens and wide angle. (Note that you may have this reversed, the important thing to know is that pressing the photo preview icon on the viewfinder will let you use the other secondary lens, and they will always will cycle with the main lens.)

    If you are using the arnovas recent test apks you should be able to see a pine icon. Just click there to change lens. Bare in mind that this recent version are still up to bug correcting, so you may find unexpected results.

    If you find grainy or noisy video while shooting video on medium to low light conditions on wide or tele, you need to lower exposure by tapping on screen and lowering exposure with the floating slider controller.

    Thanks to Arnova and all the users on telegram testing out this magnificent work. Will keep posted if a rootless version of this method is found.
    8
    Multi-Lense GCam without SELinux Permissive

    As it turns out, the multi-lense modded Gcam app requires elevated permissions to switch between the auxiliary back cameras. Note that these are not standard android permissions, but lower-level system permissions that generally cannot be enabled by a standard user app.

    By rooting and setting SELinux to permissive, you allow the camera app to access these permissions, but you leave yourself with a rather large security vulnerability as now every app on your phone has access to these permissions. You can provide individual apps with these permissions simply by installing them as a priv-app in the systems app folder without setting the global SELinux status to permissive. This can be done either by manually moving the Gcam apk to the priv-app folder, or with a Magisk module; either way, you have to be rooted to do so at the moment.

    Here are the steps I took to enable switching between the lenses without installing the NFS injector module or manually setting SELinux to permissive:

    1) Install the previously shared multi-lense Gcam app as a standard user app by installing the apk as you would normally.

    2) Open the camera app and enable the usual set of permissions (local storage, camera, etc.)

    3) Install this Magisk module in Magisk or manually move the Gcam apk to /system/priv-app and reboot

    The Magisk module attached simply creates a copy of the Gcam app and its included lib in the /system/priv-app folder and does not modify any other security setting. The Gcam app may crash when opening if you do not install it as a standard user app first and set it up before installing it as a system app (at least it did for me at first).

    Ci0OrTc.jpg

    uWMNqZg.jpg

    XMME0RP.jpg

    WfkaKS7.jpg
    5
    Will try this later. Is there any telegram channel where arnova is active for OP7 Pro?

    Google Camera [OP7/7PRO]
    This is the official Telegram group of Google Camera for the OnePlus 7/Pro

    https://t.me/gcamOP7
    4
    This guy is developing GCam for the OP7Pro. Just tried it and it seems to be working fine. Will test more

    https://www.celsoazevedo.com/files/android/google-camera/dev-sam/
    3
    Great, so it works, lets start from scracth: can you tell me where can i download that apk? I will start from this app and next replicating the same conditions until i get what makes it work!

    Download the apk here: https://f.celsoazevedo.com/file/cfi...Arnova_TlnNeun_4lens_V1.3.030119.0645-02j.apk

    and here's a link to my saved config file with all of the lenses setup/working: https://drive.google.com/file/d/1r-rl-TuF6OsGMB4d-9bMF0bqdyJNFO-O/view?usp=sharing

    I've found that it can only switch between two sets of lenses at a time (normal/wide or normal/tele) and that in order to toggle in night mode it works best on cycle and not long press. To switch between lens sets you need to long press on the photo preview.