device-owner

OTA updates for Device Owner Android Application(Kiosk mode)

这一生的挚爱 提交于 2019-12-03 15:14:13
问题 I am able to make my app, the device owner app through NFC as mentioned here. Now I want to update my app over the air, but I couldn't find a method without rooting . Google is providing many options for enterprises to develop apps as mentioned here, but nowhere providing a way to update the application through OTA. Looking for a solution. 回答1: This is just pure speculation as I've never tried to use the package installer API myself: You could try to set an installer package for your device

Android pin activity on boot

偶尔善良 提交于 2019-12-03 13:16:14
I've got an app that registers itself as the default launcher and pins itself automatically when started. This all works fine when installing the app. It pins itself and only the back button is visible. The problem is that when the device first boots up, it does not pin properly. I see a series of toasts "Screen pinned" and "Screen unpinned" multiple times. The "Home" and "Recent Tasks" buttons are still visible as well. -- Running "adb shell dumpsys activity activities" - the last lines indicate that it is not pinned: mLockTaskModeState=NONE mLockTaskPackages (userId:packages)= 0:[com.example

OTA updates for Device Owner Android Application(Kiosk mode)

て烟熏妆下的殇ゞ 提交于 2019-12-03 05:50:21
I am able to make my app, the device owner app through NFC as mentioned here . Now I want to update my app over the air, but I couldn't find a method without rooting . Google is providing many options for enterprises to develop apps as mentioned here , but nowhere providing a way to update the application through OTA. Looking for a solution. This is just pure speculation as I've never tried to use the package installer API myself: You could try to set an installer package for your device owner app (using PackageManager.setInstallerPackageName() ). This installer package would need to be a

Disable a device owner app from android terminal

北城余情 提交于 2019-12-02 08:59:29
问题 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 this line in the adb shell: dpm set-device-owner my.app.package/my.app.route.MyAdmin So, I want to disable the device owner app without restoring the device, just executing a line similar to the last one. Me and my coworker have been researching for a long time and we've never found anything about

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

末鹿安然 提交于 2019-12-02 02:02:15
'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 an unprovisioned state? I've seen different behaviours depending on models. Usually removing all

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

不羁的心 提交于 2019-12-02 00:54:13
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 used to manage all their corporate owned devices. The EMM is either a device or profile owner. They are

Enable GPS in a device owner app

孤者浪人 提交于 2019-12-01 12:04:10
According API documentation a device owner app can modify a few "secure settings" and specially the LOCATION_MODE with the following call : devicePolicyManager.setSecureSetting (ComponentName admin, String setting, String value) Called by profile or device owners to update Settings.Secure settings [...] A device owner can additionally update the following settings: LOCATION_MODE According my understanding the value of LOCATION_MODE is an int (resp. 0 for location disabled, 1 for GPS only, 2 for battery saving mode and 3 for high accuracy). My problem is the type of the String value parameter.

Enable GPS in a device owner app

最后都变了- 提交于 2019-12-01 09:55:34
问题 According API documentation a device owner app can modify a few "secure settings" and specially the LOCATION_MODE with the following call : devicePolicyManager.setSecureSetting (ComponentName admin, String setting, String value) Called by profile or device owners to update Settings.Secure settings [...] A device owner can additionally update the following settings: LOCATION_MODE According my understanding the value of LOCATION_MODE is an int (resp. 0 for location disabled, 1 for GPS only, 2

Install a GooglePlay located App from NFC

耗尽温柔 提交于 2019-12-01 05:46:06
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 ways to get this done, but don't know how to handle any of them : in my NFC install constant EXTRA PROVISIONING DEVICE ADMIN PACKAGE DOWNLOAD LOCATION install the App directly from the Play Store instead of the url on my own dev server. However this constant need to handle the url of an apk file, and I did not find any official way to get apk install

Install a GooglePlay located App from NFC

≡放荡痞女 提交于 2019-12-01 04:44:25
问题 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 ways to get this done, but don't know how to handle any of them : in my NFC install constant EXTRA PROVISIONING DEVICE ADMIN PACKAGE DOWNLOAD LOCATION install the App directly from the Play Store instead of the url on my own dev server. However this