From e258017037bacf5ef00e33a7064502e95d97f58b Mon Sep 17 00:00:00 2001 From: daboynb <106079917+daboynb@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:50:30 +0100 Subject: [PATCH] v1.11 --- action.sh | 38 +++++++++++++++++++++++++++++++++++++- changelog.md | 2 +- customize.sh | 13 +++++++++++++ module.prop | 4 ++-- system/bin/fp | 15 +++++++++++++++ system/bin/fpd | 15 +++++++++++++++ update.json | 6 +++--- 7 files changed, 86 insertions(+), 7 deletions(-) diff --git a/action.sh b/action.sh index 6143262..b0db9cf 100644 --- a/action.sh +++ b/action.sh @@ -35,8 +35,24 @@ key() { break fi +################################################################### +# Volume Up press # +################################################################### # Detect Volume Up press if echo "$keys" | "$busybox_path" grep -q 'KEY_VOLUMEUP.*DOWN'; then + + # Check if the kernel name is banned, banned kernels names from https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/post-89308909 and telegram + get_kernel_name=$(uname -r) + banned_names=("aicp" "arter97" "blu_spark" "caf" "cm-" "crdroid" "cyanogenmod" "deathly" "eas-" "eas" "elementalx" "elite" "franco" "hadeskernel" "lineage-" "lineage" "lineageos" "mokee" "morokernel" "noble" "optimus" "slimroms" "sultan") + + for keyword in "${banned_names[@]}"; do + if echo "$get_kernel_name" | "$busybox_path" grep -iq "$keyword"; then + echo + echo "[-] Your kernel name \"$keyword\" is banned." + echo "" + echo "Play integrity fix, Play integrity fix fork and playcurlNEXT won't work." + fi + done ################################################################### # Read mode.txt and decide branch @@ -115,8 +131,25 @@ key() { sleep 3 return 0 - # Detect Volume Down press + +################################################################### +# Volume Down press # +################################################################### elif echo "$keys" | "$busybox_path" grep -q 'KEY_VOLUMEDOWN.*DOWN'; then + + # Check if the kernel name is banned, banned kernels names from https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/post-89308909 and telegram + get_kernel_name=$(uname -r) + banned_names=("aicp" "arter97" "blu_spark" "caf" "cm-" "crdroid" "cyanogenmod" "deathly" "eas-" "eas" "elementalx" "elite" "franco" "hadeskernel" "lineage-" "lineage" "lineageos" "mokee" "morokernel" "noble" "optimus" "slimroms" "sultan") + + for keyword in "${banned_names[@]}"; do + if echo "$get_kernel_name" | "$busybox_path" grep -iq "$keyword"; then + echo + echo "[-] Your kernel name \"$keyword\" is banned." + echo "" + echo "Play integrity fix, Play integrity fix fork and playcurlNEXT won't work." + fi + done + ################################################################### # Read mode.txt and decide branch ################################################################### @@ -221,6 +254,9 @@ key() { mv "$file" "${file}.bak" fi done + + # Enable ts + rm /data/adb/modules/tricky_store/disable > /dev/null 2>/dev/null # Download the aosp keybox if /system/bin/curl -o /data/adb/tricky_store/keybox.xml "https://raw.githubusercontent.com/daboynb/autojson/refs/heads/main/aosp_keybox.xml" >/dev/null 2>&1; then diff --git a/changelog.md b/changelog.md index ed8fa08..5095d05 100644 --- a/changelog.md +++ b/changelog.md @@ -1 +1 @@ -V1.10 -> Fix an error copying thr fp.sh to tmp. \ No newline at end of file +V1.11 -> kernel string checks added. \ No newline at end of file diff --git a/customize.sh b/customize.sh index a85cb89..659ed98 100644 --- a/customize.sh +++ b/customize.sh @@ -26,6 +26,19 @@ rm -rf $MODPATH/system/bin/x86_64 ################################################################### echo "Installing playcurl" +# Check if the kernel name is banned, banned kernels names from https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/post-89308909 and telegram +get_kernel_name=$(uname -r) +banned_names=("aicp" "arter97" "blu_spark" "caf" "cm-" "crdroid" "cyanogenmod" "deathly" "eas-" "eas" "elementalx" "elite" "franco" "hadeskernel" "lineage-" "lineage" "lineageos" "mokee" "morokernel" "noble" "optimus" "slimroms" "sultan") + +for keyword in "${banned_names[@]}"; do + if echo "$get_kernel_name" | "$busybox_path" grep -iq "$keyword"; then + echo + echo "[-] Your kernel name \"$keyword\" is banned." + echo "" + echo "Play integrity fix, Play integrity fix fork and playcurlNEXT won't work." + fi +done + ################################################################### # Removing old app if exists ################################################################### diff --git a/module.prop b/module.prop index efc6503..2003de5 100644 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=playcurl_NEXT name=playcurl_NEXT -version=v1.10 -versionCode=110 +version=v1.11 +versionCode=111 author=daboynb description=Automatic fingerprint downloader for play integrity fix. updateJson=https://raw.githubusercontent.com/daboynb/playcurlNEXT/main/update.json \ No newline at end of file diff --git a/system/bin/fp b/system/bin/fp index 81a85fd..e9677ac 100644 --- a/system/bin/fp +++ b/system/bin/fp @@ -15,6 +15,21 @@ elif [ -f "/data/adb/ap/bin/busybox" ]; then fi ################################################################### +################################################################### +# Check if the kernel name is banned, banned kernels names from https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/post-89308909 and telegram +get_kernel_name=$(uname -r) +banned_names=("aicp" "arter97" "blu_spark" "caf" "cm-" "crdroid" "cyanogenmod" "deathly" "eas-" "eas" "elementalx" "elite" "franco" "hadeskernel" "lineage-" "lineage" "lineageos" "mokee" "morokernel" "noble" "optimus" "slimroms" "sultan") + +for keyword in "${banned_names[@]}"; do + if echo "$get_kernel_name" | "$busybox_path" grep -iq "$keyword"; then + echo + echo "[-] Your kernel name \"$keyword\" is banned." + echo "" + echo "Play integrity fix, Play integrity fix fork and playcurlNEXT won't work." + fi +done +################################################################### + ################################################################### # Read mode.txt and decide branch ################################################################### diff --git a/system/bin/fpd b/system/bin/fpd index 2d573d5..d831f74 100644 --- a/system/bin/fpd +++ b/system/bin/fpd @@ -15,6 +15,21 @@ elif [ -f "/data/adb/ap/bin/busybox" ]; then fi ################################################################### +################################################################### +# Check if the kernel name is banned, banned kernels names from https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/post-89308909 and telegram +get_kernel_name=$(uname -r) +banned_names=("aicp" "arter97" "blu_spark" "caf" "cm-" "crdroid" "cyanogenmod" "deathly" "eas-" "eas" "elementalx" "elite" "franco" "hadeskernel" "lineage-" "lineage" "lineageos" "mokee" "morokernel" "noble" "optimus" "slimroms" "sultan") + +for keyword in "${banned_names[@]}"; do + if echo "$get_kernel_name" | "$busybox_path" grep -iq "$keyword"; then + echo + echo "[-] Your kernel name \"$keyword\" is banned." + echo "" + echo "Play integrity fix, Play integrity fix fork and playcurlNEXT won't work." + fi +done +################################################################### + ################################################################### # Read mode.txt and decide branch ################################################################### diff --git a/update.json b/update.json index 86f0762..178f0e3 100644 --- a/update.json +++ b/update.json @@ -1,6 +1,6 @@ { - "version": "v1.10", - "versionCode": 110, - "zipUrl": "https://github.com/daboynb/playcurlNEXT/releases/download/v1.10/playcurlNEXT.zip", + "version": "v1.11", + "versionCode": 111, + "zipUrl": "https://github.com/daboynb/playcurlNEXT/releases/download/v1.11/playcurlNEXT.zip", "changelog": "https://raw.githubusercontent.com/daboynb/playcurlNEXT/main/changelog.md" } \ No newline at end of file