简体   繁体   中英

Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED]

I work on Android Studio with Meizu MX6 . Previously everything was ok. But it seems after updating Flyme , I started getting this problem:

Failure [INSTALL_FAILED_USER_RESTRICTED]

https://i.stack.imgur.com/3492W.jpg

If I choose "Ok" I get next:

DELETE_FAILED_INTERNAL_ERROR

When I work with another smartphone all right. If I copy apk-file on my phone all right too. It installs and runs. Install software from unknown sources is on.

I had the same issue. It happens only on Flyme due to Security App. To enable installation:

  1. Open Security Application. (it is one of preinstalled Flyme apps)
  2. Go to Permission
  3. Usb app installation.
  4. Turn off USB installation monitor.

Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.

I also had the same problem with my Xiaomi Redmi note 3 . here's how i solved it,

  1. Go to settings >> Additional Settings .
  2. Go to developer options .(if its not there, first goto about phone and tap on build number 7 times...and start again from step 1)
  3. Click on install via USB .
  4. That's all, you are ready to rock :)

I have had the same problem with XIAO MI.

I went to Settings -> Additional Settings -> Developer options -> Turn On "Install via USB"

Only you can activate this switch i f you have a Xiaomi count , create and activate your count, then sign on and turn on install via USB.

在此处输入图片说明

The device is temporarily restricted error appears in MIUI 8.5. To resolve the error you need to make WIFI off and make mobile data on and then enable the option “Install via USB” . It will work for you. Enjoy!

In my Redmi4 i had the same issue. The steps followed to overcome: (1)

  1. Settings -> About Phone -> tap 7-8 times the MIUI version(to activate Developer Options)
  2. Settings -> Additional settings-> Developer Options -> enable USB debugging -> install via USB

DONE

On Redmi Note 4, Go To Settings --> System & Device (Additional Settings) --> Developer Options --> Install via USB.

Register using a mobile number(OTP).

Try again, should work.

Do you have a rooted phone with some application installed that manages App Access authorisations, like King Root?

I had faced with same problem on one of the devices. There was an app on device with super user access that was blocking the new installation. Had to approve installation in that app first before installing new apks.

Redmi Note 7 和 pro 在开发人员选项中允许 USB 调试,通过 USB 安装并禁用通过 USB 验证应用程序

我在Maizu Pro 6上遇到了同样的问题,使手机扎根解决了问题。

if u app's packageName contains number like this : "com.meizu.01", failed.

switch to 'com.meizu.one', ook!

This occurs when you select the option "remember my choice" and Decline accidentally.

The only solution I found was to change the name of the package and application, but this is not feasible in many cases

If you got this after mistakenly "Cancel"-ing when you must have selected Remember my choice then some dirty fix would be to:

  1. Manually copy the same debug apk from your build output to the same test phone.

  2. Manually install the apk. (You have to allow installation from unknown sources of course)

  3. Go to "App Manager" and clear preferences.

  4. Restart the debug as usual.

NB: This was put up in a hurry after some wasted hours so, I'm yet to verify if step #3 is necessary for this to work.

NBB: You'd be back to square one if you uninstall the app and try to do a fresh install from the debug so, apparently, the App Manager preference reset doesn't cover whichever subsystem it is that governs the setting. Yes, I know, this should infer that our first #NB is void but things don't always follow intuition so, I'm leaving it till it's verified. :D

for MIUI 9:

  1. Go to "Settings" -> "Additional Settings" -> "Developer Options".
  2. Disable "MIUI optimization" and restart your device.
  3. Enable "USB Debugging" within the Developer Options.
  4. Turn on the "Install via USB" option (By default, MTP (Media
    Transfer Protocol) is themode set. In some instances, it may work
    with MTP as well).
  5. Configure the USB connection to "Charging" mode.

I've found a way to unblock the app installs if you have acidentaly marked the option to always block it.

Reset options to "Always block" app install

Open "Configurations" > "Apps" > "Manage Apps" > Permissions > Install via USB.

Disable the switch for your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM