android-for-work

Install APK in Work Profile via ADB in Android

瘦欲@ 提交于 2021-01-21 07:21:49
问题 Let's say we have a Work Profile (Android For Work) enabled in Android device. Does anyone know how to install an APK via ADB in Work Profile rather than personal profile. I have seen the ADB documentation and there's a way to get the User ID but using the same ID I am unable to install an APK. To get ID : adb shell pm list users Install command : adb install -r --user 12 app_name.apk Error message : Performing Streamed Install adb: failed to install app-prodDebug.apk: Security exception:

Google EMM APIs return The caller is not registered as an MDM

无人久伴 提交于 2020-01-02 14:48:41
问题 I'm now testing the Google EMM Apis and I'm trying to generate a signup url for enrolling an enterprise. scopes = ['https://www.googleapis.com/auth/androidenterprise'] credentials = ServiceAccountCredentials.from_json_keyfile_name( 'my_key.json', scopes) http_auth = credentials.authorize(Http()) API = 'androidenterprise' VERSION = 'v1' SERVICE = discovery.build(API, VERSION, http=http_auth) response = SERVICE.enterprises().generateSignupUrl(callbackUrl='http://www.my_site.com').execute()

Data transfer between application outside profile and inside profile in Android Lollipop

喜欢而已 提交于 2020-01-01 06:10:40
问题 Question related to Android for Work . My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner. The question is, if I upgrade my application, it becomes a profile owner from device admin. Now there will be two copies of my application, one outside the profile and one inside (badged version). Is there a way if I need to transfer some data from the personal space app to the work profile app

Data transfer between application outside profile and inside profile in Android Lollipop

心不动则不痛 提交于 2020-01-01 06:10:39
问题 Question related to Android for Work . My application was a device Admin privileged app and now I have modified the code which creates a managed work profile and sets itself as the profile owner. The question is, if I upgrade my application, it becomes a profile owner from device admin. Now there will be two copies of my application, one outside the profile and one inside (badged version). Is there a way if I need to transfer some data from the personal space app to the work profile app

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,

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 Do not Disturb (DnD) permission in managed profile

和自甴很熟 提交于 2019-12-12 12:56:42
问题 I have the following problem: My app is distributed over an MDM system and runs in Android for Work. In certain situation, the app must temporarily terminate the DnD mode. To achieve this, the user must grant the DnD permission when the app is started. So far so good. If I install the app in the unmanaged area, the app shows up in the list and the permission can be granted without any problems. As soon as the app is distributed via an MDM system, the app no longer appears in the list and the

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 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