INSTALL_FAILED_USER_RESTRICTED:解决黑鲨/小米手机wifi debug安装apk时AS报错

android studio 信息如下:

Android Studio Iguana | 2023.2.1

Build #AI-232.10227.8.2321.11479570, built on February 22, 2024

Runtime version: 17.0.10+7-b1000.50 amd64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Windows 10.0

GC: G1 Young Generation, G1 Old Generation

Memory: 2048M

Cores: 16

Registry:

ide.browser.jcef.sandbox.enable=false

ide.experimental.ui=true

Non-Bundled Plugins:

co.fitten.fittencode-intellij-beta (0.10.12)

Docker (232.10227.13)

问题描述

使用wifi debug代替传统usb调试,安装应用的时候出现

INSTALL_FAILED_USER_RESTRICTED

解决办法:

打开开发者模式

勾选 1.无线调试 2.USB调试 3.USB安装

取消勾选 : 1.启用MIUI优化 也就是关闭MIUI优化

相关推荐
hjlgs8 小时前
framework修改快速验证
android
游戏开发爱好者88 小时前
iOS 开发者的安全加固工具,从源码到成品 IPA 的多层防护体系实践
android·安全·ios·小程序·uni-app·cocoa·iphone
安卓理事人9 小时前
安卓内存泄露排查LeakCanary
android
秃了也弱了。10 小时前
MySQL空间函数详解,MySQL记录经纬度并进行计算
android·数据库·mysql
.豆鲨包11 小时前
【Android】Binder机制浅析
android·binder
Nerve12 小时前
GooglePay: API 文档
android·google
Nerve13 小时前
GooglePay: 订阅商品购买流程
android·google
summerkissyou198713 小时前
Audio-触摸音-播放流程
android
Nerve13 小时前
GooglePay: 消耗商品购买流程
android·google
wanhengidc13 小时前
云手机 多端互通 科技
运维·服务器·科技·游戏·智能手机