How to Enable Camera2 API on Xiaomi Mi A1 without Permanently Rooting it

Enable Camera2 API on Xiaomi Mi A1 running Android Pie without Root