JE
jeziellago/AppCloneDetector
Kill app if it is running under a cloned environment in Android device.
App Clone Detector
How it works?
Kill app if it is running under a cloned environment in Android device.
App cloning is nothing but a technique which allows you to run two different instances of an android app at the same time.
A cloned app can never function the same as the originally installed apps. The main problems comes in while accessing the internal or external storage from cloned application.
Configuration
Add AppCloneDetector to your Application:
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
AppCloneDetector.create(this)
.enableKillApp() // kill app on cloning detect
.onCloningDetect {
// do something when clone is detect
}.start()
}
}Add dependency
- Project
build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Module
build.gradle
dependencies {
implementation 'com.github.jeziellago:AppCloneDetector:0.1.0'
}
This solution is inspired by Siddhant Panhalkar
On this page
Languages
Kotlin100.0%
Contributors
Latest Release
0.1.0July 22, 2020Apache License 2.0
Created July 22, 2020
Updated April 24, 2025
