Magisk Based GCAM Port, AR Sticker Support, Portrait Mode, HEVC Enabled

Search This thread

63c

Senior Member
Aug 26, 2018
86
351
Florida
Essential Phone
OnePlus 6T
I have created a Magisk based DIY GCAM port for our PH-1 Phones.

Prerequisites:
Stock Pie 9.0, works on any of the Oreo 8-8.1 builds as well
Magisk 17.1 or newer (Uses 17000 template)

What it does:

It replaces media_profiles_V1_0.xml in vendor/etc : this allows for hevc, slo-mo
It sets postfsdata magisk policy (gives camera_config permissions, and allows it to switch faster when in recents)

Sets the following lines in props:

persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
ro.vendor.sensors.dev_ori=true
persist.camera.is_type=5
persist.camera.is_mode=5

This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc..Do with it what you wish. I am not responsible for any of your headaches however....

Thanks:
@bsg - the originator
@Arnova8G2 - for being kind enough to port GCAM to better our lives
@invisiblek and the rest of the hood at discord - everything gets done there
@S4turno - hosting and being a good sport
@emowing - selinux fixes in magisk
@xterminater07 - sending logs, and doing some testing
@cstark27 - building a settings-less version of GCAM to make life easier, and good help (it's hard to find)
@ArtZ IMX258 color profile improvement and excellent GCAM mods
@urikill another GCAM mod contributor
@Tolyan009 another GCAM mod contributor
@SKULSHADY another GCAM mod contributor
@TheIronLefty GCAM Jesus Christ Himself

PH1 GCAM MOD

https://www.androidfilehost.com/?fid=1322778262904008891

RECOMMENDED GCAM IS TOLYAN009 (TINEUN) 1.0.11 HIS REPO CAN BE FOUND HERE:

https://www.celsoazevedo.com/files/android/google-camera/dev-tolyan009/

LINK TO GCAM HOSTING (REPO FOR ALL OF THE GCAM VARIANTS)

https://www.celsoazevedo.com/files/android/google-camera/

OLD FILES

https://www.androidfilehost.com/?w=files&flid=255766 (This is the dump for the V15, V16 flavors)

Enjoy Folks :)
 
Last edited by a moderator:

63c

Senior Member
Aug 26, 2018
86
351
Florida
Essential Phone
OnePlus 6T
Instuctions on how to use the PH1_GCAM_MODULE:

Basically, All GCAM ports Mostly, Fully, Sporadically, Sorta, Sometimes, with Caveats, 100% of the time, 60% of the time, more or less...... work with the PH-1. We are lucky to have a phone that doesn't have the headaches of the OP3/5/T, MI5S, and others that need wacky fixes to make GCAM work properly to some degree (This doesn't mean we don't have our own first world problems)

1. Install the latest DIY GCAM Mod from the Post Above.

2. Click on the link in the OP "REPO FOR GCAM VERSIONS" or the link to TOLYAN009 (TINEUN) and pick whatever GCAM you want. it is updated almost daily with new versions, different devs, different features and mods.

2A. If you choose TOLYAN009 (TINEUN) @TheIronLefty aka GCAM JEEZY aka GCAM SUPERBOSS aka KING OF GCAM SETTINGS put together a very nice thread, here: https://xdaforums.com/essential-phone/themes/custom-gcam-settings-using-tolyans-build-t3829476

Let me be honest, i like making things work, im not very skilled in the way of making things pretty, perfect, noise free, etc. He did a lot of legwork testing all sorts of settings to get here. They look pretty nice. Follow his OP for optimized settings (and he is always testing, he may come up with something better, so check back often)

3. Install the APK and go.
 
Last edited by a moderator:

63c

Senior Member
Aug 26, 2018
86
351
Florida
Essential Phone
OnePlus 6T
ARCore, ARStickers, TANGO, and other AR related things

ARCore is a pain, since our phone isnt "technically" supported, but works well otherwise. What is included in the DIY GCAM MOD v1 and the full camera zips is a older beta release, that uses calibration_cad files in order to set up the orientation, etc. So now they are using .textproto files located in /data/data/com.google.ar.core/files/device_profile2_database, and they use the buildid from the buildprop to actively select the right textproto file. So anyways, if you want the latest ARCore, here is how.

1. Install this ARCore https://www.apkmirror.com/apk/googl...se/arcore-1-4-180716096-android-apk-download/ its the latest at this time
2. Install this ARStickers https://www.celsoazevedo.com/files/android/google-camera/ar/f/ARStickers_AllPack_ParseErrorFix.apk this is the latest.
3. Open GCAM and try to open AR Stickers (it will crash and FC, it needs to here, this is what it is supposed to do, its creating the device proto location, and the mata textproto isnt there, yet)
4. Using a file explore/adb/whatever browse to here /data/data/com.google.ar.core/files/device_profile2_database and rename a .textproto of your choice, I am currently using device_profile_taimen_colon_9.textproto . Just change the device codename (in this case taimen, to mata). Feel free to try any one you want.
5. Now open GCAM again, and open AR Stickers, it should give you the 3 permission prompts.

Alternatively, now that we have permatwrp, there are twrp flashable zips that do the majority of the work above, see here.

https://www.celsoazevedo.com/files/android/google-camera/ar/

As a bonus, here is the link to the latest Tango Measure app https://www.apkmirror.com/apk/googl...surements-2-1-180728039-android-apk-download/

Good luck, and thanks to @starcms for method of doing this
 
Last edited by a moderator:

emowing

Senior Member
Nov 3, 2010
79
48
Essential Phone
Here is the selinux fix for you. GCam must be installed in /system/priv-app/

in post-fs-data... replace your setenforce 0 with.. I gave it all permissions but you can trim these down to only the necessary one if you want to test every single permission.

magiskpolicy --live "allow priv_app { camera_prop unlabeled } file { append create write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon audit_access open }"
magiskpolicy --live "allow priv_app { unlabeled qti_debugfs } dir { append create execute write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon rmdir audit_access remove_name add_name reparent execmod search open }"
 

aer0zer0

Recognized Contributor
Here is the selinux fix for you. GCam must be installed in /system/priv-app/

in post-fs-data... replace your setenforce 0 with.. I gave it all permissions but you can trim these down to only the necessary one if you want to test every single permission.

magiskpolicy --live "allow priv_app { camera_prop unlabeled } file { append create write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon audit_access open }"
magiskpolicy --live "allow priv_app { unlabeled qti_debugfs } dir { append create execute write relabelfrom link unlink ioctl getattr setattr read rename lock mounton quotaon rmdir audit_access remove_name add_name reparent execmod search open }"

Everything is moved there, I'll give this a whirl later. Good looks @emowing
 

xterminater07

Senior Member
Dec 4, 2010
1,581
478
download the magisk module (zip file) created by aer0zer0. Open up magisk manager, select modules, click floating +, browse to your downloaded zip, reboot. Make sure you don't have any other gcam by arnova installed. It will not work if you do.

Just figured it out! Thanks :). Similar to exposed. Sounds working now with messenger on the microphone without any additional settings. Great work guys! However, with selinux off, are we at any major security risks?
 

xxvtcxx

Member
Nov 3, 2008
48
7
are the download links working for anyone?

Because the the filename is: "GCAM with AR Stickers, version 3.zip"
the (,) in the filename messes with the URL.

If you click on one of the mirrors it'll give you a broken link like this:

http://qc4.androidfilehost.com/dl/s...0776376/GCAM+with+AR+Stickers,+version+3.zip?

If you delete the '%2C' in the link, the download will start.

corrected link:
http://qc4.androidfilehost.com/dl/s...20776376/GCAM+with+AR+Stickers+version+3.zip?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 97
    I have created a Magisk based DIY GCAM port for our PH-1 Phones.

    Prerequisites:
    Stock Pie 9.0, works on any of the Oreo 8-8.1 builds as well
    Magisk 17.1 or newer (Uses 17000 template)

    What it does:

    It replaces media_profiles_V1_0.xml in vendor/etc : this allows for hevc, slo-mo
    It sets postfsdata magisk policy (gives camera_config permissions, and allows it to switch faster when in recents)

    Sets the following lines in props:

    persist.camera.HAL3.enabled=1
    persist.camera.eis.enable=1
    ro.vendor.sensors.dev_ori=true
    persist.camera.is_type=5
    persist.camera.is_mode=5

    This is a free-for-all zip, meaning i dont care if you modify it, pass it off to other groups, help anybody else, etc..Do with it what you wish. I am not responsible for any of your headaches however....

    Thanks:
    @bsg - the originator
    @Arnova8G2 - for being kind enough to port GCAM to better our lives
    @invisiblek and the rest of the hood at discord - everything gets done there
    @S4turno - hosting and being a good sport
    @emowing - selinux fixes in magisk
    @xterminater07 - sending logs, and doing some testing
    @cstark27 - building a settings-less version of GCAM to make life easier, and good help (it's hard to find)
    @ArtZ IMX258 color profile improvement and excellent GCAM mods
    @urikill another GCAM mod contributor
    @Tolyan009 another GCAM mod contributor
    @SKULSHADY another GCAM mod contributor
    @TheIronLefty GCAM Jesus Christ Himself

    PH1 GCAM MOD

    https://www.androidfilehost.com/?fid=1322778262904008891

    RECOMMENDED GCAM IS TOLYAN009 (TINEUN) 1.0.11 HIS REPO CAN BE FOUND HERE:

    https://www.celsoazevedo.com/files/android/google-camera/dev-tolyan009/

    LINK TO GCAM HOSTING (REPO FOR ALL OF THE GCAM VARIANTS)

    https://www.celsoazevedo.com/files/android/google-camera/

    OLD FILES

    https://www.androidfilehost.com/?w=files&flid=255766 (This is the dump for the V15, V16 flavors)

    Enjoy Folks :)
    29
    Instuctions on how to use the PH1_GCAM_MODULE:

    Basically, All GCAM ports Mostly, Fully, Sporadically, Sorta, Sometimes, with Caveats, 100% of the time, 60% of the time, more or less...... work with the PH-1. We are lucky to have a phone that doesn't have the headaches of the OP3/5/T, MI5S, and others that need wacky fixes to make GCAM work properly to some degree (This doesn't mean we don't have our own first world problems)

    1. Install the latest DIY GCAM Mod from the Post Above.

    2. Click on the link in the OP "REPO FOR GCAM VERSIONS" or the link to TOLYAN009 (TINEUN) and pick whatever GCAM you want. it is updated almost daily with new versions, different devs, different features and mods.

    2A. If you choose TOLYAN009 (TINEUN) @TheIronLefty aka GCAM JEEZY aka GCAM SUPERBOSS aka KING OF GCAM SETTINGS put together a very nice thread, here: https://xdaforums.com/essential-phone/themes/custom-gcam-settings-using-tolyans-build-t3829476

    Let me be honest, i like making things work, im not very skilled in the way of making things pretty, perfect, noise free, etc. He did a lot of legwork testing all sorts of settings to get here. They look pretty nice. Follow his OP for optimized settings (and he is always testing, he may come up with something better, so check back often)

    3. Install the APK and go.
    28
    ARCore, ARStickers, TANGO, and other AR related things

    ARCore is a pain, since our phone isnt "technically" supported, but works well otherwise. What is included in the DIY GCAM MOD v1 and the full camera zips is a older beta release, that uses calibration_cad files in order to set up the orientation, etc. So now they are using .textproto files located in /data/data/com.google.ar.core/files/device_profile2_database, and they use the buildid from the buildprop to actively select the right textproto file. So anyways, if you want the latest ARCore, here is how.

    1. Install this ARCore https://www.apkmirror.com/apk/googl...se/arcore-1-4-180716096-android-apk-download/ its the latest at this time
    2. Install this ARStickers https://www.celsoazevedo.com/files/android/google-camera/ar/f/ARStickers_AllPack_ParseErrorFix.apk this is the latest.
    3. Open GCAM and try to open AR Stickers (it will crash and FC, it needs to here, this is what it is supposed to do, its creating the device proto location, and the mata textproto isnt there, yet)
    4. Using a file explore/adb/whatever browse to here /data/data/com.google.ar.core/files/device_profile2_database and rename a .textproto of your choice, I am currently using device_profile_taimen_colon_9.textproto . Just change the device codename (in this case taimen, to mata). Feel free to try any one you want.
    5. Now open GCAM again, and open AR Stickers, it should give you the 3 permission prompts.

    Alternatively, now that we have permatwrp, there are twrp flashable zips that do the majority of the work above, see here.

    https://www.celsoazevedo.com/files/android/google-camera/ar/

    As a bonus, here is the link to the latest Tango Measure app https://www.apkmirror.com/apk/googl...surements-2-1-180728039-android-apk-download/

    Good luck, and thanks to @starcms for method of doing this
    9
    Anyone knows how to enable pixel3 camera night sight mode?

    plz mk gcam jio volte wen mediatek nigtsigt magsk brofam requst l33t hax0r wen?

    Lol, no one has it yet that isn't pixel family or @Arnova8G2 it'll get here when it gets here.
    8
    So me and @aer0zer0 were talking about how good the ArtZ gcam was, so aerozero took on himself to find the black level settings and he did, so after we tweaked it around, me mostly screwing around with noise settings, we came up with this config using Arthurs latest gcam https://www.celsoazevedo.com/files/android/google-camera/f/changelog197/

    I moved these kind of post to a new thread so i dont spam this magisk thread up
    https://xdaforums.com/essential-phone/themes/custom-gcam-settings-using-tolyans-build-t3829476


    1. Saturation adjustment -> Highlight Saturation = 1.2, Shadow Saturation = 2.0
      2: Advanced settings -> Main Camera -> Base model = Pixel II XL
      3: Tuning back cam -> Tuning master switch, Apply custom sensor noise model and Apply custom denoise params = on
      4: Manual fixed black level offset: -> Enable

      Crimson,Neutral,BrightGreen = 63.60

      DarkGreen,Neutral,Red = 64.00

      DarkGreen,Neutral,Red = 63.80

      Blue,Neutral,Yellow = 64.10

      5: Back to Main camera -> HDR+ denoise multiplier back = 120% (you can change this as you desire, since increasing this makes the photo smoother but less sharp.)
      6: Back to Advanced settings -> Front camera -> Base model = Pixel II XL
      6: Manual fixed black level offset = 64.00
      7: Back to Advanced settings -> HDR+ Control = On
      8: Advanced setting HDR+ -> HDR+ parameters = 8 burst
      Hexagon DSP = Auto
      Final jpg quality HDR+ = 100%
      9: Back to Settings -> NonZSL HDR+ underexposure multiplier = 125%
    p.s. dont use HDR+ Enhanced
    Samples:
    https://imgur.com/a/zxTq7RD
    https://imgur.com/a/gqTCFjA
    https://imgur.com/a/Sezf6yN

    Edit August 9th

    New noise managment settings thanks to reddit user /u/killergram33

    • Tuning master switch = ON
    • Apply custom sensor noise model = ON
    • Custom sensor noise offset a = 750 (Pixel2XL)
    • Custom sensor noise offset b = 22500 (Pixel2XL)
    • Custom sensor noise scale a = 2117875
    • Custom sensor noise scale b = 113625
    • Apply custom denoise params = (ON)
    • Custom luma denoise low light = 1.6
    • Custom luma denoise medium light = 1
    • Custom luma denoise good light = 0.25
    • Custom chroma denoise low light = 30
    • Custom chroma denoise medium light = 5
    • Custom chroma denoise good light = 2.55
    • Custom denoise revert factor low light = 1.55
    • Custom denoise revert factor medium light = 0.75
    • Custom denoise revert factor good light = 0.25



    also this is my experience with tweaking black levels.
    uQyaXXo.jpg