遇到了这个奇怪的错误
Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user.
It is possible that this issue is resolved by uninstalling an existing version of the `apk` if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
在我尝试在红米4 MIUI 8.5.4.0
上运行 apk
时,
OEM解锁已启用
尝试的解决方案
- 关闭MIUI优化
- 打开USB调试
- 打开通过USB验证应用
注意:在打开通过USB安装时会弹出一个窗口,显示设备受到临时限制