Warning |
---|
This section is still WIP! |
Table of Contents | ||||
---|---|---|---|---|
|
Prerequisites
Download and install Android Studio.
Info For more information, see installing Android Studio.
- WSO2 EMM supports API levels 16 to 23. Therefore install the Android API levels 16 to 23 on Android Studio.
- Open Android Studio.
- Click SDK Manager.
- Click the SDK Platform tab and select the 16 and 23 API levels.
- Click Apply.
Changing Android app catalog related logos and icons
Clone the product-mdm repository. The folder will be referred to as
<PRODUCT_EMM>
throughout the documentation.Code Block Navigate to the
<EMM_AGENT_ANDROID>/res
directory.Info <EMM_AGENT_ANDROID>
refers to the<PRODUCT_MDM>/modules/mobile-agents/android/client
file path.- 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
Change the following file logos in order to change the header logos:
ic_logo.png
(240px X 72px
)repeat_bg.png
(277px X 125px
)
- Navigate to the
drawable-xhdpi/
folder.- Change the
ic_launcher.png
(96px X 96px
) file to change the icon. - Change the
ic_logo.png
(160px X 48px
),ic_logo_darker.png
(160px X 48px
) andrepeat_bg.png
(222px X 100px
) file in order to change the logos.
- Change the
- Navigate to the
drawable-hdpi/
folder.- Change the
ic_launcher.png
(72px X 72px
) file in order to change the icon. - Change the
ic_logo.png
(120px X 36px
),ic_logo_darker.png
(120px X 36px
) andrepeat_bg.png
(122px X 55px
) files in order to change the logos.
- Change the
- Navigate to the
drawable-mdpi/
folder.- Change the
ic_launcher.png
(48px X 48px
) file to change the icon. - Change the
ic_logo.png
(80px X 24px
) andic_logo_darker.png
(80px X 24px
) files in order to change the logos.
- Change the
- Navigate to the
- Open the client folder that is in the
<EMM_SOURCE_HOME>/modules/mobile-agent/android
directory via Android Studio. Build the project to create a new APK with the changes.
Info Expand title Click here for more information on building the project. Note Support for the Android Developer Tools (ADT) in Eclipse is ending. Therefore, you should migrate the app development projects to Android Studio. For more information on transitioning to Android Studio, see Migrating to Android Studio.
Get a GIT clone of the Android Agent application from GitHub.
Update the Android Software Development Kit with the following:
SDK Versions 23 and 16.
Build Tools Version 22.0.1.
Install or update Android Support Library.
Install or update Google Play Services.
Install Google USB Driver, if you are on a Windows platform.
By default, the Android agent communicates with the server through http. For production, this needs to be changed to https, by configuring the following parameters in the Java class named
Constants.java,
which is in theorg.wso2.EMM.agent.utils
package:SERVER_PORT
andSERVER_PROTOCOL.
Anchor step3 step3 Panel For more information see below:
Expand title Generating a BKS File Include Page Generating a BKS File for Android Generating a BKS File for Android Import the project on Android Studio, clean and build the project.
Run the project on a device.
Info The .
apk
file can be found in the<
EMM_HOME>/repository/deployment/server/jaggeryapps/emm-web-agent/units/asset-download-agent-android/public/asset
directory.
- Rename the created
.apk
file toandroid-agent.apk
. - 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.