[MOD] Enable Camera2Api in Mi4C

slimdick

Senior Member
May 10, 2010
169
68
0
Poland
Mod adds an entry to build.prop enabling Camera2Api.
Code:
"persist.camera.HAL3.enabled=1"
The package contains converted libraries.
Code:
libmmcamera_imx258.so

libmmcamera_imx258_sunny.so
Works only on Miui10 Android 7.0, tested on Miui10 8.8.3 by xiaomi.eu.
MOD has no effect on the original Miui Camera.




The first installation in TWRP installs MOD, re-installation restores files to the stock version.
Package for installation in TWRP: twrp-camera2api.flip.fix.mi4c.v2

DSLR Camera, OpenCamera and some versions of Google Camera work properly.
https://www.celsoazevedo.com/files/android/google-camera/dev-urikill/

source:http://4pda.ru/forum/index.php?showtopic=692986&view=findpost&p=75876842
 
Last edited:

slimdick

Senior Member
May 10, 2010
169
68
0
Poland
Yeah the same problems.
Another working gcam mods MGC_5.1.018.177470874-41362666_A7.0+_FULL_N6,
GCam5.1.018-Arnova8G2-V1.7
If the front camera did not work in any application, add an entry with the name of this application in build.prop.
Code:
camera.hal1.packagelist=com.viber.voip,com.google.android.talk,com.whatsapp,com.instagram.android
 
  • Like
Reactions: savvas_p25

savvas_p25

Member
Dec 27, 2014
46
11
0
kavala

predatoralan

Member
Jul 15, 2017
10
0
0
Hello, does anyone have the v2 of this mod? The version that allows you to revert the changes back if you reinstall the package. The original developer posted a link for it on that russian forum but the link is unreachable at the moment. Thanks in advance.
 

slimdick

Senior Member
May 10, 2010
169
68
0
Poland
Hello, does anyone have the v2 of this mod? The version that allows you to revert the changes back if you reinstall the package. The original developer posted a link for it on that russian forum but the link is unreachable at the moment. Thanks in advance.
twrp-camera2api.flip.fix.mi4c.v2.zip

excellent!!!gcam version you use ?check this https://www.celsoazevedo.com/files/android/google-camera/f/MGC_3.2.045_MiMAX2_2.apk
Model Nexus 6 ,config nexus 6 hdr+ auto .
The same version of gcam but other settings, you can enable RAW+JPG
 
Last edited:
  • Like
Reactions: predatoralan

predatoralan

Member
Jul 15, 2017
10
0
0
If anyone is interested, this mod worked for me on LineageOS 14.1. Had to restart a couple of times and for some reason disable and re-enable persist.camera.HAL3 in BuildProp but it works flawlessly now.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone