# Mi8Lite # Android10 # Camera2api Requirements: –Bootloader Unlocked –TWRP installed, does not work with other recoverys –The recovery must not be encrypted –Not have root ADB COMMAND METHOD IN TWRP * Start in TWRP and connect to PC * On the PC, open a command window inside the adb or platform-tools folder * Type these commands: (after each command hit Enter)
-adb devices adb shell
-setprop persist.camera.HAL3.enabled 1
-setprop persist.camera.eis.enable 1
-setprop persist.vendor.camera.HAL3.enabled 1
-setprop persist.vendor.camera.eis.enable 1
-exit adb reboot
"Adb devices" is not recognized: If after placing the first command, the PC does not recognize your device in Recovery mode; in TWRP go to the MOUNT box and look for the 'Disable MTP' option, press and it should show you 'Enable MTP'; try again with "adb devices" and continue * If camera 2api was not activated, try one more time with these commands: adb devices adb shell
setprop persist.camera.stats.test 5
setprop persist.vendor.camera.stats.test 5
exit adb reboot
–Check with "Manual Camera compatibility test" the status of camera 2api –After this I could try to root and check if camera 2api stays activated –It is possible that activating camera 2api will stop working the front camera of the native camera. –Added commands will be erased with a factory reset.
note: I saw it in a group of Xiaomi Mi 8 Lite and I wanted to share it here to find out if anyone knows the veracity of this
-adb devices adb shell
-setprop persist.camera.HAL3.enabled 1
-setprop persist.camera.eis.enable 1
-setprop persist.vendor.camera.HAL3.enabled 1
-setprop persist.vendor.camera.eis.enable 1
-exit adb reboot
"Adb devices" is not recognized: If after placing the first command, the PC does not recognize your device in Recovery mode; in TWRP go to the MOUNT box and look for the 'Disable MTP' option, press and it should show you 'Enable MTP'; try again with "adb devices" and continue * If camera 2api was not activated, try one more time with these commands: adb devices adb shell
setprop persist.camera.stats.test 5
setprop persist.vendor.camera.stats.test 5
exit adb reboot
–Check with "Manual Camera compatibility test" the status of camera 2api –After this I could try to root and check if camera 2api stays activated –It is possible that activating camera 2api will stop working the front camera of the native camera. –Added commands will be erased with a factory reset.
note: I saw it in a group of Xiaomi Mi 8 Lite and I wanted to share it here to find out if anyone knows the veracity of this
Attachments
-
43.9 KB Views: 598