Resolving “Install app via USB: The device is temporarily restricted” on Xiaomi Devices

Resolving "Install app via USB: The device is temporarily restricted" on Xiaomi Devices

22 April 2024 Stephan Petzl Leave a comment Tech-Help

Developers often encounter issues when attempting to install apps via USB on Xiaomi devices, particularly when faced with the message “The device is temporarily restricted.” This can be a frustrating obstacle, but there are various solutions to overcome this problem.

Understanding the Issue

This issue is commonly reported on Xiaomi phones running MIUI 8 or above. The problem arises when the “Install via USB” option in the Developer settings attempts to connect to a server and fails, likely due to regional restrictions.

Workarounds and Solutions

Here are several methods that have worked for users:

  1. Using a VPN: Connect to a VPN server located in China, then enable “Install via USB” in the Developer options. PlexVPN is an example of a service that users have found success with.
  2. Data Connection: Disable Wi-Fi and enable mobile data. Attempt to enable “Install via USB” again while connected to mobile data.
  3. MIUI Optimization: Go to Settings > Additional Settings > Developer options and turn off MIUI optimizations. Restart your device and then try to enable “Install via USB” again.
  4. Re-authentication: If you are signed into a Mi account, try signing out and back in before attempting to enable “Install via USB.”
  5. USB Debugging Security Settings: In Developer options, find “USB Debugging (Security settings)” and go through the permission granting process. Afterward, try enabling “Install via USB.”
  6. System Update: Ensure your MIUI version is up to date. Go to Settings > About phone > System update to check for updates.

How “Repeato” Can Assist

While troubleshooting the USB installation issue, it’s vital to have reliable testing tools at your disposal. “Repeato” is one such tool that can simplify the process. As a no-code test automation tool for iOS and Android, Repeato allows you to create, run, and maintain automated tests for your apps effortlessly.

With “Repeato,” you can bypass some of the challenges associated with USB debugging by running tests that are fast to edit and execute. The tool’s compatibility with various app frameworks and its onboard ADB capabilities, including the execution of ADB commands via script steps, make it an invaluable resource for developers facing installation restrictions.

For more insights on how to manage ADB and related challenges, you might find these articles from our blog helpful:


Resolving the “Install app via USB” restriction on Xiaomi devices can be achieved through various methods, including the use of a VPN, toggling data connections, and updating system settings. Developers should experiment with these solutions to find what works best for their specific scenario. Moreover, leveraging a tool like “Repeato” can further streamline testing and development workflows, irrespective of the USB installation issues.

Like this article? there’s more where that came from!