Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL_FAILED_USER_RESTRICTED #35

Open
DanyalNaveed opened this issue May 13, 2022 · 6 comments
Open

INSTALL_FAILED_USER_RESTRICTED #35

DanyalNaveed opened this issue May 13, 2022 · 6 comments

Comments

@DanyalNaveed
Copy link

Hi,
I have been using blackberry dynamics and UEM for my enterprise apps.
Previously I used android version 10. It worked perfectly for creating build for --user 10 on work profile . But when I updated my device to Samsung s10e with android version 11 or greater. It started giving error of INSTALL_FAILED_USER_RESTRICTED. And I am unable to install build on my work profile with android 11 and greater .
So please suggest me a work around so that I would be able to install my work tabs apps directly from android studio.
MicrosoftTeams-image (1)
MicrosoftTeams-image

@MSohm
Copy link
Collaborator

MSohm commented May 13, 2022

Installation of non Google Play apps in the work side of Android Enterprise is disabled by default. It must be enabled in BlackBerry UEM.

  1. Go to Policies and Profiles
  2. IT Policy
  3. Select your policy
  4. Click on the Android tab
  5. Check "Allow installation of non Google Play apps"

Note that there are also some policy items to enable or disable debugging, which you may need to toggle to enabled as well in order to debug the app.

@DanyalNaveed
Copy link
Author

The check is enabled for "Allow installation of non Google Play apps".
And with same policy we are able to install apps via usb debugging on android v10, but getting error of INSTALL_FAILED_USER_RESTRICTED for devices running android v11 or greater

@MSohm
Copy link
Collaborator

MSohm commented May 16, 2022

Are you able to install the same APK from file storage? Copy the APK to the SD card and try to install from a file browser app installed on the work side.

@DanyalNaveed
Copy link
Author

Yes I am able to install same APK from file storage

@MSohm
Copy link
Collaborator

MSohm commented May 17, 2022

Has the app been assigned to the user in BlackBerry UEM? Have a read through this old blog post I wrote way back in 2015 in regards to Samsung Knox and follow the steps there. Samsung has moved on from Knox and are using Android Enterprise now, but they have incorporated many Knox features into Android Enterprise on their devices to offer some enhanced security and control.

Debugging with Samsung KNOX
https://devblog.blackberry.com/en/2015/09/debugging-with-samsung-knox

@soltanzadehErfan
Copy link

If you are still facing INSTALL_FAILED_USER_RESTRICTED issue try this this methods:
Setting->Permissions->Install via USB->untick your app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants