Integrating Air Watch Android Studio

回眸只為那壹抹淺笑 提交于 2019-11-29 09:50:43

Beside AirWatch Resources, which tells you how you can create an app and set the app configurations,key-value pairs, to push to your devices, You need to check out Android Restriction Manager API. Follow the steps described in the link.

How the whole process works is, AirWatch controls AndroidForWork environment after you set your MDM as AirWatch. And then, AirWatch manages the device from AirWatch console and it pushes the App Configuration to AndroidForWork in your device. You need to implement Android Restriction Manager to access to these data passed you by your MDM. It goes same for all of the MDMs in the Market.

Update:

In order to install your app into Work Container in the development phase, you can use adb to copy it from Personal Container to Work Container.

First, list all of the active users in the device:

./adb shell pm list users

And later, find the Work User's ID from the List of Users and set it in the command below along with your app's package name and App's Main Activity.

./adb shell am start —user 13 -n “your.apps.package.name/your.main.activity.package.name”

13 up there in the command is the Work User's ID. In my case, it's 13.

For more information about ./adb commands in Managed Profiles, see this link and check the most bottom of the page.

There are a couple of different approaches to integrating with AirWatch. It depends on the technology set you're trying to use. I think these are the 2 that are most relevant to you based on what I see in your post:

  1. AirWatch SDK
  2. AppConfig Standard

Both these approaches can accomplish similar functionality but each have different deployment requirements. It sounds like you have gone with the second approach which is using the AppConfig standard and the native APIs provided by Google to have an app read configuration values delivered through AirWatch.

One important thing to note is the AppConfig standard approach on Android requires the device to support "Android for Work" enrollment which is a relatively newer management protocol released by Google. It's worth noting that AirWatch does support Android for Work enrollment so it may just be a matter of getting your AirWatch test instance configured for "Android for Work enrollment" instead of the traditional older Android enrollment protocol. More information about Android for Work can be found here: https://enterprise.google.com/android/solutions/personal/

If you're already a customer of AirWatch, it may be helpful to create an account here on their resource portal if you haven't done so already to get access to documentation about how you can setup Android for Work within AirWatch. https://resources.air-watch.com

I hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!