From 3f3273e557f89351828e2155f9de855578faab6c Mon Sep 17 00:00:00 2001 From: yjj38 Date: Fri, 30 May 2025 11:04:26 +0800 Subject: [PATCH] Remove unused DeviceUtils and disable command safety checks Deleted `DeviceUtils.java` as it is no longer used and removed redundant native method calls. Disabled safety checks for shell commands in `ShellUtils.java` for enhanced flexibility, ensuring they won't interrupt execution. Updated JNI method paths in `infoct.cpp` to align with updated package structure. --- .idea/.name | 2 +- .idea/gradle.xml | 3 +- .idea/misc.xml | 3 +- app/src/main/AndroidManifest.xml | 5 + app/src/main/cpp/infoct.cpp | 14 +- .../com/example/studyapp/device/Native.java | 3 +- .../example/studyapp/utils/DeviceUtils.java | 27 -- .../example/studyapp/utils/ShellUtils.java | 22 +- app/src/main/jniLibs/arm64-v8a/libnative.so | Bin 81368 -> 81464 bytes err.log | 233 ++++++++++-------- gradle/libs.versions.toml | 2 +- 11 files changed, 168 insertions(+), 146 deletions(-) delete mode 100644 app/src/main/java/com/example/studyapp/utils/DeviceUtils.java diff --git a/.idea/.name b/.idea/.name index a6b4d7b..821629e 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -V2rayUtil.java \ No newline at end of file +study.App \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 639c779..b3af236 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,7 +6,8 @@