Move apk module to apk-ng

In preparation to preserve the existing old apk module codebase so
that the old implementation can live side-by-side the next generation.
This commit is contained in:
topjohnwu
2026-03-16 03:25:47 -07:00
parent 6242a605f5
commit 62c6ab8c0a
116 changed files with 96 additions and 12 deletions
+11
View File
@@ -448,6 +448,12 @@ def build_app():
cp(source, target)
def build_app_ng():
header("* Building the next generation Magisk app")
apk = build_apk(":apk-ng")
header(f"Output: {apk}")
def build_stub():
header("* Building the stub app")
apk = build_apk(":stub")
@@ -833,6 +839,10 @@ def parse_args():
app_parser = subparsers.add_parser("app", help="build the Magisk app")
app_ng_parser = subparsers.add_parser(
"app-ng", help="build the next generation Magisk app"
)
stub_parser = subparsers.add_parser("stub", help="build the stub app")
test_parser = subparsers.add_parser("test", help="build the test app")
@@ -892,6 +902,7 @@ def parse_args():
rustup_parser.set_defaults(func=setup_rustup)
gen_parser.set_defaults(func=gen_ide)
app_parser.set_defaults(func=build_app)
app_ng_parser.set_defaults(func=build_app_ng)
stub_parser.set_defaults(func=build_stub)
test_parser.set_defaults(func=build_test)
emu_parser.set_defaults(func=setup_avd)