I am trying to create some apps on my xiaomi smartphone (MIUI 8), but when I try to run an app, the error INSTALLATION_CANCELED_BY_USER
appears. I found that the problem is that I must enable the "Install via USB" option from developer settings. When I try to do so, I get a screen that says I have to login/signup with an MI account in order to enable this option, which is something I am not willing to do. So, I have 3 questions:
- Why did they make it neccessary to provide an account for enabling an option like this?
- Is there any way I can bypass the MI login screen and enable the option?
- The reason I don't want to connect my phone to an MI account is that I am concerned about personal data being uploaded. Is it a logical concern?
adb install app.apk
useadb push app.apk /sdcard/
and then tap the apk from a file manager on the device to follow the usual side-loading install. Of course, Unknown sources must be enabled in settings. Not a solution per se, but a cheap workaround. – ccpizza Apr 8 '18 at 13:56