From 44e8d9e0b2cdc9127cbc0b3fe3b8aace5f19cc5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Thu, 20 Aug 2026 17:28:03 +0200 Subject: [PATCH] Add support for reMarkable app v3.28.0 Adds a new 3.28.0 build target with its macro, Qt 6.10.3 toolchain version, and iOS target settings in `script/build.sh`. Updates hook offsets in `src/Tweak.xm` for `QNetworkAccessManager::createRequest` and `QWebSocket::open`, bumps package version in `src/control` to 3.28.0, and aligns README setup instructions with the new Qt/app version mapping. --- README.md | 6 +++--- script/build.sh | 6 +++++- src/Tweak.xm | 4 ++++ src/control | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 90aa40e..006637f 100644 --- a/README.md +++ b/README.md @@ -76,13 +76,13 @@ source aqt_venv/bin/activate pip install aqtinstall ``` -Then, download the required Qt versions for iOS to your home directory (e.g., `6.8.2` for the 3.25.0 target and `6.10.0` for the 3.27.1 target): +Then, download the required Qt versions for iOS to your home directory (e.g., `6.8.2` for the 3.25.0 target and `6.10.3` for the 3.28.0 target): ```bash # Install Qt 6.8.2 for iOS (used for v3.25.0) aqt install-qt mac ios 6.8.2 -m qtwebsockets --outputdir ~/Qt -# Install Qt 6.10.0 for iOS (used for v3.27.1) -aqt install-qt mac ios 6.10.0 -m qtwebsockets --outputdir ~/Qt +# Install Qt 6.10.3 for iOS (used for v3.28.0) +aqt install-qt mac ios 6.10.3 -m qtwebsockets --outputdir ~/Qt ``` ### 2. Finding Specific App Function Offsets diff --git a/script/build.sh b/script/build.sh index c3974f4..58cc719 100755 --- a/script/build.sh +++ b/script/build.sh @@ -23,8 +23,12 @@ elif [ "$VERSION" == "3.27.1" ]; then MACRO="-DV3_27_1=1" QT_VERSION="6.10.0" TARGET="iphone:latest:17.0" +elif [ "$VERSION" == "3.28.0" ]; then + MACRO="-DV3_28_0=1" + QT_VERSION="6.10.3" + TARGET="iphone:latest:17.0" else - echo "Error: Unknown version '$VERSION'. Supported versions are: 3.17.0, 3.25.0, 3.26.0, 3.27.0, 3.27.1" + echo "Error: Unknown version '$VERSION'. Supported versions are: 3.17.0, 3.25.0, 3.26.0, 3.27.0, 3.27.1 and 3.28.0." exit 1 fi diff --git a/src/Tweak.xm b/src/Tweak.xm index 587a2e8..1fde1a9 100644 --- a/src/Tweak.xm +++ b/src/Tweak.xm @@ -36,6 +36,8 @@ #define QtNetworkAccessManager_createRequest 0x101924584 // sub_101924584 #elif V3_27_1 #define QtNetworkAccessManager_createRequest 0x10192472C // sub_10192472C +#elif V3_28_0 +#define QtNetworkAccessManager_createRequest 0x101941C9C // sub_101941C9C #endif // __ZN10QWebSocket4openERK15QNetworkRequest @@ -52,6 +54,8 @@ # define QtWebSocket_open 0x10056487C // sub_10056487C #elif V3_27_1 # define QtWebSocket_open 0x100564A24 // sub_100564A24 +#elif V3_28_0 +# define QtWebSocket_open 0x1007318F4 // sub_1007318F4 #endif diff --git a/src/control b/src/control index e252071..486e46f 100644 --- a/src/control +++ b/src/control @@ -1,6 +1,6 @@ Package: xyz.noham.rmhook Name: RMHook -Version: 3.27.1 +Version: 3.28.0 Architecture: iphoneos-arm Description: A tweak to hook remarkable mobile app. Maintainer: NohamR