Skip to content

Commit

Permalink
v1.05
Browse files Browse the repository at this point in the history
  • Loading branch information
daboynb committed Oct 21, 2024
1 parent 5a04da1 commit 8c817cd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 32 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ This is a rewrite of Playcurl, the old version became outdated as many things ha
# 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/playcurlNEXT/minutes.txt`
`/data/adb/modules/playcurl_NEXT/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/playcurlNEXT/mode.txt`
a) Open the file: `/data/adb/modules/playcurl_NEXT/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 Down
4 changes: 2 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fi
# Default to 'main' branch
branch="main"

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

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
Expand Down
16 changes: 1 addition & 15 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
V1.04 -> New Features!

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

2) You can now 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/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.

Version 1.04 comes with these default values:
- check interval -> every hour
- mode -> normal (latest FP)

If you are okay with these values, do not edit anything.
V1.05 -> fix for https://t.me/PifNEXT/53.
8 changes: 4 additions & 4 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=playcurlNEXT
name=playcurlNEXT
version=v1.04
versionCode=104
id=playcurl_NEXT
name=playcurl_NEXT
version=v1.05
versionCode=105
author=daboynb
description=Automatic fingerprint downloader for play integrity fix.
updateJson=https://raw.githubusercontent.com/daboynb/playcurlNEXT/main/update.json
8 changes: 4 additions & 4 deletions service.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/system/bin/sh

# Source external functions
. /data/adb/modules/playcurlNEXT/common_func.sh
. /data/adb/modules/playcurl_NEXT/common_func.sh

# Check if boot is completed
until [ "$(getprop sys.boot_completed)" = "1" ]; do
Expand All @@ -28,16 +28,16 @@ fi
###################################################################

# Copy the cron script and set execute permission
cp /data/adb/modules/playcurlNEXT/action.sh /data/local/tmp/fp.sh
cp /data/adb/modules/playcurl_NEXT/action.sh /data/local/tmp/fp.sh
chmod +x /data/local/tmp/fp.sh

# Ensure crontab directory exists
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/playcurlNEXT/minutes.txt" ]; then
read_minutes=$(cat /data/adb/modules/playcurlNEXT/minutes.txt)
if [ -f "/data/adb/modules/playcurl_NEXT/minutes.txt" ]; then
read_minutes=$(cat /data/adb/modules/playcurl_NEXT/minutes.txt)

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

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

# If the value in mode.txt is "random", use the random branch
if [ "$mode_value" = "random" ]; then
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.04",
"versionCode": 104,
"zipUrl": "https://github.com/daboynb/playcurlNEXT/releases/download/v1.04/playcurlNEXT.zip",
"version": "v1.05",
"versionCode": 105,
"zipUrl": "https://github.com/daboynb/playcurlNEXT/releases/download/v1.05/playcurlNEXT.zip",
"changelog": "https://raw.githubusercontent.com/daboynb/playcurlNEXT/main/changelog.md"
}

0 comments on commit 8c817cd

Please sign in to comment.