mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Rename apk to be uninstaller
This commit is contained in:
parent
657056e636
commit
963d248cc7
1
build.py
1
build.py
@ -506,7 +506,6 @@ def build_all(args):
|
|||||||
build_stub(args)
|
build_stub(args)
|
||||||
build_binary(args)
|
build_binary(args)
|
||||||
build_app(args)
|
build_app(args)
|
||||||
zip_uninstaller(args)
|
|
||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Magisk build script')
|
parser = argparse.ArgumentParser(description='Magisk build script')
|
||||||
|
@ -15,4 +15,8 @@ export INSTALLER=$TMPDIR/install
|
|||||||
$BBBIN mkdir -p $INSTALLER
|
$BBBIN mkdir -p $INSTALLER
|
||||||
$BBBIN unzip -o "$3" "assets/*" "lib/*" "META-INF/com/google/*" -x "lib/*/libbusybox.so" -d $INSTALLER >&2
|
$BBBIN unzip -o "$3" "assets/*" "lib/*" "META-INF/com/google/*" -x "lib/*/libbusybox.so" -d $INSTALLER >&2
|
||||||
export ASH_STANDALONE=1
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user