I am not sure enabling camera2 api is a good idea if you want miui camera, I think miui camera crashes when you enable it.Nope, you need to flash manually camera2api enabler like 'HZQ_MIUI_Camera_Mod_CAMERA2_API_170824.zip' from this site : https://www.androidfilehost.com/?w=files&flid=243501