Download the Android agent source code. This will be referred to as
- Open the
AndroidManifest.xmlfile in the
<ANDROID_AGENT_SOURCE_CODE>/client/client/src/maindirectory via Android Studio.
Comment out the
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.jarfile that is in the
<SDK_LOCATION>/platforms/android-<COMPILE_SDK_VERSION>directory with the explicitly built
android.jarfile that has access to the restricted APIs.
You can get the new
jarfile using one of the following methods:
Build the project to create a new APK file that has all the changes you made.
- Rename the created
- Copy the renamed file and replace it instead of the existing
android-agent.apkfile that is in the