Here, I shall guide you how to easily enable Android Camera2 API needed for Google Camera (Gcam) app and any other camera apps with advanced manual settings.
This trick requires custom recovery either TWRP or*RWRP*only for booting (without being installed).Code:
/* * Your warranty is now void. * * I am not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features included in this ROM * before flashing it! YOU are choosing to make these modifications, and if * you point the finger at me for messing up your device, I will laugh at you. */
REQUIREMENTS:
The Device, of course!
Unlocked bootloader.
ADB Driver Installer.
Red Wolf Recovery (RWRP) for Vince.
A Windows-based computer.
A*USB*data*cable.
Step 1 – Install the Minimal Fastboot and ADB Driver on your computer.
Step 2 – Extract the*RWRP*package. You should get a file called “RedWolf-Vince-3.x.x.img“.
Step 3 – Now copy that file to the adb folder.
Step 4 – Next, rename the file from “RedWolf-Vince-3.x.x” to “rwrp“. Note: Commonly Windows does not display the file extension (.img).
Step 5 – Still at the adb folder, launch the command prompt window from that location. Simply hold down the*Shift button*on the keyboard and right-click on any blank area in Windows Explorer (inside the adb folder). Then choose Open PowerShell/Command Prompt Window option
Step 6 – Enable USB Debugging option on your phone.
Step 7 – Now issue the following command correspondingly (type the command and hit Enter):
Code:
adb devices adb reboot bootloader fastboot devices fastboot boot rwrp.img adb shell setprop persist.camera.HAL3.enabled 1 setprop persist.camera.eis.enable 1 exit adb reboot bootloader fastboot reboot
Congratulations! You have enabled Camera2 API without losing the ability to receive MIUI OTA Update since you do not flash any custom recovery.
If you got help from this guide and/or liked it hit that Thanks button below. It makes me happy
