You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Switch to improved workaround for Dobby detection
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,6 +1,9 @@
|
|||||||
[submodule "Dobby"]
|
[submodule "Dobby"]
|
||||||
path = app/src/main/cpp/Dobby
|
path = app/src/main/cpp/Dobby
|
||||||
url = https://github.com/JingMatrix/Dobby
|
url = https://github.com/JingMatrix/Dobby
|
||||||
|
[submodule "local_cxa_atexit_finalize_impl"]
|
||||||
|
path = app/src/main/cpp/local_cxa_atexit_finalize_impl
|
||||||
|
url = https://github.com/5ec1cff/local_cxa_atexit_finalize_impl
|
||||||
[submodule "json"]
|
[submodule "json"]
|
||||||
path = app/src/main/cpp/json
|
path = app/src/main/cpp/json
|
||||||
url = https://github.com/nlohmann/json
|
url = https://github.com/nlohmann/json
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ find_package(cxx REQUIRED CONFIG)
|
|||||||
|
|
||||||
link_libraries(cxx::cxx)
|
link_libraries(cxx::cxx)
|
||||||
|
|
||||||
add_library(${CMAKE_PROJECT_NAME} SHARED ${CMAKE_SOURCE_DIR}/main.cpp)
|
add_library(${CMAKE_PROJECT_NAME} SHARED main.cpp local_cxa_atexit_finalize_impl/atexit.cpp)
|
||||||
|
|
||||||
add_subdirectory(Dobby)
|
add_subdirectory(Dobby)
|
||||||
|
|
||||||
|
|||||||
1
app/src/main/cpp/local_cxa_atexit_finalize_impl
Submodule
1
app/src/main/cpp/local_cxa_atexit_finalize_impl
Submodule
Submodule app/src/main/cpp/local_cxa_atexit_finalize_impl added at ab0dd0a64d
@@ -388,16 +388,6 @@ static void companion(int fd) {
|
|||||||
jsonVector.clear();
|
jsonVector.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Fix for Dobby detections
|
|
||||||
* Must be added to all Zygisk C++ libraries in a project
|
|
||||||
*
|
|
||||||
* Reference: https://github.com/JingMatrix/NeoZygisk/commit/76d54228c7e6fe14cca93338865008946b94f7ee
|
|
||||||
*/
|
|
||||||
extern "C" int __cxa_atexit(void (*func)(void*), void* arg, void* dso) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
REGISTER_ZYGISK_MODULE(PlayIntegrityFix)
|
REGISTER_ZYGISK_MODULE(PlayIntegrityFix)
|
||||||
|
|
||||||
REGISTER_ZYGISK_COMPANION(companion)
|
REGISTER_ZYGISK_COMPANION(companion)
|
||||||
|
|||||||
Reference in New Issue
Block a user