android-for-work

Access SD card data from android for work app

血红的双手。 提交于 2019-12-10 11:25:12
问题 My EMM is VMWare Airwatch, and I have successfully setup the android for work environment and installed the work profile on my Nexus 5x device. But my work apps are not able to access the SD data, or files stored on external storage. I have tried creating and installing Android for work profile. In the Airwatch console under profiles I have also enabled the 'Sync and Storage' options under the Restrictions section of work profile. Is this the expected behaviour of work apps. As the primary

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

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

折月煮酒 提交于 2019-12-06 08:14:17
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() However, I'm getting as a response a forbidden 403 response code with the following message: "The caller is

Android O failing to inflate webview after AFW enrollment

巧了我就是萌 提交于 2019-12-06 05:37:08
问题 I'm using the latest Android O beta version in a Pixel XL device. This is my webview in xml. <WebView android:id="@+id/launch_anim" android:layout_width="match_parent" android:layout_height="150dp" android:layout_centerHorizontal="true" /> This is how its used in my Activity class WebView launch_anim = (WebView)findViewById(R.id.launch_anim); launch_anim.loadUrl("file:///android_asset/launch_anim_centered.html"); This is my launch_anim_centered.html file in assets dir <HTML> <head> <style>

How do I get the signature checksum of my APK that is signed with only the v2 scheme?

送分小仙女□ 提交于 2019-12-05 00:26:28
问题 I previously posted a question on how to get the signature checksum of my APK here: How do I get the signature checksum of my APK? The answer is perfect if an app is signed with the v1 signature scheme or the combination v1/v2 signature schemes. (Jar and Full APK Signatures) However, since my app will only be running on Android O or greater (it is a device specific app), I will only be signing it with the APK signature scheme v2 (v2 scheme). I will be using EXTRA_PROVISIONING_DEVICE_ADMIN

Android O failing to inflate webview after AFW enrollment

丶灬走出姿态 提交于 2019-12-04 12:52:05
I'm using the latest Android O beta version in a Pixel XL device. This is my webview in xml. <WebView android:id="@+id/launch_anim" android:layout_width="match_parent" android:layout_height="150dp" android:layout_centerHorizontal="true" /> This is how its used in my Activity class WebView launch_anim = (WebView)findViewById(R.id.launch_anim); launch_anim.loadUrl("file:///android_asset/launch_anim_centered.html"); This is my launch_anim_centered.html file in assets dir <HTML> <head> <style> body { background-color: #FFFFFF; } </style> </head> <body> <CENTER> <IMG SRC="launch_anim_1x.gif"> <

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

断了今生、忘了曾经 提交于 2019-12-03 16:48:42
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 (badged version)? Lorenz Riedler The DevicePolicyManager class implements a the addCrossProfileIntentFilter

How do I get the signature checksum of my APK that is signed with only the v2 scheme?

久未见 提交于 2019-12-03 16:03:14
I previously posted a question on how to get the signature checksum of my APK here: How do I get the signature checksum of my APK? The answer is perfect if an app is signed with the v1 signature scheme or the combination v1/v2 signature schemes. (Jar and Full APK Signatures) However, since my app will only be running on Android O or greater (it is a device specific app), I will only be signing it with the APK signature scheme v2 (v2 scheme). I will be using EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECKSUM. See: https://developer.android.com/reference/android/app/admin/DevicePolicyManager

Run multiple android app instances like parallel space

梦想的初衷 提交于 2019-12-03 03:54:53
问题 I want to know how parallel space https://play.google.com/store/apps/details?id=com.lbe.parallel.intl&hl=en is working. It is an app for logging in with another facebook, whatsapp etc account. You can find the detailed description in the play store link. I have looked at the folders that parallel space is creating using ES Explorer. They have created the following folder parallel_intl/0/ In this folder they have DCIM, Pictures etc folder. I logged in another whatsapp account using parallel

Run multiple android app instances like parallel space

妖精的绣舞 提交于 2019-12-02 18:12:07
I want to know how parallel space https://play.google.com/store/apps/details?id=com.lbe.parallel.intl&hl=en is working. It is an app for logging in with another facebook, whatsapp etc account. You can find the detailed description in the play store link. I have looked at the folders that parallel space is creating using ES Explorer. They have created the following folder parallel_intl/0/ In this folder they have DCIM, Pictures etc folder. I logged in another whatsapp account using parallel space and they created the whatsapp folder at the following location parallel_intl/0/Whatsapp Is it