Tuesday, April 21, 2015

Debugging the Android EMM Agent - WSO2 EMM 1.1.0


We have done a custom debugger for Android Agent to check the input and output operations real time on the Agent app itself. To use this feature, we should 1st build the Android Agent by following [1]. And before we generate the APK file, make sure you change the constant "DEBUG_MODE_ENABLED' in the CommonUtilities.java [2] to True.

Once it's built and installed on a device. You can first enroll the device to the EMM server. Once you reach the Register success screen of the Agent app. (When you reach the below Screen)

Once you reach this screen, click on the options icon on the top right corner of the app and click on Debug Log option and you will see the live logs. Click on Refresh to view the latest command logs. And these logs will be saved in a file named "wso2log.txt" in the device external storage.

If you need more information on configuring and debugging EMM visit [3] and [4]

[1] - https://docs.wso2.com/display/EMM110/Android+Configurations
[2] - https://github.com/wso2/emm-agent-android/blob/master/src/org/wso2/emm/agent/utils/CommonUtilities.java
[3] - http://wso2.com/library/articles/2014/03/how-wso2-emm-addresses-the-android-challenge/
[4]  - http://wso2.com/library/webinars/2014/09/getting-your-android-device-managed-by-wso2-emm/

No comments:

Post a Comment