[Module] Camera2API enabler

Search This thread

Bung_dho

Senior Member
Like this?

b851127f47346e44389b75caa53d936b.jpg

i think u forgot type "su" first cause its need root acces, am i wrong?
 

ashkanr65

Member
Feb 19, 2013
5
0
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

Does it work on UMIDIGI F1 (Mediatek p60 dual camera)?
 

VivaAndroid

Member
Jun 9, 2019
13
2
HELP HELP HELP ME PLS! My LeEco Le Pro 3 Elite now don't boot!

Hello guys,
my phone don't boot anymore after the mood i made.. somebody can help me pls ?? I can't lose my data because i have very important photos i didn t backuped yet :(
I try to explain what i did:

- Opened Magisk Manager from my app (now i noticed that it was not the v15 but probably it was something like 5 or smth like that)
- downloaded the zip file C2API+GcamSlowmo_enabler_v1500.zip on my computer and sent it on my Telegram
- saved on my phone from my messages on Telegram
- started Magisk Manager and opened the Modules Menu and added the file C2API+GcamSlowmo_enabler_v1500.zip from my download folder of phone
- rebooted

after reboot my phone never stop to show me the "EUI" screen like loading and changing colors of logo.. i can only shutdown my phone holding so long the power button (first time it restart automaticaly and if i keep power button, then wen it s restarting it turn off).

Pls i hope that somebody can help me!!
Sorry for my english not perfect but i m from Italy and ofc my phone was in Italian language and already modded with GizROM 1.0 (26s) per LeEco Le Pro 3 Elitè X722 - https:// forum.gizchina.it/index.php?/topic/1432-gizrom-10-26s-per-leeco-le-pro-3-elit%C3%A8-x722/

Thank you very very much !
 

VivaAndroid

Member
Jun 9, 2019
13
2
Just because it happened to you, doesn't mean it'll happen to everyone...

Besides, getting out of a Magisk module bootloop is usually quite easy:
didgeridoohan.com/magisk/Magisk#hn_Module_causing_issues_Magisk_functionality_bootloop_loss_of_root_etc

It happened to me also :'( and i don't know how to solve it.. please read my previews post and help me pls!
 
Last edited:

VivaAndroid

Member
Jun 9, 2019
13
2
Just because it happened to you, doesn't mean it'll happen to everyone...

Besides, getting out of a Magisk module bootloop is usually quite easy:
didgeridoohan.com/magisk/Magisk#hn_Module_causing_issues_Magisk_functionality_bootloop_loss_of_root_etc

Most things you can try are described in the link from the post you quoted. Try that...

i just checkd and on my phone the folder "modules" under /data/adb/ doesn't exist.. maybe it's because when i started the procedure of installation of google camera i opened Magisk and it suggested to me an update and i did it and restart magisk then it alerted another update and i did it and restarted Magisk.. after this Magisk alerted me that that version of Magisk was not compatible and it need v17 or something like that.. then i back on App Manager and unistalled Magisk and manually installed a preview version apk from my phone backup..
could be this one the problem ?
these are the links of my screen photos.. (i can t post direct link then i will split the links sorry..
https: // ibb.co/rxZ9FTz
https: // ibb.co/fS5TQvG
https: // ibb.co/y8Kpv1M
https: // ibb.co/k3hZzgH
 
Last edited:

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,822
Gone
Google Nexus 4
Nexus 6
i just checkd and on my phone the folder "modules" under /data/adb/ doesn't exist.. maybe it's because when i started the procedure of installation of google camera i opened Magisk and it suggested to me an update and i did it and restart magisk then it alerted another update and i did it and restarted Magisk.. after this Magisk alerted me that that version of Magisk was not compatible and it need v17 or something like that.. then i back on App Manager and unistalled Magisk and manually installed a preview version apk from my phone backup..
could be this one the problem ?
these are the links of my screen photos.. (i can t post direct link then i will split the links sorry..
https: // ibb.co/rxZ9FTz
https: // ibb.co/fS5TQvG
https: // ibb.co/y8Kpv1M
https: // ibb.co/k3hZzgH

You're on an old Magisk version... Just delete the magisk.img file in /data/adb. That will remove all installed modules.
 

VivaAndroid

Member
Jun 9, 2019
13
2
You're on an old Magisk version... Just delete the magisk.img file in /data/adb. That will remove all installed modules.

Thank you very very very much Didgeridoohan, you saved me ! It's working again !
I'm offering you a coffie on your paypal.. thank you again !

What do you advice me now to install google camera? Can you explain me step by step the most safe way to install it pls? Have me to install a new version of Magisk? How can i do it?

---------- Post added at 06:57 PM ---------- Previous post was at 06:31 PM ----------

Thank you very very very much Didgeridoohan, you saved me ! It's working again !
I'm offering you a coffie on your paypal.. thank you again !

What do you advice me now to install google camera? Can you explain me step by step the most safe way to install it pls? Have me to install a new version of Magisk? How can i do it?

I remember you that i have a LeEco Le Pro3 Elite with GizChina Rom ;)
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,822
Gone
Google Nexus 4
Nexus 6
Thank you very very very much Didgeridoohan, you saved me ! It's working again !
I'm offering you a coffie on your paypal.. thank you again !

What do you advice me now to install google camera? Can you explain me step by step the most safe way to install it pls? Have me to install a new version of Magisk? How can i do it?

---------- Post added at 06:57 PM ---------- Previous post was at 06:31 PM ----------



I remember you that i have a LeEco Le Pro3 Elite with GizChina Rom ;)

I'm very glad you got things running again, and that was very generous of you. Thank you.

If you can update to a current version of Magisk you could try the Pix3lify module (available in the Manager Downloads). It can, among other things, enable the Camera2API. Since you have an old Magisk install you can probably not do a direct update through the Manager. Instead you can download the Magisk zip of your choice from here and install that manually, either from the Manager's Modules section (the "+" button) or through TWRP.

If you encounter issues you have lots of information in my troubleshooting guide:
https://www.didgeridoohan.com/magisk

There's of course also lots of help to find in the general support thread:
https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382

And last but not least, your device's forum. There you'll find the people who know your specific device best:
https://forum.xda-developers.com/le-pro3
 

VivaAndroid

Member
Jun 9, 2019
13
2
I'm very glad you got things running again, and that was very generous of you. Thank you.

If you can update to a current version of Magisk you could try the Pix3lify module (available in the Manager Downloads). It can, among other things, enable the Camera2API. Since you have an old Magisk install you can probably not do a direct update through the Manager. Instead you can download the Magisk zip of your choice from here and install that manually, either from the Manager's Modules section (the "+" button) or through TWRP.

If you encounter issues you have lots of information in my troubleshooting guide:
https://www.didgeridoohan.com/magisk

There's of course also lots of help to find in the general support thread:
https://forum.xda-developers.com/apps/magisk/mod-magisk-v1-universal-systemless-t3432382

And last but not least, your device's forum. There you'll find the people who know your specific device best:
https://forum.xda-developers.com/le-pro3

i downloaded the Magisk v19.3 but i noticed that it's a zip file and not an apk installer.. then how can I install it manually ? and is it better if i unistall the Magisk ver. 5.8.2 i already installed on my phone? is it better to delete cache and data before to unistall it?

Thank you very much for your help!
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,822
Gone
Google Nexus 4
Nexus 6
i downloaded the Magisk v19.3 but i noticed that it's a zip file and not an apk installer.. then how can I install it manually ? and is it better if i unistall the Magisk ver. 5.8.2 i already installed on my phone? is it better to delete cache and data before to unistall it?

Thank you very much for your help!

Don't get the Manager confused with Magisk itself. The zip version number, v19.3, is for the Magisk version. The corresponding Manager version is 7.2.0 (and you are currently on Manager v5.8.2, which should be corresponding to Magisk v16.6-ish).

The Manager is just a front-end for superuser access and installing modules. The apk for it is included in the zip... You shouldn't have to uninstall anything, just open the Manager, go to Modules, click the "+" button and select the zip. Or flash the zip in TWRP.

Edit: and make sure to have backups of your data before you move forward...
 

VivaAndroid

Member
Jun 9, 2019
13
2
Don't get the Manager confused with Magisk itself. The zip version number, v19.3, is for the Magisk version. The corresponding Manager version is 7.2.0 (and you are currently on Manager v5.8.2, which should be corresponding to Magisk v16.6-ish).

The Manager is just a front-end for superuser access and installing modules. The apk for it is included in the zip... You shouldn't have to uninstall anything, just open the Manager, go to Modules, click the "+" button and select the zip. Or flash the zip in TWRP.

Edit: and make sure to have backups of your data before you move forward...

Thank you I will try it again this week end because i can't risk to be without phone at work :D
for "Or flash the zip in TWRP" are you meaning that i can install Magisk by recovery mode on TWRP install button ? If it s like that it seems easy and maybe more easy.. but i m still a bit afraid to ruin again my phone :)
 
  • Like
Reactions: [email protected]

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,822
Gone
Google Nexus 4
Nexus 6
for "Or flash the zip in TWRP" are you meaning that i can install Magisk by recovery mode on TWRP install button ? If it s like that it seems easy and maybe more easy.. but i m still a bit afraid to ruin again my phone :)

Yes you can and in your case it might be easiest (at the moment). Just make sure to also have the Magisk uninstaller and an old, known working Magisk zip on your device. That way you can easily get out of any trouble that might follow.
 
  • Like
Reactions: [email protected]

mcichy10

Member
Dec 24, 2015
28
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".
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

I installed "v1500 template for C2API+slowmo+" using Magisk Module installer and now my smarthphone doesnt boot. I can see loading screen but nothing more happen. What to do? uninstalling mod via TWRP using this: https://forum.xda-developers.com/showpost.php?p=72542167&postcount=242 dont work for me. I dont want to install whole android again :/
 

Top Liked Posts

  • There are no posts matching your filters.
  • 121
    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.