Questions tagged [device-owner]

A specialized type of Android device administrator

Android 5.0 introduces the ability to deploy a device owner app. A device owner is a specialized type of device administrator that has the additional ability to create and remove secondary users and to configure global settings on the device.

149 questions
4
votes
3 answers

How to make my app device owner without NFC and ADB shell command?

I have an android app which is installed on 100+ devices. (Android 5.1.1 API22 and 6.0.1 API 23) https://developer.android.com/reference/android/app/admin/package-summary.html I went through all these references but no luck. Using the…
Guest
  • 265
  • 2
  • 5
  • 13
4
votes
2 answers

Device-Owner now disables the Backup service

I've had an issue with my device-owner App : before Android 5.1 it was working nicely, but now after the update to Android 5.1, installing a device-owner App disables the Backup Service. Now in the device settings, when going into the Backup &…
JBA
  • 2,889
  • 1
  • 21
  • 38
3
votes
1 answer

Device owner QR stopped working on Android12 devices, getting Can't set up device message

For some reason, the QR code for installing our app as a device owner stopped working on Android12 devices (the same QR codeworks perfectly on previous Android versions). The error message we are getting is: Can't set up device Contact your IT admin…
Daniel
  • 36,833
  • 10
  • 119
  • 200
3
votes
1 answer

Can't set device owner on Samsung device with Android 11

I'm trying to set my app as a device owner on the Samsung A51 with Android 11. It's a fresh device with no accounts added: adb shell dpm set-device-owner /.receiver.AdminReceiver java.lang.RuntimeException: Can't set package…
artem
  • 16,382
  • 34
  • 113
  • 189
3
votes
1 answer

How to kill another app if your app has Device Admin/ Device Owner permission ( not rooted )

How can I kill ( or prevent the launch ) another app from my application if mine has Device Admin/ Device Owner permission ( not rooted ) ?
3
votes
1 answer

"Can't setup device- Couldn't install the admin app"- Error while QR code provisioning of a Device Owner app

I have created a device owner app but I am having trouble installing it on a real device. I'm using the QR Code method given here. The text I am using to create my QR Code…
3
votes
2 answers

Launch application after PackageInstaller finished (self) updating

After the PackageInstaller successfully (self) updates the application, the application closes and doesn't launch again. Possible duplicate: Android PackageInstaller, re-open the app after it updates itself The situation is pretty similar, ill show…
3
votes
1 answer

Silent APK installation by the device owner doesn't work on MIUI 11

I have a "device owner" Android app which silently installs APK using PackageInstaller (see the code, for example, here). This code works perfectly on all Android 7+ devices except Xiaomi Redmi 7A (running MIUI 11). The installation fails, here's…
3
votes
2 answers

Bluetooth pairing dialog not showing up in Screen Pinning mode

I'm writing an enterprise inspired app based on Device Policy Manager. The app will enable kiosk mode on the device so only one app will be in the foreground & the user won't be able to get out of the app. My app whitelists the particular app that's…
3
votes
0 answers

Android: how can I disable play protect through device policy manager as device owner?

When I try to download and install a 3rd party app using the PackageInstaller service from my device owner/provisioning app Google Play shows a prompt before the app is installed. I can accept or decline and it doesnt affect the installation, but…
geoxile
  • 348
  • 1
  • 6
  • 16
3
votes
2 answers

QR code provisioning into Device Owner mode fails

I have a device running Android 7.1.1 and I am building sample DPC app in preparation for making a COSU kiosk app but I keep running into an error in the provisioning setup. Steps I take: Factory reset the device Successfully scan the code from the…
Heavylama
  • 43
  • 2
  • 5
3
votes
1 answer

How can I set the device owner on a Samsung device?

Similar to the question here, I am trying to set the device owner using adb on a Samsung XCover4 Not allowed to set the device owner Although there are no accounts on the device after a factory reset, the call to adb shell dpm…
Gary Wright
  • 2,441
  • 1
  • 20
  • 32
3
votes
0 answers

how do I turn off the "Screen Pinned" and "Kiosk Mode enabled" dialogs?

Background: I am making an app that runs in Kiosk Mode (enabled by making the app the Device Owner). The app is just for me, and it will not be available on Google Play. Problem: When I turn on Kiosk Mode it says "Screen Pinned" and "Kiosk Mode…
Bobby
  • 51
  • 5
3
votes
1 answer

Android, set Bluetooth and GPS on, with Device Owner permission

In my application i got the Device Owner permissions, set through Adb shell. Now I'm able to create a kios mode enviroment which allow the user to interact only with my app. Next step, I'd like to programmatically turn on the Bluetooth and Location…
L. Gangemi
  • 3,110
  • 1
  • 22
  • 47
1 2
3
9 10