[Module] Camera2API enabler

Search This thread

otaconremo

Senior Member
Sep 20, 2014
289
214
Since Google Camera with HDR+ was ported already, it requires that camera2api to be enabled.
This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1".
Note:
This mod only adds camera2api support in the build.prop systemlessly. This does not guarantee modded google camera hdr+ will work on your device.

Axon 7 Users:
Here's a working GCAM that works on my device. However, I don't see any difference with my stock cam hdr. I just use this for slowmo, panorama, photosphere and lens blur effects.
MGCB_7.0H_C2API_Mid_v.3.6_AllinOne_Full_Manual.apk


Requirements:
Android 5.0 & up
Magisk v15
~2014+ Snapdragon SoCs

Instruction:
Add the zip in Magisk Manager -> Modules and reboot.
Or you could also flash it in your custom recovery, TWRP etc.

How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".
If it's running, you should be able to find a line "persist.camera.HAL3.enabled=1". Check attached screenshot for example.
Or
2. Install Camera2 Probe from playstore to check your device's camera capabilities.

UPDATES:
9-15-17:
-added v1400 template
-added camera2api with slowmo fix for Axon 7 users. (I can't guarantee slowmo on other models will work since I used my device's media_profiles.xml file.)

01-25-18
-updated to v1500 template for C2API - Download this file if you only want the HAL3 enabled.
-updated to v1500 template for C2API+slowmo+ (credits to @j1505243)

:D :D :D

Credits:
- BSG (4pda)
- @j1505243
 

Attachments

  • Screenshot_2017-08-15-13-10-00.jpg
    Screenshot_2017-08-15-13-10-00.jpg
    258.1 KB · Views: 130,078
  • C2API_enabler_v1500.zip
    7.8 KB · Views: 422,902
  • C2API+GcamSlowmo_enabler_v1500.zip
    11 KB · Views: 334,451
Last edited:

youwi

Member
Apr 4, 2016
13
1
Unfortunately it did not activate manuals comtrole on my p8lite with Los 13
 

lywyn

Senior Member
Jul 19, 2010
439
202
How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".

If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"

I have a G5 which supports it and if I try the command above it does not show the "persist.camera.HAL3.enabled" property. So can we assume that property is specifically to indicate the magisk module is working?

I used this app to check if it was supported already Camea 2 Probe on the play store.
 

meetpal

Member
Aug 10, 2010
11
2
Since Google Camera with HDR+ was ported already, it requires that camera2api to be enabled.
This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1".

Requirements:
Magisk v13


Instruction:
Add the zip in Magisk Manager -> Modules and reboot.
Or you could also flash it in your custom recovery, TWRP etc.

How to check if it is running:
1. Open terminal and issue command "getprop | grep camera".

If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"

:D :D :D

Flashed it on my Lenovo Zuk Z2
Snapdragon 820.
Unfortunately didn't work.:rolleyes:
Got really excited for it.
Am i missing anything?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 122
    Since Google Camera with HDR+ was ported already, it requires that camera2api to be enabled.
    This is done by editing build.prop to add or enable "persist.camera.HAL3.enabled=1".
    Note:
    This mod only adds camera2api support in the build.prop systemlessly. This does not guarantee modded google camera hdr+ will work on your device.

    Axon 7 Users:
    Here's a working GCAM that works on my device. However, I don't see any difference with my stock cam hdr. I just use this for slowmo, panorama, photosphere and lens blur effects.
    MGCB_7.0H_C2API_Mid_v.3.6_AllinOne_Full_Manual.apk


    Requirements:
    Android 5.0 & up
    Magisk v15
    ~2014+ Snapdragon SoCs

    Instruction:
    Add the zip in Magisk Manager -> Modules and reboot.
    Or you could also flash it in your custom recovery, TWRP etc.

    How to check if it is running:
    1. Open terminal and issue command "getprop | grep camera".
    If it's running, you should be able to find a line "persist.camera.HAL3.enabled=1". Check attached screenshot for example.
    Or
    2. Install Camera2 Probe from playstore to check your device's camera capabilities.

    UPDATES:
    9-15-17:
    -added v1400 template
    -added camera2api with slowmo fix for Axon 7 users. (I can't guarantee slowmo on other models will work since I used my device's media_profiles.xml file.)

    01-25-18
    -updated to v1500 template for C2API - Download this file if you only want the HAL3 enabled.
    -updated to v1500 template for C2API+slowmo+ (credits to @j1505243)

    :D :D :D

    Credits:
    - BSG (4pda)
    - @j1505243
    5
    Noob question: how do I check in terminal if it's already enabled because in rom included?

    How to check if it is running:
    1. Open terminal and issue command "getprop | grep camera".

    If it's running, you should be able to find a line "persist.camera.HAL3.enabled 1"
    4
    Not working on lenovo zuk z2..... Snapdragon 820
    3
    Another reason is so that you don't have to edit the actual build.prop file. Magisk is all about systemless system mods after all...

    Edit: Wait a minute... I just looked at the module zip. Why is it so complicated? Why not just use the Magisk built-in resetprop tool through the module system.prop to set the desired prop value?

    Edit 2: @otaconremo You've just taken an old Universal SafetyNet fix module and used that instead of the normal template, haven't you?

    Thanks for pointing that out. I added a comment on the front page news article and quoted you. XDA staff should not be posting random mods on the front page unless they have checked it out and understand what it does.

    EDIT: Hold on, [my comment] is waiting to be approved by XDA-Developers. I used HTML.

    @otaconremo No offense to you intended. I learned how to make Magisk modules the same way: Take it apart to see how it works. Start with the Magisk module template instead. ;)

    Thanks for finding something to contribute. Let me know when you get the module sorted and I'll add it to my Collection of Magisk Modules v2 thread.