{"id":24563821,"url":"https://github.com/mildronize/camera2-api-enabler-for-gcam","last_synced_at":"2025-08-11T07:07:44.625Z","repository":{"id":83976356,"uuid":"113587607","full_name":"mildronize/camera2-api-enabler-for-gcam","owner":"mildronize","description":"(Mi A1) One step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked","archived":false,"fork":false,"pushed_at":"2017-12-08T16:09:21.000Z","size":634,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T00:28:01.211Z","etag":null,"topics":["gcam","mia1","tool"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mildronize.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-08T15:19:50.000Z","updated_at":"2017-12-10T03:24:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"406984d2-5c3d-41ec-bfad-aecd4f90da27","html_url":"https://github.com/mildronize/camera2-api-enabler-for-gcam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mildronize/camera2-api-enabler-for-gcam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fcamera2-api-enabler-for-gcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fcamera2-api-enabler-for-gcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fcamera2-api-enabler-for-gcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fcamera2-api-enabler-for-gcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mildronize","download_url":"https://codeload.github.com/mildronize/camera2-api-enabler-for-gcam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mildronize%2Fcamera2-api-enabler-for-gcam/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269844098,"owners_count":24484132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gcam","mia1","tool"],"created_at":"2025-01-23T10:15:50.341Z","updated_at":"2025-08-11T07:07:44.616Z","avatar_url":"https://github.com/mildronize.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Camera2 API Enabler for Google Camera (Mi A1) \n\nOne step for enable or disable camera2 API for Google Camera, still support OTA update, no root, bootloader locked\n\nWindows only!\n\n## Caution!\n\nAny damage on your phone is your responsibility.  \n\n## Feature\n\nOne step command to enable or disable camera2 API. This allow you to get OTA update and the phone is still unrooted and locked bootloader\n\n## Prerequaites \n- This script requires unmodified file system! If you don't sure, please [flash the new one](http://en.miui.com/thread-807252-1-1.html)\n- Download [TWRP recovery](https://forum.xda-developers.com/mi-a1/development/recovery-twrp-3-1-1-0-touch-recovery-t3688472) and copy it into this project, and rename it to `recovery.img`\n- Install [android driver](https://forum.xda-developers.com/showthread.php?t=2588979)\n- Enable USB debugging and allow OEM unlock on your phone\n- Plug the phone to the computer \n- This script reqiures `bash` to run. I recommend to install [scoop](http://scoop.sh/), which is package manager, and install `gow` package in order to get `bash`\n\n## What this script do with your phone?\n1. Unlock bootloader\n2. Add 2 lines into Build.prop\n\n```\npersist.camera.HAL3.enabled=1\npersist.camera.eis.enable=1\n``` \n3. Lock bootloader\n4. reboot\n\n## Usage\n\n-  To enable camera2 API (After this script run, the phone cannot update)\n\n```\nbash gcam.sh\n```\n\nNote: When TWRP recovery is booted, please mount system partition. The script will be continue.\n\n- If you want to get OTA update, please disable camera2 API\n\n```\nbash gcam-disabler.sh\n```\n\n# Resoures\n- [Google Camera APK download](https://www.xda-developers.com/google-camera-hdr-customization-raw-support/)\n- This script use recovery image from [XDA](https://forum.xda-developers.com/mi-a1/development/recovery-twrp-3-1-1-0-touch-recovery-t3688472)\n\n# Alternative Script\n- [https://github.com/neungnarakjung/android-enable-camera2-api](https://github.com/neungnarakjung/android-enable-camera2-api)\n\n# LICENSE\n\nGNU GENERAL PUBLIC LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildronize%2Fcamera2-api-enabler-for-gcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmildronize%2Fcamera2-api-enabler-for-gcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmildronize%2Fcamera2-api-enabler-for-gcam/lists"}