diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 15d4b83..0000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "app/src/main/cpp/libcxx"]
- path = app/src/main/cpp/libcxx
- url = https://github.com/topjohnwu/libcxx.git
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..45199ec
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+PlayIntegrityFix
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..b589d56
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
new file mode 100644
index 0000000..0c0c338
--- /dev/null
+++ b/.idea/deploymentTargetDropDown.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..32522c1
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..4d299ab
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/migrations.xml b/.idea/migrations.xml
new file mode 100644
index 0000000..f8051a6
--- /dev/null
+++ b/.idea/migrations.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..55c0ec2
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index c6a5fc3..ca05e7c 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -42,4 +42,33 @@ android {
path = file("src/main/cpp/Android.mk")
}
}
+}
+
+tasks.register("copyFiles") {
+ doLast {
+ val moduleFolder = project.rootDir.resolve("module")
+ val dexFile = project.buildDir.resolve("intermediates/dex/release/minifyReleaseWithR8/classes.dex")
+ val soDir = project.buildDir.resolve("intermediates/stripped_native_libs/release/out/lib")
+
+ dexFile.copyTo(moduleFolder.resolve("classes.dex"), overwrite = true)
+
+ soDir.walk().filter { it.isFile && it.extension == "so" }.forEach { soFile ->
+ val abiFolder = soFile.parentFile.name
+ val destination = moduleFolder.resolve("zygisk/$abiFolder.so")
+ soFile.copyTo(destination, overwrite = true)
+ }
+ }
+}
+
+tasks.register("zip") {
+ dependsOn("copyFiles")
+
+ archiveFileName.set("PlayIntegrityFix.zip")
+ destinationDirectory.set(project.rootDir.resolve("out"))
+
+ from(project.rootDir.resolve("module"))
+}
+
+afterEvaluate {
+ tasks["assembleRelease"].finalizedBy("copyFiles", "zip")
}
\ No newline at end of file
diff --git a/app/src/main/cpp/Android.mk b/app/src/main/cpp/Android.mk
index 9632627..dc29e4c 100644
--- a/app/src/main/cpp/Android.mk
+++ b/app/src/main/cpp/Android.mk
@@ -26,8 +26,5 @@ ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/shadowhook/arch/arm64
endif
-LOCAL_STATIC_LIBRARIES := libcxx
LOCAL_LDLIBS := -llog
-include $(BUILD_SHARED_LIBRARY)
-
-include $(LOCAL_PATH)/libcxx/Android.mk
\ No newline at end of file
+include $(BUILD_SHARED_LIBRARY)
\ No newline at end of file
diff --git a/app/src/main/cpp/Application.mk b/app/src/main/cpp/Application.mk
index da73f7c..86370ee 100644
--- a/app/src/main/cpp/Application.mk
+++ b/app/src/main/cpp/Application.mk
@@ -1,4 +1,3 @@
-APP_STL := none
+APP_STL := system
APP_CFLAGS := -Oz -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden
-APP_CPPFLAGS := -std=c++20
-APP_LDFLAGS := -Oz
\ No newline at end of file
+APP_CPPFLAGS := -std=c++20
\ No newline at end of file
diff --git a/app/src/main/cpp/libcxx b/app/src/main/cpp/libcxx
deleted file mode 160000
index 12c8f4e..0000000
--- a/app/src/main/cpp/libcxx
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 12c8f4e93f196a700137e983dcceeac43cf807f2
diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp
index 03b204f..faf2fc6 100644
--- a/app/src/main/cpp/main.cpp
+++ b/app/src/main/cpp/main.cpp
@@ -1,17 +1,17 @@
#include
#include
-#include