mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 19:40:47 -05:00
app: Remove dynamic code loading and simplify stub
Remove dynamic APK class and resource loading across :app, :shared, and :stub. Consolidate stub resources into :stub and remove stub obfuscation and encryption. - Merge :stub-res into :stub and delete the :stub-res module. - Delete DynLoad, DelegateComponentFactory, ClassLoaders, StubApplication, StubRootService, and dummy component classes. - Delete StubApk, DynamicClassLoader, and CompoundEnumeration from :shared. - Remove lsparanoid, stub component randomization, resource encryption, and Stub.kt from build-logic. - Remove stubVersion and STUB_VERSION tracking. - Simplify DownloadActivity to use direct resources and APKInstall. - Remove isRunningAsStub and stub-specific hooks across :core. Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -4,12 +4,6 @@ import org.gradle.api.Project
|
||||
import org.gradle.kotlin.dsl.provideDelegate
|
||||
import java.io.File
|
||||
import java.util.Properties
|
||||
import java.util.Random
|
||||
|
||||
// Set non-zero value here to fix the random seed for reproducible builds
|
||||
// CI builds are always reproducible
|
||||
val RAND_SEED = if (System.getenv("CI") != null) 42 else 0
|
||||
lateinit var RANDOM: Random
|
||||
val ABI_SUPPORT_LIST = listOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64", "riscv64")
|
||||
|
||||
private val props = Properties()
|
||||
@@ -28,7 +22,6 @@ object Config {
|
||||
|
||||
// Properties from gradle.properties, should always exist
|
||||
val versionCode: Int get() = get("magisk.versionCode")!!.toInt()
|
||||
val stubVersion: String get() = get("magisk.stubVersion")!!
|
||||
}
|
||||
|
||||
fun Project.rootFile(path: String): File {
|
||||
@@ -41,7 +34,6 @@ class MagiskPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) = project.applyPlugin()
|
||||
|
||||
private fun Project.applyPlugin() {
|
||||
initRandom(rootProject.file("dict.txt"))
|
||||
props.clear()
|
||||
|
||||
// Get gradle properties relevant to Magisk
|
||||
|
||||
Reference in New Issue
Block a user