Source
*
https://xdaforums.com/showpost.php?p=77222940&postcount=2
*
https://xdaforums.com/showpost.php?p=77226755&postcount=7
*
https://xdaforums.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
*
https://xdaforums.com/mi-a1/themes/request-google-camera-hdr-mi-a1-t3684325
Credits @guangie , @flex1911 , @Dornyx , @Arnova8G2 , scrubber
WARNING, FLASH AT your OWN RISK!!!!
1. Unlock bootloader via fastboot
2. Makesure you are on V9.6.5.0.ODIMIFE
3. Go here
https://github.com/guangie88/xiaomi-jasmine-magisk-boot and download patched_boot.img
4. Boot to fastboot and flash it as given in instructions (fastboot flash boot_a patched_boot.img, fastboot flash boot_b patched_boot.img)
4. Boot to system and install Magisk Manager. APK via internet or extracted APK.
5. Now enable camera2API
"
Enable ADB in the developer settings.
-Assuming you already have platform-tools binaries, do this in your shell/cmd:
-Code:
adb shell
-Now, when you are in the device shell, type this:
-Code:
su
-The device will probably ask about root access, grant it.
-Now, when you are in the root shell, type this:
-Code:
setprop persist.camera.HAL3.enabled 1
"
6. REBOOT the phone
7. Download and install good Gcam mod for Mi A1
i used those
scrubber_GCameraP2XL.apk - front is not working
GCam5.1.018-Arnova8G2-V1.4.apk - Everything seems to be working fine