Download the popular Google Camera app for Xiaomi Redmi 5A. There are two known working builds for the phone. Both APK files are the modded Gcam version ported from Google Pixel 2 device. Use it to nail a currently trending bokeh shot on either the front camera or the rear camera of your Snapdragon-425-powered phone.
However, just like many common ported Gcam mod apps available out there, these versions also require you to enable Android Camera2 API abilities within the mobile OS. Both apps shall work on either stock MIUI ROM or custom ROMs as long as you can and you have enabled the Camera2 API on it.
This tutorial shows you how to enable Camera2 API without rooting your device and without flashing a custom recovery. However, it needs the TWRP / RWRP for booting only. The main concept is to be able to edit the “build.prop” file through recovery without having to actually flash the custom recovery. The tutorial is for Redmi 5 Plus device but it should also be applicable to other devices including Redmi 5A. Please remember to use the compatible variant of TWRP.
Alternatively, you can use this TWRP Flasher toolkit for easy-flashing the custom recovery, and then flash Magisk to gain root access. Once rooted, search for and install Camera2 API Enabler module within the Magisk Manager app.
Scrubber GCam Pixel 2XL
Download the .apk file and install it as usual. There are no complicated settings required. Some popular features including Lens Blur, Portrait mode, JPG compression, and HDR’s quality are reported to work flawlessly. As for the HDR+ settings, you may choose Pixel, Pixel2, or Nexus6P model.
BSG GCam Mod App
This version is not so preferable since it might cause the stock MIUI Camera app crash. However, the popular portrait bokeh effect is reported to work on both front and rear cameras.