Code Monkey home page Code Monkey logo

camera2-api-enabler-for-gcam's Introduction

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

camera2-api-enabler-for-gcam's People

Contributors

mildronize avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.