Rename apk to be uninstaller

This commit is contained in:
vvb2060 2021-01-23 20:21:43 +08:00 committed by topjohnwu
parent 657056e636
commit 963d248cc7
2 changed files with 5 additions and 2 deletions

View File

@ -506,7 +506,6 @@ def build_all(args):
build_stub(args)
build_binary(args)
build_app(args)
zip_uninstaller(args)
parser = argparse.ArgumentParser(description='Magisk build script')

View File

@ -15,4 +15,8 @@ export INSTALLER=$TMPDIR/install
$BBBIN mkdir -p $INSTALLER
$BBBIN unzip -o "$3" "assets/*" "lib/*" "META-INF/com/google/*" -x "lib/*/libbusybox.so" -d $INSTALLER >&2
export ASH_STANDALONE=1
exec $BBBIN sh "$INSTALLER/META-INF/com/google/android/updater-script" "$@"
if [ "${3:-15}" = "uninstaller.zip" ]; then
exec $BBBIN sh "$INSTALLER/assets/magisk_uninstaller.sh" "$@"
else
exec $BBBIN sh "$INSTALLER/META-INF/com/google/android/updater-script" "$@"
fi