Skip to content

支持 Android 16 运营商配置覆盖 - #124

Draft
Rainto0820 wants to merge 2 commits into
Ackites:masterfrom
Rainto0820:codex/android-16-oplus-carrier-config
Draft

Rainto0820 wants to merge 2 commits into
Ackites:masterfrom
Rainto0820:codex/android-16-oplus-carrier-config

Conversation

@Rainto0820

@Rainto0820 Rainto0820 commented Jun 14, 2026

Copy link
Copy Markdown

更新内容

  • 兼容 Android 16:通过反射访问 carrier_config,避免直接依赖隐藏 API 编译符号。
  • 优先读取系统活跃订阅信息,改善双卡设备的 SIM 识别。
  • 当 Android 16 拒绝非系统应用写入持久运营商配置时,自动回退为非持久覆盖。
  • 构建目标升级到 compileSdk 36

修复原因

Android 16 上部分隐藏 API 编译符号不再可直接使用,并且系统会拒绝非系统应用进行持久运营商配置覆盖。原实现会在保存时失败,新的逻辑会在持久写入被拒绝时回退到非持久覆盖。

验证

  • 已通过 gradle :app:assembleDebug --no-daemon 构建验证。
  • 已在 OnePlus PLK110 / Android 16 / Shizuku root 模式下安装测试。

@Rainto0820 Rainto0820 changed the title [codex] Support Android 16 carrier config overrides 支持 Android 16 运营商配置覆盖 Jun 14, 2026
@Rainto0820
Rainto0820 force-pushed the codex/android-16-oplus-carrier-config branch from 824de0f to da68d3d Compare June 14, 2026 02:40
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