Unknown failure: Security exception: User restriction prevents installing code example
Example: INSTALL_FAILED_USER_RESTRICTED: Install canceled by user
1) Turn ON Developer Options
2) Turn ON USB Debugging
3) Turn OFF MIUI optimization
4) Turn ON Install via USB