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:
topjohnwu
2026-10-22 14:06:48 -07:00
committed by John Wu
parent c86a8776ce
commit d22fea2906
66 changed files with 4 additions and 774 deletions
@@ -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 {