Enable Camera2 API With Camera2 API Enabler Tweak

Camera2 API is something that needs to enable if you want to use the Google Camera on your Android Phones. Most of the android phones don’t come with the cmaer2api feature and not able to install the Google camera on it. To install the Google camera or Gcam you have to Enable Camera2 API With Camera2 API Enabler Tweak. Recently, Camera2 API becomes popular with the hype of ported Google Camera app. Unluckily, not all Xiaomi devices come with Camera2 API enabled by default.

If you are one of them and want to enable the camera2api feature on your devices, then this guide is for you. This will help you to install the Camera2 API on your device with Camera2 API Enabler Tweak.

Camera2-API-Support

Here in this guide, we are sharing a tool which allows you to enable the camer2api on your phone. And after that, you can use your favorite Google Camera on your device and capture some of the best shots.

What is Camera2 API

As per the google this the meaning of the Camera2 API

The android.hardware.camera2 package provides an interface to individual camera devices connected to an Android device. It replaces the deprecated Camera class.

This package models a camera device as a pipeline, which takes in input requests for capturing a single frame, captures the single image per the request, and then outputs one capture result metadata packet, plus a set of output image buffers for the request. The requests are processed in-order, and multiple requests can be in flight at once. Since the camera device is a pipeline with multiple stages, having multiple requests in flight is required to maintain full framerate on most Android devices.

Or in simple words, we can say that Camera2 API is something that needs to enable if you want to use any camera apps with advanced control. So this will help you to activate some smart controls on your camera app.

How to check Camera 2 API support on your Android

Now the Question is how to check Camera 2 API support your Android device or not? Don’t worry you can check this easily with a simple app called Manual Camera Compatibility.

Just install that app on your device and run it once. If all the option is RED then camera2api is not enabled on your device. If all the options are GREEN, that means your phone is enabled with Camera2Api. And you can use Gcam or Google Camera on your device without any problem.

camera2api-enabled

Currently, there are a myth saying that enabling camera2 API demands root. This is not completely true. We already used this tool on Redmi Note 5 Pro and enabled Camera2 Api without rooting the phone.

Download Camera2 API Enabler Tweak

You can download the flash-able zip file from below direct link:

Download Camera2 API Enabler Tweak Zip file here

All you have to install the TWRP custom recovery on your device and flash this Camera2 API Enabler Tweak zip file on your phone. No need to root the phone. Only Bootloader Unlocked and TWRP required.

What’s inside the file and what does it do?

The file executes the following script:

#!/sbin/sh
#/system/addon.d/34-camera.sh
#During a CM13.0 upgrade, this script backs up /system/*,
#/system is formatted and reinstalled, then the file is restored.
#

. /tmp/backuptool.functions
list_files() {
 cat <<EOF
 EOF
 }
case "$1" in
   backup)
     list_files | while read FILE DUMMY; do
       backup_file $S/"$FILE"
     done
   ;;
   restore)
     list_files | while read FILE REPLACEMENT; do
       R=""
       [ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
       [ -f "$C/$S/$FILE" ] && restore_file $S/"$FILE" "$R"
     done
   ;;
   pre-backup)
     # Stub
   ;;
   post-backup)
     # Stub
   ;;
   pre-restore)
     # Stub
   ;;
   post-restore)
     # Enable Camera2 API
       echo "# Enable Camera2 API Technobuzz.net" >> /system/build.prop
       echo "persist.vendor.camera.HAL3.enabled=1" >> /system/build.prop
   ;;
 esac

This Zip file will include the add persit.vendor.camera.HAL3.enabled=1 to the build.prop file in your phone’s system.

So this way you can easily enable the Camera2api on your android smartphone. If you are facing some trouble with this guide them leave the comments below and we will help you to fix it up.

Rajesh Rajput is Tech Blogger, who loves to write about Android Tips, How to Guides, Reviews, ROMs, and more.