Xiaomi Mi A1 is a stunning Android smartphone which was launched back in September. The device comes with a LTPS IPS display with the resolution of 1080 x 1920, Snapdragon 625 processor, 4 GB of RAM and an internal storage of 64 GB. Moreover, the Xiaomi Mi A1 comes with the dual 12 MP rear camera and a 5 MP front camera. It’s considered as a perfect smartphone for all those who are on a tight budget.
The design and hardware capability of Mi A1 is excellent but sometimes, the smartphone manufacturer locks some features of the hardware which limits its performance and that’s the case with Xiaomi Mi A1. Xiaomi has locked the Night Light feature of MI A1 which can now be unlocked thanks to some third party developers. Some XDA members finally found a way to enable Night Light and Camera2 API on Xiaomi Mi A1. Enabling Night Light and Camera2 API offers Mi A1 users Night Light, EIS, Slow motion support. Besides that, you can now also disable noise cancellation during voice recordings and forces HAL 3 (Hardware Abstraction Layer).
How to enable Night Light and Camera2 API on Xiaomi Mi A1:
Before proceeding, I need to remind our readers that this procedure is only for Xiaomi Mi A1.
The device needs to be rooted and have Magisk installed.
If you are ready then download the Night Light and Camera2 API magisk module on the device.
Once installed, run the camera application on your device.
Source
XDA