How to activate Camera2API on Xiaomi: a complete guide to compatibility check

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.

πŸ“Š What Xiaomi model do you use?
Redmi Note 10/11
Poco X3/X4
Mi 11/12
Another model
I don't know.

How to check for Camera2API support on your Xiaomi

Before you try to activate Camera2API, make sure your device supports it.

  1. Install the Camera2 API Probe app from Google Play.
  2. 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.
ParameterMeaningWhat does it mean?
Hardware Support LevelLEGACYOutdated mode (Camera1API) Manual settings and RAW are not available.
Hardware Support LevelLIMITEDPartial support. There may be bugs when using GCam.
Hardware Support LevelFULL or LEVEL_3Full support. All functions can be activated.
RAW SupportNOShooting 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:

  1. Connect your smartphone to your PC and confirm the debugging permission.
  2. Open the command prompt (cmd) in the adb folder and type: adb shell setprop persist.camera.HAL3.enabled 1
  3. Reboot the device with the command: adb reboot
  4. 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 1

This 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:

  1. Download the file. camera2api_enabler.zip (like, from here).
  2. Reboot to TWRP (keep Power + Volume up when the phone is off).
  3. Click Install β†’ select the downloaded file β†’ swipe for confirmation.
  4. 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?
If a standard camera gets a bug or dye after installing a zip file, try 1. Delete the Camera app data in the settings. 2. Swipe the original vendor.img for your model through Fastboot. 3. Use an alternative firmware (e.g., Pixel Experience) where Camera2API is enabled by default.

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:

  1. Install any file manager with root support (such as Root Explorer or Solid Explorer).
  2. Go to /system/build.prop and open the file in the text editor.
  3. Add the following lines to the end of the file: persist.camera.HAL3.enabled=1 persist.vendor.camera.HAL3.enabled=1
  4. 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 causeDecision
The camera is not able to connect to the camera.Conflict with standard MIUI softwareDelete the Camera app data or click camera2api_disabler.zip
Green hue in the photo in GCamIncompatibility with XML-configTry another config for your model (e.g. from BSG or Wichaya)
RAW-files are not savedLimitation of the driver or firmwareInstall a custom core (such as FrancoKernel) or firmware with a patch
Apps like the FOV Camera don't see the cameraLack of permissions for camera2Grant 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:

  1. Download the file with the.xml extension.
  2. Create a GCam/Configs folder in your internal memory.
  3. Place a config there and open GCam β†’ tap twice on the black area next to the down button β†’ select config.

FAQ: Frequent questions about Camera2API on Xiaomi

Can I turn on Camera2API on Xiaomi without a computer?
Yes, but only if you have custom recovery installed (TWRP) Or you have root rights, and you can edit build.prop through an app like BuildProp Editor or you can flash it. camera2api_enabler.zip Directly from your phone. No PC, no root activate. Camera2API It is not possible – it is necessary at least ADB.
Why did Camera2API lose its autofocus after activation?
This is a typical problem for Samsung camera module devices (e.g., Redmi Note 8 Pro with GW1 or Redmi Note 9S with IMX686). The reason is the conflict between HAL1 and HAL3 drivers. Solutions: Roll back changes via ADB (setprop persist.camera.HAL3.enabled 0). Use GCam with a patch for your sensor (e.g., Fix7 for IMX686). Fill out a custom core with corrected drivers (e.g., Perseus for Snapdragon devices).
How to check if Camera2API works in GCam?
Open Google Camera and check: Manual settings (Icon) βš™οΈ β†’ Advanced: Possibility of preserving in RAW (The settings should be Save. RAW Night Sight: If it is available, it is API If these functions are not available, then Camera2API It is either not included or it works in LIMITED-mode.
Will Camera2API work after the MIUI update?
This depends on the activation method: ADB: Reset after a full reset, but is saved with normal updates. TWRP/build.prop: Reset after the official update. You need to repeat the procedure. To avoid losing settings, create a backup build.prop or swipe the Magisk module for automatic activation (for example, Camera2API Enabler by simon1511).
Can I turn on Camera2API on Xiaomi with a MediaTek processor?
Yes, but with reservations: On Helio G85/G90T (For example, Redmi Note 9 Pro often only works LIMITED-On Dimensity chips (like Poco). X3 GT) You may need to firmware custom core. For Mediatek devices, it is recommended to use GCam with a patch MTK Fix (e.g. Hasli) Before activating, check the reviews of your model owners on the 4PDA or XDA β€” Some devices (e.g. Redmi) 9A) hardware-free FULL-regime.