Skip to content

zako4

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 06:59
· 32 commits to main since this release

这一版的主线是「让日常用起来更顺」:把启动路径、列表渲染和后台唤醒重新收拾了一遍(性能与耗电是本次重点),同时补上一批早就想要的能力 —— 应用数据备份/恢复(含特权存储代理)、安装信任列表与批量队列、EXEC_SHELL 自动化。

⚡ 性能与耗电(本版重点)

  • Baseline Profile 真正进包:构建脚本此前把 CompileArtProfileTask 全局禁用,421 KB 的 baseline-prof.txt 每次都会生成却从未打进 APK —— Compose / Material3 / RecyclerView 自带的基线配置一起被丢掉,冷启动只能靠 JIT 解释执行。现在移除禁用,release 包内可见 assets/dexopt/baseline.prof,冷启动重新吃到 AOT 预编译
  • 应用列表图标真正命中缓存:列表项绑定时先查 AppIconCache(按 uid + 目标尺寸缓存),命中直接上屏,不再每次新建 item 都在主线程同步 loadIcon;未命中才异步替换,滚动更稳
  • 列表不再随内容反复测量:RecyclerView.setHasFixedSize(true) + 固定条目标高,过滤/刷新时少一轮 requestLayout
  • 后台唤醒收敛(省电也是体验的一部分):
    • 更新检查:AlarmManager.RTC_WAKEUP → JobScheduler(6 小时周期、持久化、按网络条件触发),不再周期性把设备从待机叫醒
    • 无障碍守护心跳自适应:前台 60s / 息屏 5min / 省电 10min
    • 保活 shell 轮询 sleep 45 → sleep 90,减少无意义唤醒与闪存写入
  • 首页状态只探活一次:单次 binder 探活失败不再把整页判成「服务未运行」,onResume 再校准,减少无效重载与状态闪烁

✨ 新功能

  • 应用数据备份 / 恢复(应用管理 → 右上角「应用数据备份与恢复」)
    • 外部数据(/sdcard/Android/data、/sdcard/Android/obb)打包成 external.tar.gz,可选一并保存 OBB / APK;边读边写用户选的 SAF 目录,设备上不落临时包
    • 恢复是替换式:先解到 staging,成功后按顶层条目替换,解压失败原数据一个字节不动;恢复前二次确认,OBB 失败单独报告,未安装会提示先安装(备份里带 APK 时可直接交给安装器)
    • 批量备份队列:顺序执行、单项失败不中断、可取消
  • 特权存储代理 IStorageProxy:shell/root 服务进程提供的受限文件接口(列目录 / 开文件 / tar 打包 / 安全解压 / 复制 / 删除 / 建目录 / 存在性),四层访问降级(直连 → shell 管道 → run-as(仅 debuggable)→ content://),所有路径先过白名单与注入校验;第三方应用需在「第三方调用」页单独授权,每次调用写审计
  • 安装信任列表 + 批量安装队列:apk / apk.1 / XAPK / APKS,签名与 uid 双校验的受信直装、外部应用请求的确认框、队列顺序执行与历史记录
  • EXEC_SHELL 自动化:带令牌与签名校验的广播入口,结果按调用方包名回传
  • 批量授权 / 权限模板:多选批量授予/撤销、影响确认、3 个内置模板 + 自定义模板、SAF 导出/导入
  • 应用管理页新增存储代理与数据备份入口;设置页补齐安装 / 自动化分区

🔧 修复

  • 授权弹窗点了「确定」不生效(CountDownLatch.await 返回值误判 + 冷启动没有 binder + 只按本 fork 的权限名 grant)
  • 首页偶发显示「服务未运行」(单点探活失败被判成整体失败)
  • API 24 应用管理列表为空(getInstalledPackages 只找 (long,int) 签名,缺 (int,int) 回退)
  • 服务端一处空指针:同一进程二次连接后应用永久收不到 binder
  • 共享 uid 下只有第一个包能收到 binder
  • Android 7.x 上模块 / WebUI 因 java.nio.file(API 26)崩溃等 17 处首次引导与低版本兼容问题
  • 模块 / WebUI 的非 root 工作目录回退与若干文案

🌍 English

This release is mainly about making daily use smoother: the startup path, list rendering and background wake-ups were reworked (performance and battery are the focus), together with app data backup/restore (with a privileged storage proxy), a trusted-installer list with a batch queue, and EXEC_SHELL automation.

  • Performance: Baseline Profile is now actually packaged (the build used to disable CompileArtProfileTask, so the generated baseline-prof.txt never reached the APK); app-list icons now hit a real cache; fixed-size list items; update checks moved from AlarmManager to JobScheduler, adaptive accessibility heartbeat, keep-alive polling 45s → 90s; single-probe home status.
  • New: external-data backup/restore (tar.gz streamed straight into a SAF folder, replace-style restore that leaves your data untouched if extraction fails, batch queue); IStorageProxy with four-layer fallback plus a whitelist and injection guard; trusted installers and a batch install queue (apk / apk.1 / XAPK / APKS); EXEC_SHELL automation; batch permission grants and templates.
  • Fixed: the permission dialog's "allow" not taking effect, home status flicker, an empty app list on API 24, a server NPE after re-connect, shared-UID binder push stopping after the first package, and the background wake-up issues listed above.