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
7
votes
4 answers

Stuck on "Connecting to WiFi" screen while provisioning Android Lollipop device

I am trying to auto connect with WiFi when provisioning Android Lollipop device using below NFC tags: p.setProperty(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_SSID, "-----"); p.setProperty(DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PASSWORD,…
user2478004
  • 101
  • 5
6
votes
0 answers

Android - How to check current device owner?

Assuming I've got rooted device I am able to set device owner by adb: dpm set-device-owner xxx.package.xxx So - is there any possibility to check current device owner using adb? Now I have to disable single app mode and go to security settings…
KWA
  • 312
  • 3
  • 15
6
votes
1 answer

Does Device Owner app get System App permissions?

I'm trying to put some pieces together regarding the Device Owner application. With regards the the newly released EMM API, is there a way for the Device Owner application get system app permissions? I have noticed that the API allows remote package…
Martin Rončka
  • 323
  • 3
  • 14
6
votes
2 answers

build AOSP with device owner configuration

I want to build AOSP with a Device Manager app. How can I build the AOSP with device_owner.xml and device_policies.xml already configured ? PS: My target will be nexus5.
hnqoliveira
  • 113
  • 1
  • 1
  • 7
6
votes
2 answers

Install a GooglePlay located App from NFC

Working with Lollipop, I have a device-owner app that is installed with NFC at provision time. What I need now is to handle automatic updates for my App, from Google Play to rely on the standard Android App update system... So far I can imagine 2…
JBA
  • 2,889
  • 1
  • 21
  • 38
5
votes
0 answers

ScreenCapture via MediaProjection without user intervention in Kiosk apps - Android

I work for a digital signage company which has Android devices running in kiosk mode. Lately, we wanted to add screen capture for debugging. The easiest way to do that was to use getWindow().getDecorView().getRootView().getDrawingCache() to…
5
votes
3 answers

Cosu app development through Android Management Api or device owner locktask

i have to implement single use application for my Enterprise's devices where there is only one major android app that itself can use 2-3 other apps like call, sms and google maps, other than that user must not be able to use or access other apps…
5
votes
1 answer

startLockTask() without request user action

I want to activate startLockTask() without any request for users. So at first i read this Device Administration and create small sample application. In result i have my application in device administrators list but when i call startLockTask() it…
Yevhen
  • 791
  • 9
  • 24
5
votes
2 answers

Android - Allowing installation of non-market-apps fails in device owner app

I'm trying to set the security setting "Unknown Sources - Allow installation of apps from unknown sources" programmatically. For this, the DevicePolicyManager (with level 21) provides a function ("SetSecureSetting") to set this setting (only…
Arne
  • 53
  • 1
  • 5
5
votes
1 answer

Install updates for a Device-Owner App

Does anyone know what is the behavior in production of a device-owner App, distributed thru Google Play, when updates occur? As we know, installing a device-owner App involves some motivation and is not easy: reset to factory default then…
JBA
  • 2,889
  • 1
  • 21
  • 38
4
votes
1 answer

How to set device owner on Android Things?

I would like to set my Android app as device owner on a device running Android Things. (I know that Android Things is getting shut down, but still I would need to make it work) I tried the usual command: adb shell dpm set-device-owner…
4
votes
0 answers

Make a custom Setup Wizard for System Android Application running on an Emulator

I need to build a custom Setup Wizard to provision another app as a device owner. The setup wizard will then run on our hardware as a privileged app (residing in the priv-app folder) I have spent a lot of time trying to get this to work in an…
nilsi
  • 10,351
  • 10
  • 67
  • 79
4
votes
1 answer

Looking for solution for updating a device owner app without factory reset

I have a kiosk mode Android non-Playstore tablet app (that we have been installing on the devices by using adb shell install). Kiosk mode is achieved through a combination of several DevicePolicyManager methods, setting user restrictions, and…
dpspae03
  • 79
  • 1
  • 10
4
votes
4 answers

Error: Unknown admin: ComponentInfo

The manifest file can be found here. DeviceAdminReceiver class can be found here agent_device_xml is as defined below:
user8000126
4
votes
1 answer

How to access HardwarePropertiesManager on Android Things

I have a raspberry pi installed with the android things developer preview. I would like to monitor the CPU temperature and usage of the raspberry itself. My approach was to use the HardwarePropertiesManager like this: HardwarePropertiesManager…
TyrManuZ
  • 2,039
  • 1
  • 14
  • 23
1
2
3
9 10