- Java™ 11 or later
- Android™ 13.0 (api level 33) SDK platform
Note: The Android-specific requirements can be changed by editing the
build.gradle
file of the particular sample.
Before running these samples, they need to know where both the Android SDK and DashO™ are located.
Note: If you import a sample into Android Studio, make sure that Instant Run is disabled so that the sample will work correctly.
Set sdk.dir
in local.properties
to the location of the Android SDK.
It can also be set via an environment variable.
Note: You will need to create the
local.properties
file. It should exist in the same directory as thegradle.properties
file.
If PreEmptive Protection™ DashO is installed in the default location, the DashO Gradle Plugin for Android will find DashO automatically, and no explicit configuration is necessary. Otherwise, see documentation for the DashO Gradle Plugin for Android for details about setting DashO Home.
- DashO-GameOfLife - A separate repository with a more-complex Android application that includes a library.
- DebuggingOnAndroid - An Android application that uses Debug Checking.
- EmulatorOnAndroid - An Android application that uses Emulator Checking.
- EncryptionOnAndroid - An Android application that uses Resource Encryption.
- HookingOnAndroid - An Android application that uses Hook Checking.
- KotlinOnAndroid - An Android application using Kotlin™ and Kotlin DSL scripts.
- RootOnAndroid - An Android application that uses Root Checking.
- TamperOnAndroid - An Android application that uses Tamper Checking.
Most samples have the same basic functionality.
The main screen allows selection of the Random Generator or the Fibonacci Calculator.
The Random Generator generates and displays a random number in a configured range.
The Fibonacci Calculator calculates and displays a number in the Fibonacci sequence.
The samples for Checks and Responses attach additional behavior to the Generate
and Calculate
actions.
When the Check is triggered, those areas of the application will not work properly.
Each of the sample apps is designed to detect certain configuration issues.
In the case that something does go wrong, a message will be displayed in a toast whenever either the Random Generator or Fibonacci Calculator are selected from the main activity.
If you see these messages unexpectedly, please review the README.md
for the sample and review any changes you may have made to the configuration.
Android is a trademark of Google Inc.
Java is a registered trademark of Oracle and/or its affiliates.
Kotlin is a trademark of the Kotlin Foundation.