Repository navigation
v1.0.8
v1.0.8(versionCode 9)— 自动检测与安全加固
安全加固
- 配置广播签名权限(F1):SystemUI 进程内注册的配置接收器新增 signature 级自定义权限
io.github.kelebao.colorosclockseconds.permission.CONFIG,要求发送方持有该权限。此前任意已安装应用都能广播代写Settings.Secure/Global(开关显秒、改识别名、改小时颜色、置AUTO_TIME);加固后只有与本模块同签名的设置页/磁贴能写入。
新增功能
- 状态栏时间识别名「自动检测」:设置弹窗内新增「自动检测」大按钮,一键识别状态栏时间控件并自动配置,无需理解「资源名」是什么。结果分三种提示:内置规则已识别(立即生效)、已写入自定义识别名(重启 SystemUI 后生效)、未识别到(建议手动设置或重启重试)。
- 手填校验提醒:手动填写的识别名若不含
clock/time/date,保存前二次确认,避免「乱填 → 以为设置好了」却不生效。
优化
- 设置页交互重构:「自动检测」从卡片按钮移入设置弹窗,作为主操作;卡片只保留「设置」入口并补充说明文案。
- 移除浮窗日期行:浮窗只显示时间,界面更简洁(拖动/拉伸/位置尺寸记忆不受影响)。
- 措辞统一:「时钟」统一改为「时间」,更贴近用户表述。
其它
- README 21 语言同步更新。
- 修复 CI:不再使用已失效的
android-actions/setup-android@v3(其sdkmanager "tools"会失败),改用 runner 预装 SDK。
v1.0.8 (versionCode 9) — Auto-detect & Security Hardening
Security
- Signature-level permission for config broadcasts (F1): The config receiver registered inside SystemUI now requires the sender to hold the custom signature permission
io.github.kelebao.colorosclockseconds.permission.CONFIG. Previously any installed app could broadcast writes intoSettings.Secure/Global(toggle seconds, change the clock rule, change the hour color, forceAUTO_TIME); now only the settings page / QS tile signed with the same key can write.
New Features
- "Auto-detect" for the status bar time view name: A large one-tap button inside the settings dialog finds the status bar time widget and configures it automatically — no need to understand what a "resource name" is. Three outcomes are reported: built-in rule matched (effective immediately), custom name written (effective after a SystemUI restart), or not detected (set it manually or retry).
- Manual entry validation: If a manually entered name contains no
clock/time/date, a confirmation dialog warns before saving.
Improvements
- Settings dialog rework: "Auto-detect" moved from the card into the dialog as the primary action; the card keeps only the "Settings" entry plus a short explanation.
- Floating window date row removed: The floating window now shows time only — cleaner UI (drag/resize and geometry memory unaffected).
- Wording unified: "clock" → "time" throughout the UI.
Other
- README updated in all 21 languages.
- CI fix: dropped the broken
android-actions/setup-android@v3step (itssdkmanager "tools"no longer resolves) in favour of the runner's preinstalled SDK.
Full Changelog: https://github.com/kelebao/ClockSeconds/blob/main/CHANGELOG.md