Versions Compared

Key

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

Table of Contents

Prerequisites 

Insert excerpt
Creating a New Android APK File
Creating a New Android APK File
nopaneltrue

Changing Android Agent related logos and icons

  1. Checkout the source from the following location:

    Clone the product-mdm repository. The folder will be referred to as <PRODUCT_MDM> throughout the documentation.

    Code Block
    git clone https://github.com/wso2/
    emm-agent-android
    product-mdm.git
  2. Navigate to the <EMM_AGENT_ANDROID>/res

    / directory

     directory.

    Info

    <EMM_AGENT_ANDROID> refers to the <PRODUCT_MDM>/modules/mobile-agents/android/client file path.

    1. Navigate to the drawable-xxhdpi/ folder and change the following:
      • Change the ic_launcher.png (144px X 144px) file in order to change the icon. For more information, go to the Android icon guide
      •  Change the following file logos in order to change the header logos:  

        ic_logo.png  
      •  Change the
        ( 240px X 72px ) Image Added
        ic_logo_darker.png  (
        240px X
        240px X 72px)
        ,
        Image Added
        repeat_bg.png
         
          (
        277px X
        277px X 125px )
        file logos in order to change the header logos.  
        Image RemovedImage Removed
        Image Added
    1. Navigate to the  drawable-xhdpi/  folder.
      • Change the ic_launcher.png (96px 96px X 96px) file to change the icon.
      • Change the ic_logo.png (160px 160px X 48px) file , ic_logo_darker.png  (160px X 48px) and repeat_bg.png (222px X 100px) file in order to change the logos.
    2. Navigate to the the drawable-hdpi/ folder.
      • Change the ic_launcher.png (72px 72px X 72px) file in order to change the icon.
      • Change the ic_logo.png   (120px X 36px) and 120px X 36px), ic_logo_darker.png  (120px X 36px) and repeat_bg.png   (122px 122px X 55px) files in order to change the logos.
    3. Navigate to the drawable-mdpi/ folder.
      • Change the ic_launcher.png (48px 48px X 48px) file to change the icon.
      • Change the ic_logo.png (80px X 24px) files 80px X 24px) and ic_logo_darker.png  (80px X 24px) files in order to change the logos.
  3. Open the client folder that is in the <EMM_SOURCE_HOME>/modules/mobile-agent/android directory via Android Studio.
  4. Build the project to create a new APK with the changes.

  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 that is in the <EMM_HOME>/repository/deployment/server/jaggeryapps/emm-web-agent/units/asset-download-agent-android/public/asset directory.