Remove stub embedding from native and scripts

Remove stub.apk and stub.xz extraction, compression,
ramdisk embedding, and daemon auto-installation from native
components (magiskinit, magiskd, scripting), installation
scripts, MagiskInstaller, and build.py.

Assisted-by: Gemini 4 Argon
This commit is contained in:
topjohnwu
2026-10-22 14:06:48 -07:00
committed by John Wu
parent 447a8f9965
commit c86a8776ce
12 changed files with 9 additions and 102 deletions
-5
View File
@@ -664,11 +664,6 @@ def push_files(files: list[Path], push_apk: bool = False):
to_push = list(files)
with ZipFile(apk) as zf:
# Extract stub.apk
stub = tmp / "stub.apk"
stub.write_bytes(zf.read("assets/stub.apk"))
to_push.append(stub)
# Extract assets/*.sh
for name in zf.namelist():
if name.startswith("assets/") and name.endswith(".sh") and name.count("/") == 1: