You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Promote autopif2 --match to documented feature
-m or --match will attempt to match the print to your current device if run on a Pixel, and will otherwise fall back to random - make matching the Action button default since there was some evidence that matching your actual Pixel device may be important for accessing the Pixel exclusive features for your device
This commit is contained in:
@@ -4,7 +4,7 @@ MODPATH="${0%/*}"
|
|||||||
set +o standalone
|
set +o standalone
|
||||||
unset ASH_STANDALONE
|
unset ASH_STANDALONE
|
||||||
|
|
||||||
sh $MODPATH/autopif2.sh -a -p || exit 1
|
sh $MODPATH/autopif2.sh -a -m -p || exit 1
|
||||||
|
|
||||||
echo -e "\nDone!"
|
echo -e "\nDone!"
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,10 @@ esac;
|
|||||||
FORCE_DEPTH=1;
|
FORCE_DEPTH=1;
|
||||||
until [ -z "$1" ]; do
|
until [ -z "$1" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help|help) echo "sh autopif2.sh [-a|-s] [-p] [-d #]"; exit 0;;
|
-h|--help|help) echo "sh autopif2.sh [-a|-s] [-m] [-p] [-d #]"; exit 0;;
|
||||||
-a|--advanced|advanced) ARGS="-a"; shift;;
|
-a|--advanced|advanced) ARGS="-a"; shift;;
|
||||||
-s|--strong|strong) ARGS="-a"; PATCH_COMMENT=1; spoofProvider=0; shift;;
|
-s|--strong|strong) ARGS="-a"; PATCH_COMMENT=1; spoofProvider=0; shift;;
|
||||||
|
-m|--match|match) FORCE_MATCH=1; shift;;
|
||||||
-p|--preview|preview) FORCE_PREVIEW=1; shift;;
|
-p|--preview|preview) FORCE_PREVIEW=1; shift;;
|
||||||
-d|--depth|depth) echo "$2" | grep -q '^[1-9]$' || exit 1; FORCE_DEPTH=$2; shift 2;;
|
-d|--depth|depth) echo "$2" | grep -q '^[1-9]$' || exit 1; FORCE_DEPTH=$2; shift 2;;
|
||||||
*) break;;
|
*) break;;
|
||||||
@@ -98,18 +99,16 @@ MODEL_LIST="$(grep -A1 'tr id=' PIXEL_OTA_HTML | grep 'td' | sed 's;.*<td>\(.*\)
|
|||||||
PRODUCT_LIST="$(grep -o 'ota/.*_beta' PIXEL_OTA_HTML | cut -d\/ -f2)";
|
PRODUCT_LIST="$(grep -o 'ota/.*_beta' PIXEL_OTA_HTML | cut -d\/ -f2)";
|
||||||
OTA_LIST="$(grep 'ota/.*_beta' PIXEL_OTA_HTML | cut -d\" -f2)";
|
OTA_LIST="$(grep 'ota/.*_beta' PIXEL_OTA_HTML | cut -d\" -f2)";
|
||||||
|
|
||||||
case "$1" in
|
if [ "$FORCE_MATCH" ]; then
|
||||||
-m)
|
DEVICE="$(getprop ro.product.device)";
|
||||||
DEVICE="$(getprop ro.product.device)";
|
case "$PRODUCT_LIST" in
|
||||||
case "$PRODUCT_LIST" in
|
*${DEVICE}_beta*)
|
||||||
*${DEVICE}_beta*)
|
MODEL="$(getprop ro.product.model)";
|
||||||
MODEL="$(getprop ro.product.model)";
|
PRODUCT="${DEVICE}_beta";
|
||||||
PRODUCT="${DEVICE}_beta";
|
OTA="$(echo "$OTA_LIST" | grep "$PRODUCT")";
|
||||||
OTA="$(echo "$OTA_LIST" | grep "$PRODUCT")";
|
;;
|
||||||
;;
|
esac;
|
||||||
esac;
|
fi;
|
||||||
;;
|
|
||||||
esac;
|
|
||||||
item "Selecting Pixel Beta device ...";
|
item "Selecting Pixel Beta device ...";
|
||||||
if [ -z "$PRODUCT" ]; then
|
if [ -z "$PRODUCT" ]; then
|
||||||
set_random_beta() {
|
set_random_beta() {
|
||||||
|
|||||||
Reference in New Issue
Block a user