mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-03 21:29:44 +08:00
Add back remove amazon
Amazon Apps only ship in the apex module on a high version of WSA, so just simply delete it For the WSA upgrade from the older version which already installed this module, run `adb shell pm uninstall com.microsoft.mado` to remove it.
This commit is contained in:
parent
511374f77f
commit
730070d44a
@ -195,6 +195,7 @@ ARGUMENT_LIST=(
|
||||
"magisk-ver:"
|
||||
"magisk-custom"
|
||||
"install-gapps"
|
||||
"remove-amazon"
|
||||
"offline"
|
||||
"skip-download-wsa"
|
||||
"help"
|
||||
@ -242,6 +243,10 @@ while [[ $# -gt 0 ]]; do
|
||||
HAS_GAPPS=1
|
||||
shift
|
||||
;;
|
||||
--remove-amazon)
|
||||
REMOVE_AMAZON=1
|
||||
shift
|
||||
;;
|
||||
--offline)
|
||||
OFFLINE=1
|
||||
shift
|
||||
@ -518,6 +523,10 @@ if [ "$HAS_GAPPS" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$REMOVE_AMAZON" ]; then
|
||||
rm -f "$WORK_DIR/wsa/$ARCH/apex/"mado*.apex || abort
|
||||
fi
|
||||
|
||||
echo "Removing signature and add scripts"
|
||||
rm -rf "${WORK_DIR:?}"/wsa/"$ARCH"/\[Content_Types\].xml "$WORK_DIR/wsa/$ARCH/AppxBlockMap.xml" "$WORK_DIR/wsa/$ARCH/AppxSignature.p7x" "$WORK_DIR/wsa/$ARCH/AppxMetadata" || abort
|
||||
cp "$vclibs_PATH" "$xaml_PATH" "$WORK_DIR/wsa/$ARCH" || abort
|
||||
@ -543,6 +552,7 @@ else
|
||||
name2=-GApps-${ANDROID_API_MAP[$ANDROID_API]}
|
||||
fi
|
||||
artifact_name=WSA_${WSA_VER}_${ARCH}_${WSA_REL}${name1}${name2}
|
||||
[ "$REMOVE_AMAZON" ] && artifact_name+=-NoAmazon
|
||||
|
||||
if [ -f "$OUTPUT_DIR" ]; then
|
||||
rm -rf ${OUTPUT_DIR:?}
|
||||
|
@ -104,9 +104,9 @@ if (YesNoBox '([title]="Install GApps" [text]="Do you want to install GApps?")')
|
||||
COMMAND_LINE+=(--install-gapps)
|
||||
fi
|
||||
|
||||
# if (YesNoBox '([title]="Remove Amazon Appstore" [text]="Do you want to remove Amazon Appstore?")' no); then
|
||||
# COMMAND_LINE+=(--remove-amazon)
|
||||
# fi
|
||||
if (YesNoBox '([title]="Remove Amazon Appstore" [text]="Do you want to remove Amazon Appstore?")' no); then
|
||||
COMMAND_LINE+=(--remove-amazon)
|
||||
fi
|
||||
|
||||
if (YesNoBox '([title]="Compress output" [text]="Do you want to compress the output?")'); then
|
||||
COMPRESS_FORMAT=$(
|
||||
|
Loading…
x
Reference in New Issue
Block a user