INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] code example
Example 1: ailure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
// check in device if it is allowed to install apps by usb.
Example 2: 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