How will I be able to activate Camera 2 API? - Xiaomi Mi 4i

I am on ACIP rom.........Android version 7.1.2. Changing the build.prop file or installing magisk modules isn't helping.. I want to click raw images from my mi4i camera.

you dont give details

Related

[Discussion] What magisk modules you have in oreo?

I am using:
1. Adaway after enabling systemless in magisk settings
2. Greenify4magisk - helpful in hibernating notification hungry and backgroung running application
Both safetynetcheck are green.
Cant find SELinux permissive module. Can someone help? Also what other modules are you using?
Aj.GaLaxY aCE said:
I am using:
1. Adaway after enabling systemless in magisk settings
2. Greenify4magisk - helpful in hibernating notification hungry and backgroung running application
Both safetynetcheck are green.
Cant find SELinux permissive module. Can someone help? Also what other modules are you using?
Click to expand...
Click to collapse
For SELinux changes you could use for example this app, very simple and you can quickly toggle it (for example to test if permissive still needed after next system update).
I used to use Greenify4magisk, but in fact it works completely fine even without it. In Oreo it might not be needed at all, system has quite good doze mode, I am getting below 0.2% of idle battery usage (vs. 0.5% on Nougat).
The only module which I use is the one which I made for myself (enable EIS, C2API, fix video recording sound, add more volume steps)
Gcam freezes
_mysiak_ said:
For SELinux changes you could use for example this app, very simple and you can quickly toggle it (for example to test if permissive still needed after next system update).
I used to use Greenify4magisk, but in fact it works completely fine even without it. In Oreo it might not be needed at all, system has quite good doze mode, I am getting below 0.2% of idle battery usage (vs. 0.5% on Nougat).
The only module which I use is the one which I made for myself (enable EIS, C2API, fix video recording sound, add more volume steps)
Click to expand...
Click to collapse
Could you share that module, please? I added persist.camera.HAL3,enabled=1 to the build prop but the GCAM take a long time to open and even my stock camera. I don´t know what I am making wrong.
paqr28 said:
Could you share that module, please? I added persist.camera.HAL3,enabled=1 to the build prop but the GCAM take a long time to open and even my stock camera. I don´t know what I am making wrong.
Click to expand...
Click to collapse
You're doing it right, but there is a bug in Oreo, at the moment there is only one known workaround - set SELinux to permissive mode (for example with this or any other app/method). Gcam and stock camera will start fast in permissive mode.
Slow motion GCAM
_mysiak_ said:
You're doing it right, but there is a bug in Oreo, at the moment there is only one known workaround - set SELinux to permissive mode (for example with this or any other app/method). Gcam and stock camera will start fast in permissive mode.
Click to expand...
Click to collapse
Thank you, It finally works with SELinux to permissive, Did the Slow motion in gcam works for you? That is the only thing that doesn´t work for me.
paqr28 said:
Thank you, It finally works with SELinux to permissive, Did the Slow motion in gcam works for you? That is the only thing that doesn´t work for me.
Click to expand...
Click to collapse
Slow motion requires different media profile files, but when you replace them, stock camera will crash with slow mo mode.. As I never use this mode and I prefer fully working stock camera, I just let it be..
_mysiak_ said:
For SELinux changes you could use for example this app, very simple and you can quickly toggle it (for example to test if permissive still needed after next system update).
I used to use Greenify4magisk, but in fact it works completely fine even without it. In Oreo it might not be needed at all, system has quite good doze mode, I am getting below 0.2% of idle battery usage (vs. 0.5% on Nougat).
The only module which I use is the one which I made for myself (enable EIS, C2API, fix video recording sound, add more volume steps)
Click to expand...
Click to collapse
Couldyou please share your module? It works on oreo?
IronJacob said:
Couldyou please share your module? It works on oreo?
Click to expand...
Click to collapse
Please find the module attached, it works for me on Oreo, no guarantees though
It adds these build.prop values:
Code:
persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
ro.qc.sdk.audio.fluencetype=fluencepro
ro.config.vc_call_vol_steps=14
ro.config.media_vol_steps=30
audio.safemedia.bypass=true
_mysiak_ said:
Please find the module attached, it works for me on Oreo, no guarantees though
It adds these build.prop values:
Click to expand...
Click to collapse
Thank you very much
_mysiak_ said:
For SELinux changes you could use for example this app, very simple and you can quickly toggle it (for example to test if permissive still needed after next system update).
I used to use Greenify4magisk, but in fact it works completely fine even without it. In Oreo it might not be needed at all, system has quite good doze mode, I am getting below 0.2% of idle battery usage (vs. 0.5% on Nougat).
The only module which I use is the one which I made for myself (enable EIS, C2API, fix video recording sound, add more volume steps)
Click to expand...
Click to collapse
Fix video recording sounds? Is it bad?
_mysiak_ said:
Please find the module attached, it works for me on Oreo, no guarantees though
It adds these build.prop values:
Code:
persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
ro.qc.sdk.audio.fluencetype=fluencepro
ro.config.vc_call_vol_steps=14
ro.config.media_vol_steps=30
audio.safemedia.bypass=true
Click to expand...
Click to collapse
thank you man! to add or edit stuff in your module i can simply edit the system.prop file in your mod?
Also , i see you use "ro.qc.sdk.audio.fluencetype=fluencepro" while oher mod use "ro.vendor.audio.sdk.fluencetype=fluencepro", both valua are correct or other mod mistake this value?
riccetto80 said:
thank you man! to add or edit stuff in your module i can simply edit the system.prop file in your mod?
Also , i see you use "ro.qc.sdk.audio.fluencetype=fluencepro" while oher mod use "ro.vendor.audio.sdk.fluencetype=fluencepro", both valua are correct or other mod mistake this value?
Click to expand...
Click to collapse
Yes, you can edit system.prop to modify the values and reinstall the module to apply them. I used to be able to modify system.prop of already installed module in /magisk/module_name/system.prop file directly, but it stopped working for me - file doesn't get saved (not sure if related to Oreo).
"ro.qc.sdk.audio.fluencetype=fluencepro" was required in Nougat. In Oreo, the default value is indeed "ro.vendor.audio.sdk.fluencetype=none". However audio recording is fine as far as I can tell, so it either has been fixed by Xiaomi or "ro.qc.sdk.audio.fluencetype=fluencepro" is still working. Will check when I have more time for testing
Edit:I can't hear any difference between stock "ro.vendor.audio.sdk.fluencetype=none"; "ro.vendor.audio.sdk.fluencetype=fluencepro" and "ro.qc.sdk.audio.fluencetype=fluencepro". My guess would be that it has been fixed by Xiaomi in the January(?) Oreo update. Can anyone else confirm?
A question - if I have the EIS and HAL3 already activated as I have the Gcam previously installed I don't need to deactivate them in your module? Just install the module? What I want is the voice recorder. Or, shall I put to zero ("0") these values: persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
laotzy said:
A question - if I have the EIS and HAL3 already activated as I have the Gcam previously installed I don't need to deactivate them in your module? Just install the module? What I want is the voice recorder. Or, shall I put to zero ("0") these values: persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
Click to expand...
Click to collapse
You can keep them (Magisk merges build.prop changes from all modules), remove repeating lines or add comment sign "#" at the beginning of the line which you want to skip. The easiest way is to use module as it is, it should work without any issues..
Hello guys, anyone tried the Systemless Xposed for Oreo?
spithash said:
Hello guys, anyone tried the Systemless Xposed for Oreo?
Click to expand...
Click to collapse
Yes, many of us. It's working fine, but will break Safetynet.
These modules help me a lot everyday.
joeyhuab said:
These modules help me a lot everyday.
Click to expand...
Click to collapse
Pls Give link of Andromeda Enabler and all modules related with nav bar
sauru.660 said:
Pls Give link of Andromeda Enabler and all modules related with nav bar
Click to expand...
Click to collapse
Andromeda enabler: https://drive.google.com/open?id=1SwIza1UYLQrn0c6b0gS9zEV7p48YefKh
Soft keys only: https://drive.google.com/open?id=1kOrqcZRki8ZhEeGy8_AC515uXq6qjBkr
Navbar: https://drive.google.com/open?id=1mv1XkT_ElubR-hBUpXC2cmF7mYbplEXs
Enjoy.
joeyhuab said:
These modules help me a lot everyday.
Click to expand...
Click to collapse
Are you on Oreo or Nougat? If on Oreo, have you installed the latest update?

any rom which comes with camera2api pre-enabled in it ??

i need a rom which is having camera2api pre-enabled in it ??
Aosp extended AEX Rom
Masik Miui Rom
Pixel Experience and Lineage os
Manav10799 said:
Pixel Experience and Lineage os
Click to expand...
Click to collapse
This comes as a surprise to me, as I had to manually enable camera2 two days prior in lineageos on whyred.
Anyway, OP, what is the problem with enabling it yourself via twrp? (mount system, open terminal in twrp > advanced then echo the one required line into the build.prop)
MSM Extended
https://forum.xda-developers.com/redmi-note-5-pro/development/stable-msm-xtended-x9-t3819822
v0id_walker said:
This comes as a surprise to me, as I had to manually enable camera2 two days prior in lineageos on whyred.
Anyway, OP, what is the problem with enabling it yourself via twrp? (mount system, open terminal in twrp > advanced then echo the one required line into the build.prop)
Click to expand...
Click to collapse
Or simply editing the build.prop in the system/ folder: "persist.camera.HAL3.enabled=1"
Sure you need to root the device but who doesn't in case you have already flashed a custom rom: hiding root from certain apps is not the problem (except Pokemon GO fair enough)
A R said:
i need a rom which is having camera2api pre-enabled in it ??
Click to expand...
Click to collapse
Masik
v0id_walker said:
This comes as a surprise to me, as I had to manually enable camera2 two days prior in lineageos on whyred.
Anyway, OP, what is the problem with enabling it yourself via twrp? (mount system, open terminal in twrp > advanced then echo the one required line into the build.prop)
Click to expand...
Click to collapse
yes i agree i also manually enabled camera2api on Los15.1 but it broke my front camera video calling feature in all the apps. So if anybody have any solution to this please do share here.
Surik4t4 said:
MSM Extended
https://forum.xda-developers.com/redmi-note-5-pro/development/stable-msm-xtended-x9-t3819822
Click to expand...
Click to collapse
they have just provided the option to enable or disable it from settings but what about the video calling feature which gets broken after enabling it ?? did anybody tested on any rom with enabling camera2api ???
A R said:
yes i agree i also manually enabled camera2api on Los15.1 but it broke my front camera video calling feature in all the apps. So if anybody have any solution to this please do share here.
Click to expand...
Click to collapse
There's magisk module called camera2_api+WhatsApp.zip that enable camera 2 api without conflict with any other app (in this case video calling on WhatsApp), i get it somewhere on di xda but not test it yet, i'll report back tomorrow
Bad english, sorry
Some advice: do not choose ROM just because camera2 API enabled. Enabling camera2 API is very easy. Choose ROM according to your needs and preferences first, then worry about camera2 API.
A R said:
they have just provided the option to enable or disable it from settings but what about the video calling feature which gets broken after enabling it ?? did anybody tested on any rom with enabling camera2api ???
Click to expand...
Click to collapse
Whatsapp video calling works perfectly well on Msm Xtented no issues here and in the latest build also comes with A2 ported cam

GCam with HDR+ working

Hi everyone, as our mi pad has the OV13855 sensor like some Mido (RN4) versions I simply installed the suggested apk from mido thread and I managed to have hdr+ working using Pixel 2 XL settings in the apk. You are free to try other combination anyway.
Here's the link from 'official' page: Download
I have it working on 25/12 Mokee, don't know if it works in Miui or other Pie roms.
sacca25 said:
Hi everyone, as our mi pad has the OV13855 sensor like some Mido (RN4) versions I simply installed the suggested apk from mido thread and I managed to have hdr+ working using Pixel 2 XL settings in the apk. You are free to try other combination anyway.
Here's the link from 'official' page: Download
I have it working on 25/12 Mokee, don't know if it works in Miui or other Pie roms.
Click to expand...
Click to collapse
I'm on Xiaomi.eu's MIUI10 8.12.13 Rom, and app crashes on launch. My suspicions is because MIUI10 does not support/enable Camera2 api. I should be rooted, so I'm gonna try tinkering with the build.prop to get it enabled and report back.
Havoc Os 2.0 build 28-12-2018 crashes
Works on my los 16.
@pan_droid
Try add in /vendor build.prop line :
Code:
persist.camera.HAL3.enabled=1
and use this one: https://androidfilehost.com/?fid=11410932744536985628
Andro_Nicus said:
@pan_droid
Try add in /vendor build.prop line :
Code:
persist.camera.HAL3.enabled=1
and use this one: https://androidfilehost.com/?fid=11410932744536985628
Click to expand...
Click to collapse
I flashed official build of Havoc Os 2.0 31-12-2018, enable camera2 api and camera work normal.
Andro_Nicus said:
@pan_droid
Try add in /vendor build.prop line :
Code:
persist.camera.HAL3.enabled=1
and use this one: https://androidfilehost.com/?fid=11410932744536985628
Click to expand...
Click to collapse
Thanks!
Confirming this also works on xiaomi.EU 9.1.3 weekly.
Enabling camera2api via build. Prop does break the stock miui cam though, it'll crash when launched.
Not that that's a big loss...
Hello,
I have the latest version of xiaomi.eu installed on my mipad 4, is this compatible with it?
Yes
on latest xiaomi.eu I can't get it to work. With magisk 19.2, I can't directly edit the /vendor build.prop (although I give root permission), so I tried systemless with MagiskHide props config module. I supposedly add persist.camera.HAL3.enabled=1 but nothing happens... gcam doesn't work and stock cam continues to work ok. does anyone know what am I doing wrong?
vogiasf said:
on latest xiaomi.eu I can't get it to work. With magisk 19.2, I can't directly edit the /vendor build.prop (although I give root permission), so I tried systemless with MagiskHide props config module. I supposedly add persist.camera.HAL3.enabled=1 but nothing happens... gcam doesn't work and stock cam continues to work ok. does anyone know what am I doing wrong?
Click to expand...
Click to collapse
1. You can edit system build.prop or vendor build.prop, not both.
1a. Copy build.prop to any folder, edit, save.
2. Reboot to twrp, mount system or vendor.
2a. Twrp, advanced, file manager. Rename original build.prop to build.prop.bak, copy edited into system or vendor.
3. Reboot.
dzidexx said:
1. You can edit system build.prop or vendor build.prop, not both.
1a. Copy build.prop to any folder, edit, save.
2. Reboot to twrp, mount system or vendor.
2a. Twrp, advanced, file manager. Rename original build.prop to build.prop.bak, copy edited into system or vendor.
3. Reboot.
Click to expand...
Click to collapse
Thanks! I tried with vendor and it worked! if anyone else tries dont forget to chmod 644 otherwise stuck on boot
its working on my Mi Pad 4 Plus Lte with SuperiorOS. no build.prop editing is required. Thank you.
There is a much simpler method without involving editing any build.prop. Requires magisk. Connect the pad to PC with usb debugging enabled. Type:
adb shell
su
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enabled 1
by order on PC. Check your tab and accept anything pop up. Reboot and it's good to go.
Works great on the latest Havoc Rom, rooted with Magisk. It also has video stabilization at 1080p! this is awesome! thank you!
I'm in pixel experience rom, and didn't work, I don't know what to do. I am not an expert.
Jagoflo said:
I'm in pixel experience rom, and didn't work, I don't know what to do. I am not an expert.
Click to expand...
Click to collapse
Works fine here, Pixel Experience Plus with Mi Pad 4 no build.prop editing required.
FYI, Urnyx's Gcam 7.3, including night mode, works out-of-the-box on Carbon ROM Pax (Android 10).

Problem Fixed: Failed to enabled camera2api in "build.prop" file.

for those who facing problems to enable CAMERA2API. Edit build prop still unsuccessful. please try this way. it works for me.
Go to the Magisk Manager
Please disable all magical modules. No need to delete.
Reboot phone.
Then edit build.prop file to enable camera2api.
Save and reboot phones.
Review the build prop, whether previous edits were still saved. If stored, it means you've succeeded.
Test with Camera Probe app. InshaAllah u will get Level 3.
Run gcam. You can use Gcam as desired.
Go to Magisk Manager
Re Enable all the magisk that u disable before.
Reboot phone.
You explained like ****ttt
jorgeepelos said:
You explained like ****ttt
Click to expand...
Click to collapse
Help
Brother,
I am using MiMax 3 chinese rom.
Can you please give a step by step guide how to enable camera2api?
This didnt work, My ROM has nothing to do with the camera 2 api, no app to manage the api, no script until i added it & it didnt understand it (nothing nowhere)

Camera2Api Not on Pie

Hi everyone, I have a Zenfone 5 Lite which was recently updated to Android 9, as I had already researched, from that version onwards, the devices would not need to root or otherwise to activate the Camera2Api function, it would come by default in system.
But that's not what happened, updating my device and did not have this function by default, so I rooted, installed the magisk and Tweak Pix3lfly that activates camera2api, but it did not work, so I tried fastboot, also could not and even the .zip file from magisk's own "camera2api enabler" and it didn't work either. I was wondering if there is any other way to enable HAL3 on the device, since on android 7.0 I was able to activate just by installing Pix3lfly and releasing Level3 from the API, I just want to be able to install Gcam, Asus' native camera app is ridiculous and Too bad, it is not possible to make good quality photos, especially when on social networks like Facebook and Instagram, the quality of the images is reduced.
Please does anyone have any solution for this?
Then you can try to enable camera2api by terminal emulator or editing build.prop....too bad I can't post link...you can search "enable camera2api" you will get the process in detail
I will try for the terminal, build prop also tried already and was unsuccessful.

Categories

Resources