Commit Graph

10 Commits

Author SHA1 Message Date
yjj38 7b93852e89 refactor(app): 修改设备加载工作器的执行周期
- 将 LoadDeviceWorker 的执行周期从30 分钟改为 30 秒
- 删除了 .idea/misc.xml 文件中的 XML 声明
2025-07-10 17:29:40 +08:00
yjj38 d7774c2ac6 feat(app): 优化应用初始化和权限请求逻辑
- 重构了 MainActivity 中的 onCreate 方法,优化了应用初始化流程
- 添加了请求存储权限的独立方法 requestStoragePermission
- 实现了只在工作不存在时调度周期性工作的逻辑 schedulePeriodicWorkIfNotExists
- 优化了按钮点击事件的处理,提高了代码可读性和健壮性
- 新增了部署配置文件 deployment.xml,用于腾讯云服务器配置
2025-07-10 17:13:42 +08:00
yjj38 7cf941af6e feat(release): 新增签名配置并更新构建类型
- 新增 release 签名配置,使用 agent_retention.jks 密钥库
- 更新 release 构建类型,启用签名配置和代码混淆
- 移除旧的密钥库文件 (agentkey.jks, new-release-key.jks, your-release-key.jks)
- 更新 .idea/misc.xml 文件
2025-07-04 11:17:03 +08:00
yjj38 431267228f JDK升级到21,优化ClashUtil的代理切换和网络检查逻辑
- 项目的JDK版本从17升级到21。
- ClashUtil的`switchProxyGroup`方法改为同步执行,并增加了对HTTP响应状态码的检查。
- 新增`checkCountryIsUS`方法,用于通过ipinfo.io判断当前IP是否在美国,并在VPN启动后调用此方法进行验证。
- `LoadDeviceWorker`中的`startProxyVpn`方法现在会根据`checkCountryIsUS`的结果来决定是否继续执行后续操作。
- AutoJs脚本 (`main.js`) 更新,使用Promise和async/await来处理并行的HTTP请求,并分别调用ipv4.geojs.io的接口获取国家代码和详细地理位置信息。
2025-07-03 13:17:14 +08:00
Administrator e619d85361 2025-06-26 14:02:58 +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