...
Tip | ||
---|---|---|
| ||
|
...
Get a GIT clone of the Android Agent application from GitHub.
Update the Android Software Development Kit with the following:
SDK Versions 22 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 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 builtandroid.jar
file that has access to the restricted APIs.
You can get the newjar
file using one of the following methods:Download the Android Open Source Project (AOSP) and build the source code to get the
jar
file for the required SDK level.- Use a pre-built jar file from a third party developer. You can find it here: https://github.com/anggrayudi/android-hidden-api.
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.
...