XTD

Analytics Agent Configuration

This feature is currently only available on Android.

Overview

This section provides a guide to the various configuration options available for the analytics agent running within protected applications.

The configuration is configured/stored in SaaS and applied during protection of the application, injected by the protection technology (defender). This also applies if the protection occurs on-prem, as long as monitoring is enabled.

Currently, the configuration allows for the following fine-tuning:

ConfigurationDescription
Custom ResponsesAbility to tune the custom responses

The configuration is defined using a simple JSON document and uploaded to SaaS using the REST APIs. See Enabling Analytics Agent Configuration below.

Custom Responses

Custom responses provide the ability to configure the exact behaviour expected by the protected application for when it detects a threat at runtime. This provides an option for developers to customize the runtime behaviour of the application based on the threats experienced.

When used, the analytics agent is configured to invoke one or more custom response depending on the threat found at runtime.

The responses are invoked synchronously and sequentially, which means that all actions defined are invoked in the order they are defined, one at a time.

Available Responses

Depending on the version of the APK defender being used to protect the application, there are slight differences in supported options for the custom responses.

Please refer to the version section below to find the correct version of the configuration used in your setup.

Enabling Analytics Agent Configuration

The configuration is defined using a simple JSON document, which is then uploaded to XTD SaaS using the APS REST APIs.

The configuration can be set for a specific application or build. If the configuration is set on an application, it applies to all future builds of that application. If set only on a build, it will be applied to that specific protection job.

See App Protection for more details

On-prem Protection

For using analytics agent configuration for on-prem protections, the configuration shall still be set on the application object in SaaS using the same method as described above. During on-prem protection, the tools will pull down the analytics agent configuration and apply it as part of the protection.

Version Selection

The highest, current version of the analytics agent configuration is currently ->v1.0.0

Please refer to the list below for other versions.

APK Defender VersionAnalytics Agent Configuration Schema
4.13.1->v1.0.0
4.12->v1.0.0

Finding your Version

When using SaaS, the defender version used will be displayed after protection of your application, at the bottom of the build results page. Use this as a reference for above to find the correct configuration version.

When using on-prem tools, the version should be indicated by your binary

bash$ apkdefender -v
apkdefender: version x.y.z revision <x> built on Jan 1 1970

On this page