I try to install an app from Android Studio on Xiaomi Mi Max via USB.

The debug mode is on, but when I try to switch the 'Install over USB' enabled, I get 'The device is temporarily restricted' message.

Core version is 3.10.84, Android version is 7.0, MIUI version is 8 Global 7.7.20.


Finally, I got a workaround - the Wi-Fi has to be turned off and then the installation over USB works as expected.

  • Thank you!! I really do not understand why that is needed, security feature? – Tano Oct 3 '17 at 14:30
  • Welcome, yes, it looks like some SELinux restriction. – Bord81 Oct 3 '17 at 15:03
  • 1
    First I had to create the annoying MI account, then it demanded I insert a SIM to allow install over USB, now this... Unbelievably ill-conceived phone. – LaserJesus Nov 18 '17 at 2:56

protected by Community Oct 3 '17 at 5:00

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.