3

Anyone else have one of the latest Xaomi Redmi phones? My Note 4 just won't let me compile and deploy an APK from Android Studio:

04/18 21:08:14: Launching app
$ adb push C:\Users\martin\Documents\Android Projects\test-android\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.test.app

$ adb shell pm install -r "/data/local/tmp/com.test.app"
pkg: /data/local/tmp/com.test.app
Failure [INSTALL_CANCELED_BY_USER]

$ adb shell pm uninstall com.test.app
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
Martin Erlic
  • 5,467
  • 22
  • 81
  • 153

2 Answers2

3

Here is the answer from @Yury Bragin from this post

  • Go to the "Security" application and tap "Options" at top right corner

  • Scroll down to "Feature Settings" group, and look for "Permissions"

  • At there switch off "Install via USB" option, which manages installation of the apps via USB and doesn't allow it

Community
  • 1
  • 1
pz64_
  • 2,212
  • 2
  • 20
  • 43
1

Now in updated MIUI 8 in Xaomi Redmi Note 4, "Install via USB" is moved to "developer option". So go to setting => additional Settings => Developer Options => update "Install via USB".

Few more details in blog: click here

Suresh Kamrushi
  • 15,627
  • 13
  • 75
  • 90