Camera2API β It's an Android software interface that unlocks the full potential of your smartphone's camera, and on Xiaomi devices, it's often disabled by default, which limits the capabilities of third-party cameras (like Google Camera or Google Camera). FOV Camera, no activation Camera2API You will not be able to use manual shutter speed settings, RAW-Photos or Night Mode from Google.
In this article, you will find 3 proven ways to include Camera2API (This includes no root rights, support checks, and common bug fixes, and weβll look at why Xiaomi blocks this interface, which models support full activation, and what to do if the camera doesnβt work properly after all the manipulations. We will focus on the risks and nuances for devices on the MIUI 14 and newer.
What is Camera2API and why is it disabled on Xiaomi?
Camera2API is a modern camera management interface in Android that replaces the outdated Camera1API. It allows applications to directly interact with the moduleβs hardware capabilities: adjust shutter speed, ISO, focus manually, shoot in RAW format and use image processing algorithms (for example, HDR+ from Google).
On Xiaomi smartphones (especially budget and mid-range), Camera2API is often partially or completely blocked.
- π± Optimizing productivity: MIUI restrict access API, Reduce the load on the processor and avoid overheating.
- π Brand policy: Xiaomi promotes its own software (for example, Mi Camera) and restricts third-party applications.
- π οΈ Driver flaws: On some models (e.g. Redmi Note 8 Pro with Samsung sensor) GW1) full activation API It can cause artifacts in the photo.
Itβs important to understand that not all Xiaomi devices support full activation. 9A POCO M3 You can only turn on LEGACY-mode (stripped version), and on flagships like Xiaomi 13 Ultra API already activated by default.
How to check for Camera2API support on your Xiaomi
Before you try to activate Camera2API, make sure your device supports it.
- Install the Camera2 API Probe app from Google Play.
- Open it and notice the lines: Hardware Support Level FULL or LEVEL_3. RAW Support for shooting in the RAW must have YES. Manual Sensor β responsible for manual shutter speed settings and ISO.
| Parameter | Meaning | What does it mean? |
|---|---|---|
| Hardware Support Level | LEGACY | Outdated mode (Camera1API) Manual settings and RAW are not available. |
| Hardware Support Level | LIMITED | Partial support. There may be bugs when using GCam. |
| Hardware Support Level | FULL or LEVEL_3 | Full support. All functions can be activated. |
| RAW Support | NO | Shooting in RAW is not possible even after activation of the API. |
If you see LEGACY, it means that the hardware does not support Camera2API, and activation through software will not help, in which case you only need to flash custom software (for example, LineageOS) or accept restrictions.
π‘
If the Camera2 Probe API displays LIMITED, try upgrading to the latest version of MIUI β sometimes that solves the problem.
Method 1: Activate Camera2API via ADB (without root)
The most secure method that works on most Xiaomi devices running MIUI 12-14.
- π₯οΈ Computer with installed ADB-Drivers (can be downloaded here).
- π± Included debugging by USB on a smartphone (path: Settings) β The phone. β Version. MIUI β Press 7 times, then return to Settings β Additionally. β For developers).
- π Cable USB Type-C (preferably original).
Step-by-step:
- Connect your smartphone to your PC and confirm the debugging permission.
- Open the command prompt (cmd) in the adb folder and type: adb shell setprop persist.camera.HAL3.enabled 1
- Reboot the device with the command: adb reboot
- Once enabled, check support in the Camera2 API Probe.
Install ADB-PC-driver|
Enable debugging over USB on Xiaomi|
Connect the phone with the original cable |
Start the command line on behalf of the administrator-->
If LEGACY is still displayed in the Camera2 API Probe after the reboot, try an alternative command:
adb shell
setprop persist.vendor.camera.HAL3.enabled 1This command works on devices with split vendor firmware (for example, Poco X3 NFC or Redmi Note 10 Pro).
β οΈ Note: Some models (e.g. Redmi) 9T) after activation ADB Autofocus may be lost in the standard camera, in which case return the settings with the command: adb shell setprop persist.camera.HAL3.enabled 0
Method 2: Enable via TWRP (requires unlocking the bootloader)
If ADB-The method did not work and your device supports it. FULL-mode, can be activated Camera2API It's a custom recovery process that requires an unlocked bootloader and an installed one. TWRP.
Instructions:
- Download the file. camera2api_enabler.zip (like, from here).
- Reboot to TWRP (keep Power + Volume up when the phone is off).
- Click Install β select the downloaded file β swipe for confirmation.
- Once installed, run Wipe β Dalvik/ART Cache and restart.
This method is guaranteed to include full support (if hardware allows), but has risks:
- π Loss of warranty (due to unlocking the bootloader).
- π Possible bugs in the work of a standard camera (for example, the green tint in the photo).
- π Re-activation required after firmware update.
What to do after the scaling camera2api_enabler.zip camera stopped working?
Method 3: Manual editing build.prop (for advanced)
This method is suitable for users with root rights or custom firmware, and involves direct editing of the build.prop system file, which can lead to unstable operation of the device if something is done wrong.
Algorithm of action:
- Install any file manager with root support (such as Root Explorer or Solid Explorer).
- Go to /system/build.prop and open the file in the text editor.
- Add the following lines to the end of the file: persist.camera.HAL3.enabled=1 persist.vendor.camera.HAL3.enabled=1
- Save the changes, set the rights 644 (rw-r--r---) and reboot.
If the phone doesnβt start after editing build.prop (hangs on the logo), donβt panic:
β οΈ Attention: Load in TWRP, Connect your phone to your PC and copy the original build.prop from backup or stock firmware. Alternatively, you can roll back via Fastboot with the command: fastboot flash system system.img
On some devices (such as the Xiaomi Mi A2 or Mi A3 on pure Android), editing build.prop can reset your network settings. After rebooting, check your mobile internet and Wi-Fi.
Solving problems after activation of Camera2API
Even if you have successfully enabled Camera2API, the following problems may occur:
| Problem. | Possible cause | Decision |
|---|---|---|
| The camera is not able to connect to the camera. | Conflict with standard MIUI software | Delete the Camera app data or click camera2api_disabler.zip |
| Green hue in the photo in GCam | Incompatibility with XML-config | Try another config for your model (e.g. from BSG or Wichaya) |
| RAW-files are not saved | Limitation of the driver or firmware | Install a custom core (such as FrancoKernel) or firmware with a patch |
| Apps like the FOV Camera don't see the camera | Lack of permissions for camera2 | Grant rights via ADB: adb shell pm grant com.atejak.fov camera |
If the standard MIUI camera gets worse after activating Camera2API (for example, the stabilization has gone down or the quality in Night Mode has deteriorated), return the settings with the command:
adb shell
setprop persist.camera.HAL3.enabled 0
setprop persist.vendor.camera.HAL3.enabled 0π‘
On devices with a Mediatek processor (such as the Redmi Note 9 Pro or Poco M2 Pro), additional libcamera configuration via Magisk modules may be required after activation of the Camera2API.
Best Apps to Work with Camera2API on Xiaomi
Once you have successfully activated the Camera2API, you can use powerful alternatives to the standard camera.
- πΈ Google Camera (GCam) is the best choice for night photography and HDR. Recommended versions: BSG GCam is a universal version with support for most Xiaomi. Wichaya GCam β optimized for Redmi Note 10/11 POCO X3.
- ποΈ FOV Camera β for manual shutter speed settings and ISO (supportive RAW).
- π Manual Camera β a convenient interface for professional photography.
- π NightSight Enabler β Includes Google Night Mode on Unofficially Supported Devices.
For GCam, you'll need XML-Configuration that fits your model, and can be found on the XDA-Developers forums or 4PDA. For example, for Redmi Note 10 Pro suitable config from Shamim, and for Poco F3 β from BigKaka.
To set up the config:
- Download the file with the.xml extension.
- Create a GCam/Configs folder in your internal memory.
- Place a config there and open GCam β tap twice on the black area next to the down button β select config.