device-owner

How do you un-provision a device in order to set the Device Owner?

早过忘川 提交于 2019-12-20 03:56:08
问题 'm trying to set up Device Owner using the sample apps downloadable from developer.android.com https://developer.android.com/samples/NfcProvisioning/index.html https://developer.android.com/samples/DeviceOwner/index.html But when I NFC tap the devices in the logcat for the device I am trying to set the Device Owner for I see this: /? E/ManagedProvisioning﹕ Device already provisioned. However I am doing a factory reset just before attempting the provisioning, so how can I get the device into

How to use Managed Configurations in an app that may not have a Managed Configurations Provider?

强颜欢笑 提交于 2019-12-20 03:13:36
问题 I am developing an app that will work in 2 different Android environments (consumer & corporate markets). Lets say it is a texting app with a dozen configuration parameters to manage. The first environment is a standard Android device that has no Android Enterprise (AfW) features enabled. So there is no EMM (MDM) to supply an Android Agent/Client app to be a device/profile owner implementing a Managed Configurations Provider. The second environment is within a corporation. An EMM (MDM) is

How to use Managed Configurations in an app that may not have a Managed Configurations Provider?

﹥>﹥吖頭↗ 提交于 2019-12-20 03:12:33
问题 I am developing an app that will work in 2 different Android environments (consumer & corporate markets). Lets say it is a texting app with a dozen configuration parameters to manage. The first environment is a standard Android device that has no Android Enterprise (AfW) features enabled. So there is no EMM (MDM) to supply an Android Agent/Client app to be a device/profile owner implementing a Managed Configurations Provider. The second environment is within a corporation. An EMM (MDM) is

Android PackageInstaller, re-open the app after it updates itself

随声附和 提交于 2019-12-19 02:52:09
问题 I'm developing an app that runs as Device Owner, and I want to build an automatic updater inside it. To do it I use the PackageInstaller, as I have the privileges to use it due to my Device owner position. private void installPackage(InputStream inputStream) throws IOException { notifyLog("Inizio aggiornamento..."); PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); int sessionId = packageInstaller.createSession(new PackageInstaller .SessionParams

Why can't I create a restricted profile when an owner device app is set?

寵の児 提交于 2019-12-12 13:53:28
问题 I recently noticed that when a Device Owner application is set, it's not possible to create a restricted profile. First case : When my device owner app is not set . From Settings>Users : I can "Add user or Profile" , and then choose between a User or a Restricted Profile . Second case : When my device owner app is set . From Settings>Users : I can only "Add user" , and then i get the confirmation to create a new user. In this second case, it's not possible to create a restricted profile. I'd

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

别说谁变了你拦得住时间么 提交于 2019-12-11 20:04:33
问题 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 this Version of the rom: T590XXU2ASC1. I am not using NFC method. I usualy create the /data/system/device_owner.xml file by myself. But since it is not working I tryed this method: 1-Factory reset the tablet in recovery mode 2-Pass through the annoying startup menus 3-Set lock screen to none 4-Enable

How to enable task locking in Android 5.0 production devices

我只是一个虾纸丫 提交于 2019-12-11 04:43:58
问题 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 am using adb shell command and it works. my problem is how do i achieve it for production so my enterprise will be able to install and use this as required. 回答1: This answer will work if your Android 5.0 devices have NFC. Otherwise, Google supported a method using a Google Account with an

How do I get the signature checksum of my APK?

你。 提交于 2019-12-10 23:30:56
问题 I would like to use the signature checksum instead of the package checksum when provisioning a device with a device owner app. The app will be downloaded from an http server. This post is great when using EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM: Checksum Error while provisioning Android Lollipop But I would like to use EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM. See: https://developer.android.com/reference/android/app/admin/DevicePolicyManager.htm The provisioning app and

Is it possible to have a “Profile Owner” app in Android Lollipop that is not co-present

故事扮演 提交于 2019-12-10 03:54:12
问题 The Lollipop API provides 2 new features "Profile Owner" and "Device Owner" (http://developer.android.com/about/versions/android-5.0.html#Enterprise). Between them, they offer just the features I need for an app that parents can use to control their children's device activity. The setup flow for each is: Device Owner During device setup, using NFC, you can tell Android that you want your app to be a Device Owner. Android then downloads the app from a URL, and the device is encrypted and is

Device Owner without using NFC in Android Lollipop

喜你入骨 提交于 2019-12-08 02:56:20
问题 I want to make my app as Device Owner without using NFC. On developer blog it's mentioned that to make device owner you must use NFC but I found it is also possible without NFC as mentioned by alex_au in this comment. I have tried this but haven't been successful. Has anybody been able to accomplish this? 回答1: You can use command line tool dpm from adb shell. Usage: usage: dpm [subcommand] [options] usage: dpm set-device-owner <COMPONENT> usage: dpm set-profile-owner <COMPONENT> <USER_ID> dpm