cosu

Device owner app update Itself silently

柔情痞子 提交于 2021-02-20 18:46:56
问题 is it possible to update a device owner app by itself silently? My app is set to device owner, i want it to update itself silently. is it possible? the method i'm using is given below, private void install(Context context,String packageName,String apkPath){ PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); PackageInstaller.SessionParams params = new PackageInstaller.SessionParams(PackageInstaller.SessionParams.MODE_FULL_INSTALL); params.setAppPackageName

Perform calls in Android Locktask mode

喜你入骨 提交于 2021-01-24 08:15:37
问题 TL;DR How to make a phone call while using Activity.startLockTask() ? I'm trying to setup a restricted environment on an Android device, i.e. what is usually called "Kiosk-Mode". Official documentation can be found here: https://developer.android.com/work/cosu.html The official way of doing this suggest to use Activity.startLockTask. This works fine until you want to start other apps from within your Activity which is in startLockTask() mode. Any activity that launches must not start on a new

Launch application after PackageInstaller finished (self) updating

Deadly 提交于 2020-08-10 13:42:13
问题 After the PackageInstaller successfully (self) updates the application, the application closes and doesn't launch again. Possible duplicate: Android PackageInstaller, re-open the app after it updates itself The situation is pretty similar, ill show some code snippets first. AndroidManifest.xml <receiver android:name=".UpdateReceiver" > <intent-filter> <action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> </intent-filter> </receiver> My PackageInstaller session runs in an

Launch application after PackageInstaller finished (self) updating

六眼飞鱼酱① 提交于 2020-08-10 13:40:05
问题 After the PackageInstaller successfully (self) updates the application, the application closes and doesn't launch again. Possible duplicate: Android PackageInstaller, re-open the app after it updates itself The situation is pretty similar, ill show some code snippets first. AndroidManifest.xml <receiver android:name=".UpdateReceiver" > <intent-filter> <action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> </intent-filter> </receiver> My PackageInstaller session runs in an

Android Kiosk mode not working when using Android Management API Policy

蹲街弑〆低调 提交于 2020-02-28 05:40:30
问题 So I'm trying to get a single use, dedicated app + device to work in kiosk mode + auto launch. The app itself is built in Nativescript (with Angular), so not native Java, however this is still handled via an admin receiver etc as normal. When we use adb to set the device owner, kiosk mode works as expected. adb shell dpm set-device-owner com.domain.app/.DeviceAdminReceiver When we use an Android Management policy to enrol the device and auto install, the kiosk mode is never initiated

Android Kiosk mode not working when using Android Management API Policy

瘦欲@ 提交于 2020-02-28 05:40:23
问题 So I'm trying to get a single use, dedicated app + device to work in kiosk mode + auto launch. The app itself is built in Nativescript (with Angular), so not native Java, however this is still handled via an admin receiver etc as normal. When we use adb to set the device owner, kiosk mode works as expected. adb shell dpm set-device-owner com.domain.app/.DeviceAdminReceiver When we use an Android Management policy to enrol the device and auto install, the kiosk mode is never initiated

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

别来无恙 提交于 2020-01-02 09:55:39
问题 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

Update Android app in COSU device

大兔子大兔子 提交于 2020-01-01 10:17:26
问题 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

WSO2 EMM Agent with COSU not using NFC

﹥>﹥吖頭↗ 提交于 2019-12-24 23:14:49
问题 I have built the latest version of wso2 emm android agent (cdmf-agent-android v3.1.30) and got some initial tests working in BYOD mode with IoT server 3.1.0 When built for COSU it is waiting for provisioning with another device via NFC. But I want to provision devices without NFC. What options do I have? Could I trigger programmatically a custom provisioning option? 回答1: There are some options to do this, depending on your android version. I will start with the simplest option. If you have

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

时光毁灭记忆、已成空白 提交于 2019-12-23 02:18:45
问题 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,