Questions tagged [device-owner]

A specialized type of Android device administrator

0
votes
0answers
17 views

App device owner provision resets after launch

After provision an app as device owner on android 8.1.0, its automatically gets un-provisioned after app is executed for the first time. For the first execution, app remains device owner, but for ...
0
votes
0answers
13 views

How do I confirm tampering (rooting or non-OEM rom) on device running my device owner app?

This post is related to this one: Setting Device Owner app problem "Workspace has been locked" Android Oreo 8.1 I have a device owner app (kiosk using locktask, etc.) running on Samsung ...
5
votes
4answers
181 views

How to prevent users from turning off GPS, Wifi and Bluetooth?

I'm developing a tracking application and I need to prevent users from turning off the basic sensors used to determine the location. I can not modify the devices ROM or have root access (or at least ...
0
votes
1answer
15 views

Does uninstalling the application removes the device owner settings the application has utilized?

I'm trying to create an application that can disable or hide other applications. After going through some online resources i found out that i have to make my application the device owner to do so. I ...
0
votes
1answer
89 views

Setting Device Owner app problem “Workspace has been locked” Android Oreo 8.1

0 I've been using my app as a deviceOwner App since lollipop. I have a new device here which I want to be DeviceOwner too. It is a Samsung galaxy Tab A 10.5(2018) SM-T590. I am currently running ...
0
votes
0answers
23 views

Can't use PackageInstaller without PlayStore

Started testing Android 9 with our Device Owner app where we block Google Play Store and sometimes install APKs (e.g. self update) but, with this setup, the installation fails with ...
0
votes
0answers
4 views

DPC PackageInstaller silent uninstall fails since API level 26

our DPC uses PackageInstaller to silently uninstall apps, seems that since API level 26 this no longer works, is there a new way to do silent uninstall as a device owner since API 26 ?
1
vote
1answer
22 views

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 ...
0
votes
0answers
31 views

How do i debug a device owner/device admin application?

I have a Xamarin Android app. I have used ADB to make it a device owner. I have also set it up so it requests DeviceAdministrator privileges. When i try to run the app from visual studio it, using ...
0
votes
0answers
86 views

Remove notification “Device is managed by your organization” while Device Owner

When I set my Custom DPC as Device Owner after provisioning on Setup Wizard, at the end of the provisioning, a notification appears. The title of this notification is "Device is managed by your ...
1
vote
0answers
43 views

Android Device Owner QR Code provisioning disables Backup Service

I'm provisioning Android devices in Device-Owner mode via QR code. The device owner app is from our EMM tool (Ivanit EPM). The Provisioning itself works fine, but the problem is, that after the ...
0
votes
1answer
28 views

Should I sign my Android APKs even though they are only used in an enterprise/private context?

I am building an app that is installed on multiple private enterprise android devices on which I am the device owner. Should I bother signing my apps in this context, as they will only be side loaded,...
0
votes
0answers
16 views

How to add specific system app while provisionned device using QR

I tried to provisioned my android device using QR code. The QR code contains all the information concerning my DPC so that it becomes device owner. Everything is working except one thing. I would like ...
0
votes
0answers
30 views

failure to become Device owner

When I type this command : adb shell dpm set-device-owner com.example.android.deviceowner/.DeviceOwnerReceiver where com.example.android.deviceowner/.DeviceOwnerReceiver is the package name,...
0
votes
0answers
74 views

Set system app as lock task package using device owner

My app is a system signed Device-owner app, and i would like to set my own app in lock task mode. However the method in DevicePolicyManager setLockTaskPackages doesn't work for system apps even if ...
1
vote
1answer
144 views

Device owner not being cleared on Android M

I wrote a device owner kiosk app that I'd like to remove the device owner status on so I can uninstall it without having to factory reset the device. The following works on Nougat and Oreo, but not ...
0
votes
0answers
138 views

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 ...
0
votes
0answers
17 views

Android ContentProvider and Service in Multi-User Devices

In a multi-user Android device and when we switch to other secondary user (either using Ui or programmatically), does Android keep any of Primary user components alive , for example started ...
1
vote
0answers
34 views

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 ...
0
votes
1answer
95 views

Clearing device owner application data

I'm developing a device owner app (which is installed via QR code) In one scenario I need to switch users and that involves clearing all data that is related to the application, if the app wasn't a "...
1
vote
2answers
266 views

Making app package as device owner using command programmatically

I have been working on making the package as device owner but did not found any success. I have rooted my device for the same. I am using this command. val exe = ShellExecuter() ...
1
vote
1answer
35 views

in device owner app for enterprise, does the flag.DISALLOW_FACTORY_RESET also prevent hard reset from recovery?

For device owner app for enterprise, does the flag.DISALLOW_FACTORY_RESET also prevent hard reset from recovery? DevicePolicyManager.addUserRestriction(ComponentName, DISALLOW_FACTORY_RESET)
1
vote
2answers
85 views

Kiosk devices with Lollipop (5.1) enrollment via NFC

I would like to ask, if somebody tried enroll Kiosk devices with Android via programmed NFC tags. I found this great blog post and followed steps inside. But I'm unable to even start process of ...
1
vote
1answer
199 views

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 ...
1
vote
0answers
47 views

Grant User Credential Permission to an app programtaically via another Device Owner App

One of my apps requires the use of a User Credential, already installed into the android store. If I try to access the certificates via using the KeyChain class, I obtain an exception: android....
9
votes
1answer
366 views

NFC Device Owner Provisioning and Knox

Firstly, apologies if this is an inappropriate place for this question as it is not strictly a code question but I am struggling to find any relevant resources anywhere else. We have a solution based ...
0
votes
0answers
122 views

Android Lock Task Mode Implement with Device Ownership

I am implementing a Device Lock Down App based on Location and the target devices are personal devices, and I cannot get the Device Ownership of those devices. I need to able to implement the app ...
3
votes
0answers
111 views

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()....
0
votes
1answer
167 views

Android QR Provisioning using basic auth

I'm build an Android kiosk app (runs as Device Owner) that will not be in the Google Play Store and will be provisioned by QR Code. Until now, things have been working pretty well. I can sign my app,...
2
votes
1answer
268 views

PackageInstaller error when pragmatically updating app

I have a class called CosuUtils that follows this class pretty closely. I am programmatically updating an application that is a device owner. This works fine in Android 6 but I'm getting the following ...
1
vote
0answers
284 views

Programmatically enable USB Tethering in Single-Use Android App with Device Owner permissions?

I need to be able to enable USB tethering automatically when the device boots in a single-use, device owner Android application. I was unable to find anything on Google that shows that it is possible ...
0
votes
1answer
78 views

Default Policies applied after QR provisioning - Unable to install apps

I'm trying to provision my 7.0 device through QR provisioning. The provisioning was done successfully but default policies have been applied and i'm not unable to change it. These policies are ...
2
votes
1answer
932 views

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 ...
1
vote
1answer
245 views

System apps missing after QR provisioning

I'm trying to provision my 7.0 device through QR provisioning. The provisioning was done successfully but it created a separate profile and the apps in the priv-app section are not visible here. ...
3
votes
0answers
279 views

Turn device off instead of rebooting as device owner

With the Android device owner API it is possible to reboot the device (https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#reboot(android.content.ComponentName)) which ...
1
vote
2answers
2k views

Disable a device owner app from android terminal

well, my problem is: I have an application which is set as the device owner of a device (my tablet in this case). I did it from the terminal in Ubuntu, connecting the tablet to my PC and executting ...
0
votes
0answers
563 views

How to execute Adb shell commands from Xamarin.Android App

I want to make my app Device owner using Device policy manager for which I need to execute following command: adb shell dpm set-device-owner {package_name}/{receiver_name} This works find when ...
0
votes
1answer
366 views

dpm set-device-owner not working in redmi note 4

I am trying to make an application device-admin, for that I'm following Developing a Device Administration Application And when I try to run below command ./adb shell dpm set-device-owner com.example....
1
vote
0answers
379 views

Customize Setup Wizard for Provisioning Device

I am working on an MDM/EMM application and this requires me to modify/circumvent the default google setup wizard to provision the device if its enrolled on our server. My logic is as follows :- 1 - ...
0
votes
1answer
458 views

How to get the SET_TIME permission [duplicate]

I am developing a device owner app. In the app I'm trying to gain the SET_TIME permission by using: DeviceOwnerHelper.getInstance().getDevicePolicyManager().setPermissionGrantState(new ComponentName(...
2
votes
2answers
297 views

Device owner on Android TV Box not working

I want to install my application as device owner on Android TV Box and I get the next exception. adb shell dpm set-device-owner "com.android.testapp/.receivers.AdminReceiver" java.lang....
0
votes
1answer
344 views

Device Owner setup using code not working

Runtime.getRuntime().exec("dpm set-device-owner com.integral.kiosk.kioskapp/.receivers.MyDeviceAdminReceiver"); not setting the device owner in Android emulator Nexus 6 OS Android 8. but when using ...
1
vote
0answers
426 views

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 ...
2
votes
2answers
451 views

Build Applications for Single-Use Devices

I have tested build applications for corporate-owned, single-use (COSU) code from google for single app use case where there will be one app locked on the screen. It works well, but the app need to ...
4
votes
3answers
1k views

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 ...
1
vote
1answer
209 views

How to enable task locking in Android 5.0 production devices

I have an app for my company(Enterprise) owned devices , which works as single use app, so it locks itself and becomes single use app, for that it needs to be enabled as device owner, for testing i ...
-1
votes
1answer
3k views

can not Deactivate this device Administrator

Have an application granted device administration, while trying to uninstall went to device Administrator screen, but the option to Deactivate this device administrator text's visibility is dim and i ...
0
votes
2answers
339 views

instead of making device owner is there a way to make android app disable camera accross all users account

We have android app as an Enterprise App which disables the camera of the Device. This functionality breaks when user switch to Guest user or similar functionality. Having app as Device Administer is ...
0
votes
0answers
394 views

Lock Task Mode Android 5.0 Launcher not launching apps

I'm building a Launcher-Kiosk app for Android 5+ (>= API 21) using the Device Owner to set up the device, manage the list of apps allowed to be used, start automatically the Kiosk. The Apps are in a ...
1
vote
1answer
309 views

Why are global proxy settings cleared after restarting the phone?

I've built an app that once set as device owner turns around and sets the global proxy settings using the setRecommendedGlobalProxy() function like this: String pacUrl = "http://my-proxy-server.com:...