One step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked
Windows only!
Any damage on your phone is your responsibility.
One step command to enable or disable camera2 API. This allow you to get OTA update and the phone is still unrooted and locked bootloader
- This script requires unmodified file system! If you don't sure, please flash the new one
- Download TWRP recovery and copy it into this project, and rename it to
recovery.img
- Install android driver
- Enable USB debugging and allow OEM unlock on your phone
- Plug the phone to the computer
- This script reqiures
bash
to run. I recommend to install scoop, which is package manager, and installgow
package in order to getbash
- Unlock bootloader
- Add 2 lines into Build.prop
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
- Lock bootloader
- reboot
- To enable camera2 API (After this script run, the phone cannot update)
bash gcam.sh
Note: When TWRP recovery is booted, please mount system partition. The script will be continue.
- If you want to get OTA update, please disable camera2 API
bash gcam-disabler.sh
- Google Camera APK download
- This script use recovery image from XDA
GNU GENERAL PUBLIC LICENSE