简体   繁体   English

INSTALL_FAILED_USER_RESTRICTED 通过 USB 安装被禁用

[英]INSTALL_FAILED_USER_RESTRICTED Installation via USB is disabled

09/18 11:00:20: Launching 'app' on Xiaomi Redmi 6. Installation did not succeed. 09/18 11:00:20:在小米红米 6 上启动“app”。安装没有成功。 The application could not be installed: INSTALL_FAILED_USER_RESTRICTED Installation via USB is disabled.无法安装应用程序:INSTALL_FAILED_USER_RESTRICTED 通过 USB 安装被禁用。

Try turning off MIUI optimization (see https://stackoverflow.com/a/48524656/80901 ).尝试关闭 MIUI 优化(参见https://stackoverflow.com/a/48524656/80901 )。 This helped me with a Redmi.这帮助我使用了 Redmi。

Please Turn on "USB debugging" in developer options.请在开发者选项中开启“USB 调试”。 Additionally you also have to turn on "Install Apps via USB".. Hopefully it will work smoothly.此外,您还必须打开“通过 USB 安装应用程序”。希望它能够顺利运行。

If anyone trying in MI Phones and no other option for him his there, As Turning off MIUI optimization decrease the battery performance.如果有人尝试使用 MI Phones 而没有其他选择,因为关闭 MIUI 优化会降低电池性能。 Then he can try cleaning data of Security app.然后他可以尝试清理安全应用程序的数据。

Note- This can once ask your pattern lock after doing it.注意 - 这可以在完成后询问您的模式锁定。 After that it will work fine.之后它会正常工作。

在开发者选项中打开 USB 调试,当您通过 USB 将您的设备连接到 PC 时,将出现一个弹出窗口,请选中允许“USB 调试”选项,您的应用程序将被正确安装。

我有小米红米 4 ,所以希望它与红米 6 相关。当尝试通过 USB 安装时,设备会要求您通过您的 MI 帐户输入,如果您没有,请创建它,然后通过 USB 安装应该可以工作。

转到“开发人员”选项并打开“USB 调试”选项下方的“通过 USB 安装”选项。

Run "adb uninstall " and it solves the problem.运行“adb uninstall”即可解决问题。 It occurs when you uninstall manuelly an app which is build by Android Studio.当您手动卸载由 Android Studio 构建的应用程序时会发生这种情况。

If you changed Background process limit in Developer Options to No background process .如果您将开发人员选项中的Background process limit更改为No background process The same error will also occur.也会出现同样的错误。

If you did, change Background process limit back to Standard limit如果这样做,请将Background process limit更改回Standard limit

For those who working with knox container try: AndroidStudio -> Run -> Edit Configurations -> [select]: Install for all users.对于那些使用 knox 容器的人,请尝试:AndroidStudio -> 运行 -> 编辑配置 -> [选择]:为所有用户安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 INSTALL_FAILED_USER_RESTRICTED:安装被用户通过 adb 安装应用程序取消(无 SIM 卡) - INSTALL_FAILED_USER_RESTRICTED: Install canceled by user install apps via adb (no Sim Card) INSTALL_FAILED_USER_RESTRICTED:android studio 使用 redmi 4 设备 - INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device 无法安装应用程序:INSTALL_FAILED_USER_RESTRICTED - The application could not be installed: INSTALL_FAILED_USER_RESTRICTED android中的失败[INSTALL_FAILED_USER_RESTRICTED: Invalid apk] - Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk] in android Android 工作室:失败 [INSTALL_FAILED_USER_RESTRICTED] - Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED] 部署失败:INSTALL_FAILED_USER_RESTRICTED:安装被用户取消,没有弹出允许窗口 - Deployment failed: INSTALL_FAILED_USER_RESTRICTED: Install canceled by User without allow-window popping up “无法完成会话:INSTALL_FAILED_USER_RESTRICTED:无效的APK。” - “Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Invalid apk.” 通过usb安装app:设备暂时受限 - Install app via usb: The device is temporarily restricted Redmi 9 和 Android Studio - 通过 USB 安装被禁用 - Redmi 9 and Android Studio - Installation via USB is disabled 通过USB的Miui 9.2.5安装受到临时限制。 我该如何解决? - Miui 9.2.5 installation via usb is temporarily restricted. How do I fix this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM