Apps Xiaomi

Enable Camera2 API and install GCam port on Mi A2/A2 Lite [No Root required]

Google Camera port from Pixel devices can bring features like Night Sight, HDR+, ZSL, Portrait Mode, and improve the picture quality of your camera. In this post, we will guide you through enabling Camera2 API on Mi A2 / A2 Lite and installing GCam without root. The download links of Google Camera ports are given below for the Mi A2 and A2 Lite. Read ahead and grab them.

Xiaomi Mi A2

From the past two years, Google Camera apps have gained immense popularity in the Android community because of its unique features and enhanced picture quality. This app allows you to take some great pictures using the Pixel’s AI software. In many ways, it is better than the stock camera of your phone.

But, in order to install GCam port in Mi A2 / A2 Lite, you must enable Camera2 API. Even though Mi A2 / Mi A2 Lite runs stock Android, the device still does not support Camera2 API officially.

If your Mi A2 / Mi A2 Lite is rooted, it would be quite easy to enable Camera2 API. You just need to edit the build.prop file manually, or by merely issuing some easy commands. But if your device is not rooted, you need to follow a different method to install GCam port on Xiaomi Mi A2 / A2 Lite.

What we will do in this method?

In this method, we will boot a Magisk Patch boot image to root the phone temporarily. After that, we will use the Terminal Emulator app to enable Camera2 API on your Xiaomi Mi A2 / A2 Lite.

Once the API is enabled, you can reboot the device to unroot the phone and then install the Google Camera port. This way, you won’t have to worry about OTA break even you had modified the system to enable Camera2 API.

Download Magisk Patched Boot Images

You can download the Magisk Patched boot images to root your phone temporarily from the links given below. Also, we have provided the stock boot images to unroot the phone, in case you have mistakenly flash the image.

Download Magisk Patched Boot Image for Mi A2 (jasmine_sprout)

File namePatched Boot ImageStock Boot Image
V10.0.17.0.PDIMIXM (November 2019 Update)LinkLink
V10.0.16.0.PDIMIXM (October 2019 Update)LinkLink
V10.0.15.0.PDIMIXM (October 2019 Update)LinkLink
V10.0.14.0.PDIMIXM (September 2019 Update)LinkLink
V10.0.13.0.PDIMIXM (Extract the ZIP)LinkLink
V10.0.12.0.PDIMIXMLinkLink
V10.0.10.0.PDIMIXMLinkLink
V10.0.9.0.PDIMIXMLinkLink
V10.0.8.0.PDIMIXMLinkLink
V10.0.7.0.PDIMIXMLinkLink
V10.0.4.0.PDIMIXMLinkLink
V10.0.2.0.PDIMIFJLinkLink

See also: How to easily root Xiaomi Mi A2 and install TWRP Custom Recovery

Download Magisk Patched Boot Image for Mi A2 Lite (daisy)

File namePatched Boot ImageStock Boot Image
V10.0.16.0.PDLMIXM (November 2019 Update)LinkLink
V10.0.15.0.PDLMIXM (October 2019 Update)LinkLink
V10.0.14.0.PDLMIXM (September 2019 Update)LinkLink
V10.0.13.0.PDLMIXMLinkLink
V10.0.12.0.PDLMIXMLinkLink
V10.0.10.0.PDLMIXMLinkLink
V10.0.9.0.PDLMIXMLinkLink
V10.0.8.0.PDLMIXMLinkLink
V10.0.7.0.PDLMIXMLinkLink
V10.0.4.0.PDLMIXMLinkLink
V10.0.3.0.PDLMIXMLinkLink
V10.0.1.0.PDLMIFJLinkLink

Pre-requeste

  1. Make sure your phone has at least 80 – 85% charge. If not, please do charge it before starting the experiment.
  2. You must install Android SDK tool on your computer.
  3. Bootloader Unlocking: You must unlock the Bootloader of your Xiaomi Mi A2 / A2 Lite to boot the patch image.

How to Enable Camera2 API on Xiaomi Mi A2 / A2 Lite

  1. Download the Patched Boot image for your Mi A2 / A2 Lite.
  2. Copy the downloaded image file to C:\adb folder where the ADB/Fastboot binaries are present.
  3. Press and hold the SHIFT key and do a right-click on an empty space inside the folder.
  4. You should Select ‘Open PowerShell window here’.
    PowerShell Window
  5. Connect your phone to the PC with the help of the USB cable.
  6. Now boot your device into the Bootloader/Fastboot mode using the following command:
    adb reboot bootloader
  7. Make sure that your device is being detected properly using the following command:
    adb devices
  8. The command will return a unique device ID right with the ‘fastboot’ message.
    ADB devices
  9. Temporarily boot the Magisk patched boot image using the following command:
    fastboot boot boot-image-filename.img
  10. Make sure you have replaced the “boot-image-filename.img” with the actual file name.
  11. Once you execute the command, your Mi A2/Mi A2 Lite should boot into the OS with temporary root.
  12. Right now, only the Magisk Manager stub is installed on your device. In order to work the Magisk properly for granting SU permission, you must install the full Magisk Manager. Simply go to the app drawer and launch the Magisk Manager app. In case the application is not showing, you can download the latest Magisk Manager APK from here and install it manually.
  13. Follow the on-screen instructions to install the Magisk Manager application on your phone entirely.
  14. Once you are done with the Magisk Manager, go to Google Play Store and download Termux (Terminal Emulator).
  15. Open the Termux app and type the following code:
    SU
  16. Grand the Superuser permission:
    Enable Camera2 API on Xiaomi Mi A2
  17. Finally, enter the following command on Terminal Emulator to enable Camera2 API on Xiaomi Mi A2/A2 Lite:
    setprop persist.camera.HAL3.enabled 1
    setprop persist.vendor.camera.HAL3.enabled 1
    setprop persist.camera.stats.test 5
    setprop persist.vendor.camera.stats.test 5
  18. After executing the commands, you can reboot your phone to unroot completely.

So, you are done with enabling the Camera2 API on your Mi A2/A2 Lite. Now, the next step is to install GCam. Download from the links given below and install it right away.

Download GCam for Mi A2 / A2 Lite

GCam versionSupported OSDownload (file)
Google Camera 7.2.011 PortAndroid 10DMGC_7.2.011_ver.3.2.apk
Google Camera 7.2.011 PortAndroid 10PMGC_7.2.011_CorellaParrot_V2.apk
Google Camera 7.0.009 PortAndroid 9, Android 10GCam_v7.0.009-v4.4.apk
Google Camera 7.0.009 PortAndroid 9, Android 10DMGC_7.0.009_ver.0.3-dogfood.apk

The above-given links are the fresh and latest from the developer community. GCam version 7.2 supports only on Android 10. While GCam version 7.0 can be installed on both Android 9 and 10.

Features of GCam for Mi A2/A2 Lite

All the key features of Google Camera are working fine on these ports:

  • HDR+
  • RAW support
  • ZSL
  • Portrait Mode
  • NightSight
  • Playground (AR Stickers)
  • Video recording at 60 FPS

How to install Google Camera Port APK

Follow the simple APK installation guide below:

  1. At first, download Google Camera App from the above links.
  2. Now, connect the phone to the PC by using a USB cable.
  3. Next, you need to enable MTP/Transfer Files mode on your Android device.
  4. Then transfer the downloaded APK file to the storage of your phone.
  5. Now, disconnect the phone.
  6. Then, open the file manager app on your phone.
  7. Now, you need to navigate to the location where you transferred the APK.
  8. Next, tap on the “<Google-Camera-file-name.apk>” file.
  9. Now, you must follow the on-screen instructions and install Google Camera App.
Recommended: Google Playground APK for Non-Pixel Devices [Download]

How to Use Google Camera App?

Once the installation process is over, then open the app drawer and launch the new camera app. As you launch the app for the first time, you see prompts to seek required permissions. Then, you would see a few infographics. This would help you can get accustomed with the Google camera app.

What’re your Views?

Did you find the Google Camera app performing better than the stock one? Do let us know by commenting below!

About the author

Saeed Ashif Ahmed

Saeed Ashif Ahmed is a Blogger who has a keen interest in how emerging technology can help the world become a more just, equitable, and kind place.

He enjoys interviewing CEOs of tech startups asking them what they are doing to bring greater opportunity and equity to our society.

YouTube Vanced APK V14.21.54 (for both ROOT | NON-ROOT users)Download NOW!
+ +