mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
app: remove :stub module and build integration
Remove the :stub Android application module, its build-logic task integration, build.py stub building commands, and leftover stub hooks in :core. - Delete app/stub/ and its 60 tracked files (activity, networking, and localized string resources) - Remove :stub from app/settings.gradle.kts - Remove stubTask and stub.apk syncing in Setup.kt - Remove build_stub, stub subparser, and stub APK copying in build.py - Simplify RootUtils by removing unused stub parameter and constructor - Remove unused -keep rule for App constructor in proguard-rules.pro - Update README.MD to remove stub string references Assisted-by: Gemini 4 Argon
This commit is contained in:
@@ -19,13 +19,10 @@ import timber.log.Timber
|
||||
import java.io.File
|
||||
import java.util.concurrent.locks.AbstractQueuedSynchronizer
|
||||
|
||||
class RootUtils(stub: Any?) : RootService() {
|
||||
class RootUtils : RootService() {
|
||||
|
||||
private val className: String = stub?.javaClass?.name ?: javaClass.name
|
||||
private lateinit var am: ActivityManager
|
||||
|
||||
constructor() : this(null)
|
||||
|
||||
init {
|
||||
Timber.plant(object : Timber.DebugTree() {
|
||||
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
|
||||
@@ -39,7 +36,7 @@ class RootUtils(stub: Any?) : RootService() {
|
||||
}
|
||||
|
||||
override fun getComponentName(): ComponentName {
|
||||
return ComponentName(packageName, className)
|
||||
return ComponentName(packageName, javaClass.name)
|
||||
}
|
||||
|
||||
override fun onBind(intent: Intent): IBinder {
|
||||
|
||||
Reference in New Issue
Block a user