I know this is an old question but I am trying to install my app the very first time on Redmi note 4. Whenever i try to install it displays a dialog saying..
Installatio
I didn't have to turn off MIUI optimizations (using MIUI v8.5.3.0 MAGCNED). In my case I was blocked by the MIUI security system.
Go to Settings > Additional settings > Developer Options
Once you do this MIUI will prompt you whether you want to install your app. You only need to accept permission once.
One strange issue I notice is that I cannot enable install via USB without sim card. However, Once it is enabled I am able to remove the sim.