Native Android
⚙️ Prerequisites for Integration – Native Android
Before integrating the REL-ID API SDK into your Native Android application, ensure the following requirements are met.
🧱 Project Environment
| Component | Requirement |
|---|---|
| Android Studio | Latest version recommended |
| AGP Version | Supported: 7.1.x to 7.2.x |
| Gradle Version | Compatible with AGP requirements |
📱 Android Requirements
- Minimum SDK Version:
23or higher - Target SDK Version:
35 - AGP (Android Gradle Plugin) Version:
- Current:
7.4 - Supported Range:
7.3.0to7.4.2
If you're working behind a proxy:🔌 Proxy Configuration (if needed)- Set proxy in Android Studio via:
File > Settings > System Settings > HTTP Proxy - If proxy settings aren't working, manually set them in:
~/.gradle/gradle.properties - Also configure proxy settings for:
npmgit
- Current:
🔐 SDK Artifacts & Info Required (From REL-ID Admin)
| Item | Description |
|---|---|
Agent_info.txt | Binary file containing the application ID required for initialization |
| REL-ID Gateway Info | Hostname/IP and Port number of the REL-ID Gateway |
| REL-ID SDK | REL-ID_SDK.aar Android library provided by Uniken team |
⚙️ REL-ID SDK Installation Guide for Native Android
This guide outlines how to integrate the REL-ID SDK into a native Android project as per the REL-ID API SDK Integration v25.04.01 documentation.
📦 1. Prerequisites
- REL-ID SDK
.aarfile provided by Uniken
📥 2. Install the REL-ID SDK
2.1. Add REL-ID_SDK.aar
REL-ID_SDK.aar- Copy the
REL-ID_SDK.aarfile to the following location:
project-root/app/libs/REL-ID_SDK.aar
- In Android Studio:
- Go to
File > Project Structure > Dependencies - Select your app module
- Click
+and chooseJAR/AAR Dependency - Browse to and select:
libs/REL-ID_SDK.aar - Set configuration as:
implementation - Click OK and Apply
- Go to
2.2. Add Repositories in settings.gradle
settings.gradleFor Android Studio Bumblebee and above, add this inside settings.gradle:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // (Deprecated soon)
// UNIKEN SDK Maven Repository
maven {
url "https://pkgs.dev.azure.com/managevm/REL-ID-Thirdparty-Repo/_packaging/library/maven/v1"
}
}
}
If you're using credential-based auth or proxy configuration, follow your org’s standards for Maven credentials.
2.3. Add Module-Level Dependencies
In app/build.gradle, add the Uniken SDK dependency:
dependencies {
implementation("com.uniken.relid:engine:7.3.3") {
transitive = true
}
}2.4. Add Packaging Options
To avoid .so file conflicts, include the following in app/build.gradle:
android {
...
packagingOptions {
pickFirst '**/arm64-v8a/libc++_shared.so'
pickFirst '**/armeabi-v7a/libc++_shared.so'
pickFirst '**/x86/libc++_shared.so'
pickFirst '**/x86_64/libc++_shared.so'
}
}2.5. Add Permissions
The REL-ID API SDK and Mobile Threat Detection (MTD) modules require a predefined set of Android permissions to operate securely and effectively.
📂 3. Agent Info
Place the Agent_info.txt file (provided by Uniken) into your assets/ folder or load it as needed. This file contains application-specific identity data required during initialization.
✅ You’re now ready to initialize and integrate the REL-ID SDK in your native Android application!
Updated 5 days ago
