From 595cffeb518941a609c9c666b4e3c70a3288efdc Mon Sep 17 00:00:00 2001 From: chiteroman <98092901+chiteroman@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:57:15 +0100 Subject: [PATCH] Fix --- .idea/vcs.xml | 1 + README.md | 5 +++++ app/src/main/cpp/CMakeLists.txt | 2 +- app/src/main/cpp/main.cpp | 4 ++-- changelog.md | 3 +++ update.json | 6 ++++++ 6 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 README.md create mode 100644 changelog.md create mode 100644 update.json diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 45ac14d..b6383f1 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,6 +1,7 @@ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c3ac4f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Play Integrity Fix + +Fix CTS profile and DEVICE verdict. + +XDA: https://xdaforums.com/t/module-play-integrity-fix-safetynet-fix.4607985/ \ No newline at end of file diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index d46e1d5..2cd3eaf 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.22.1) project(zygisk) -include_directories(libcxx/include libcxx/include/abi) +include_directories(libcxx/include) link_libraries(${CMAKE_SOURCE_DIR}/libcxx/${CMAKE_ANDROID_ARCH_ABI}.a) diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp index 0746cb9..abb1be9 100644 --- a/app/src/main/cpp/main.cpp +++ b/app/src/main/cpp/main.cpp @@ -14,7 +14,7 @@ typedef void (*T_Callback)(void *, const char *, const char *, uint32_t); -std::map map; +static std::map map; static void handle_system_property(void *cookie, const char *name, const char *value, uint32_t serial) { @@ -87,7 +87,7 @@ public: auto fd = api->connectCompanion(); - long size = -1; + long size; read(fd, &size, sizeof(size)); char buffer[size]; diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..abc6ce4 --- /dev/null +++ b/changelog.md @@ -0,0 +1,3 @@ +# v9.9 + +Fix crash issues in few devices. \ No newline at end of file diff --git a/update.json b/update.json new file mode 100644 index 0000000..e956540 --- /dev/null +++ b/update.json @@ -0,0 +1,6 @@ +{ + "version": "v9.9", + "versionCode": 99, + "zipUrl": "https://github.com/chiteroman/PlayIntegrityFix/releases/download/v9.9/PlayIntegrityFix_v9.9.zip", + "changelog": "https://raw.githubusercontent.com/chiteroman/PlayIntegrityFix/main/changelog.md" +} \ No newline at end of file