Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You will want to make changes to the Android Application Package (APK) that is in WSO2 EMM to suite your business and or Organization requirements. For example you will want to white label the WSO2 EMM Android agent. In such situations you need to do the required changes and create a new APK file

Table of Contents

Prerequisites

Excerpt
  1. Download and install Android Studio.

    Info

    For more information, see installing Android Studio.

  2. WSO2 EMM supports API levels 16 to 22. Therefore install the Android API levels 16 to 22 on Android Studio.
    1. Open Android Studio.
    2. Click SDK Manager.
    3. Click the SDK Platform tab and select the 16 and 22 API levels.
    4. Click Apply.

...

Creating a new APK

  1. Clone the product-mdm GIT repository.

    Code Block
    git clone https://github.com/wso2/product-mdm.git
  2. Open the client folder that is in the <EMM_SOURCE_HOME>/modules/mobile-agent/android directory via Android Studio.
  3. Do the necessary changes you wish to make.
    Example: 
    White Labeling WSO2 EMM Android Agent or changing the Android agent SERVER_PROTOCOL to https and SERVER_PORT to 9443 in the constant.java file that is in the the <EMM_SOURCE_HOME>/modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/utils directory.
  4. Build the project to create a new APK with file that has all the changes you made.

  5. Rename the created .apk file to  android-agent.apk.
  6. Copy the renamed file and replace it instead of the existing android-agent.apk . file   file that is in the <EMM_HOME>/repository/deployment/server/jaggeryapps/emm-web-agent/units/asset-download-agent-android/public/asset directory.