How To Enable Camera2API ?

https://codextech.blogspot.com/2019/01/how-to-enable-camera-2-api.html

When it comes to the android camera, there are many reasons that people could consider Google's Pixel camera. Nowadays,to capture great pictures, phone manufacturers like samsung, huawei etc.. showing up with quad cameras which means they highly depend on camera hardware but If you look at Pixel 3 camera, it has single camera in its back but it captures magnificent pictures which are almost equal to the DSLR camera shots. (wowahh)

Have you ever wondered how a single camera managing perfect background blur, exposure especially that stunning low light shots.??

Rather than completely depending upon the camera hardware, google uses efficient computational algorithms in their android camera. Google make use of android camera HAL to obtain this job.

what is this Camera HAL ?

  • [message]
    • According to google
      • Android's camera Hardware Abstraction Layer (HAL) connects the higher level camera framework APIs in android.hardware.camera2 to your underlying camera driver and hardware.

 What is Camera2 API ?

From android lollipop 5.0 Google introduced Camera2api which is an API to give developers advanced features of android camera such as RAW capture, RAW capture, manual exposure(ISO,shutter speed) etc.

Generally, most of the smart phone manufacturers heavily modify cameras with their custom modifications. So, there may not be camera2api enabled for those devices. So if you have camera2ap enabled on your android device, you can capture beautiful pictures which are nearly equal to the google's pixel camera shots.

However, Not every smart phone which are running on Android 5.0 or higher doesn't support this feature. It depends on the hardware and also current version.

 How to enable Camera2API ?

Commonly there is three methods to enable Camera2 API on your android device.  
  1. By editing build.prop file. 
  2. By Flashing Camera2API.zip from TWRP recovery.

 1. Edit build.prop file

  • [message]
    • WARNING!
      • Root required to edit this file. Do it at your own risk!! 
 STEPS :
  1. Goto root directory of your device using File Explorer and grant Superuser permissions.
  2. Navigate to /system and find build.prop 
  3. Open build.prop file and add the following line in that file.                         
    persist.camera.HAL3.enabled=1
  4.  Hit save and you are done!!

2. Flash Camera2API.zip from twrp recovery

  1.  Install twrp recovery and boot into twrp recovery into by pressing Volume up+lock button for 5 seconds.
  2. Select Install
  3. Navigate to the storage where you saved camera2API.zip and select it.
  4.  From the bottom perform "Swipe to confirm flash" 
  5. Reboot into system. 
  6. That's it! You have camera2API installed!
  7. [Download Camera2API.zip ##download##]

    • How to check if camera2API installed or not ?

    To check whether the camera2API properly installed or not, download Manual Camera Campatibility App from playstore.
    Run the app. If everything went well, it will show the results like the picture below. 
     

    Now download best suitable Google camera from this site and capture your best moments.
     
    If you have any trouble implementing this on your device, let me know in the comment section. I will help you within no time.
     
    • [message]
      • NOTE
        • We are not responsible for any bad outcomes. Do it at your own risk!