Skip to content

feat: 移植强制显示蜂窝数据入口 - #72

Merged
Zennmn merged 3 commits into
mainfrom
codex/mobiledata
Sep 30, 2026
Merged

Zennmn merged 3 commits into
mainfrom
codex/mobiledata

Conversation

@Zennmn

@Zennmn Zennmn commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

在无 SIM 的设备上,Apple Music 会删除原生“数据”分组,并在播放层将蜂窝使用偏好判定为不可用。本 PR 移植 HyperLyrics-Enhanced 的处理方式,新增默认关闭的“强制显示蜂窝数据入口”,保留原生设置与用户自己的蜂窝使用开关。

功能独立于双栏、标题修正和屏幕方向。仅适配 Apple Music 6.5.2/1586、6.5.3/1599;其他版本跳过,方法缺失时降级。设置构建期间的 SIM 判断只放行一次,使用线程栈隔离嵌套调用,并在退出时清理;蜂窝可用性查询读取实时开关。三处 Hook 全部注册成功后才允许覆盖结果,安装或配置读取失败时保持原生行为。配置 schema 升级至 15,并接入现有嵌入式设置与存储。

验证:

  • 新增 22 项行为、版本符号、schema 和草稿回归测试,完整 :app:testDebugUnitTest 共 810 项全部通过。
  • :app:assembleDebug、:app:assembleRelease、release vital lint 通过。
  • git diff --check 通过。
  • 用户反馈设备功能测试可用;开启后需要重新创建设置页或完全重开 Apple Music 验证入口显示。

已上传测试模块 APK:pre-release。该附件是 AM++ 模块包,尚未重新打包 Apple Music 嵌入版。实现细节、二进制证据及设备验收矩阵见 docs/tablet-cellular-entry-port-analysis.md。

本次文案调整:移除蜂窝数据入口设置副标题中的版本号,显示为“恢复原生蜂窝数据设置 · 重开应用后显示”。调整后 :app:compileDebugKotlin 与 git diff --check 通过。

Review 修复(5a9d012):蜂窝开关基于点击时最新的对话框草稿更新,保留其他设置保存失败后的待保存值;保存按钮可以重试完整草稿。新增三项回归测试,覆盖其他行保存失败后切换蜂窝入口、蜂窝入口也保存失败后重试、同页连续修改。修复后 810 项单元测试、Debug 构建及 git diff --check 通过。

@Zennmn

Zennmn commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a429802b67

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/src/main/java/dev/amenhancer/module/ui/EmbeddedSettingsHost.kt Outdated
@Zennmn

Zennmn commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 5a9d012a60

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Zennmn
Zennmn merged commit 97c4b69 into main Sep 30, 2026
2 checks passed
@Zennmn
Zennmn deleted the codex/mobiledata branch September 30, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant