Installation

XTD Protect for Android: Command Line Tools

Supported platforms

Target platform: Android 7.0 or newer with Android Runtime (ART)

Older platforms are not supported. The tools do not work with Java environments other than Android.

Supported Android NDK version: 27
The tools have been tested on NDK version r27c

Android SDK Build-Tools version: 35.0.0 or newer

Supported ABIs:

  • armeabi-v7a

  • arm64-v8a

  • x86

  • x86_64

Supported 64-bit host platforms:

  • Ubuntu 20.04 and above
  • macOS 11 and above
    Both Apple silicon and Intel x86_64 macOS platforms are supported natively.
  • Windows 10 and 11

Distribution package

The XTD Protect for Android Tools distribution package contains:

  • Installer binaries for Linux, macOS, and Windows host platforms
  • Plugins: Android Studio plugin jar library, Gradle plugin jar library
  • Libraries: support jar library for source code annotations
  • Documents: Release Notes and this User Guide

To Install XTD Protect for Android Tools

  1. Download and install Android Studio from https://developer.android.com/sdk/. Install Android Studio to the default location.

  2. Set the environment variable ANDROID_SDK to point to the directory where the Android SDK component of Android Studio is located.

  3. Install Java Development Kit (JDK) according to the platform specific instructions. The tool requires Java 8 (1.8, patch level 200+), Java 9 (1.9), Java 11 or Java 17. The current Gradle plugin provided in the distribution package requires Java 17.

  4. Set the environment variable JAVA_HOME to point to the location where the JDK has been installed.

  5. Install the Android NDK according to the platform-specific instructions, and set the environment variable ANDROID_NDK to point to the install location.

  6. Unzip the distribution package. Run the installer that is in the appropriate directory specific to your host platform:

  • Linux:

    ./installer --install --license-file <path-to-the-license-file>

    Path to the license file needs to be given with --license-file command line option to the installer.

  • macOS:

    Open Finder and navigate to the installer location. Click installer.pkg to start the graphical native installer. Mac installer will create application icon to launchpad that will launch a terminal with neccessary environment variables preinitialized. During installation the wizard will prompt for the license file location. Alternatively, if command line install is required, type the following commands in Terminal:

    installer -pkg installer.pkg -tgt CurrentUserHomeDirectory

    When the tool is installed from the command line, the license file must be copied separately to folder $HOME/Library/Application Support/apkdefender.

  • Windows:
    installer.exe --install --license-file <path-to-the-license-file> Path to the license file needs to be given with --license-file command line option to the installer.

Accept the EULA.

NOTE: The license file is not part of the installer package.

  1. On Linux, add the path to the tools ($HOME/apkdefender/bin) to your $PATH environment variable.

The apkdefender, aardefender and aabdefender tools are now ready for use.