Skip to content

Commit

Permalink
v1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
daboynb committed Jan 15, 2025
1 parent e5e9cf3 commit a10dbd8
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 26 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ https://t.me/playfixnext
# How to configure extra settings

1) You can set your own check interval by specifying the number of minutes inside the file:
`/data/adb/modules/playcurl_NEXT/minutes.txt`
`/data/adb/modules/playcurlNEXT/minutes.txt`
(minimum 1 minute, maximum 1400 minutes)
Reboot to apply.

2) You can set whether you want to use a random beta FP from the last month (since multiple are available) or the latest one.
- Follow these steps to configure:
a) Open the file: `/data/adb/modules/playcurl_NEXT/mode.txt`
a) Open the file: `/data/adb/modules/playcurlNEXT/mode.txt`
b) Write `random` in the file if you want to use a random FP.
c) Write `normal` or leave the file empty if you want to use the latest one.

Expand All @@ -39,7 +39,7 @@ Reboot to apply.
Instructions for device integrity :

- Download play integrity fix
- Download playcurl_NEXT
- Download playcurlNEXT
- Install both
- Reboot
- Open Spic and check for integrity
Expand Down
14 changes: 10 additions & 4 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ key() {
# Default to 'main' branch
branch="main"

if [ -f "/data/adb/modules/playcurl_NEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurl_NEXT/mode.txt)
if [ -f "/data/adb/modules/playcurlNEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurlNEXT/mode.txt)

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
Expand Down Expand Up @@ -83,6 +83,9 @@ key() {
# Download chiteroman.json from the selected branch
if /system/bin/curl -L "https://raw.githubusercontent.com/daboynb/autojson/$branch/chiteroman.json" -o /data/adb/pif.json >/dev/null 2>&1; then
echo "[+] Successfully downloaded chiteroman.json from $branch branch."
sdk_version="$(getprop ro.build.version.sdk)"
sdk_version="${sdk_version:-25}"
"$busybox_path" sed -E -i "s/\"DEVICE_INITIAL_SDK_INT\": *\"[0-9]+\"/\"DEVICE_INITIAL_SDK_INT\": \"${sdk_version}\"/g" "/data/adb/pif.json"
else
echo "[-] Failed to download chiteroman.json from $branch branch."
fi
Expand Down Expand Up @@ -123,8 +126,8 @@ key() {
# Default to 'main' branch
branch="main"

if [ -f "/data/adb/modules/playcurl_NEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurl_NEXT/mode.txt)
if [ -f "/data/adb/modules/playcurlNEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurlNEXT/mode.txt)

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
Expand Down Expand Up @@ -163,6 +166,9 @@ key() {
# Download chiteroman.json from the selected branch
if /system/bin/curl -L "https://raw.githubusercontent.com/daboynb/autojson/$branch/chiteroman.json" -o /data/adb/pif.json >/dev/null 2>&1; then
echo "[+] Successfully downloaded chiteroman.json from $branch branch."
sdk_version="$(getprop ro.build.version.sdk)"
sdk_version="${sdk_version:-25}"
"$busybox_path" sed -E -i "s/\"DEVICE_INITIAL_SDK_INT\": *\"[0-9]+\"/\"DEVICE_INITIAL_SDK_INT\": \"${sdk_version}\"/g" "/data/adb/pif.json"
else
echo "[-] Failed to download chiteroman.json from $branch branch."
fi
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
V1.10 -> Fix an error copying thr fp.sh to tmp.
V1.11 -> Update chiteroman json field parsing.
10 changes: 6 additions & 4 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ rm -rf $MODPATH/system/bin/x86_64
###################################################################
# Install playcurl
###################################################################
echo "Installing playcurl"
echo "Installing playcurlNEXT"

###################################################################
# Removing old app if exists
Expand All @@ -40,11 +40,13 @@ if [ -d "/data/adb/modules/playcurl" ]; then
touch "/data/adb/modules/playcurl/remove"
fi

# Remove old playcurlNEXT module if it exists
if [ -d "/data/adb/modules/playcurlNEXT" ]; then
touch "/data/adb/modules/playcurlNEXT/remove"
# Remove old playcurl_NEXT module if it exists
if [ -d "/data/adb/modules/playcurl_NEXT" ]; then
touch "/data/adb/modules/playcurl_NEXT/remove"
fi

# The actual one is playcurlNEXT

###################################################################
# Allow all the scripts to be executable
###################################################################
Expand Down
8 changes: 4 additions & 4 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=playcurl_NEXT
name=playcurl_NEXT
version=v1.10
versionCode=110
id=playcurlNEXT
name=playcurlNEXT
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
6 changes: 3 additions & 3 deletions service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
# Copy and set up cron script
###################################################################
# Copy the cron script and set execute permission
cp /data/adb/modules/playcurl_NEXT/system/bin/fp /data/local/tmp/fp.sh
cp /data/adb/modules/playcurlNEXT/system/bin/fp /data/local/tmp/fp.sh
chmod +x /data/local/tmp/fp.sh

# Ensure crontab directory exists
Expand All @@ -44,8 +44,8 @@ mkdir -p /data/cron
###################################################################
# Read minutes from the file (default to 60 minutes if the file doesn't exist or has an invalid value)
minutes=60
if [ -f "/data/adb/modules/playcurl_NEXT/minutes.txt" ]; then
read_minutes=$(cat /data/adb/modules/playcurl_NEXT/minutes.txt)
if [ -f "/data/adb/modules/playcurlNEXT/minutes.txt" ]; then
read_minutes=$(cat /data/adb/modules/playcurlNEXT/minutes.txt)

# Ensure it's a valid positive integer
if [ "$read_minutes" -ge 1 ] 2>/dev/null; then
Expand Down
7 changes: 5 additions & 2 deletions system/bin/fp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fi
# Default to 'main' branch
branch="main"

if [ -f "/data/adb/modules/playcurl_NEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurl_NEXT/mode.txt)
if [ -f "/data/adb/modules/playcurlNEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurlNEXT/mode.txt)

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
Expand Down Expand Up @@ -60,6 +60,9 @@ else
# Download chiteroman.json from the selected branch
if /system/bin/curl -L "https://raw.githubusercontent.com/daboynb/autojson/$branch/chiteroman.json" -o /data/adb/pif.json >/dev/null 2>&1; then
echo "[+] Successfully downloaded chiteroman.json from $branch branch."
sdk_version="$(getprop ro.build.version.sdk)"
sdk_version="${sdk_version:-25}"
"$busybox_path" sed -E -i "s/\"DEVICE_INITIAL_SDK_INT\": *\"[0-9]+\"/\"DEVICE_INITIAL_SDK_INT\": \"${sdk_version}\"/g" "/data/adb/pif.json"
else
echo "[-] Failed to download chiteroman.json from $branch branch."
fi
Expand Down
7 changes: 5 additions & 2 deletions system/bin/fpd
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ fi
# Default to 'main' branch
branch="main"

if [ -f "/data/adb/modules/playcurl_NEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurl_NEXT/mode.txt)
if [ -f "/data/adb/modules/playcurlNEXT/mode.txt" ]; then
mode_value=$(cat /data/adb/modules/playcurlNEXT/mode.txt)

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
Expand Down Expand Up @@ -61,6 +61,9 @@ else
# Download chiteroman.json from the selected branch
if /system/bin/curl -L "https://raw.githubusercontent.com/daboynb/autojson/$branch/chiteroman.json" -o /data/adb/pif.json >/dev/null 2>&1; then
echo "[+] Successfully downloaded chiteroman.json from $branch branch."
sdk_version="$(getprop ro.build.version.sdk)"
sdk_version="${sdk_version:-25}"
"$busybox_path" sed -E -i "s/\"DEVICE_INITIAL_SDK_INT\": *\"[0-9]+\"/\"DEVICE_INITIAL_SDK_INT\": \"${sdk_version}\"/g" "/data/adb/pif.json"
else
echo "[-] Failed to download chiteroman.json from $branch branch."
fi
Expand Down
6 changes: 3 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit a10dbd8

Please sign in to comment.