033f3dd94d
Cloned APKs previously only had package name/icon/name changed without any runtime configuration. This adds a clone-host Gradle module with a pure-SDK CloneLauncherActivity (zero external deps for max compatibility), compiles it to DEX via d8, injects it as classesN.dex into the target APK, and rewrites AndroidManifest to replace the launcher activity. CloneLauncherActivity reads clone_config.json from assets and applies splash (image countdown / video), activation code verification (local SHA-256 + remote HTTP), and announcement dialog before launching the original app via setClassName.
23 lines
434 B
Kotlin
23 lines
434 B
Kotlin
pluginManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
|
|
maven { url = uri("https://maven.mozilla.org/maven2") }
|
|
}
|
|
}
|
|
|
|
rootProject.name = "WebToApp"
|
|
include(":app")
|
|
include(":shell")
|
|
include(":clone-host")
|