Skip to content

(Mi A1) One step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked

License

Notifications You must be signed in to change notification settings

mildronize/camera2-api-enabler-for-gcam

Repository files navigation

Camera2 API Enabler for Google Camera (Mi A1)

One step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked

Windows only!

Caution!

Any damage on your phone is your responsibility.

Feature

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

Prerequaites

  • 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 install gow package in order to get bash

What this script do with your phone?

  1. Unlock bootloader
  2. Add 2 lines into Build.prop
persist.camera.HAL3.enabled=1
persist.camera.eis.enable=1
  1. Lock bootloader
  2. reboot

Usage

  • 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

Resoures

Alternative Script

LICENSE

GNU GENERAL PUBLIC LICENSE

About

(Mi A1) One step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages