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?
小米手机测试时无论怎么处理都提示这个,开发者模式也打开了,usb调试也打开了,但是用androidstudio安装还是会提示这个错误,处理办法就是去把usb调试下方的usb安装选项也点开,但是需要登录小米账号才可以。