Versions Compared

Key

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

...

  1. Navigate to the <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-xxhdpi/ directory to update the following: 

    ImageResolutionUsage
    ic_launcher.png144px*144pxThis is the launcher icon.
    ic_logo_dark.png240px*72pxThis is the title bar image of the activity_authentication_error message. This image is ligher in shade.
    ic_logo.png240px*72pxThis is the title bar image of the activity_authentication_error message. This image is darker in shade.
    repeat_bg.png277px*125pxThis is the footer image of the activity_authentication_error message.
    splash_bg.png750px*123pxThis is the splash screen background image.
    wso2.png300px*125pxThis is the top banner logo.
    banner.png1023px*315pxThis is the top banner background.

    Note

    You can also remove ic_launcher.png, ic_logo_dark.png, ic_logo.png, and repeat_bg.png images in the following directories or replace them with appropriately resized images:

    • <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-xxhdpi/
    • <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-hdpi/
    • <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-mdpi/
  2. Navigate to the <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-land-xxhdpi/ directory to update the following: 

    ImageResolutionUsage
    splash_bg.png1232px*750pxThis is the splash screen background image.
    banner.png1920px*300pxThis is the top banner background.
  3. Change the permanent device lock screen logo.

    1. Navigate to the <ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/res/drawable-hdpi directory.

    2. Replace the ic_logo_dark.png file to change the icon.

  4. Open the client folder that is in the <ANDROID_AGENT_SOURCE_CODE>/client directory via Android Studio.
  5. The Android agent can't be built via the usual Android developer SDK, as it requires access to developer restricted APIs. Therefore, you need to replace the existing android.jar file that is in the <SDK_LOCATION>/platforms/android-<COMPILE_SDK_VERSION> directory with the explicitly built android.jar file that has access to the restricted APIs.

  6. Restart the Android Studio. 

Anchor
Building the APK
Building the APK
Building the

...

APK File

  1. Build the project to create a new APK with the changes.

  2. Rename the created.apk file to android-agent.apk.
  3. Copy the renamed file and replace it instead of the existing android-agent.apk. file that is in the <IOTS_HOME>/repository/deployment/server/jaggeryapps/android-web-agent/app/pages/mdm.page.enrollments.android.download-agent/public/asset directory.