How To Enable Camera2 API- Best Ways To Enable Camera2Api 2021

How To Enable Camera 2 API Without Root?

One of the most popular modifications to the Android operating system today is the installation of the Gcam camera application, which is the best camera application ported from Google Camera belonging to the Pixel smartphone.

It cannot be denied, that the results of the images produced by the Gcam application are indeed extraordinary and can be said to be equivalent to a DSLR.

I’m not exaggerating, but the fact is that the Gcam application can improve image quality and sharpness even though we only use a smartphone camera. Even the latest Gcam, which is ported by the Google Camera Pixel 3 application, allows us to take pictures in a space/place with minimal lighting but the resulting image is so sharp and bright (Night Sight Mode).

However, to be able to enjoy Gcam’s premium features, we first need to activate the Camera2 API.

Read More: 10 Best Camera Apps for Android Smartphones

What is Camera2 API?

  • Camera2 API is a feature embedded in Android, to give full access to the camera application, so that we can adjust ISO, activate HDR / HDR + mode, Portrait Mode, Manual Focus, and so on.
  • The Camera2 API was first introduced to the Android Lolipop operating system. Unfortunately, Google still limits the use of the Camera2 API feature on certain smartphones.
  • This means that smartphones with OS Lolipop and above already support and can use the Camera2 API feature. However, this feature is not activated by default by Android smartphone manufacturers.

How to activate Camera2API?

Enabling the Camera2 API feature on an Android smartphone is not a difficult thing. 3 ways can be selected according to the state of our Android (Root or Non-Root).

1. Edit Build.Prop (Root)

This first method is specifically for Android smartphones that have root status. For those whose smartphones are not rooted and want to root, I suggest reading the tutorial here.

Step by step:

  1. Open a file manager application that can access the system/root folder. In this example, I am using the X-plore application.
  2. Open the system/build.prop folder.
  3. Click Build. prop and edit.
  4. Add the script = 1  at the very bottom.Edit Build.Prop (Root)
  5. Reboot / Restart our smartphone so that the script is active.
  6. Done.

2. Using Magisk (Root) Module

  • Root using magisk does have many advantages. One of them is we can install various modules to make it easier for us to make modifications to an Android smartphone.

Step by step:

  1. Download
  2. Install-Module using Magisk Manager.
  3. Reboot our Android smartphone so that the module is active.
  4. Done.

3. Flash via TWRP (Root or Non-Root)

This third method can be used both for Android smartphones that have root or non-root status, the important thing is that TWRP (Custom Recovery) is installed

Step by step:

  1. Download
  2. Enter TWRP mode.
  3. Find and Install the file.
  4. Reboot the System.
  5. Done.

4. Activating Camera2API without Root and TWRP (Safe OTA Update!)

  • Terms:
  • The phone has an Unlocked Bootloader.
  • Enabling USB Debugging on our Smartphone.
  • PC / Laptop using Windows 7, 8, or 10.
  • USB cable.


  • TWRP file according to our smartphone (Download here )
  • ADB

How to Activate Camera2API via ADB Fastboot

  1. Install  ADB on our PC / Laptop. Make sure we have disabled Windows Signature so that the driver is successfully installed.
  2. Extract the file
  3. Rename the TWRP file that we downloaded (according to our smartphone) to recovery. img and move it into the minimal_adb_fastboot folder
  4. Connect the phone to the PC using a data / USB cable.
  5. Double click (click 2X) the cmd-here.exe file in the minimal_adb_fastboot folder.
  6. Type the adb devices command and press Enter on the keyboard to check whether our cellphone has successfully connected to the PC. Click OK if a notification appears on our cellphone.
  7. Type the command adb reboot bootloader and press Enter on the keyboard so that the phone enters bootloader mode.
  8. Type the command fastboot boot recovery.img then press Enter on the keyboard so that the phone enters TWRP mode.
  9. Wait a few moments and the phone will enter TWRP mode. Swipe the arrow that says Swipe to Allow Modifications.
  10. Enter the adb devices command   then click Enter, then enter the adb shell command
  11. Type the command setprop persist. camera.HAL3.enable 1 then press Enter, to activate Camera2API.
  12. Type the command exit then press Enter to exit.
  13. Finally, type the command adb reboot then press Enter. So that the cellphone turns back on normally.
  14. Done.

How to Restore Camera2API as Before?

  1. Follow step by step like installing Camera2API above.
  2. Change the command  setprop 1 to setprop 0 to turn off Camera2API.
  3. Type the command exit then press Enter to exit.
  4. Finally, type the command adb reboot then press Enter. So that the cellphone turns back on normally.
  5. Done.


  • TWRP above will not be installed on our smartphone, because the command we enter is only to open, not to install. So OTA updates on our cellphones are still safe.
  • If we do an OTA update, Camera2API will return to normal (dead) so it must be activated again.
  • Use the Manual Camera Compatibility Test.apk application to test whether the Camera2 API is active or not.

All ways to enable Camera2api require that the cellphone has the Unlock Bootloader status.

The best way to enable Camera2api is with a rooted smartphone and TWRP installed! Because by activating camera2api, on some smartphones, the default camera will have problems, and we need to fix it via a flash file via TWRP / Magisk Module.

Note: In some cases, especially on Xiaomi smartphones, usually after activating the Camera2 API the default MIUI camera application becomes an error. For how to fix this, you can read FIX Camera MIUI After Activating Camera2API

In addition, the Gcam application can only be used at least on Android devices that use the Nougat OS.

So many posts from us about 3 Ways to Activate the Camera2 API, if you are still confused or unclear please ask via the comments column. Share if useful.

Leave a Comment