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.
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.
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)
How to Enable Camera2 API on Xiaomi Mi A2 / A2 Lite
Download the Patched Boot image for your Mi A2 / A2 Lite.
Copy the downloaded image file to C:\adb folder where the ADB/Fastboot binaries are present.
Press and hold the SHIFT key and do a right-click on an empty space inside the folder.
You should Select ‘Open PowerShell window here’.
Connect your phone to the PC with the help of the USB cable.
Now boot your device into the Bootloader/Fastboot mode using the following command:
adb reboot bootloader
Make sure that your device is being detected properly using the following command:
The command will return a unique device ID right with the ‘fastboot’ message.
Temporarily boot the Magisk patched boot image using the following command:
fastboot boot boot-image-filename.img
Make sure you have replaced the “boot-image-filename.img” with the actual file name.
Once you execute the command, your Mi A2/Mi A2 Lite should boot into the OS with temporary root.
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.
Follow the on-screen instructions to install the Magisk Manager application on your phone entirely.
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!
So, you are done with the complete tutorial. We hope you now have a piece of explicit knowledge about how to enable Camera2 API and install GCam port on Mi A2/A2 Lite without root. If you have any further queries, kindly leave them down in the comment box. Also, if you found this post helpful, do not forget to share it on Social Media to thank us.
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.