Commit Graph

7 Commits

Author SHA1 Message Date
yjj38 91a60683c5 refactor(proxy): 重构代理工具并添加地理位置检查功能
-重写 ClashUtil 类中的 switchProxyGroup 方法,使用同步调用替代异步回调
- 新增 checkCountryIsUS 方法,用于检查当前设备是否位于美国
- 修改 MainActivity 中的 startProxyVpn 方法,集成新的地理位置检查逻辑
-优化任务执行流程,确保仅在代理 VPN 启动成功且设备位于美国时执行后续操作
- 修复了一些潜在的资源泄露问题,提高了代码的健壮性
2025-07-03 14:12:02 +08:00
yjj38 fec032e52b 升级 JDK 版本到 21 2025-07-03 11:32:13 +08:00
Administrator 1652482e79 refactor(ChangeDeviceInfoUtil, MainActivity): enhance package processing null-check, cleanup unused variables
- Introduced null-checks for `packageInfo` in `ChangeDeviceInfoUtil` package processing to improve error handling.
- Removed redundant `scriptResult` assignment in `MainActivity` for cleaner execution logic.
- Updated APK and baseline profile files for release configuration.
2025-06-25 10:56:53 +08:00
yjj38 ee67543b0a `refactor(TaskUtil): add taskId support, improved file/directory handling, and introduce compression/unzip utilities` 2025-06-21 14:39:57 +08:00
yjj38 8b079e8115 Add configuration files and remove redundant code
Added IntelliJ IDEA project configuration, lint baseline, and inspection profiles for consistency and static analysis. Removed redundant null-check for intent in `MainActivity` to simplify logic and improve readability.
2025-05-30 12:24:32 +08:00
yjj38 3f3273e557 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.
2025-05-30 11:04:26 +08:00
yjj38 27a38d2a97 init 2025-05-20 16:39:05 +08:00