问题
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]
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.
回答1:
I had the same issue. It happens only on Flyme
due to Security
App.
To enable installation:
- Open Security Application. (it is one of preinstalled
Flyme
apps) - Go to Permission
- Usb app installation.
- Turn off USB installation monitor.
Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.
回答2:
I also had the same problem with my Xiaomi Redmi note 3. here's how i solved it,
- Go to
settings
>>Additional Settings
. - Go to
developer options
.(if its not there, first gotoabout phone
and tap onbuild number
7 times...and start again from step 1) - Click on
install via USB
. - That's all, you are ready to rock :)
回答3:
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!
回答4:
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 if you have a Xiaomi count, create and activate your count, then sign on and turn on install via USB.
回答5:
In my Redmi4 i had the same issue. The steps followed to overcome: (1)
- Settings -> About Phone -> tap 7-8 times the MIUI version(to activate Developer Options)
- Settings -> Additional settings-> Developer Options -> enable USB debugging -> install via USB
DONE
回答6:
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.
回答7:
I faced same problem on Maizu Pro 6, rooting my phone solved it.
回答8:
if u app's packageName contains number like this : "com.meizu.01", failed.
switch to 'com.meizu.one', ook!
回答9:
Redmi Note 7 and pro In developer options Allow USB Debugging, Install Via USB and disable Verify apps over USB
回答10:
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.
来源:https://stackoverflow.com/questions/40534271/android-studio-failure-install-failed-user-restricted