Commit Graph

14 Commits

Author SHA1 Message Date
yjj38 9acc35fa7b refactor(app): 限制 scriptResultQueue 的容量
- 将 scriptResultQueue 的容量从无限制改为 1
- 此修改旨在防止队列无限增长可能导致的内存问题
2025-07-10 15:02:21 +08:00
yjj38 faa865cb34 build: 添加 ProGuard 规则以保留必要类和方法
- 保留 ArmCloudApiClient 及其公共方法和构造函数
-保留 PropertyItem 内部类及其字段、构造函数和 toJson 方法- 保留枚举类及其 values 和 valueOf 方法
- 保留使用 @SerializedName 注解的字段- 可选地保留注解信息
2025-07-10 14:30:13 +08:00
yjj38 175db8f49b refactor(device): 重构设备列表查询接口并优化日志输出- 重写 getDeviceCodes 方法,改为 getInstanceListInfo,优化参数设计
- 移除未使用的 getDeviceInfo 方法
- 在关键步骤添加调试日志输出,便于问题排查
- 更新网络配置,添加新的服务器 IP
2025-07-10 11:41:50 +08:00
yjj38 247db8b28e refactor(MainActivity): 移除获取 AndroidId 的硬编码方法
- 删除了 `getAndroidId` 方法,该方法返回一个硬编码的字符串。
2025-07-09 21:18:16 +08:00
yjj38 2a7132d7b0 refactor(retention): 重构项目并添加新功能
- 更新包名从 com.example.studyapp 到 com.example.retention
- 添加 ArmCloudApiClient 类实现设备属性更新功能
- 更新所有相关类和文件以适应新的包名
2025-07-09 17:04:18 +08:00
yjj38 c999ee6f69 refactor(proxy): 移除代理检查国家功能并优化 VPN 启动逻辑
- 删除了 ClashUtil 类中的 checkCountryIsUS 方法,移除了检查国家是否为美国的功能
- 修改了 LoadDeviceWorker 类中的 startProxyVpn 方法,去除了返回值,简化了逻辑- 优化了 executeSingleLogic 方法的流程,移除了与代理检查国家相关的代码
2025-07-03 17:25:34 +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 30985a0fa0 refactor(app): 重构应用主界面和功能代码
- 更新 activity_main.xml 布局,优化界面结构
- 重构 AutoJsUtil 类,提高代码可读性和维护性
- 改进 ChangeDeviceInfoUtil 类,增强设备信息修改功能
- 更新 build.gradle 配置,提升项目构建兼容性
2025-06-19 22:12:21 +08:00
yjj38 222a2002f9 Add `TaskUtil` for device and file operations; update `MainActivity` for Android ID handling and permissions
Introduced new `TaskUtil` utility class for device info upload, file compression, and remote operations. Updated `MainActivity` to dynamically fetch and utilize Android ID, added Android 13+ permission handling for `FOREGROUND_SERVICE`. Included Mockito dependencies for unit testing, implemented `TaskUtilTest` for API interaction validation. Adjusted `ChangeDeviceInfoUtil` initialization and fetched properties dynamically. Updated `minSdk` and network security configuration.
2025-06-18 14:31:11 +08:00
yjj38 657bb2c2c1 Dynamically fetch and apply device properties from API responses
Implemented dynamic retrieval of device properties from external APIs, parsing JSON responses, and replacing statically hardcoded values. Enhanced flexibility for device information management. Added error handling for JSON parsing and root access validation.
2025-06-10 19:54:32 +08:00
yjj38 3bde5cadb7 gffhfth 2025-06-09 16:17:53 +08:00
yjj38 c20f4cb515 Integrate WorkManager for periodic accessibility service checks
Added `CheckAccessibilityWorker` with WorkManager to periodically validate and prompt accessibility service activation. Registered new `MyAccessibilityService` in manifest and set configurations. Introduced native `Singbox` methods for VPN operations and added compatibility fixes, including JNI library path initialization. Updated dependency `androidx.work:work-runtime:2.9.0`.
2025-06-07 09:52:33 +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 b2ec85ddb9 Add native methods to manipulate system and device info
This commit introduces multiple native methods, written in C++, to interact with system and device info such as RAM, CPU, disk, and uptime. It also includes mechanisms to modify or reset system properties, bypass anti-debugging, and handle file path redirection. Additionally, ensures proper JNI bindings to avoid runtime errors like `UnsatisfiedLinkError`.
2025-05-29 22:05:49 +08:00