cosu

How does designing custom android DPC app relate to Android management API?

匆匆过客 提交于 2019-12-21 04:49:59
问题 I'm new to android enterprise development world, and I have some misconception of how different pieces in the android enterprise ecosystem relate to one another. Let me explain. The solution that I'm trying to achieve is being able to lock the device into kiosk mode both remotely, and also based on some business logic do it even when the user is offline. I started investigating EMM and particularly Android Management API to solve the problem. I was able to lock the device remotely into kiosk

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

Android Management API (COSU) on AndroidTV?

◇◆丶佛笑我妖孽 提交于 2019-12-11 06:39:44
问题 Android Management APIs are supposed to be "compatible with any device running Android 5.1 or above that has Google Play installed." I really want that to be true, but am having trouble with Android TVs. (Specifically, a NexBox A95x and a TX3mini I'm testing with.) My stumbling point is how to enter the enrollment token into the device when provisioning it? I had no problem with a Samsung tablet. But, the Android TVs don't use the same startup wizard after hardware reset, so there doesn't

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

Android/COSU: How is the app supposed to auto-run after install

怎甘沉沦 提交于 2019-12-08 15:09:33
My question is specifically about one line in Android documentation here. https://developers.google.com/android/work/prov-devices#set_up_device_owner_mode_google_account . Particularly item #2 where it says The DPC is automatically downloaded to the device and launched. How? Specifically, what is the trigger that launches the DPC after download while still in the context of the startup wizard? I'm asking because it isn't working for me. I've got Corporate-Owned Single Use (COSU) application, but I'm getting tripped up on deployment -- specifically the part where the DPC app sets itself as the

android COSU single app - lock for browser and just one web-app on gadgets

时光毁灭记忆、已成空白 提交于 2019-12-06 12:33:56
I'm not experienced with Android. I want to setup some tablets in such a way, that the gadgets are locked to just one web-app. I think it should be somehow locked to a Browser (which in turn should open directly after the launch of the tablet with the login page of the web-app set as default) and the browser should be locked to a particular web-app/ set of urls. Can somebody recommend tools/ resources or solutions for my purpose? I am sure the task itself is not a big deal and I am searching for a solution to keep it as simple as possible without investing to much time to learn or to develop a

How to stop “holding the back button” from escaping “Lock Task mode” on Android 7+

泄露秘密 提交于 2019-12-06 08:38:28
问题 I'm attempting to use "Lock Task mode", as described on https://developer.android.com/work/cosu.html My goal is to have a single app running in a "kiosk mode", so that the user cannot leave the app. I'm using Google's "Test DPC" app from Google Play as the DPC, which I have made the owner of the device via: adb shell dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver . It all works really well at keeping a trivial app (which calls startLockTask() ) in kiosk mode. (I have added

How to stop “holding the back button” from escaping “Lock Task mode” on Android 7+

眉间皱痕 提交于 2019-12-04 13:06:30
I'm attempting to use "Lock Task mode", as described on https://developer.android.com/work/cosu.html My goal is to have a single app running in a "kiosk mode", so that the user cannot leave the app. I'm using Google's "Test DPC" app from Google Play as the DPC, which I have made the owner of the device via: adb shell dpm set-device-owner com.afwsamples.testdpc/.DeviceAdminReceiver . It all works really well at keeping a trivial app (which calls startLockTask() ) in kiosk mode. (I have added this trivial app to Test DPCs list of apps which are allowed to use "Lock Task mode".) The problem is

Update Android app in COSU device

▼魔方 西西 提交于 2019-12-04 08:31:28
I am working of app support COSU app android . The app is working fine for me but I am not understand how user will update our app, because COSU app user can't access any other application even google play store. So now the question is that how user will update our application without google play access. I have one solutin download app from our server, but in this case user will lose save data like the data we are storing in SharedPreference. Please guide me if you have any other solution for that. Thank in advence According to Google's docs on COSU (Google Play app management), it is possible

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

感情迁移 提交于 2019-11-30 19:47:52
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(PackageInstaller.SessionParams.MODE_FULL_INSTALL)); PackageInstaller.Session session = packageInstaller