-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.sh
More file actions
executable file
·35 lines (28 loc) · 949 Bytes
/
Copy pathaction.sh
File metadata and controls
executable file
·35 lines (28 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/system/bin/sh
MODDIR=${0%/*}
. "$MODDIR/config/settings.conf"
TMP="/data/local/tmp/integrityfixer"
KEYBOX_PATH="/data/adb/tricky_store/keybox.xml"
mkdir -p "$TMP"
echo "=================================="
echo " Play Integrity Fixer"
echo "=================================="
echo
sh "$MODDIR/autopif4.sh" -m || exit 1
sh "$MODDIR/scripts/updater.sh" --check
if [ -n "$DOWNLOAD_URL" ]; then
echo "Updating process is going on background"
sh "$MODDIR/scripts/notifier.sh" \
"Play Integrity Fixer" \
"Refreshing the device keybox..."
if curl -fsSL "$DOWNLOAD_URL" -o "$KEYBOX_PATH"; then
sh "$MODDIR/scripts/notifier.sh" \
"Play Integrity Fixer" \
"Update Completed. Strong Integrity has been restored successfully."
else
sh "$MODDIR/scripts/notifier.sh" \
"Play Integrity Fixer" \
"Failed to restore the Strong Integrity."
fi
fi
exit 0