简体中文 · English · 繁體中文 · 日本語 · 한국어 · Türkçe · Русский · Tiếng Việt · ไทย · Deutsch · Español · Français · Українська · Polski · Português (Brasil) · فارسی · العربية · Bahasa Indonesia · Italiano · Ελληνικά · ქართული

时间显示秒数(Show Seconds in Time)

让状态栏时间显示秒,单击即切换;六个数字可逐位上色,也能整串铺一条渐变;
长按弹出毛玻璃浮窗实时显示网络时间(可拖动、可拉伸,同样支持渐变);
还能给「整点 / 每天某时刻」排自定义任务,到点自动开秒。
核心链路只用 AOSP 公开 API(OPPO / 一加 / 真我的私有类兼容为可选增强、找不到即跳过),已在 ColorOS 15 / 16 真机验证。

version android lsposed coloros stars license


功能

功能 说明
状态栏显秒 HH:mm:ss / h:mm:ss a(跟随系统 12/24 小时制与本地时区);ColorOS 的时钟样式/第三方主题模块会按 HH:mm(:ss) 模式重建文本、把颜色 span 剥掉,模块在文本末尾追加一个零宽空格破坏该模式,并检测掉色后自动重绘(5 分钟冷却上限)
点击切换 单击状态栏时间即切换显秒开/关;也可在设置页改为双击(长按专用于浮窗预览)。任务窗口内点击会提示「已由任务接管」而不偷改总开关
逐位取色 / 整串渐变 六个数字各自配色(深色 / 浅色各 20 组预设 + HSV 滑杆 +「跟随系统」),冒号自动光学居中;或改用整串渐变:起点 → 终点双端点渐变,端点再点一次打开调色盘。高级设置页提供实时预览钟。
系统模式自适应 颜色按系统深色 / 浅色模式自动切换;开关旁 ? 圆圈图标点开可查看用法说明。
11 种渐变形式 整串渐变支持上→下、左→右、象限光晕、颗粒噪点、镀铬金属、斜纹糖果、波浪切割、低多边形、水磨石、二维码、液态水银;方向行动态 ⇆ 提示可横滑,端点圆圈有多层涟漪。
色号就地编辑 在「正在编辑」同一行直接输入 #RRGGBB,边输边生效;HSV 滑杆与 16 进制框同步更新。
通知栏时间效果 下拉通知栏的大时钟与状态栏时间共用同一套逐位颜色 / 渐变设置,颜色自动同步;实机效果见下方图片
长按预览浮窗 长按状态栏时间弹出毛玻璃半透明浮窗,实时显示网络时间;可整体拖动、按左下角 ◣ 拉伸缩放,位置与尺寸自动记忆;支持同款渐变、数字等宽(秒数跳动时整串不抖)
自定义任务 按「整点 / 每天某时刻」排任务:提前 N 分钟自动开启秒,持续 M 分钟后自动恢复原状态;改系统时间/时区会立即重算窗口,另有 60 秒兜底重算。
自定义任务换配色 任务窗口内可单独换配色,单色 / 渐变分开选,勾选状态准确,单色显示为分段纯色条。
网络时间对比 设置页实时对比网络标准时间与本地时间偏差;偏差较大时点同步,即可打开系统「自动设置时间」向网络校准
免 adb 授权 所有设置写入优先走 Settings.Secure,无 WRITE_SECURE_SETTINGS 权限时自动改走广播由 SystemUI 代写——无需 adb 授权即可正常使用全部功能
下拉磁贴 下拉通知栏添加「时间显秒」磁贴,一键开关显秒(无需打开设置页)
时间识别名 个别机型若未能自动识别状态栏时间,可在设置页点「自动检测」一键完成;也可手动填写资源名(如 clock)
界面语言 应用内界面已适配 21 种语言(跟随系统语言自动切换):简体中文、English、繁體中文、日本語、한국어、Türkçe、Русский、Tiếng Việt、ไทย、Deutsch、Español、Français、Українська、Polski、Português (Brasil)、فارسی、العربية、Bahasa Indonesia、Italiano、Ελληνικά、ქართული;其余语言回落到英文
持久化 / 适配范围 状态存于 Settings.Secure,跨进程共享,重启 SystemUI 或重启设备后保持。ColorOS 15 / 16(Android 15 / 16)已真机验证;核心链路只用 AOSP 公开 API,理论上其它厂商同样生效,但作者手上只有 OPPO / 一加的机器,其它厂商尚未真机验证。最低支持 Android 10

当前正式版为 v1.6.33(versionCode 613,modern API 102 为 1.6.33-api102)。更新说明见 v1.6.33 Release。

颜色效果

两种上色方式,随时在「高级设置」里切换:逐位颜色(六个数字各自一色,支持 HSV 滑杆与 16 进制色号就地输入)与整串渐变(起点 → 终点双端点平滑过渡,11 种形式:上→下、左→右、象限光晕、颗粒噪点、镀铬金属、斜纹糖果、波浪切割、低多边形、水磨石、二维码、液态水银)。开启系统模式自适应后,颜色按系统深色 / 浅色自动切换,名称旁 ? 图标点开有说明;选中端点圆圈会打开调色盘,并有多层涟漪提示当前编辑对象。

逐位颜色:六位数字各选一色,冒号自动光学居中
逐位颜色:六位数字各选一色,冒号自动光学居中
整串渐变:起点色 → 终点色双端点过渡,20 组预设(深浅各 20)、11 种渐变形式
整串渐变:起点色 → 终点色平滑过渡,20 组预设、两端自定义

通知栏时间效果

下拉通知栏的大时钟与状态栏时间共用同一套颜色 / 渐变设置,效果会自动同步。下面第一张是通知栏时间实机图,第二张是状态栏时间渐变效果。

通知栏时间效果(实机截图)

状态栏时间渐变效果(4 种实机示例)

安装

  1. 从 Releases 下载最新版 APK
  2. 在 LSPosed 中启用本模块,作用域勾选:系统界面(com.android.systemui)
  3. 重启 SystemUI 进程或重启设备
  4. 配置页从 LSPosed 管理器打开(桌面不生成图标)

需要 root(LSPosed 框架)。通常无需 adb 授权:设置写入优先走 Settings.Secure,没有 WRITE_SECURE_SETTINGS 时会自动改走广播、由 SystemUI 代写。若希望设置页直接写入(少一次跨进程往返、不依赖 SystemUI 在线),可授予:

adb shell pm grant io.github.kelebao.colorosclockseconds android.permission.WRITE_SECURE_SETTINGS

未授予同样不影响使用——点击状态栏、任务调度、浮窗预览都在 SystemUI 进程内完成,天然具备权限;连初始化写入也不需要你手动执行任何 adb 命令。

使用

  • 单击状态栏时间:切换显秒开/关(默认手势);也可在配置页改为双击。
  • 长按状态栏时间:弹出毛玻璃浮窗显示网络时间——拖动时间移动位置,点一下时间浮现关闭(右上)/ 拉伸(左下)按钮,拉伸可改变浮窗大小(字号自适应)。
  • 数字颜色卡分两页:「逐位颜色」给六个数字单独配色;「渐变」把整串铺成一条色带(页签本身就是开关,切到哪页就是哪页的模式)。色号框就在「正在编辑」同一行,直接输入 #RRGGBB 即边输边生效;开启系统模式自适应后颜色随系统深色 / 浅色自动切换,? 图标可看说明;选中端点圆圈会弹调色盘,并有多层涟漪提示当前对象。
  • 通知栏时间:下拉通知栏时,大时钟也会套用同一套逐位颜色 / 渐变,颜色和状态栏同步。
  • 自定义任务卡可以排「整点前 2 分钟自动开秒」这类定时,也能反过来在某个时段强制关秒;任务窗口内点击状态栏会提示已被任务接管。任务里还能单独换配色:单色 / 渐变分开选,勾选不错位,单色显示为分段纯色条。
  • 切换通过全局触摸命中判定实现,不会与“下拉通知栏”冲突——纯点击切换、下拉滑动照常拉出通知栏。
  • 配置页可查看当前状态、切换手势、逐位/渐变配色、对比网络时间并一键同步系统对时。

效果预览

关闭显秒:`15:06`,小时十位「1」保持所选颜色
关闭显秒:`15:06`,小时十位「1」保持所选颜色
开启显秒:`15:06:03`,分钟与秒保持系统原色
开启显秒:`15:06:03`,分钟与秒保持系统原色

工作原理

模块只 hook SystemUI 一个进程,采用稳妥的 legacy Xposed 范式, 核心链路只走 AOSP 公开 API,私有类兼容可选、找不到即跳过,因此不会破坏系统内部状态、不会触发 LSPosed 安全模式:

  • 显秒:hook 稳定的 TextView.setText(after)缓存系统在状态栏时间上给出的原始文本, 再 hook TextView.onDraw(before)在系统已设好文本之后覆写显示 原文本:ss,并用 1 秒级 Handler 驱动刷新。追加的秒保持系统时间自身的文字色。
  • 逐位上色:给每个数字字符挂一段 ForegroundColorSpan(先剥掉外来 span,避免旧颜色残留);冒号另挂一个 CharacterStyle 把基线抬高 0.11em —— 文本被切成多个绘制 run 后宿主字形的冒号位置会下沉,这是宿主的差异,不是模块画错。
  • 渐变:状态栏与浮窗用一个 CharacterStyle 在 updateDrawState 里 setShader(LinearGradient,色带宽度取文字实测宽度);设置页预览卡改成自绘(GradientTimeView 在 onDraw 里 drawText 一次 + CLAMP 色带)——因为 ColorOS 15 的硬件文本渲染会把 shader 按绘制 run 量化,span 路径在预览卡上会出现「一个数字一个纯色」的跳变。
  • 切换:ColorOS 的通知面板会拦截状态栏区域的触摸,时间自身的 OnTouchListener 收不到事件。 因此模块改为 hook 系统全局的 View.dispatchTouchEvent,仅当按下点落在已识别时间的屏幕边界内、且几乎无位移(点击)或短时间第二次点击(双击)时才翻转 Settings.Secure 开关;模块不消费任何触摸事件,下拉通知栏照常。
  • 任务:任务窗口用「本地时间是否落在窗口内」判定,窗口边界精确定时,另加 60 秒兜底重算;系统时间/时区变更会收到广播立即重算(postDelayed 按开机时长计时,改墙钟后旧定时器不再可信)。

省电说明

  • 开启显秒时:模块需要 1 秒级定时器驱动刷新(这是“显示秒”的固有开销,约 60 次/分钟重绘时间)。实测 SystemUI 单核占用:无显秒 7.0%、显秒 7.25%(60 秒窗口),差异小于同场景的切片波动。
  • 关闭显秒时:模块会立即停止该定时器(stopTicker),不再有任何每秒唤醒,也不再有跨进程读取, 回到系统原本的“每分钟刷新一次”节奏,因此关闭显秒确实更省电。
  • 掉色保色路径是自适应的:一旦确认文本被系统重建,重绘间隔按 2s → 4s → … → 30s 退避,连续 5 分钟没有掉色就自动收工(color-guard stopped),不会长期空转。
  • 状态采用进程内缓存(sSecondsEnabled 等),定时器不会每秒去读 Settings.Secure(避免每秒一次 IPC)。
  • 任务兜底重算用的是 Handler.postDelayed,不持有 WakeLock、不用 AlarmManager,深睡时根本不会执行,唤醒次数为 0。
  • 定时器持有的是视图的弱引用,且仅在视图 isAttachedToWindow() 时继续,视图销毁后自动退出。

构建

需要 JDK 17+(推荐 17 或 21)与 Android SDK Platform 35(Build-Tools 35 由 AGP 自动安装)。

export JAVA_HOME=/path/to/jdk-17-or-21
./gradlew assembleDebug

备份与续开发(重要)

ClockSeconds/ 目录中,除 build/、.gradle/ 外的所有文件都要保留(源码部分仅约 300 KB):

类别 文件 说明
构建脚本 settings.gradle.kts、build.gradle.kts、app/build.gradle.kts、gradle.properties、keystore.properties 版本、依赖、编译参数、签名配置
Gradle Wrapper gradlew、gradlew.bat、gradle/wrapper/* 锁定 Gradle 8.14.5
源码 app/src/main/java/**(20 个 .java) 模块逻辑、设置页、绘制类
资源 app/src/main/res/** 字符串(默认中文 + 21 种语言 values-xx)、主题
Xposed 元数据 app/src/main/resources/META-INF/xposed/* 入口类、scope、API 版本
清单 app/src/main/AndroidManifest.xml 权限、Activity
工具脚本 tools/** README 21 语言生成器、i18n 校验、发版脚本
文档 README*.md、docs/**、CHANGELOG.md 说明文档、截图、更新日志
CI .github/workflows/*.yml 打 tag 出签名包

排查

展开排查步骤

查看 logcat:

  • Release 构建已用 BuildConfig.DEBUG 门控剥除所有诊断日志(更小、更干净),logcat 中不会输出本模块日志。

  • 如需排查,临时安装 debug 构建(assembleDebug,用同一生产密钥签名可直接覆盖安装),再过滤 TAG:

    adb logcat -s ColorOSClockSeconds
  • 若完全不显示秒:先确认 LSPosed 已勾选 SystemUI 作用域并重启;再检查开关是否被持久化为关闭——可在 adb 中读取 / 强制写入:

    adb shell settings get secure coloros_clock_seconds_enabled   # 1=开 0=关
    adb shell settings put  secure coloros_clock_seconds_enabled 1
  • 若颜色/秒数「自己变回去」(掉色):这是系统或第三方主题在重建文本,模块会自动重绘;若长期不恢复,debug 日志里搜 color-guard stopped / span-theft 确认是否进入了 5 分钟冷却。

  • 若在非 ColorOS 机型上不生效:装 debug 版看日志里的 candidate: / CONFIG CLOCK: 输出,确认该机型状态栏时间的资源名与类名是否在识别规则内,若不在则补一条规则即可。

反馈与建议

有问题、建议或使用心得?欢迎到 GitHub Issues 留言,我会及时回复。

License

MIT © kelebao

Releases

1.6.33

Stable

12/5/2026, 5:49:16 PM

ClockSeconds 版本说明 / Version Description

版本范围 / Version range: v1.3.2(versionCode 355)→ v1.6.33(versionCode 613)

本页列版本与构建信息,并附面向用户的主要变化与修复;不展开内部实现。/ This page lists versions and build information, plus user-facing highlights and fixes; internal implementation details are omitted.

当前版本 / Current Release

项目 / Item 内容 / Value
版本号 / versionCode 613
版本名 / versionName 1.6.33
modern API 102 1.6.33-api102
正式签名 SHA-256 / Release signature 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
四包门禁 / Four-package gate 四个变体 versionCode 一致、签名一致、i18n 一致性通过

正式版本主要变化 / Official release highlights

只列面向用户的主要变化与修复,不展开内部实现。范围:v1.3.2 → v1.6.33。

新增与体验 / New & improved

1.6.33 将 vc612 之后的「隐藏模块桌面图标」与「充电状态电量数字」修复合并为正式版本;代码修复与 vc612 一致,版本号递增用于更新检查与模块仓库同步。

  • 状态栏时间前后缀 / Clock prefix and suffix(vc593–vc600):支持「时间前面 / 时间后面 / 前后都有」,自定义文字可单独调字号(40–140%)。 / Supports before, after, or both sides of the clock, with 40–140% custom text size.
  • 年月日两行显示 / Two-line date(vc601–vc603):年份在上、月/日在下,日期可跟随时间渐变。 / Year on top, month/day below; the date can follow the clock gradient.
  • 状态栏图标渐变 / Status-icon gradient(vc590–vc595):右侧图标按整排跟随时间颜色渐变,电池低电量数字保持可读。 / Status icons follow the clock gradient across the row, while low-battery digits stay readable.
  • 隐藏模块桌面图标 / Hide module app icon(vc613):可在设置页隐藏模块启动图标,减少桌面占用;需要时再打开。 / A settings toggle hides the module launcher icon and restores it when needed.
  • 桌面组件 / Desktop widgets(vc559–vc586):五个组件统一等比自适应,跨机型槽位、字体缩放、天气重试与秒级时间显示均已适配。 / Five widgets share proportional adaptation for slot size, font scale, weather retry and second-level time.
  • 耗电测试 / Power-drain test(vc547–vc548):新增息屏待机 A/B 模式,便于长时间睡眠场景对比。 / Adds a screen-off standby A/B mode for long sleep sessions.

主要修复 / Fixes

  • 解锁后前后缀不显示 / Prefix missing after unlock(vc606 / vc609):解锁后立即回补,不再需要触摸屏幕。 / Restored immediately after unlock without touching the screen.
  • 深浅色切换颜色慢一拍 / Theme color lag(vc610):系统文字色变化时,前后缀同帧更新。 / Prefix and suffix update in the same frame when the system text color changes.
  • 年月日前置后前后缀消失 / Date-in-front parse failure(vc605):前置日期会被正确剥离,时钟仍能识别。 / A leading date is stripped correctly so the clock is still recognized.
  • 未充电时电量条发白、数字发黑 / White fill and dark digits when unplugged(vc612):白色填充条不再被误判为数字,继续跟随渐变,数字恢复白色。 / The white fill is no longer mistaken for digits; it follows the gradient and the digits return to white.
  • 充电时电量数字消失 / Digits invisible while charging(vc613):充电时白色数字单独保留,电池内仍显示当前电量。 / White digits are preserved while charging, so the current percentage stays visible inside the battery.
  • 低电量数字消失 / Low-battery digits invisible(vc594):低电量时数字单独保留白色,任意电量可读。 / Digits remain white and readable at any battery level.
  • 桌面组件跨机型排版 / Cross-device widget layout(vc559–vc583):修复偏宽、黑边、字体过大、天气图标被挤压等问题。 / Fixes over-wide cards, black edges, oversized text and squeezed weather icons.
  • 波浪渐变向右变白 / Wave gradient fading right(vc591–vc592):改为上下两半纯色,只保留波浪分界。 / Uses two solid halves with only the wave boundary retained.

安装包 / Packages

覆盖安装 / 更新模块后必须重启 SystemUI 或重启设备,否则已注入的旧模块代码不会退出,状态栏仍按旧逻辑运行。只改设置项不需要重启,保存后即时生效。 / Restart SystemUI or the device after an update; an over-installed APK does not replace code already injected into SystemUI. Settings changes take effect without a restart.

变体 / Variant 文件名 / File
modern debug ClockSeconds-vc613-1.6.33-test-api102.apk
modern release ClockSeconds-vc613-1.6.33-api102.apk
legacy debug ClockSeconds-vc613-1.6.33-test-legacy.apk
legacy release ClockSeconds-vc613-1.6.33-legacy.apk

ClockSeconds Update Notes (v1.3.2 → v1.6.33)

Version range: stable release v1.3.2 (versionCode 355) through the current vc613 / versionName 1.6.33.
This document is self-contained: every change, fix and verification record in this range is collected version by version below, so no other file needs to be consulted.

Current Build Information

Item Content
versionCode 613
versionName 1.6.33
modern API 102 1.6.33-api102
Release signature SHA-256 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
Four-package gate All four variants share the same versionCode and signature, and pass the i18n consistency check
Deliverable (modern debug) ClockSeconds-vc613-1.6.33-test-api102.apk
Deliverable (modern release) ClockSeconds-vc613-1.6.33-api102.apk
Deliverable (legacy debug) ClockSeconds-vc613-1.6.33-test-legacy.apk
Deliverable (legacy release) ClockSeconds-vc613-1.6.33-legacy.apk

Highlights in This Round (user-facing version)

  • Status bar time prefix/suffix: two independent sets of custom text can be configured as "before the time", "after the time" or "both"; a new font-size slider (40–140%, 100% = the time's font size); the year-month-day mode now renders on two lines (year on top, month/day below).
  • Prefix/suffix tinting and adaptivity: with tinting off, the prefix/suffix fully follow the system text color and change together when switching between light and dark scenes; with tinting on, they can use the same gradient band as the time; neither the "fixed red color" nor the "one beat behind the time" problem occurs any more.
  • Stability fixes: after seconds display is turned off, the prefix/suffix are no longer overwritten by the system; the clock is still recognized when the year-month-day is placed in front of it; the prefix/suffix are restored immediately after unlock; dragging the slider no longer tilts the card.
  • Runtime diagnostics: new font-size effect check, prefix/suffix color check, raw device/slot parameters and on-site records of the unlock restore; diagnostic results can be exported for the user to send back.
  • Home-screen widgets: the five widgets adapt proportionally to slots across device models; second-level time is now driven by the launcher's own TextClock; fixed font scaling, weather fetch retry, and card background and rounded-corner issues on some device models.
  • Hide module app icon: a settings toggle hides the module launcher icon to reduce clutter and restores it when needed.
  • Tinting and battery: the whole icon row is gradient-tinted, and the low-battery digits and level bar stay readable; while not charging, the white fill bar is no longer mistaken for digits and keeps following the gradient; while charging, the white level digits are extracted and preserved so the current percentage stays visible inside the battery; wave-cut gradients now use solid colors for the top and bottom halves, avoiding a fade to white on the right.
  • Power-drain test: new screen-off standby A/B mode, in which a precise alarm automatically switches/ends each segment at its end and records screen-off evidence.

1.6.32

Stable

12/5/2026, 2:29:04 PM

ClockSeconds 版本说明 / Version Description

版本范围 / Version range: v1.3.2(versionCode 355)→ v1.6.32(versionCode 612)

本页列版本与构建信息,并附面向用户的主要变化与修复;不展开内部实现。/ This page lists versions and build information, plus user-facing highlights and fixes; internal implementation details are omitted.

当前版本 / Current Release

项目 / Item 内容 / Value
版本号 / versionCode 612
版本名 / versionName 1.6.32
modern API 102 1.6.32-api102
正式签名 SHA-256 / Release signature 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
四包门禁 / Four-package gate 四个变体 versionCode 一致、签名一致、i18n 一致性通过

正式版本主要变化 / Official release highlights

只列面向用户的主要变化与修复,不展开内部实现。范围:v1.3.2 → v1.6.32。

新增与体验 / New & improved

  • 状态栏时间前后缀 / Clock prefix and suffix(vc593–vc600):支持「时间前面 / 时间后面 / 前后都有」,自定义文字可单独调字号(40–140%)。 / Supports before, after, or both sides of the clock, with 40–140% custom text size.
  • 年月日两行显示 / Two-line date(vc601–vc603):年份在上、月/日在下,日期可跟随时间渐变。 / Year on top, month/day below; the date can follow the clock gradient.
  • 状态栏图标渐变 / Status-icon gradient(vc590–vc595):右侧图标按整排跟随时间颜色渐变,电池低电量数字保持可读。 / Status icons follow the clock gradient across the row, while low-battery digits stay readable.
  • 桌面组件 / Desktop widgets(vc559–vc586):五个组件统一等比自适应,跨机型槽位、字体缩放、天气重试与秒级时间显示均已适配。 / Five widgets share proportional adaptation for slot size, font scale, weather retry and second-level time.
  • 耗电测试 / Power-drain test(vc547–vc548):新增息屏待机 A/B 模式,便于长时间睡眠场景对比。 / Adds a screen-off standby A/B mode for long sleep sessions.

主要修复 / Fixes

  • 解锁后前后缀不显示 / Prefix missing after unlock(vc606 / vc609):解锁后立即回补,不再需要触摸屏幕。 / Restored immediately after unlock without touching the screen.
  • 深浅色切换颜色慢一拍 / Theme color lag(vc610):系统文字色变化时,前后缀同帧更新。 / Prefix and suffix update in the same frame when the system text color changes.
  • 年月日前置后前后缀消失 / Date-in-front parse failure(vc605):前置日期会被正确剥离,时钟仍能识别。 / A leading date is stripped correctly so the clock is still recognized.
  • 未充电时电量条发白、数字发黑 / White fill and dark digits when unplugged(vc612):白色填充条不再被误判为数字,继续跟随渐变,数字恢复白色。 / The white fill is no longer mistaken for digits; it follows the gradient and the digits return to white.
  • 低电量数字消失 / Low-battery digits invisible(vc594):低电量时数字单独保留白色,任意电量可读。 / Digits remain white and readable at any battery level.
  • 桌面组件跨机型排版 / Cross-device widget layout(vc559–vc583):修复偏宽、黑边、字体过大、天气图标被挤压等问题。 / Fixes over-wide cards, black edges, oversized text and squeezed weather icons.
  • 波浪渐变向右变白 / Wave gradient fading right(vc591–vc592):改为上下两半纯色,只保留波浪分界。 / Uses two solid halves with only the wave boundary retained.

安装包 / Packages

变体 / Variant 文件名 / File
modern debug ClockSeconds-vc612-1.6.32-test-api102.apk
modern release ClockSeconds-vc612-1.6.32-api102.apk
legacy debug ClockSeconds-vc612-1.6.32-test-legacy.apk
legacy release ClockSeconds-vc612-1.6.32-legacy.apk

ClockSeconds Update Notes (v1.3.2 → v1.6.32)

Version range: stable release v1.3.2 (versionCode 355) through the current vc612 / versionName 1.6.32.
This document is self-contained: every change, fix and verification record in this range is collected version by version below, so no other file needs to be consulted.

Current Build Information

Item Content
versionCode 612
versionName 1.6.32
modern API 102 1.6.32-api102
Release signature SHA-256 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e
Four-package gate All four variants share the same versionCode and signature, and pass the i18n consistency check
Deliverable (modern debug) ClockSeconds-vc612-1.6.32-test-api102.apk
Deliverable (modern release) ClockSeconds-vc612-1.6.32-api102.apk
Deliverable (legacy debug) ClockSeconds-vc612-1.6.32-test-legacy.apk
Deliverable (legacy release) ClockSeconds-vc612-1.6.32-legacy.apk

Highlights in This Round (user-facing version)

  • Status bar time prefix/suffix: two independent sets of custom text can be configured as "before the time", "after the time" or "both"; a new font-size slider (40–140%, 100% = the time's font size); the year-month-day mode now renders on two lines (year on top, month/day below).
  • Prefix/suffix tinting and adaptivity: with tinting off, the prefix/suffix fully follow the system text color and change together when switching between light and dark scenes; with tinting on, they can use the same gradient band as the time; neither the "fixed red color" nor the "one beat behind the time" problem occurs any more.
  • Stability fixes: after seconds display is turned off, the prefix/suffix are no longer overwritten by the system; the clock is still recognized when the year-month-day is placed in front of it; the prefix/suffix are restored immediately after unlock; dragging the slider no longer tilts the card.
  • Runtime diagnostics: new font-size effect check, prefix/suffix color check, raw device/slot parameters and on-site records of the unlock restore; diagnostic results can be exported for the user to send back.
  • Home-screen widgets: the five widgets adapt proportionally to slots across device models; second-level time is now driven by the launcher's own TextClock; fixed font scaling, weather fetch retry, and card background and rounded-corner issues on some device models.
  • Tinting and battery: the whole icon row is gradient-tinted, and the low-battery digits and level bar stay readable; while not charging, the white fill bar is no longer mistaken for digits and keeps following the gradient; wave-cut gradients now use solid colors for the top and bottom halves, avoiding a fade to white on the right.
  • Power-drain test: new screen-off standby A/B mode, in which a precise alarm automatically switches/ends each segment at its end and records screen-off evidence.

Version Overview

Version Theme
vc612 [vc612] 1.6.32
vc610 [vc610] 1.6.30-theme-color-sync
vc609 [vc609] 1.6.29-unlock-force-mark
vc608 [vc608] 1.6.28-unlock-diag
vc606 [vc606] 1.6.26-unlock-mark-reapply
vc605 [vc605] 1.6.25-leading-date-parse
vc604 [vc604] 1.6.24-mark-adaptive-color
vc603 [vc603] 1.6.23-date-gradient
vc602 [vc602] 1.6.22-date-align-color
vc601 [vc601] 1.6.21-mark-persist-stacked-date
vc600 [vc600] 1.6.20-mark-text-both-sides
vc599 [vc599] 1.6.19-mark-text-per-position
vc598 [vc598] 1.6.18-size-effect-check
vc597 [vc597] 1.6.17-slider-live-tilt-off
vc596 [vc596] 1.6.16-mark-size-slider
vc595 [vc595] 1.6.15-battery-level-kept
vc594 [vc594] 1.6.14-battery-digit-visible
vc593 [vc593] 1.6.13-prefix-suffix-modes
vc592 [vc592] 1.6.12-wave-flat-halves
vc591 [vc591] 1.6.11-wave-no-fade
vc590 [vc590] 1.6.10-gradient-battery
vc589 [vc589] 1.6.9-icon-vivid-location
vc588 [vc588] 1.6.8-review-size
vc587 [vc587] 1.6.7-review-fix
vc586 [vc586] 1.6.6-preview-time-lime-size
vc585 [vc585] 1.6.5-dial-rotation
vc584 [vc584] 1.6.4-clock-regression
vc583 [vc583] 1.6.3-clock-font-scale
vc582 [vc582] 1.6.2-launcher-clock
vc581 [vc581] 1.6.1-diagnostic-raw
vc580 [vc580] 1.6.0-slot-height-correct
vc579 [vc579] 1.5.9-card-bg-inset-fix
vc578 [vc578] 1.5.8-wide-slot-reflow
vc577 [vc577] 1.5.7-device-layout-report
vc576 [vc576] 1.5.6-battery-toggle-tint
vc575 [vc575] 1.5.5-place-one-city
vc574 [vc574] 1.5.4-boost-cap-1.2
vc573 [vc573] 1.5.3-natural-digit-shape
vc572 [vc572] 1.5.2-corner-clip-picker-names
vc571 [vc571] 1.5.1-adaptive-all-widgets
vc570 [vc570] 1.5.0-adaptive-relayout
vc569 [vc569] 1.4.5-widget-labels-hidden
vc568 [vc568] 1.4.4-lime-dots-to-edge
vc567 [vc567] 1.4.3-lime-hourly-scale
vc566 [vc566] 1.4.2-autumn-dial-left-half-again
vc565 [vc565] 1.4.1-autumn-dial-left-half
vc564 [vc564] 1.4.0-autumn-dial-half
vc563 [vc563] 1.3.99-autumn-clock-gap
vc562 1.3.98-autumn-corner-fix (vc562)
vc561 1.3.97-autumn-edge-fix (vc561)
vc560 1.3.96-font-adaptive (vc560)
vc559 vc559 (2026-12-03) — unified proportional adaptive scaling for the five home-screen widgets
vc558 vc558 (2026-12-03) — time suffix restored to the classic style
vc557 vc557 (2026-12-03) — time suffix fills the fixed clock slot
vc555 vc555 (2026-12-02) — build and release audit fixes
vc554 vc554 (2026-12-02) — preview toolbar final polish
vc553 vc553 (2026-12-02) — adaptive tinting for toolbar icons
vc552 vc552 (2026-12-02) — preview page toolbar sections
vc551 vc551 (2026-12-02) — preview buttons and weather retry
vc550 vc550 (2026-12-02) — settings page and preview page cleanup
vc549 vc549 (2026-12-02) — Coast Ticket added to the widget preview with names labeled
vc548 vc548 (2026-12-02) — fixed data validity of the screen-off standby power test
vc547 vc547 (2026-12-02) — screen-off standby mode added to the power-drain test
vc355 v1.3.2 (stable release vc355 / 2026-11-19) — fixed false update prompt for the modern package

Per-Version Update Records

Changelog

[vc612] 1.6.32

Fixes

  • The battery fill bar turns white / shows a white bar and the digits turn black when not charging: vc594 separated "opaque + neutral white" pixels out of the battery gradient mask and drew the level digits separately in the system white. While not charging, the system's own fill bar is also white (real screenshots show a horizontal white bar), so the same rule misclassified it as digits; the fill bar therefore bypassed the whole-row gradient and rendered white, while the dark digits were not among the candidates and instead stayed on the gradient layer as black text. While charging the fill is green with high chroma, which never triggers the rule, so the problem was visible only in the not-charging state.
  • Stepwise verification: adding only the connected-component size filter still left a single white block; after also adding the "full-row white coverage ≥ 25%" fill-band detection, the fill returned to the gradient mask and only small strokes remained in the digit layer.

Verification

  • New/extended StatusIconBatteryGlyphTest: a wide white fill (including cases split into several segments by dark digits) enters the gradient mask, while small white digits continue to be drawn separately; the unit test passes.
  • All four packages pass the gate with versionCode=612 / 1.6.32 and the release signature, i18n passes; archived in dist/vc612.
  • PHK110 physical device: the stock 610 build reproduces the white bar/black digits; the 610 baseline plus the connected-component filter alone is still white; after the full-row coverage fix on the 610 baseline and a SystemUI restart, the fill is a red gradient, the empty slot is light pink, and the white digits remain. Both the debug and the release package were re-checked.
  • Pushed to main; no tag, no GitHub Release, the Xposed-Modules-Repo module repository was not updated.

[vc610] 1.6.30-theme-color-sync

Fixes

  • The prefix/suffix color lags one beat behind the system time when switching between light and dark scenes: the prefix/suffix color span read view.getCurrentTextColor() when it was written, and on a theme switch the system only changes the text color without rewriting the text, so the span keeps the old color and only updates on the next setText/touch. The status bar onDraw now records the system text color per view and, on detecting a change, immediately rebuilds the prefix/suffix span (rewriting once even when the characters are identical), so the color changes in the same frame as the time.

Verification

  • All four packages pass the gate with versionCode=610 / 1.6.30-theme-color-sync and the release signature, i18n passes; archived in dist/vc610.
  • Light/dark switching comparison on a physical device is pending confirmation from the other user.

[vc609] 1.6.29-unlock-force-mark

Fixes

  • Post-unlock restore blocked by a role guard: vc608 diagnostics showed unlockBefore/unlockAfter both at 18:44 (time only), meaning the restore ran but wrote nothing — at the moment of unlock the view had not yet been classified as writable, so applyRedToBaseText returned early. After unlock/screen-on the module now retries at 350ms / 1200ms / 2500ms, and if the text is unchanged after the normal restore it runs one more forced rebuild restricted to "status bar clock + text that looks like a clock" (idempotent, no write when identical).
  • unlockWrote is now true only when "the text actually changed"; "attempted" is no longer counted as "written successfully".

Verification

  • All four packages pass the gate with versionCode=609 / 1.6.29-unlock-force-mark and the release signature, i18n passes; archived in dist/vc609.
  • Pending: after the other user installs the build, performs one lock-unlock cycle and exports diagnostics, to confirm unlockAfter carries the date.

[vc608] 1.6.28-unlock-diag

New

  • On-site record of the unlock restore: in the ACTION_USER_PRESENT / ACTION_SCREEN_ON broadcasts the module now actively restores the prefix/suffix once (vc607) and records for that attempt "text before restore / text after restore / recognized as status bar clock / enabled / actually written / cumulative count" in the diagnostics. When the user's phone is not with the developer, one lock-unlock cycle plus a diagnostics export is enough to tell "never written back" from "written and then washed out by the system".
  • The settings page [Time prefix/suffix font size] gains a "Last unlock restore" row that shows the above conclusion directly.

Verification

  • All four packages pass the gate with versionCode=608 / 1.6.28-unlock-diag and the release signature, i18n passes; archived in dist/vc608.
  • Lock screen/unlock verification on a physical device is pending another user exporting vc608 diagnostics.

[vc606] 1.6.26-unlock-mark-reapply

Fixes

  • The prefix/suffix do not appear after unlocking the lock screen and only show up after touching the screen: with seconds display off, the status bar clock's onDraw restored only colors, not the prefix/suffix; after unlock SystemUI rebuilds the clock text but no longer calls setText, so the prefix/suffix stay absent until a touch triggers refreshClock. The status bar onDraw now runs an idempotent applyRedToBaseText when seconds display is off and the prefix/suffix are enabled (zero setText when the text matches), restoring the prefix/suffix on the first frame after unlock.

Verification

  • All four packages pass the gate with versionCode=606 / 1.6.26-unlock-mark-reapply and the release signature, i18n passes.
  • Lock screen/unlock re-checking on a physical device requires manual action by the user (lock screen testing only observes, it does not unlock automatically).

[vc605] 1.6.25-leading-date-parse

Fixes

  • The prefix/suffix disappear entirely when the year-month-day is placed before the time: M098FE's vc604 diagnostics showed that once the clock text became "2026/12/5 18:01", the parser returned timeLike=false, roleReasons=no-time-text, writable=false — because ClockTextParser requires the text to start with HH:mm, so a leading date made the whole string count as a non-clock, the module stopped writing back, and the prefix/suffix vanished as soon as the system rewrote the text. The parser now strips a leading date first (2026/12/5, 12/5, 2026年12月5日 — the localized year-month-day form — and similar) before matching the time, while Parsed.original still keeps the complete original text for rebuilding the prefix/suffix.

Verification

  • Two new ClockTextParserTest cases: leading date + time, and leading date + time + weekday suffix; unit tests pass on all four variants.
  • All four packages pass the gate with versionCode=605 / 1.6.25-leading-date-parse and the release signature; archived in dist/vc605.
  • Physical-device re-verification is pending reconnection of the device (the adb device disconnected while closing out this round).

[vc604] 1.6.24-mark-adaptive-color

Fixes

  • When neither the time nor the prefix/suffix is tinted, the default prefix/suffix color differs from the time and does not adapt to the background: the old logic applied a 70% black fade to the prefix/suffix when the font size was below 100%, which was not the same color set as the time. Turning "prefix/suffix color" off now makes them fully follow the system text color, letting the system choose black or white for the background; turning it on still uses the user's color.

Diagnostic enhancements

  • markCheck in runtime diagnostics gains colorOn / hourColorOn / gradientOn / adaptiveColor / viewTextColor / markColor / followsSystem fields.
  • The settings page [Time prefix/suffix font size] gains two rows, "prefix/suffix color (follow system/custom, background adaptation switch)" and "system text color / actual prefix/suffix color", so it is obvious at a glance whether they match.

Verification

  • PHK110 physical device: with mark_color=0, the time gradient off and a white background, the time and both date lines are black; the diagnostics read back viewTextColor and markColor as exactly equal with followsSystem=true.
  • All four packages pass the gate with versionCode=604 / 1.6.24-mark-adaptive-color and the release signature.

[vc603] 1.6.23-date-gradient

Fixes

  • "Year-month-day" tinting degrades to a fixed red and does not follow the time's gradient: GradientTextSpan is a CharacterStyle and does not pass the shader to ReplacementSpan's draw(), so the custom two-line drawing cannot obtain the gradient. The date span now builds its own horizontal gradient from the same start and end colors as the time; in real screenshots the date runs from green to purple in the same color set as the time; solid-color and faded scenes still use a solid color.
  • Clicking/focusing the "before the time / after the time" inputs for custom text in the settings page tilts the entire card: EditText was added to PressTiltEffect's built-in feedback control exclusion list, matching Switch / SeekBar; press tilt on the rest of the card is unchanged.

Verification

  • PHK110 physical device: with mark_color=1 and the time gradient on, the two year-month-day lines show a green→purple gradient, the time gradient is unaffected, and both lines stay center-aligned with the time.
  • All four packages pass the gate with versionCode=603 / 1.6.23-date-gradient and the release signature, i18n consistency passes.

[vc602] 1.6.22-date-align-color

Fixes

  • The two year-month-day lines sit too low: the center of the two date lines is now aligned with the center of the time digits (computed from the time baseline offset) instead of falling below the time.
  • The year-month-day is not tinted with the prefix/suffix color: the shader attached to the gradient paint covers setColor in custom drawing; the two-line date drawing now clears the shader first and then uses the solid color that corresponds to the prefix/suffix color (the endpoint color for gradients, the first color for solid), so in real screenshots the date is tinted together with the time digits once enabled.
  • Two identical font-size captions appear above the font-size slider in the settings page: the duplicate addMarkCaption was removed, keeping only the one inside the slider row.

Verification

  • PHK110 physical device: the two year-month-day lines are center-aligned with the time; with mark_color=1 the date shows red (the time's first color) and the time gradient is unaffected.
  • All four packages pass the gate with versionCode=602 / 1.6.22-date-align-color and the release signature, i18n consistency passes.

[vc601] 1.6.21-mark-persist-stacked-date

Fixes

  • With status bar seconds display off, the time prefix/suffix disappear after a while or when switching screens: in another user's (M098FE / Xiaomi) diagnostics markCheck.state=ok and loadedPercent=70, but pick.text held only 16:56 — the module had written the prefix/suffix and the system then rewrote plain text, losing it. Root cause: with seconds off, the only restore path, applyRedToBaseText(), returned early when there was "no color span to maintain" (all digit positions following the system), skipping the prefix/suffix with it. That path now maintains the prefix/suffix as well: it short-circuits without writing when the text matches, writes back immediately when the text has been washed out, and when only the prefix/suffix need maintenance it neither falsely reports lost tinting nor triggers the fallback ticker.

New

  • "Year-month-day" mode now renders on two lines: following the effect supplied by the user, the year is on top (e.g. 2026) and the month/day below (e.g. 12/5), with the position still decided by "before the time / after the time / both". A ReplacementSpan draws the two lines inside the original single-line height, so the status bar clock layout is unchanged and TextView singleLine cannot affect it; the actual width of the two date lines takes part in slot scaling at roughly 55% of the single-line estimate.

Verification

  • PHK110 physical device (status bar seconds display off throughout): three screenshots — at t0, at t+45s, and after switching through the notification shade — all keep the two date lines while the time advances normally by the minute; the switch reads back enabled=0 three times.
  • All four packages pass the gate with versionCode=601 / 1.6.21-mark-persist-stacked-date and release signature 2850e82a…, i18n 245 keys pass.

[vc600] 1.6.20-mark-text-both-sides

New

  • New position "both": custom text can be shown on both sides of the time at once, rendering as "front text time back text". In custom mode the front takes the "before the time" set and the back the "after the time" set; built-in content such as day of week / time period / date appears only once, in front, and is not repeated on both sides.
  • Both text segments share one scaling: slot headroom is computed from the combined width of the two segments, so the front is never compressed while the back is not (which would look like two different font sizes).

Verification

  • PHK110 physical device: with position=2 at 100% it shows "AB 16:21:10 YZ", and at 60% both segments shrink together; the settings page has three position tabs (before / after / both) and the summary shows "Custom · Both · xx%".
  • settings_mark_position_both was added for 22 languages; i18n consistency passes and all unit tests pass on the 4 variants.

[vc599] 1.6.19-mark-text-per-position

Fixes

  • "The font size cannot be changed" on models such as NX741J: in the user-exported diagnostics markCheck showed settingsPercent=140 / loadedPercent=140 (the setting did reach the module), but clockPx=39 / expectedPx=55 / appliedPx=19 / fit=true — compressed back to 0.49× by slot adaptation. Root cause: on such models the clock View is wrap_content (NX741J's AOSP statusbar.policy.Clock is 143px wide while the time itself already occupies 140px), yet the module treated "the view's current width" as slot headroom, so any font size was compressed back to the original. A wrap_content clock is now left to the layout to size itself and is no longer compressed by view width; runtime diagnostics' markCheck also gains a wrapClock field so the next export shows at a glance whether this kind of clock is involved.

New

  • Custom text supports separate "before the time / after the time" sets: in Custom mode two inputs appear (reusing the "before the time / after the time" wording, with no new language keys), each saved independently (new key coloros_clock_seconds_mark_custom_before, the old key continues to serve as "after"), and the status bar takes the set that matches the current position; users who had only one set before the upgrade and had selected "before" automatically keep their old text instead of suddenly seeing it empty.

Verification

  • PHK110 physical device: position=before shows "Good morning 15:49:31" and position=after shows "15:49:46 Good night", the two sets do not interfere; the settings page shows both inputs and the summary "Custom · After time · 71%".
  • The NX741J side of the fix needs the user to install the build and re-check (this round only regressed locally: fixed-width clock behavior is unchanged).

[vc598] 1.6.18-size-effect-check

Fixes

  • Dragging the font-size slider, the card's state write-back pulls the thumb back and the control feels stuck: syncMarkCard() called setProgress(mCfgMarkPercent) after every apply, and mCfgMarkPercent is the "last committed" value, one step behind the finger — the finger moves forward and the code pulls the thumb back, so the back-and-forth tug looks like a lock-up and the final value may not be where the finger stopped. While dragging (mMarkSizeTracking) only the summary row is refreshed now and the slider progress is no longer written back; a single sync happens after release.

New

  • Runtime diagnostics gains a [time prefix/suffix font size] check (requested by the user on 2026-12-05: "check whether the font size takes effect"):
    • Every time the module actually writes the span it records "time font size px / actually applied px / whether compressed by the slot / timestamp", sent back with the diagnostics JSON's markCheck;
    • The settings page lists "slider setting / value used by the module / status bar time font size / expected px / actual px / slot compression" line by line and gives a conclusion:
      • off: the master prefix/suffix switch is off, so the font size would not be displayed anyway;
      • no_mark: the additional text has not been drawn yet (empty content or the clock not redrawn);
      • stale: the module is still using the old percentage → the broadcast/disk write did not arrive;
      • mismatch: the percentages match but the actual px does not → the clock was not redrawn at the new size;
      • ok_fit: effective, but compressed by the status bar slot;
      • ok: effective.

Verification

  • PHK110 physical device (vc598): the user-exported diagnostics show markCheck as state=ok, settingsPercent=69, loadedPercent=69, clockPx=46, expectedPx=32, appliedPx=32, fit=false, matching the on-screen text: "slider 69% / module 69% / status bar time font size 46px (expected 32px) / actually applied 32px / conclusion: effective ✓".
  • Drag re-test: a slow 2.5s drag stored 65 → 76 → 89 → 100 → 112 → 124 → 130, persisting 130 on release; tapping the track 66 → 121 → 65 also takes effect.
  • All four packages vc598/1.6.18-size-effect-check pass the gate.

[vc597] 1.6.17-slider-live-tilt-off

Adjustments

  • The font-size slider now takes effect live while dragging (requested by the user on 2026-12-05): previously a 120ms debounce meant every change during a continuous drag was cancelled by the next one, so in practice it "only changed on release". This is now throttled: the first change is committed immediately, then at most one commit every 60ms, with a final change inside the throttle window sent once more so the final value is persisted. On a physical device a single 2.5s drag changed the stored value continuously through 60 → 75 → 89 → 104 → 121 → 133 while the status bar font size followed.
  • The slider no longer triggers the card's press 3D tilt (consistent with switches): PressTiltEffect previously skipped whole-card tilt/scale only for Switch; SeekBar is now included in "controls with their own feedback". Device comparison: holding the slider for 1s changed only about 9 thousand pixels on screen (the status bar seconds and the thumb glow), while holding elsewhere on the card changed 1.39 million pixels (whole-card tilt), showing tilt is disabled only for the slider and unchanged elsewhere.

Verification

  • PHK110 physical device: input swipe slow-dragged over 2.5s across the whole track, and reading back the Secure value every 250ms showed continuous change; the final value of 122% was persisted on release.
  • Press-tilt comparison screenshots (base / pressing the slider / pressing the card): about 9 thousand pixels changed while the slider was held, 1.39 million while the rest of the card was held.
  • All four packages vc597/1.6.17-slider-live-tilt-off pass the gate.

[vc596] 1.6.16-mark-size-slider

Adjustments

  • The suffix text size changed from two levels ("normal / smaller") to a slider (requested by the user on 2026-12-05): range 40%–140%, default at 100% = the status bar time's font size; the value is shown live while dragging (e.g. "100%") and applies about 120ms after the finger stops, so there is no need to release and wait for a commit.
  • Size storage changed from "0 = normal / 1 = smaller" to a percentage. Old values migrate on upgrade: 0 → 100%, 1 → 62% (existing users see no change); the default becomes 100%.
  • The prefix/suffix size still automatically follows the status bar time's actual font size: the module reads the clock View's getTextSize() every time (measured 46.0px ≈ 13.1sp on PHK110 at density 560) and multiplies it by the slider percentage; changing the system font size updates the prefix/suffix accordingly.
  • Below 100% the 70% opacity fade is kept (the look of the old "smaller" level); at ≥100% the time's own color is used.
  • When the slot is short, only the additional text shrinks and the time size stays put (vc593's fix for clipping the last seconds digit is kept), and a first-frame issue was fixed: while the view is not laid out yet (width 0) the module no longer guesses the slot from minWidth, so the prefix/suffix are not momentarily squeezed to 30%.

Verification

  • PHK110 physical device: two slider taps wrote 64% / 50%, tapping the left end gave 40%, and the persisted value followed the taps; after setting the stored value to 45% / 100% / 130% and restarting SystemUI, the status bar weekday suffix became smaller (faded gray) / the same size as the time / clearly larger than the time respectively, while the time's own font size never changed.
  • Settings page as photographed: the "Font size" row shows "100%" on the right with the slider below it, the thumb at 60% (the position of 100 within the 40–140 range), and the summary shows "Day of week · After time · 100%".
  • Unit tests added markSizePercent_legacyValuesMigrate (0→100, 1→62) and markSizePercent_clampedToSliderRange (negative and out-of-range clamping), and the original default assertion was updated to 100%.

[vc595] 1.6.15-battery-level-kept

Fixes

  • After tinting, the battery looks permanently full (user feedback 2026-12-05: at only 7% charge the tinted battery was filled solid, while with tinting off only a small green segment showed). The cause was that vc590, to keep the battery from looking lighter than neighboring icons, raised the alpha of every non-transparent battery pixel to full, flattening the empty slot and the level fill into one layer, so once the same gradient was laid over them the charge level could not be seen.
  • Real-device measurement of the true composition of battery_icon_view (91×56, 5096 pixels): the empty slot is white alpha 69 (2384 px), the outer stroke is white alpha ≈ 122 (129 px), the level fill is green alpha ≈ 220 (400 px, e.g. #DC69CB73), and the level digits are white alpha 255. The empty slot and the fill are both at full luminance, distinguishable only by alpha — the previously tried "classify by luminance" and "classify by chroma" approaches both judged the whole battery opaque and were ruled out by measurement.
  • StatusIconBatteryGlyph.bodyAlpha() now has two tiers: alpha ≥ 110 (outer stroke, level fill) is kept at the full 255; alpha < 110 (empty slot) keeps the system's own 69/255 (about 27%), preserving anti-aliased edges proportionally. The tinted level bar is thus as long as it is untinted, while the border and fill stay saturated and opaque instead of regressing to "the whole battery looks washed out".
  • The level digits are still drawn by vc594's separate glyph layer (white and readable at any charge level).

Verification

  • PHK110 physical device with tinting on: at 60% about 60% of the battery's left side is bright pink fill and the right side is a dark purple empty slot; at 5% (real charge) the whole battery is a dark purple empty slot with only a small fill segment, matching the charge display with tinting off.
  • Column-by-column luminance profile: empty-slot columns 67–71, fill-segment columns 88–150, a difference of ≥ 2×; essentially the same as the empty-slot luminance of the untinted reference frame (66–82).
  • The 9 StatusIconBatteryGlyphTest cases were updated to real-device alpha samples (0/34/69/122/220/255), asserting monotonicity and "fill ≥ 2× empty slot".

[vc594] 1.6.14-battery-digit-visible

Fixes

  • At low battery the tinted battery's level digits disappear (user feedback 2026-12-05: at about 20% the digits were invisible with tinting on and visible with it off). Real-device measurement: ColorOS draws the percentage digits directly into the battery_icon_view bitmap — the body is #45FFFFFF (white alpha 69), the outer stroke alpha ≈ 153, and the digits are #FFFFFFFF (white alpha 255) — the body and the digits are both white and distinguished only by alpha; the level fill is green #24B232.
  • Root cause: the tinting pipeline flattened alpha — the whole-row gradient tints through an alpha mask, vc590 raised the battery's non-transparent pixels to full alpha, and vc478 pressed bright glyph pixels down to alpha 64; combined, the whole battery (digits included) landed at roughly 25% alpha. At high charge the body is bright and dark digits stay legible; at low charge the body is a dark base and the digits blend into the background, so they vanish completely. That same alpha compression was also the root cause of "the whole battery looks washed out while charging".
  • New StatusIconBatteryGlyph: glyph pixels that are "opaque (alpha ≥ 200) + neutral white (chroma difference ≤ 24) + not on the edge stroke (inset 3px)" are lifted out of the gradient mask into a separate layer and drawn above the gradient body in the system's original color (white); the body is still tinted as a whole per vc590. If glyph pixels exceed 45% of the opaque pixels (the entire icon is opaque and cannot be distinguished), layering is abandoned automatically and the original whole-block tinting is used.
  • Removed vc478's "press bright glyph pixels down to alpha 64" and the isChargingBatteryBodyView/isChargingBatteryBody code that stopped being used with it; the level digits' battery_percentage_view no longer takes part in icon tinting and keeps the system text color.

Verification

  • PHK110 three-state screenshots (tinting on): charging at 60% → white "60", not charging at 20% → white "20", real 7% → white "7"; the lightning bolt and WiFi/5G are still tinted by the whole-row gradient.
  • Tinting on/off comparison: 155 / 155 pure white pixels in the status bar (the digit pixels are exactly identical, showing the digits are neither made transparent nor colored).
  • 9 new unit tests in StatusIconBatteryGlyphTest, with samples taken directly from measured device colors and alphas.
  • Known trade-off (resolved in vc595): this build still followed vc590's full-alpha approach, so with tinting on the fill segment and the empty slot formed one solid gradient block and the charge level could not be seen; vc595 tiers by the original alpha and restores the level bar.

[vc593] 1.6.13-prefix-suffix-modes

New

  • The status bar time "prefix/suffix" supports four kinds of content: time period / day of week / year-month-day / custom, mutually exclusive single choice; the position supports "before the time / after the time", and the font size supports "normal / smaller".
  • New "show color" switch, off by default. When on: if the time uses a gradient, the prefix/suffix share the same whole-row gradient band as the time; if the time is a solid color, the prefix/suffix automatically take the color the time is tinted with. When off, the system text color is kept, and the smaller level still fades at 70%.
  • The year-month-day is now slash-separated digits without zero padding (e.g. 2026/12/5), replacing the previous full long date generated in the current language.

Fixes and improvements

  • The prefix/suffix font size is now converted from the time's actual font size: normal = the same size as the time, smaller = 0.62× the time; long prefixes such as the year-month-day only shrink the additional text by slot headroom, keeping the time size and not clipping the last seconds digit (computed from the measured shaped width of the whole string and the visible clip area).
  • Custom text input now takes effect immediately with a 150 ms debounce instead of waiting for the input field to lose focus; after the IME is dismissed (back key or tapping empty space) focus is actively cleared and the cursor hidden, so the cursor no longer keeps blinking after leaving the IME.
  • Tab wording "Custom text" shortened to "Custom".
  • Physical-device verification: on PHK110 the year-month-day prefix shows 2026/12/5 02:51:32 in full, with the date and time on the same whole-row gradient; with the gradient off, the suffix takes the time's first color; the settings page shows the "Custom / After time / Normal / Show color" switches.
  • Four-package gate: vc593 / 1.6.13-prefix-suffix-modes passes 166 unit tests per variant, i18n is consistent across 243 keys, all four packages have versionCode=593 with the same release signature 2850e82a…; the four versioned APKs in dist/vc593 are byte-identical to the build outputs.

[vc592] 1.6.12-wave-flat-halves

Adjustments

  • The wave cut no longer uses a horizontal gradient: the user explicitly asked that the wave cut have no horizontal gradient either. GradientShaderFactory.waveBitmap() changed from "top half c0→midpoint, bottom half c1→midpoint" to "top half solid c0, bottom half solid c1", keeping only the sinusoidal wave boundary; no horizontal gradient, towardWhite or blended midpoint remains.
  • The change lands in one shared factory: the settings page preview, the status bar time/icons, the notification shade, the desktop digital clock and every other caller that uses the wave cut take effect together; the other 10 gradient styles are untouched.
  • Verification: a local render with the screenshot endpoints #F8325C → #0000FE still varies at the right end in vc591, whereas in vc592 the top half is solid red and the bottom half solid blue; PHK110 vc592 screenshots of the main preview and the status bar confirm that each digit is one color on top and one below, with no horizontal gradient, while the wave boundary remains. All four packages vc592/1.6.12-wave-flat-halves pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc592 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc591] 1.6.11-wave-no-fade

Fixes

  • The wave-cut gradient fades to lighter from left to right: the shared GradientShaderFactory.waveBitmap() previously graded each half from the endpoint color to a bright companion color towardWhite(..., 0.55), so the right end was inevitably washed white. Both halves now transition to the blended midpoint of the two endpoint colors, keeping the horizontal gradient and the sinusoidal wave boundary but no longer fading toward white.
  • The change lands in one shared factory: the settings page preview, the status bar time/icons, the notification shade, the desktop digital clock and every other caller that uses the wave cut take effect together; the other 10 gradient styles are untouched.
  • Verification: a local render with the screenshot endpoints #F8325C → #0000FE gives a pinkish-white/light blue right end in the old version and a saturated purple right end in the new one; PHK110 vc591 screenshots of the large preview on the main settings page and of the status bar confirm the right end no longer whitens and the wave boundary remains. All four packages vc591/1.6.11-wave-no-fade pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc591 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc590] 1.6.10-gradient-battery

Fixes

  • Status bar icons return to a whole-row gradient: vc589 wrongly judged "the battery occasionally looks lighter" to be a problem with the gradient's intermediate colors and switched every icon to a solid color, when the overall gradient was in fact the design. vc590 reverts vc589's per-icon solid-color drawing and its lightening of icon color stops, restoring vc588's whole-row gradient shader + DST_IN mask, so the icon row colors are back to what they were.
  • The real root cause of the battery occasionally looking lighter: ColorOS's battery body/charging bolt bitmap carries a semi-transparent fill of its own, and since the whole-row gradient uses DST_IN and masks by alpha only, the whole battery blended with a light wallpaper into pinkish white, while adjacent opaque WiFi/5G icons looked normal. vc590 raises alpha to full only for the non-transparent pixels of battery-type icons; the level digits remain a cut-out at alpha=0 and the shape, position and whole-row gradient are unchanged; the existing white-digit-notch logic in the charging state is kept.
  • Verification: three consecutive PHK110 frames of vc590 are pixel-identical across the icon area except for the network-speed digits, and the battery's main color is identical in all three frames; the battery outline/bolt is as saturated and opaque as the adjacent 5G/WiFi, and the digits 77 are crisp. All four packages vc590/1.6.10-gradient-battery pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc590 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc589] 1.6.9-icon-vivid-location

Fixes

  • (This icon conclusion was corrected in vc590: the overall gradient must not be changed and vc590 restored it; the real cause of the lightening is the battery bitmap's semi-transparency.) Status bar icons sometimes looked lighter when tinted: the icon row reused the clock's 11-stop gradient (red→blue/green), whose intermediate colors have low saturation, so thin-line icons (WiFi, 4G, signal) landing on an intermediate color looked pinkish or pale; the semi-transparent white stops in the color stops also lightened the icons overall. The icon row's color stops are now uniformly de-lightened (saturation ≥ 0.70, luminance ≤ 0.95, forced opaque, near-white stops switched to the primary hue), and each icon is drawn in a single color (the color is still taken from the whole-row gradient by position, but there is no longer a red-blue gradient inside an icon). Two sampled device frames gave exactly identical colors.
  • The widget location address showed only one city when there were two: vc575 had merged the two cities into one to fix "Jinhua · Yiwu". As requested by the user, both cities are shown again: PlaceNames.fromApi/fromCache keep both the prefecture-level city and the county-level city, so two different cities output "Jinhua · Yiwu" and identical ones are shown once; the ordinary "Shenzhen · Longhua" stays as it was. PlaceNamesTest covers 7 cases.
  • Verification: after temporarily injecting a "Jinhua / Yiwu" cache, the Lime widget preview showed "Jinhua · Yiwu"; normal after restoring the real cache. All four packages vc589/1.6.9-icon-vivid-location pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc589 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc588] 1.6.8-review-size

Font-size wrap-up after the independent re-review

  • The second round of independent re-review (device screenshots only) gave quantified results: vc587's Lime large-time ink height was 26.2% of card height versus 26.8% in the original; the time/location row height ratio was 3.41 versus 3.71 in the original; every other item (no occlusion, dial gap, HH:mm:ss integrity, weather / Coast Ticket) passed.
  • Fix: the Lime large-time design font size went from 420 to 456 and the width constraint from 1740 to 1800 (design coordinates), with the time row's top padding kept at design coordinate 150. In screenshots the digit ink matches the original's level and still does not occlude the location row, the weather text on the right or the forecast circles at the bottom.
  • Verification: all four packages vc588/1.6.8-review-size pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc588 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc587] 1.6.7-review-fix

Independent visual review and fixes

  • A fresh independent visual review was carried out as requested by the user: a read-only subagent judged each of the five widgets from device screenshots alone, without reading source code, and gave PASS/FAIL; the original reference image (477×194) was also normalized and compared with the vc586 Lime card.
  • Review conclusions: the desktop digital clock, weather clock and Coast Ticket passed; the Lime weather clock FAILED — the large time had reached about 96% of the original, but the clock as a whole sat about 15% of card height too low, leaving about 22% of card height of emptiness between the location row and the clock, and the digit bottoms touched the first forecast circle. For the Autumn Tree clock, the dial running past the edge, the whitespace and the hour hugging the left edge are a composition the user had repeatedly asked to keep, so they were not changed this round.
  • Fix: LimeWeatherClockWidgetProvider.applyTextClock() keeps the 420 design font size and moves the time row's top padding from design coordinate 300 up to 150. The digit ink now occupies about 21%/46% of card height at top/bottom (about 20%/46% in the original), with a clear gap to the forecast circles' top edge and only a short gap between the location row and the clock; occlusion is no longer avoided by shrinking the font size, and vc586's font-size restoration is not reverted.
  • Verification: a fresh screenshot of the PHK110 preview page confirms that the clock, the location row, the weather area on the right and the bottom forecast row do not overlap; all four packages vc587/1.6.7-review-fix pass the gate with release signature 2850e82a… (232-key i18n, four-variant unit tests), and the four versioned APKs in dist/vc587 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc586] 1.6.6-preview-time-lime-size

Fixes (feedback on vc585)

  • The first card on the widget preview page, the "desktop digital clock", showed only the date and not the time: in off-screen RemoteViews neither TextClock nor an ordinary TextView has a window to attach to — the measured text had a value, and the size and color were normal, yet no glyph appeared in the bitmap (only the background remained). The preview now draws the current time into a text bitmap with Canvas, carried by an ImageView at the same position (new widget_preview_time); the launcher path is completely unchanged and still driven by TextClock itself.
  • The Lime weather clock's large time was clearly smaller than in the original: LimeWeatherClockWidgetProvider.applyTextClock() called WidgetTextClock.fitSize(context, 420f, "00:00:00", 1740f * s), so the font measurement happened at the 420 design size while the width constraint used slot pixels already multiplied by the scale factor; the shrink factor was therefore divided by the scale factor one extra time and pushed down to the MIN_FACTOR (0.55) floor. The width constraint now also uses design coordinate 1740f, bringing the shrink factor back to 1.0.
  • Verification: the first card on the PHK110 preview page shows 22:55:31 (previously only "December 4, Friday", the date and weekday); the Lime large-time ink height is 144px ≈ 420 design font size × 0.43 card-width ratio × 0.8 full glyph height (about 79px when the old calculation was pressed to the 0.55 factor, so the font size is restored by about 82%); the location row ink is 0.060 of card width, essentially matching the user's original 0.064.

[vc585] 1.6.5-dial-rotation

Fixes (continued feedback on vc584)

  • Removed the extra golden second hand on the Autumn Tree clock: the second hand was introduced in vc584 and was not in the original design (vc581), and the user explicitly said "I did not ask for that". The hand is now deleted, along with all second-hand drawing code and its separate view.
  • Fixed the Autumn Tree outer dial not rotating: to save power, vc582 had lowered the shared service ticker from every second to every 60 seconds, so the Autumn Tree card bitmap was no longer redrawn each second and the outer second dial (which since vc582 had also mistakenly used the minute angle) appeared completely static. The outer ring is back to vc581's original design second angle (6° per second, one revolution in 60 seconds) with the inner minute angle; the shared service resumes per-second ticks while "Autumn Tree is on screen and the display is on" and calls AutumnTreeClockWidgetProvider.refreshTime() to redraw the card bitmap, while the other widgets stay on the launcher's TextClock at the 60-second low frequency.
  • Restored the 1-second drive that vc584 missed: refreshTime() returns to vc581's mature approach (700ms de-duplication, screenOn/ids checks); scheduleFastTick() restores setExact (degrading to set(RTC) when there is no exact-alarm permission) as a fallback.
  • Verification: on PHK110, dumpsys appwidget shows the RemoteViews handle for Autumn Tree id=29 changing every second (5 samples, 5 different handles) and the shared service isForeground=true, showing that the card bitmap is redrawn every second and the outer dial rotates; the second hand is gone. All four packages vc585/1.6.5-dial-rotation pass the gate (release signature 2850e82a…, 232-key i18n, four-variant unit tests). Local commit only: not pushed, no tag, no Release.

[vc584] 1.6.4-clock-regression

Fixes

  • Fixed the Autumn Tree clock widget disappearing entirely from the home screen (a regression from vc582): the root cause was that the second hand used a self-driven ViewFlipper, and RemoteViews.setBoolean(id, "startFlipping", true) looks for startFlipping(boolean), whereas ViewFlipper.startFlipping() takes no arguments, so inflating on the launcher threw RemoteViews$ActionException: view: android.widget.ViewFlipper doesn't have method: startFlipping(boolean) and the whole card failed to render (device log AppWidgetHostView: Error inflating RemoteViews). The second hand is now a single ImageView refreshed by the app's 1-second alarm, with failure degradation kept (the card must render even without the second hand).
  • Fixed the Lime weather clock's time font size being shrunk twice by system font scaling: vc583 changed all widgets' TextClock sizes to sp, but the Lime and Autumn Tree sizes are design sizes computed from slot pixels, so a second pass of system fontScale made them too small. WidgetTextClock.apply() (typographic size, sp) and applyPx() (design pixel size, px) are now separate: the desktop digital, weather and Coast Ticket widgets use sp to follow the system font, while Lime and Autumn Tree use px to keep the design proportions.
  • Fixed the desktop digital clock's seconds being truncated into an ellipsis: widget_text_clock changed to match_parent for the full row width, so the trailing digits are no longer clipped by wrap_content in a narrow slot.
  • Fixed the Autumn Tree clock's hour and minute digits overlapping into a blob: WidgetTextClock set the time format to the full HH:mm:ss by default, overriding the HH/mm declared in the Autumn Tree layout, so the hour position showed "20:39:23" and the minute position showed "39:23". WidgetTextClock now accepts a caller-specified format, with HH for the Autumn Tree hour and mm for the minute.
  • Fixed the Autumn Tree clock's digits being offset from the dial: the dial first did translate(-CLOCK_BLOCK_LEFT_X) and then drew in the bitmap, so its center actually landed at design coordinate DIAL_CX - CLOCK_BLOCK_LEFT_X, while the TextClock is a separate view that does not take that translation; both now use the same base.
  • Fixed the Autumn Tree second hand being invisible: it used to be a separate view (ImageView/ViewFlipper) in a different coordinate system from the dial in the bitmap, so it could never be aligned. The second hand is now drawn straight into the card bitmap, sharing the dial's coordinate system, clockwise at 6°/second; the 1-second fast tick redraws the card bitmap each second to drive the hand, consistent with the power-saving specification's rule that "the 1-second fast tick is used for dial-ring rotation".
  • The RemoteViews payload per Autumn Tree update dropped from 60 second-hand frames to 1, making delivery more robust.
  • Unit tests: the px→sp conversion guard from vc583 was removed (that conversion is no longer used), while WidgetWideSlotTest keeps its 12 cases.
  • Verification: all four packages vc584/1.6.4-clock-regression pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc584 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc583] 1.6.3-clock-font-scale

Fixes

  • Fixed the time text of the five home-screen widgets being too large (about 18% larger) and inconsistent with the status bar and other widgets: the root cause was that vc582's WidgetTextClock.apply accepted a size with sp semantics but wrote it with COMPLEX_UNIT_PX, while callers had already multiplied the design pixels by density, in effect bypassing the system font scaling. The Nubia NX741J has fontScale=0.85 and density=3.25, so text rendered at 100% of its size and came out 17.8% larger than the design.
  • WidgetTextClock.apply now uses COMPLEX_UNIT_SP, so the system converts the size by the current font scale; a new pure function WidgetTextClock.pxToSp() lets the Lime weather clock and Autumn Tree clock, which are computed in design pixels, convert before passing the size. The desktop digital clock, weather clock and Coast Ticket pass sp-semantic values directly.
  • No behavior changes: the time is still driven by the launcher's own TextClock, the color and contrast correction logic is unchanged, and the power-saving strategy is unchanged.
  • Unit tests: WidgetWideSlotTest gains 2 guard cases (px→sp identity at density=1, fallback for invalid density; the NX741J conversion at the measured density 3.25).
  • Verification: all four packages vc583/1.6.3-clock-font-scale pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc583 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc582] 1.6.2-launcher-clock

Optimization

  • The time layer of the five home-screen widgets is now driven by the launcher process's native TextClock: it advances every second while visible and stops automatically when switched away or the screen is off, no longer relying on the app's per-second alarms or foreground service pushes; the status bar and the widgets read the same system clock, so there is no cumulative drift.
  • Trade-offs confirmed by the user: TextClock cannot carry per-digit gradients, so the time uses a single color; the Autumn Tree outer ring became one revolution per minute, and the second hand uses the launcher's built-in 60-frame ViewFlipper, without waking the app every second.
  • The five widgets' 1-second AlarmManager and per-second bitmap pushes were stopped; the refresh service drops to a 60-second low-frequency keep-alive, weather data still updates hourly/by callback, and the date refreshes with the static layer.
  • New shared WidgetTextClock helper and format guard unit tests (24/12-hour conventions locked down); in the layout layer the desktop digital, weather and Coast Ticket widgets switched to TextClock, and Lime/Autumn Tree overlay a TextClock.
  • Verification: all four packages vc582/1.6.2-launcher-clock pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc582 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc581] 1.6.1-diagnostic-raw

Improvements

  • Runtime diagnostics' device-parameter collection was upgraded from "only 4 fixed keys" to "keep the raw data for cross-checking": every widget dumps all AppWidget options key-values (sorted output, over-long values truncated), plus OPTION_APPWIDGET_SIZES (the full size list reported by the API 31+ launcher) and AppWidgetProviderInfo's minWidth/minHeight/resizeMode/targetCellWidth/Height, to trace where the difference between the reported 349×108 and the 333×184 in screenshots comes from.
  • Device information additionally reads xdpi/ydpi/scaledDensity, fontScale, the current window pixels from getCurrentWindowMetrics, manufacturer/model/device/SDK, and the default launcher package name and version; a new filterSlotLines pure function with 2 unit tests (selecting only slot keys, safe on empty input).
  • Background: vc580's slot-height correction was based on the difference between "333×184dp inferred from screenshots" and "349×108dp reported by diagnostics"; vc581 lets the user read the official SIZES and the raw options directly on the same device, so the inference can be confirmed or refuted before deciding whether to keep vc580.
  • Verification: all four packages vc581/1.6.1-diagnostic-raw pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); the four packages in dist/vc581 are byte-identical. Local commit only: not pushed, no tag, no Release.

[vc580] 1.6.0-slot-height-correct

Fixes

  • Fixed the home-screen widgets on Nubia NebulaAIOS (NX741J) being too wide overall with stretched, distorted text: the root cause was that the launcher-reported OPTION_APPWIDGET_MIN_HEIGHT=108dp is only the lower bound of the resizable range (MAX is 201dp), so the widget generated a card bitmap at 108dp and fitXY stretched it into the roughly 184dp card the launcher actually rendered, stretching it vertically by about 1.7× (the Lime/weather cards measured 333×184dp, ratio 1.81, against the reported slot 349×108dp, ratio 3.23).
  • New shared pure function WidgetScaling.correctedHeight(): when the reported aspect ratio is > 2.5, the real height is inferred from a target ratio of 1.9 (only increasing, never decreasing), wired uniformly into sizeDp() for all five widgets (desktop digital / weather / Coast Ticket / Lime / Autumn Tree); normal slots such as PHK110's (346×165, ratio 2.10 ≤ 2.5) never trigger it, so their size and rendering change not at all.
  • Unit tests: WidgetWideSlotTest grows to 12 cases (new guards for PHK110 zero change, NX741J 349×108→349×184, increase-only and degenerate input).
  • Verification: all four packages vc580/1.6.0-slot-height-correct pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc580 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc579] 1.5.9-card-bg-inset-fix

Fixes

  • The weather clock's purple card was lost (Nubia NebulaAIOS launcher): the card background was attached to the layout root's android:background, and that launcher does not draw the RemoteViews root background, so the deep purple gradient card did not show at all and the text sat directly on the bright wallpaper (in the NX741J screenshot the card area was entirely wallpaper cyan, whereas the same APK on PHK110 showed a purple gradient of 41,32,110 / 55,40,137). The card bitmap is now carried by the first child ImageView inside the root FrameLayout (22dp corners + #241D63→#3B2A91→#6D3FBE gradient + 1dp highlight stroke), with the content inset moved to the content layer; this is the same verified bitmap rendering path used by the desktop digital / Lime / Autumn Tree / Coast Ticket widgets.
  • The Autumn Tree clock's flat cell no longer hugs the left edge: after vc578 reflowed with px=0, "14" and the dial sat only about 4.7dp from the card's left edge and looked cut off; an 8dp left inset was added (WidgetWideSlot.leftInsetPx), with the date still right-anchored.
  • The desktop digital clock's glass card is drawn at the real slot pixels: it used to be rendered at "design width × scale" and then enlarged and cropped by centerCrop, losing the rounded corners and making the card wider than its content (on NX741J a 300×108dp card was stretched to 349×108dp); the card is now generated 1:1 for the slot.
  • Unit tests: WidgetWideSlotTest grows to 9 cases (new leftInsetPx density conversion ≤, invalid-density fallback, never negative).
  • Verification: all four packages vc579/1.5.9-card-bg-inset-fix pass the gate with release signature 2850e82a… (four-variant unit tests, 232-key i18n); dist/vc579 is archived per version with all four packages and checked byte by byte; PHK110 installation confirms zero regression on normal slots. Local commit only: not pushed, no tag, no Release.

[vc578] 1.5.8-wide-slot-reflow

Optimization

  • Horizontal reflow for flat cells: based on the vc577 diagnostic package's measured data on NX741J (Nubia, 349×108dp, slot ratio 3.23), when the launcher-provided slot is clearly flatter than the widget design (wideFactor ≥ 1.34, shared predicate WidgetWideSlot), the Lime weather clock and Autumn Tree clock spread their content horizontally to fill the slot (left edge to the edge, the right-hand group to the right edge, coordinates linearly remapped and capped at 1.8), while font sizes still scale with slot height and do not distort; under a flat cell the weather clock enlarges its main time by the extra width (up to 1.3×, with column-width shrink protection retained). The Coast Ticket (1.317) and the desktop digital clock (1.217) stay below the threshold on NX741J and keep their original layout.
  • Normal slots such as PHK110's (wideFactor ≈ 1.0~1.1) never trigger the reflow, and their rendering path is bit-identical to vc577; 8 WidgetWideSlotTest guards lock the measured NX741J/PHK110 values into unit tests to prevent threshold drift.
  • Static bitmap cache keys bumped to v578 (Lime base, weather bits/time), so old caches do not leave a centered layout behind.
  • Verification: the four packages pass the release signature gate (578/1.5.8-wide-slot-reflow, 2850e82a…, four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc578 are byte-identical to the build outputs; PHK110 confirms normal-slot rendering matches the baseline. Local commit only: not pushed, no tag, no Release.

[vc577] 1.5.7-device-layout-report

New (diagnostics)

  • "Runtime diagnostics" gains a "device and slot parameters" output: screen resolution/density/light-dark theme/system language/measured font width, plus each added widget's real launcher slot (OPTION_APPWIDGET_MIN/MAX_WIDTH/HEIGHT) and the scaling parameters derived from the slot (sx, boost, sy, drawn width/height, vertical padding/overflow). This is for pinpointing cross-model layout problems (widgets too wide, text offset and shrunk) instead of inferring them from screenshots.
  • New DeviceLayoutReport (collection only, no writes, no network), integrated into the existing runtime diagnostics JSON's deviceLayout field and available in the debug variant; new DeviceLayoutReportTest with 5 pure-logic guards (Coast Ticket padding in tall narrow slots, boost capped at 1.2, no enlargement in flat slots, Lime/Autumn Tree with the same slot but different heights, drawn width not exceeding the slot).
  • Verification: the four packages pass the release signature gate (577/1.5.7-device-layout-report, 2850e82a…, four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc577 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc576] 1.5.6-battery-toggle-tint

Fixes

  • Fixed G17: after turning "status bar icons follow the time color" off and on again, the battery icon would not be tinted immediately and required another switch of the gradient style to take effect. The root cause was that the G22 snapshot repaint called applyStatusIconGradient() first, which overwrote sStatusIconPaintedMembers with the new rebuilt list, so "repaint the previous round's members" did not actually cover the real battery sub-view on screen.
  • The switch receiver now saves the pre-toggle member snapshot into a local variable first and passes it explicitly to repaintPaintedStatusIconRow(); the repaint target is the identity-deduplicated union of "pre-toggle snapshot + this round's list", so old battery members are not swallowed by the new list.
  • New StatusIconRepaintTargets pure function with 4 unit tests: old battery members kept, new members kept, empty old snapshot degrades safely, and deduplication by object identity ignoring null.
  • Verification: the four packages pass the release signature gate (576/1.5.6-battery-toggle-tint, 2850e82a…, four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc576 are byte-identical to the build outputs. PHK110 (ab8b3a49) modern debug off→on re-test: SIC-TOG on=true prev=false, SIC-REPAINT members=7, battery dirty 0→2; the status bar battery pixels changed from the system green (9,187,27) when off to the tinted band blend (122,173,74) when on. Local commit only: not pushed, no tag, no Release.

[vc575] 1.5.5-place-one-city

Fixes/optimization

  • Reverse-geocoded places now uniformly show only "the finest prefecture-level city + any finer district/county": county-level cities (such as Yiwu) no longer appear as two cities ("Jinhua · Yiwu") but only as "Yiwu"; when there is a finer administrative level it is still shown as "Shenzhen · Longhua".
  • New shared pure functions PlaceNames.fromApi/fromCache/simplify, unifying the conversion of traditional place names to simplified; the three weather widgets no longer each maintain inconsistent fallback replacement tables.
  • The static bitmap cache keys of the Coast Ticket, Lime weather clock and weather clock bumped to v575 together, so old place-name caches stop showing.
  • New PlaceNamesTest with 6 guards: county-level city, county-level city with district, Shenzhen district, fallback when there is no administrative level, old-cache normalization, and traditional/simplified conversion.
  • Verification: the four packages pass the release signature gate (575/1.5.5-place-one-city, 2850e82a…, four-variant unit tests, 232-key i18n); the four versioned APKs in dist/vc575 are byte-identical to the build outputs. Local commit only: not pushed, no tag, no Release.

[vc574] 1.5.4-boost-cap-1.2

Optimization

  • The five widgets' vertical adaptation cap went from 1.6 to 1.2 (WidgetScaling.verticalBoost shared function, effective in one place): the remote user's model has slots closer to square than PHK110's, so the weather clock, Lime, Coast Ticket and desktop digital clock content enlarged by a boost of up to 1.6 looked overweight; after tightening, the content is about 11% smaller relative to the slot, while PHK110's former 1.22 → 1.2 is essentially unchanged. The Autumn Tree has no vertical enlargement and is unaffected.
  • The guard assertions in WidgetScalingVerticalBoostTest / WeatherClockVerticalBoostTest were updated to the 1.2 cap accordingly.

[vc573] 1.5.3-natural-digit-shape

Fixes/optimization

  • Desktop digital clock: digit glyphs keep their natural proportions and the "stretch horizontally to fill the slot" behavior (previously up to 1.9×) is gone. Wide slots (models with larger grid column widths) no longer show widened, overweight digits; the extra width becomes centered padding around the glyphs. Narrow slots keep the existing shrink protection, so the seconds are not pushed out of the widget.
  • Background: a remote user reported that on his model "the widget is very wide and the picker has no name". Verification conclusion: slot sizes are pushed live by each phone's launcher in dp (OPTION_APPWIDGET_MIN_WIDTH/HEIGHT), and the code adapts proportionally by scale, so no per-resolution adaptation is needed; the root cause of "wide" was the horizontal stretching described above. The nameless picker entry is because that launcher reads the label (vc567 had already zeroed it as requested with a zero-width space), and it was confirmed to stay blank and unchanged.

[vc572] 1.5.2-corner-clip-picker-names

Fixes/optimization

  • Autumn Tree clock: after compositing the whole card it is clipped to rounded corners as one — the background, the date and the rotating dial redrawn every second are all composited inside the same rounded path, so the tick marks no longer stick out past the card's rounded corners (vc570 had clipped only the background, leaving the dial drawn bare outside); the corner radius, the left-shifted 166 composition and the hour edge gap are unchanged.
  • Widget picker: the five widgets' android:description changed from long descriptions to short names (Weather Clock / Coast Ticket / Lime Weather Clock / Autumn Tree Clock / Desktop Digital Clock), so the picker shows only the widget name and no longer the specific description; all of them reuse existing label strings, so 22 languages stay consistent automatically with no new keys.
  • Also fixed the gate script's apksigner detection under Windows/Git Bash: the SDK ships only apksigner.bat and -x does not accept .bat, so a .bat fallback was added; previously the first run failed with "apksigner not found" after build-tools moved to 36.0.0.
  • Device verification: PHK110 screenshots confirm the Autumn Tree tick marks are cut off at the top-left/bottom-left rounded corners and no longer stick out of the card; all five picker entries show only the short name; the four packages share the same signature 2850e82a…, 232-key i18n and all unit tests pass at 572; the four packages in dist/vc572 are byte-identical; local commit only, not pushed, no tag, no Release.

[vc571] 1.5.1-adaptive-all-widgets

Optimization

  • Second version of the C-plan model adaptation is complete, with all five home-screen widgets now on the same slot adaptation mechanism:
    • WidgetScaling gains a shared pure function verticalBoost(widthDp, heightDp, designW, designH): it returns an enlargement factor (capped at 1.6) when the slot's aspect ratio is higher than the design's, and a constant 1 for flat slots; the weather clock now delegates to the shared function (behavior unchanged).
    • Coast Ticket: the whole ticket scales vertically by sy = sx × boost (the ticket background/sand/barcode/punch-hole heights and all vertical coordinates move with it), so tall slots are filled instead of leaving top and bottom padding; every bitmap cache key mixes in the boost (v571|bxx|).
    • Lime: the hourly rows scale proportionally around the circle center by k = 1 + (boost-1)×0.85 (circle/icons/hours/temperatures/dashed-line start move together), keeping the composition while filling the slot; cache key v568→v571.
    • Desktop digital clock: the glyph size grows with boost (boost passed in as a new applyTime parameter, shared with the preview); flat wide-bar slots stay as they are.
    • Autumn Tree and weather clock keep vc570's rounded mask and vertical enlargement.
  • 5 new WidgetScalingVerticalBoostTest guard cases (tall 1.21, same ratio 1.0, 1.6 cap at the extreme, safe on invalid input, weather delegation consistent).
  • The four packages pass the release signature gate (571/1.5.1-adaptive-all-widgets, 2850e82a…); PHK110 installation confirms no regression on normal slots for Lime/Autumn Tree and normal seconds; local commit only, not pushed, no tag, no Release.

[vc570] 1.5.0-adaptive-relayout

Optimization

  • First version of the C-plan model adaptation (Autumn Tree + weather clock):
    • Autumn Tree: the background now carries its own anti-aliased rounded mask (radius = max(18, 28×density) px, converted with the slot density), so third-party launchers no longer show square corners touching the edge; ColorOS masking it a second time is harmless. The background cache key went v566→v570 and mixes in the corner density.
    • Weather clock: the card fills the real slot and the centered padding is gone; a new verticalBoost pure function scales the font size/icons/chart proportionally to the slot aspect ratio (cap 1.6, constant 1 for flat slots), removing the large emptiness of "content squeezed into the top half" in near-square slots; the horizontal width constraint is kept and the font still shrinks automatically when too wide.
    • 3 new WeatherClockVerticalBoostTest guard cases (tall slot 1.21, same ratio 1.0, 1.6 cap at the extreme).
  • The four packages pass the release signature gate (570/1.5.0-adaptive-relayout, 2850e82a…, 121+ unit tests); PHK110 installation confirms the Autumn Tree corners take effect and no regression on normal Lime/Autumn Tree slots; the second version of the C plan (Coast Ticket/Lime/desktop digital clock) is still to come.
  • Local commit only: not pushed, no tag, no Release.

[vc569] 1.4.5-widget-labels-hidden

Optimization

  • Per the EditHere annotations (① delete "Coast Ticket" ② delete all widget names on the home screen): the Manifest android:label of the four widget receivers (weather clock / Coast Ticket / Lime weather clock / Autumn Tree clock) now all point to the existing zero-width-space resource widget_desktop_label (the desktop digital clock already did this). The preview names on the settings page, the WeatherWidgetActivity title and the LSPosed module name are unaffected.
  • PHK110 (ab8b3a49) shows the effect immediately after installing vc569: the names under the Lime/Autumn Tree widgets disappear, and the launcher re-reads provider labels automatically after updating the package, with no need to re-add them; the Coast Ticket/weather clock had no visible instance on the launcher.
  • The four packages pass the release signature gate (569/1.4.5-widget-labels-hidden, 2850e82a…); local commit only, not pushed, no tag, no Release.

[vc568] 1.4.4-lime-dots-to-edge

Fixes

  • The Lime hourly dotted line could not reach the card's bottom edge: the root cause was that the static bitmap covered only the proportional design-canvas area, the root layout's bottom padding exposed the background, and the dotted line was clipped at the bitmap edge. vc568 draws the background over the full real slot w×h (18dp corners converted proportionally), translates the design content to center it, and zeroes the root layout padding; the dotted line's end point is computed dynamically from the visible card bottom edge ((h-py)/s-6), with the dot count adapting.
  • The dynamic time layer and the static layer use the same translate/scale transform, avoiding misalignment between the two.
  • Static-layer cache key v567→v568; the four packages pass the release signature gate (568/1.4.4-lime-dots-to-edge, 2850e82a…); a pixel scan on PHK110 (ab8b3a49) confirms the last dotted point at y≈748 and the card bottom edge at y=750; local commit only, not pushed, no tag, no Release.

[vc567] 1.4.3-lime-hourly-scale

Optimization

  • Following the EditHere annotations (overall a bit larger / temperature aligned to the center of the time above / the dotted line does not reach the edge), the Lime hourly forecast row was adjusted: circle radius 140→158, hourly icon 150→170 and moved up to align with the circle center, hour font size 54→60, temperature font size 68→74, timeline weight 6→7.
  • New textInkCenter: both the hour and the temperature are horizontally centered by their actual ink bounding box, fixing the visual offset of "24°" caused by the degree symbol.
  • Static-layer cache key v560→v567; the four packages pass the release signature gate (567/1.4.3-lime-hourly-scale, 2850e82a…); device screenshots confirm the enlargement and alignment take effect (reaching the bottom edge was completed in vc568).

[vc566] 1.4.2-autumn-dial-left-half-again

Optimization

  • Following the user's "move another half of the 19's left-edge distance to the left", the clock block was shifted left again: cumulative translation 108+58=166 design px (half of vc565's 19 left edge ≈116 is 58). Connected-component measurement on the device shows the "19" left edge moving from design x≈116 to ≈64.
  • The hour is moved right by 60 on its own, while the minute and the golden read point stay anchored to the read window; the hour/minute ink spans 64–285 / 354–504 with a gap of about 69 design px, so there is no collision. The date and the full background fill are unaffected.
  • Static-layer cache key v565→v566; the four packages pass the release signature gate (566/1.4.2-autumn-dial-left-half-again, 2850e82a…); PHK110 (ab8b3a49) modern debug installation screenshot confirms; local commit only, not pushed, no tag, no Release.

[vc565] 1.4.1-autumn-dial-left-half

Optimization

  • Following another correction from the user: the entire clock block (double-ring dial + golden read point + hour/minute digits) was translated left by 108 design px, that is, half of the previous version's distance from the "19" left edge to the widget's left edge (≈217); after the translation the hour ink moves from design x≈217 to ≈116, and the dial center moves from 112 to about 4, so the double ring is cut by the left edge at roughly half, matching the reference composition.
  • vc564's separate 60 shift of the hour is kept: the hour still leaves a gap to the left edge and does not collide with the minute (measured hour/minute ink 116–337 / 413–554, gap about 76 design px). The date and the full background fill are unaffected.
  • Static-layer cache key v564→v565; the four packages pass the release signature gate (565/1.4.1-autumn-dial-left-half, 2850e82a…); PHK110 (ab8b3a49) modern debug installation screenshot confirms the half-exposed dial and the hour gap; local commit only, not pushed, no tag, no Release.

[vc564] 1.4.0-autumn-dial-half

Fixes

  • Reverted vc563's 150 design px rightward shift of the whole clock block: the dial returns to the vc562/reference composition, with the outer ring's left half hidden behind the widget edge and only about half exposed; the date, the full background fill and the four rounded corners are unaffected.
  • Kept "a gap between the hour digits and the left edge": only the hour is moved right by 60 design px (HOUR_GAP_X), while the minute and the golden read point stay anchored to the original dial read window; vc563 measured that a 120 shift squeezes the hour and minute together, so it was reduced to 60.
  • Static-layer cache key v563→v564; connected-component measurement on the device: hour ink design x≈217–436, minute starting at ≈528, a gap of about 92 design px, with the hour's left edge about 57 to the right of vc562's 160.
  • The four packages pass the release signature gate (564/1.4.0-autumn-dial-half, 2850e82a…); PHK110 (ab8b3a49) modern debug installation screenshot confirms the half-clipped dial and the hour gap; local commit only, not pushed, no tag, no Release.

[vc563] 1.3.99-autumn-clock-gap

Optimization

  • Autumn Tree clock: the entire clock block (double-ring dial + golden read point + hour/minute digits) was translated 150 design px toward the widget's interior, leaving a gap between the "17" digits and the left edge instead of hugging it; the outer ring's left bleed composition is kept; the date and background are unchanged.
  • The full-bleed background with four rounded corners (vc562) is unchanged.

1.3.98-autumn-corner-fix (vc562)

  • After re-checking vc561, the remaining issues were corrected: vc561's edge-pixel extension sampled anti-aliased semi-transparent pixels in the canvas's rounded-corner area, which after scaling produced light gray wedges, dark lines and stair-steps at the corners. vc562 switched to layered rendering: the background (sky gradient + snow) is drawn over the full slot at w×h, while the date layer and the dynamic dial/time still scale proportionally to the design canvas and stay centered, with no edge stitching at all; the root background fallback is now transparent.
  • Autumn Tree cache keys split: background layer v562|bg|w|h (rebuilt only when the size changes), date layer v562|date|cw|ch|font fingerprint|date|weekday; the version was raised to versionCode=562 / versionName=1.3.98-autumn-corner-fix.
  • Verification: the PHK110 (ab8b3a49) modern debug installation screenshot confirms the four rounded corners are complete, the left and right edges are continuous with the canvas, and there are no dark lines/wedges/stair-steps; the four packages pass the release signature gate (562/1.3.98-autumn-corner-fix, 2850e82a…, all-variant unit tests, 232-key i18n); local commit only, not pushed, no tag, no Release.

This project follows semantic versioning. The version string format is versionCode-versionName, corresponding to the Release tag in the LSPosed module repository.

1.3.97-autumn-edge-fix (vc561)

  • Fixed the deep purple-black edges on the left and right sides of the Autumn Tree clock home-screen widget: after vc559's unified proportional scaling the canvas was centered with padding, exposing the layout root background #241426 as black edges. From vc561 the rendered output is a bitmap that fills the entire slot; pixels from the inner edge of the canvas (avoiding the transparent rounded-corner area) are stretched horizontally/vertically to fill the padding, the corners use the corresponding corner pixels, and the root layout no longer sets padding; the canvas composition, dial, time and date positions are exactly as in vc560.
  • Autumn Tree static-layer cache key v560→v561; the version was raised to versionCode=561 / versionName=1.3.97-autumn-edge-fix.
  • Verification: the four packages pass the release signature gate (561/1.3.97-autumn-edge-fix, 2850e82a…, all-variant unit tests, 232-key i18n); the PHK110 (ab8b3a49) modern debug installation screenshot confirms the left and right edge pixels are continuous with the canvas (left #3D2939→canvas deep purple, right #DD9C8B→canvas sunset, bottom #888596 snow gray) and the black edges are gone; local commit only, not pushed, no tag, no Release.

1.3.96-font-adaptive (vc560)

  • Font-style adaptation for the five home-screen widgets: a new shared utility WidgetTextFit (measure the glyph width → scale the font size down when it exceeds the slot, minimum 55%); on the Coast Ticket the large time, place badge, date, festival, humidity and wind speed, secondary-ticket temperature and weather, and hourly rows are all constrained by the slot; the Lime temperature and weather row and the hourly text are constrained by the design width, and the large-time scaling now goes through a unified pure function; the Autumn Tree date/weekday, hour, minute and dial labels shrink by measurement; the desktop digital clock and weather clock cache keys mix in the font fingerprint.
  • All-widget bitmap cache key v559→v560; the Lime/Autumn Tree static-layer cache keys mix in the font fingerprint, so after switching font styles the old cache is invalidated automatically and redrawn with the new glyphs.
  • 3 new WidgetTextFitTest pure-function unit tests; the four packages vc560/1.3.96-font-adaptive pass the gate with release signature 2850e82a… (all-variant unit tests, 232-key i18n).

vc559 (2026-12-03) — unified proportional adaptive scaling for the five home-screen widgets

  • New WidgetScaling unified scaling pure functions and unit tests: all five home-screen widgets scale proportionally by min(width/designW, height/designH), and the extra space is centered through the root layout's setViewPadding instead of stretching width and height separately.
  • Coast Ticket: removed the API31 setViewLayoutMargin dependency and switched to API16+ setViewPadding for dynamic positioning; the static-layer cache keys for the time, secondary ticket, barcode, sand and so on were bumped to v559 to avoid reusing old stretched bitmaps.
  • Lime weather clock and Autumn Tree clock: the static canvas and the dynamic time use the same proportional factor, with the root layout centered and padded; cache keys bumped to v559.
  • Desktop digital clock and weather clock: design canvases fixed at 250×90dp / 320×150dp, with the font size, date bitmap, weather bitmap and chart scaled by the same factor; the weather static bitmap and refresh icon cache keys were bumped to v559.
  • Second-level refresh, 700ms de-duplication, screen-on fast alarm, the 15-minute watchdog, the power-saving widget list and the shared service activity checks are all unchanged.
  • The version was raised to versionCode=559 / versionName=1.3.95-widget-adaptive.
  • Verification: the four packages pass the release signature gate (559/1.3.95-widget-adaptive, 2850e82a…, 424+ unit tests, 232-key i18n); PHK110 (ab8b3a49) was installed modern release→debug and versionCode=559 verified, two launcher frames 12:40:18→22 kept the digits in sync with the Coast Ticket seconds, and the same-source previews of all five widgets showed no overlap or squeezing; as chosen by the user, 65DUBAJFWKWSVGXS was not connected this round, and the second primary test device has not yet been verified.

vc558 (2026-12-03) — time suffix restored to the classic style

  • Per user feedback, vc557's "short date fill" default was withdrawn: the suffix no longer appends the year-month-day (e.g. "Thu · 12/03") and returns to the classic "space + weekday/time period" style, with the status bar showing only the time and the suffix itself.
  • The short-date fill branch was deleted; the Secure key coloros_clock_seconds_mark_layout now keeps only 0=classic, 1=right-side shim (experimental), with classic still the default. Measurement showed that neither mode brings the icons closer to the suffix: the blank space lies in the icon area outside ColorOS's fixed clock slot, which in-slot layout cannot reach — this is system layout behavior.
  • The version was raised to versionCode=558 / versionName=1.3.94-suffix-classic; the four packages pass the release signature 2850e82a… gate (424+ unit tests, 232-key i18n); modern debug/release were installed on both devices, the Secure key was null, the WRITE log showed the classic suffix, and debug was kept in the end. Local commit only, not pushed, no tag, no Release.

vc557 (2026-12-03) — time suffix fills the fixed clock slot

  • Fixed the large blank space between the suffix and the status bar icons after enabling "time suffix (weekday / time period)": the ColorOS clock slot has a fixed width that cannot shrink (vc285 once made the clock disappear), so a short date is appended after the suffix (e.g. "Thu · 12/03") to fill the slot.
  • The suffix layout default changed to "short date fill"; the classic space and right-side shim modes are kept and can be switched through the Secure key coloros_clock_seconds_mark_layout (0/1/2), which was also added to the Secure listener so an external direct write immediately redraws the clock.
  • New suffix-layout pure-function unit tests and a default-layout regression assertion.
  • Pixel measurement on a device (65DUBAJFWKWSVGXS): in classic mode the suffix's right edge is about 67px from the notification capsule, in fill mode about 21px; three frames have identical clock left/right edges (69/423), the clock does not disappear and the icons do not jitter.
  • The four packages have versionCode=557 / versionName=1.3.93-suffix-fill and pass the release signature 2850e82a… gate; local commit only, not pushed, no tag, no Release.

vc555 (2026-12-02) — build and release audit fixes

  • Build gate: app/build.gradle.kts was raised to versionCode 555 / versionName 1.3.91-audit-fixes; all four variants (modern/legacy × debug/release) are forced to use the release signature, and the configuration phase fails immediately when any RELEASE_* environment variable is missing, so unsigned packages are no longer produced.
  • Four-package gate: new tools/verify_four_packages.sh that runs the four assembles, the four unit-test tasks, the i18n check, and the versionCode/versionName plus aapt/apksigner release-signature fingerprint verification of the four APKs in one go; both CI and the tag workflow call the same script.
  • Release safety: tools/create_release.py is now parameter-driven and requires --tag --apk --body together with an explicit --confirm or --dry-run; before publishing it verifies the tag against the APK's actual version and signing-certificate fingerprint, and the old tag/old absolute APK paths were removed.
  • Test coverage: WidgetLayoutCompatibilityTest now covers all widget_*.xml files via glob, explicitly including the desktop digital, Autumn Tree, Coast Ticket, Lime weather and weather clock layouts.
  • Tool portability: tools/check_i18n.py pins the 22 locale directories and reads the row count from the README's real feature table; tools/regression_tint.sh and tools/gen_icon.py no longer contain hard-coded absolute paths or a placeholder SERIAL.
  • Documentation: the README was synced to the current version and gate description, and the power-saving specification was updated to vc555's current state.

vc554 (2026-12-02) — preview toolbar final polish

  • When refreshing weather the status text now reads "Refreshing weather…", and the location text is used only while locating.
  • "Updated at" now uses the actual weather fetch time instead of the location time.
  • Weather errors show only a localized friendly message; the status area keeps a fixed two-line height, so errors do not push the fixed top area taller.
  • The toolbar background, stroke and divider now follow the system theme as well; the buttons gained a press ripple.
  • New pure functions and unit tests covering WCAG contrast and the three-state colors; the obsolete previewAccent() was cleaned up.

vc553 (2026-12-02) — adaptive tinting for toolbar icons

  • The toolbar's back, location and refresh icons now take their colors from theme attributes and follow the system light/dark theme.
  • Icons and text both go through the project's WCAG contrast correction, reaching at least 3:1 against the toolbar background; the pressed state is raised to 4.5:1 and the disabled state is semi-transparent.
  • A ColorStateList carries the default/pressed/disabled states, switching color automatically as the button state changes.

vc552 (2026-12-02) — preview page toolbar sections

  • The three separate buttons at the top of the widget preview page were merged into one integrated toolbar: the back section, get location and refresh weather are separated by thin dividers.
  • The refresh section uses a light teal accent, keeping the three entry points (back, location, refresh) and the original retry logic.

vc551 (2026-12-02) — preview buttons and weather retry

  • The top buttons of the widget preview page were rearranged: a back icon button was added on the left, and the get location / refresh weather buttons were unified into capsule styling.
  • The top button area respects the status bar safe area, so it is not covered by the status bar and left unclickable.
  • When refreshing weather fails it retries automatically twice, showing progress during the retries, and only then shows the failure reason.

vc550 (2026-12-02) — settings page and preview page cleanup

  • The status bar time bold switch now defaults to off.
  • The "status bar time recognition name" settings card, the auto detection, the custom rule configuration and the related broadcasts/wording were removed; built-in clock recognition is unchanged.
  • Widget preview page: the buttons and "updated at" are pinned to the top, the widget name is centered, the "Widget Preview" title is removed, the buttons use the same color as the other settings buttons; the Autumn Tree preview is clipped with 28dp rounded corners like the home-screen widget.

vc549 (2026-12-02) — Coast Ticket added to the widget preview with names labeled

  • The widget preview page gains a Coast Ticket preview slot, rendered from the same source via CoastTicketWidgetProvider.buildViews.
  • All five previews — digital clock, weather clock, Coast Ticket, Lime weather clock, Autumn Tree clock — show their names; the names are used only on the preview page, and the home-screen widget labels are unchanged.

vc548 (2026-12-02) — fixed data validity of the screen-off standby power test

  • The standby continuation segment now schedules only the next phase's alarm, so a repeated alarm no longer accumulates duration again.
  • interactive=false in the phase snapshot now also counts as screen-off evidence, so the test no longer relies only on the SCREEN_OFF broadcast.
  • When tinting is requested to turn off but does not actually take effect, tint_apply_failed is written and the summary is judged invalid directly, avoiding pollution of the A/B data.
  • The power-saving specification, unit tests and four-package gate were updated together; the existing screen-on standby and real-usage mode judgments are unchanged.

vc547 (2026-12-02) — screen-off standby mode added to the power-drain test

  • The power-drain test card on the settings page gains "screen-off standby power test", an A/B comparison across a tinted segment and an untinted segment with the screen off, 240 minutes per segment by default.
  • At the end of a segment one precise alarm switches the phase and a second alarm ends it; SCREEN_OFF / SCREEN_ON snapshots are recorded, and the validity judgment no longer requires the screen to be on but does require screen-off evidence.
  • The existing screen-on standby and real-usage mode judgments are unchanged; the 22-language strings, power-saving specification, unit tests and four-package gate were completed together.

v1.3.2 (stable release vc355 / 2026-11-19) — fixed false update prompt for the modern package

Version relationship: stable versionCode 355 / versionName 1.3.2 (the modern build is 1.3.2-api102). The previous stable release was v1.3.1 (vc354). This version only fixes the update check and contains no feature changes.

Fixes

  • False update prompt: the modern package's version name carries an -api102 suffix, and the old comparison logic parsed the third segment 1-api102 as 0, so an installed 1.3.1 still prompted "New version 1.3.1 found". The comparison now strips the - / + suffix and the v prefix first, and numeric segments take only their leading digits; a new regression test covers 1.3.1 and 1.3.1-api102.

Upgrade notes

  • The v1.3.1 stable release can be installed over directly; the signing certificate is unchanged and the SHA-256 is still 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e.

1.3.2

Stable

11/19/2026, 12:05:03 PM

v1.3.2(正式版 vc355 / 2026-11-19)— 修复 modern 包更新误提示

版本关系:正式版 versionCode 355 / versionName 1.3.2(modern 版为 1.3.2-api102)。上一正式版为 v1.3.1(vc354)。本版只修复更新检查,不含功能变更。

修复

  • 更新误提示:modern 包版本名带 -api102 后缀,旧比对逻辑把第三段 1-api102 解析为 0,导致已安装 1.3.1 仍提示「发现新版本 1.3.1」。现在比较前先剥离 - / + 后缀与 v 前缀,数字段只取开头数字;新增回归测试覆盖 1.3.1 与 1.3.1-api102。

升级注意

  • v1.3.1 正式版可直接覆盖安装;签名证书不变,SHA-256 仍为 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e。

安装包:下方 io.github.kelebao.colorosclockseconds_1.3.2.apk(legacy / Xposed API 82)。modern API 102 包请从源码 Release 下载。

Assets

1

v1.3.1

Stable

11/19/2026, 11:21:51 AM

ClockSeconds v1.3.0 → v1.3.1 更新说明(通俗版)

一句话:这是一次「看着更顺眼、用着更省心」的小升级——时间里的冒号会自动摆正,预览时间上的小相机框对准数字了,更新提醒也更稳。

先看效果

通知栏时间显秒效果(实机截图)

状态栏时间渐变效果(4 种实机示例)

这次到底改了什么

1. 冒号会自动摆正

以前有些字体下,状态栏时间里的两个冒号会偏高、偏低或离数字太近。现在改成按当前字体实际画出来的数字和冒号来算位置和宽度:

  • 状态栏时间:冒号水平宽度和垂直高度都按字形实测,跟着系统字体走。
  • 单色预览时间:和状态栏用同一套算法,你看到的预览基本就是真实效果。
  • 渐变预览时间:也接上了这套算法,不再出现「数字和冒号不在一条线」的情况。

2. 预览时间的小相机框对准了

单色预览里点某一个数字,会有一个四角取景框标出正在编辑的那一位。之前这个框会整体往右偏,点最后一位时甚至框不到数字上。现在:

  • 框的位置按文字实际排版算,不再重复叠加边距。
  • 四角短线的长度收短了一点,看着更轻巧;框本身的高度恢复正常,不会再被压扁。

3. 更新提醒更稳

以前 GitHub API 偶尔限流时,应用内可能收不到更新提醒。现在增加了网页 / Atom 回退:即使 API 暂时不可用,也能继续检查新版本,不会「假装没更新」。

修好了什么

你看到的问题 现在
冒号忽高忽低、和数字不对齐 按当前字体实测字形自动排版,状态栏、单色预览、渐变预览统一
单色预览的相机框偏到数字右边 自动计算字符位置,框准确落在正在编辑的数字上
相机框四角太长、框太矮 四角短线缩短,框高恢复正常
GitHub API 限流后收不到更新提醒 增加网页 / Atom 回退,更新检查更可靠

从 v1.3.0 升级要注意

  1. v1.3.0 正式版用户:可以直接覆盖安装,预设、任务和设置都会保留。
  2. 正在用 vc347–vc353 测试包的用户:如果签名与正式版一致,可以直接覆盖;若安装器提示签名冲突,请先记下预设和任务,卸载测试包后再装正式版。
  3. 安装后到 LSPosed 勾选 com.android.systemui 作用域,然后重启 SystemUI 或重启手机。
  4. 证书没有更换,SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e。

版本信息

English

In short: a polish release — colons are optically aligned from real glyph metrics, the preview viewfinder sits on the digit being edited, and update checks survive GitHub API rate limits.

What changed

  1. Auto-aligned colons — colon width and vertical lift are measured from the current font, so the status-bar clock, solid preview and gradient preview all use the same placement.
  2. Preview viewfinder fixed — the four-corner marker no longer shifts to the right; it lands on the selected digit. The corner arms are shorter and the frame height is back to normal.
  3. More reliable update check — a web/Atom fallback keeps update notifications working when the GitHub API is rate-limited.

Upgrading

  • v1.3.0 users can install over the old build and keep all settings.
  • If you are on a vc347–vc353 test build and the installer reports a signature conflict, back up presets/tasks, uninstall it, then install this release.
  • Enable the com.android.systemui scope in LSPosed and restart SystemUI or reboot.
  • Signing certificate is unchanged: SHA-256 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e.

Version info

  • This release: v1.3.1, versionCode 354.
  • modern (API 102): io.github.kelebao.colorosclockseconds.modern, versionName 1.3.1-api102.
  • legacy (API 82): io.github.kelebao.colorosclockseconds, versionName 1.3.1.
  • Source tag: v1.3.1; module-repo tag: 354-1.3.1.

v1.3.0

Stable

11/19/2026, 6:12:42 AM

ClockSeconds v1.2.0 → v1.3.0 更新说明(通俗版)

一句话:这次把「高级设置」补齐了——颜色更多、调色更顺手、预设更好管,通知栏大时钟也能显示秒,还修好了几个大家反馈过的小毛病。

先看效果

通知栏时间显秒效果(实机截图)

状态栏时间渐变效果(4 种实机示例)

这次到底多了什么

1. 高级设置页更好用了

  • 以前颜色设置散在首页,现在有了独立的「高级设置」页。
  • 页面里分成单色和渐变两个页签,点哪个就切到哪个模式,预览时间也会跟着变。
  • 色号框不再单独占一行,而是放到「正在编辑」那一行的右边:边输边生效,少滚一屏。

2. 预设从「够用」变成「随便存」

  • 深色、浅色两组,每组最多 20 个自定义预设,互不占用。
  • 全新安装会自动带入 深色 4 套 + 浅色 4 套(每组 2 渐变 + 2 单色),都是实机调好的颜色。
  • 旧用户升级后不会被塞新预设,你原来存的不会被覆盖。
  • 长按任意预设可以删除或重命名;保存时会真正写进文件,不再出现「提示成功但没存上」。

3. 渐变方式多了,效果也更好认

现在一共有 11 种渐变形式:

上→下、左→右、象限光晕、颗粒噪点、镀铬金属、斜纹糖果、波浪切割、低多边形、水磨石、二维码、液态水银。

  • 起点色和终点色各有一个圆圈,点一下会有一圈多层涟漪提示当前编辑的是哪一个。
  • 方向胶囊改成单行横滑,标题行有一个会动的 ⇆ 箭头提醒「这一排可以左右滑」。
  • 渐变也支持浅色模式单独一套颜色,系统切到浅色时自动换过去。

4. 颜色会跟着系统深浅色走

新增「系统模式自适应」:打开后,时间颜色会按系统的深色 / 浅色模式自动切换,不用你手动来回改。旁边有 ? 图标,点开就能看到说明。

5. 自定义任务也能换配色

「自定义任务」里的换配色面板也一起升级:单色方案和渐变方案分开显示,勾选状态不会错位,单色方案显示为分段纯色条,不再被误画成渐变。

6. 作者信息补上了多语言

「关于」卡片新增作者行,点一下可以跳转到作者主页;这一行已经同步到全部语言。

7. 通知栏时间显秒效果

  • 下拉通知栏里的大时钟现在也会显示秒(HH:mm:ss),不再只有时和分。
  • 它和状态栏时间共用同一套逐位颜色 / 渐变设置:在「高级设置」里改颜色,通知栏大时钟会同步跟着变。
  • 实机效果见本文第一张图。

8. 其他小改进

  • 顶部页签改成更紧凑的一体胶囊,不再占掉一大块屏幕。
  • 通知栏、浮窗和预览卡的渐变效果保持一致,预览基本就是状态栏实际效果。
  • 旧 API 环境装 legacy 包时,会提示还有 API 102 版本可选;modern 包不会重复提示。

修好了什么

你看到的问题 现在
单色页预览时间突然变得很大,把调色盘挤没了 预览卡高度恢复正常
色号框删空后再也输不进去、也不生效 可以正常清空后重新输入
拖第一条滑杆时,圆圈颜色慢半拍 圆圈、预览和状态栏同步变色
HSV 第 2、3 条滑杆不跟着颜色变 饱和度 / 明度滑杆会随色相重绘
预设重命名、删除提示成功但没保存 真正写盘,重开还在
点高级设置闪退 已修,不再闪退
切换深浅色后,高级页和系统颜色对不上 以系统模式为准,页面和时间颜色一致

从 v1.2.0 升级要注意

  1. v1.2.0 正式版用户:legacy 包可以直接覆盖安装;modern 包是不同包名,覆盖同一包名即可,数据都会保留。
  2. 正在用 vc327–vc345 测试包的用户:测试包和正式版签名不同,不能直接覆盖。请先记下预设和任务,卸载测试包后再装正式版。
  3. 安装后到 LSPosed 勾选 com.android.systemui 作用域,然后重启 SystemUI 或重启手机。
  4. 如果升级后发现颜色怪怪的,先检查是不是从测试包直接覆盖安装;签名不同会导致数据读不到。

版本信息

  • 本版:v1.3.0,versionCode 346。
  • modern(API 102):io.github.kelebao.colorosclockseconds.modern,versionName 1.3.0-api102。
  • legacy(API 82):io.github.kelebao.colorosclockseconds,versionName 1.3.0。
  • 安装包:ClockSeconds-v1.3.0-api102-release.apk、ClockSeconds-v1.3.0-legacy-release.apk。
  • modern / API 102 版本请到源码 Release 下载:https://github.com/kelebao/ClockSeconds/releases/tag/v1.3.0
  • 正式版签名证书未变,SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e。
  • GitHub Release / tag / Xposed 仓库:已发布。

English

In short: This release completes the Advanced settings page — more colors, smoother color editing, easier preset management, seconds in the notification-panel clock, and several bug fixes.

Effects

Notification-panel clock with seconds (real device)

Status-bar clock gradients (4 real-device examples)

What is new

  1. Better Advanced settings — a dedicated page with separate Solid and Gradient tabs. Switching tabs switches the mode and the live preview. The hex field now sits on the same row as the color being edited and applies while you type.
  2. Presets you can really manage — dark and light groups, up to 20 custom presets each. Fresh installs start with 4 dark + 4 light presets; upgrades keep everything you already saved. Long-press a preset to delete or rename it, and changes are actually written to disk.
  3. 11 gradient forms — top→bottom, left→right, quadrant glow, grain, chrome, striped candy, wave cut, low poly, terrazzo, QR code and liquid mercury. The two endpoint circles show a multi-ring ripple when tapped, the direction row scrolls horizontally with a moving ⇆ hint, and gradients can use a separate light-mode palette.
  4. System mode adaptive — when enabled, clock colors follow the system dark / light mode automatically. The ? icon next to the switch explains how to use it.
  5. Task recoloring — the custom-task color picker now separates solid and gradient schemes, keeps checkmarks aligned, and draws solid schemes as segmented color bars instead of gradients.
  6. Author info in every language — the About card now has an author row that opens the author homepage; it is translated in all 21 locales.
  7. Notification-panel clock with seconds — the large clock in the notification shade now shows HH:mm:ss and shares the same per-digit color / gradient settings as the status-bar clock, so colors stay in sync.
  8. Other refinements — compact tab header, consistent gradient preview across the notification shade / floating window / preview card, and no duplicate API-102 hints on the modern build.

Fixes

Problem you saw Now
Huge preview time on the Solid tab hid the color picker Preview card is back to normal height
Empty hex field could not be filled again or applied You can clear and retype it normally
Endpoint circle lagged behind the first slider Circle, preview and status bar update together
HSV sliders 2 and 3 did not follow the color Saturation / value sliders redraw with hue
Preset rename/delete claimed success but did not save Changes are really persisted
Advanced settings crashed on open Fixed
Advanced page colors disagreed with the system after theme switching System mode is the single source of truth

Upgrading from v1.2.0

  1. v1.2.0 users can install the legacy build over the old one. The modern build uses a different package name, so update that same package name to keep data.
  2. If you are on test builds vc327–vc345, do not install over them — the signing certificate differs. Back up presets and tasks, uninstall the test build, then install the release build.
  3. After installing, enable the com.android.systemui scope in LSPosed and restart SystemUI or reboot.
  4. If colors look wrong after upgrading from a test build, check whether you installed over a differently signed build; data cannot be read in that case.

Version info

  • This release: v1.3.0, versionCode 346.
  • modern (API 102): io.github.kelebao.colorosclockseconds.modern, versionName 1.3.0-api102.
  • legacy (API 82): io.github.kelebao.colorosclockseconds, versionName 1.3.0.
  • Packages: ClockSeconds-v1.3.0-api102-release.apk, ClockSeconds-v1.3.0-legacy-release.apk.
  • The modern (API 102) build is available on the source release: https://github.com/kelebao/ClockSeconds/releases/tag/v1.3.0
  • Release certificate is unchanged, SHA-256: 2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e.
  • GitHub Release / tag / Xposed module repository: published.

Assets

1

v1.2.0

Stable

10/30/2026, 12:19:15 PM

v1.2.0(versionCode 249)— 时分秒逐位取色、整串渐变、自定义任务

新增功能

  • 6 位数字独立取色:时十位 / 时个位 / 分十位 / 分个位 / 秒十位 / 秒个位各一个颜色。10 颗预设色点、色相·饱和度·明度三条滑杆、调色盘,也能跟随系统文字色。
  • 点预览时间展开取色:数字放大、字距拉开,直接点某一位即选中该位;选中位有同色下划线与 2 秒一循环的发光呼吸,其余 5 位降到 30% 不透明度。
  • 整串渐变:起点色 → 终点色平滑过渡,6 套渐变预设 + 两端自定义;数字颜色卡分「逐位颜色 | 渐变」两页,停在哪页就是哪种模式(页签即开关)。
  • 自定义任务:每小时 / 每天指定时刻,可提前 N 分钟开始、持续 N 分钟,到点自动显示或隐藏秒数;改系统时间、切时区、休眠唤醒后自动重算窗口,另有每 60 秒兜底重算。
  • 悬浮时间(长按状态栏时钟):与状态栏相同的渐变配色,改色 1 秒内跟随;等宽数字,秒数跳动时色带不再「游走」。
  • 页面标题「时间显秒」改为粉尘点阵:进入时由散点聚拢成字,点一下炸开再聚回。

修复

  • ColorOS 上显秒后颜色被系统「洗」回去:写入文本末尾补零宽空格,破坏系统的 HH:mm(:ss) 模式匹配,颜色得以保留。
  • 「关了秒再打开,秒数不动」:补上接管分支缺失的刷新计时器。
  • 部分机型单击状态栏无反应:修正触摸目标指向。
  • 预览渐变与状态栏渐变有色差(仅个别亮色):两边统一到同一套配色函数,并放宽对亮色的过度压暗。
  • 个别分辨率下预览数字下半被裁:按实测字形高度反推字号上限,并加运行时兜底。
  • ColorOS 15 上预览渐变一个数字一个纯色:预览卡改为自绘渐变(系统绘制路径会对 shader 按字形量化)。
  • 单色模式预览冒号偏下:补冒号光学居中(上移 0.11em)。
  • 打开自定义任务界面时状态栏消失:修正弹窗窗口标志。
  • 空闲时持续空转耗电:自适应节流,判定真正掉色才加速,连续无异常自动停表。

优化与移除

  • 移除「流动」功能(含开关与速度滑杆):只保留静态渐变,系统界面 CPU 回到基线(约 7%,流动时最高约 40%)。
  • 移除「省电自适应」:省电模式下不再暂停走秒,仅熄屏 / 非交互时降频。
  • 移除独立的「小时颜色」卡与独立的「启用渐变」开关,能力并入「数字颜色」两页签。
  • 设置页顶部空白带、任务编辑页「动作」行、卡片按压与音效等细节一并打磨。

说明

  • 最低支持 Android 10 及以上。
  • 已在 ColorOS 15 / 16(Android 15 / 16)真机验证;核心链路只用 AOSP 公开 API,其它厂商理论上同样生效,但尚未逐一真机实测。
  • 安装后需重启系统界面(设置页内有「重启 SystemUI」按钮),或执行 adb shell su -c 'killall com.android.systemui'。
  • 有问题或建议,欢迎到 GitHub 提 Issue。

v1.2.0 (versionCode 249) — per-digit colors, gradients, scheduled tasks

New

  • Independent color for each of the 6 digits (tens/ones of hour, minute and second): 10 preset swatches, hue/saturation/brightness sliders, color picker, or follow the system text color.
  • Tap the preview time to edit colors: digits enlarge and get spaced out; tap a digit to select it. The selected digit gets a matching underline plus a 2-second glow-breathing loop, the other five drop to 30% opacity.
  • Full-string gradient: start color → end color, 6 presets plus custom endpoints. The color card has two tabs, Per-digit | Gradient; whichever tab is active is the active mode (the tab is the switch).
  • Scheduled tasks: hourly or daily at a given time, start N minutes early, run N minutes, and turn seconds on or off automatically. Windows are recomputed after time/timezone changes and on wake, with a 60-second fallback.
  • Floating time (long-press the status bar clock): same gradient as the status bar, following color changes within a second; tabular digits keep the band steady while seconds tick.
  • The page title is now a dust-particle effect: specks gather into the text on entry and scatter when tapped.

Fixes

  • Colors being stripped by the system once seconds are shown (zero-width space appended to defeat the HH:mm(:ss) pattern match).
  • Seconds frozen after turning them off and on again (missing refresh timer in the takeover branch).
  • Single tap on the status bar doing nothing on some devices (touch target).
  • Preview vs. status bar gradient mismatch on a few bright colors (one shared color-adaptation function).
  • The lower half of preview digits being clipped at some resolutions (measured ink height plus a runtime fallback).
  • Preview gradient quantized to one solid color per digit on ColorOS 15 (the preview now draws the gradient itself).
  • Colon sitting too low in per-digit mode (optical centering, 0.11em lift).
  • Status bar disappearing while the task editor was open (window flags).
  • Idle battery drain (adaptive throttling; the ticker stops when nothing is wrong).

Changed / removed

  • Removed the animated "flow" feature: static gradient only; SystemUI CPU back to baseline (~7% of one core vs. up to ~40% while flowing).
  • Removed the power-save adaptation: seconds keep ticking in power-save mode; only screen-off/non-interactive throttles.
  • The standalone hour-color card and the standalone gradient switch were folded into the two tabs.

Notes

  • Requires Android 10 or newer.
  • Verified on real devices running ColorOS 15 / 16 (Android 15 / 16). The core path only uses public AOSP APIs, so other vendors should work in theory but have not been verified one by one.
  • Restart SystemUI after installing (there is a button in the settings page), or run adb shell su -c 'killall com.android.systemui'.
  • Issues and suggestions: please open a GitHub issue.

Assets

1

v1.0.9

Stable

10/24/2026, 12:59:52 PM

v1.0.9(versionCode 10)— 设置页视觉与体验优化

新增功能

  • 预览卡秒刻度盘:预览卡新增一圈刻度盘,颜色采用深绿、深青、深海军蓝、深金等沉稳配色,随时间缓缓流动变化;深色模式下自动切换为更亮的配色,依然清晰可见。

优化

  • 小时颜色色块光晕更亮:色块呼吸时,最亮的一下比之前更亮、更明显。
  • 关闭小时颜色时装饰弧不再消失:右下角三条装饰弧现在始终显示;关闭小时颜色时色块只是变淡,不再有弧线透上来、像是盖在色块上的情况。
  • 读屏(TalkBack)更好用:开启手机读屏后,小时颜色的每个色块会念出颜色名称和色号(例如「红色 #F44336」),选中哪个也会播报;设置页里的按钮也都能被正确识别为可点击。
  • 更省电、更流畅:设置页滚动到预览卡不可见时,自动停止它的动画刷新以省电;同时修复了深色模式下刻度盘有一段颜色几乎看不见的问题。

说明

  • 最低支持 Android 10 及以上。
  • 主要在 ColorOS(一加)上做过真机验证;其他品牌手机走的是通用适配,逻辑上兼容,但没有逐一实测。
  • 有问题或建议,欢迎到 GitHub 提 Issue。

v1.0.9 (versionCode 10) — Settings UI & Experience Polish

New Features

  • Second-tick dial on the preview card: The preview card now shows a ring of tick marks in calm colors (deep green, deep teal, deep navy, deep gold) that slowly shift over time. In dark mode it switches to a brighter palette so it stays clearly visible.

Improvements

  • Brighter glow on hour-color swatches: The breathing glow on the color swatches now peaks brighter and more noticeable.
  • Decorative arcs stay when hour color is off: The three decorative arcs in the corner now always stay visible. When hour color is turned off, the swatches just dim — no more arcs showing through them.
  • Better screen-reader support: With a screen reader, each hour-color swatch now announces its name and hex code (e.g. "红色 #F44336"), and the selected one is announced too. Buttons on the settings page are now properly exposed as actionable.
  • More power-efficient and smoother: The preview animation auto-pauses when scrolled off-screen, saving battery. Also fixed a dark-mode issue where part of the dial was nearly invisible.

Notes

  • Requires Android 10 or later.
  • Primarily verified on ColorOS (OnePlus); other brands use generic adaptation and should work, but aren't individually tested.
  • Issues and suggestions are welcome on GitHub.

Full Changelog: https://assets.lsposed.org/raw/kelebao/ClockSeconds/main/CHANGELOG.md?sign=3c9d0dcdb69003f532a5b5cd6b61bd97&t=6a03bf00

Assets

1

v1.0.8

Stable

10/22/2026, 3:46:53 PM

v1.0.8 (versionCode 9)

安全加固:配置接收器改用 signature 级自定义权限,阻止任意应用广播代写 Settings.Secure/Global。

新增:状态栏时间识别名「自动检测」一键配置;手填识别名二次校验。

优化:自动检测移入设置弹窗作为主操作;移除浮窗日期行;措辞「时钟」→「时间」。


Security: config receiver now requires a signature-level custom permission, blocking arbitrary apps from broadcasting writes into Settings.Secure/Global.

New: one-tap auto-detect for the status bar time view name; confirmation dialog for suspicious manual entries.

Improved: auto-detect moved into the settings dialog as the primary action; floating-window date row removed; wording unified to "time".

Full Changelog: https://assets.lsposed.org/raw/kelebao/ClockSeconds/main/CHANGELOG.md?sign=3c9d0dcdb69003f532a5b5cd6b61bd97&t=6a03bf00

Assets

1

v1.0.7

Stable

10/22/2026, 12:29:21 PM

v1.0.7 (versionCode 8)

体验与健壮性增强:下拉磁贴一键开关、浮窗位置与尺寸记忆、浮窗日期显示、浮窗双击切换显秒、省电模式自适应、时钟识别可配置、模块自保护。

Experience & Robustness: Quick Settings tile, floating window memory, floating window date, double-tap floating window, power-save adaptive, configurable clock ID, self-protection.

Full Changelog: https://assets.lsposed.org/raw/kelebao/ClockSeconds/main/CHANGELOG.md?sign=3c9d0dcdb69003f532a5b5cd6b61bd97&t=6a03bf00

Assets

1

v1.0.6

Stable

10/20/2026, 6:53:44 AM

时钟显秒(Clock Seconds)v1.0.6

修复

  • 小米 / 其它厂商状态栏时间消失(#2):此前「固定占位宽度」逻辑对所有机型无条件执行,在 MiuiClock(wrap_content 且未重写 onMeasure)上会把时间文本裁掉。现在宽度锁定只在 ColorOS 系(OPPO / 一加 / realme)生效,且只设 minWidth、不再设 maxWidth——minWidth 已足够避免显秒开关引起的横向移位,maxWidth 在字体测量有偏差时会裁切文本。其它厂商不再对时钟视图做任何宽度约束。
  • 该问题在 HyperOS 4 / Android 17(小米 12S Ultra)上复现,感谢 @1332514136 提供的高质量定位分析。

说明

  • 仅作用域:com.android.systemui
  • 最低支持:Android 10
  • 签名证书 SHA-256 与 v1.0.5 一致(2850e82a…),可直接覆盖升级

Clock Seconds v1.0.6

Fixed

  • Clock disappearing on Xiaomi / other vendors (#2): the "fixed placeholder width" logic used to run unconditionally on every vendor; on MiuiClock (which is wrap_content and does not override onMeasure) it clipped the clock text away. The width lock is now applied only on ColorOS-family devices (OPPO / OnePlus / realme), and it sets only minWidth, no longer maxWidth — minWidth alone already prevents the horizontal shift when seconds are toggled, while maxWidth clips text whenever font measurement is slightly off. Other vendors get no width constraint at all.
  • Reported on HyperOS 4 / Android 17 (Xiaomi 12S Ultra); thanks to @1332514136 for the excellent root-cause analysis.

Notes

  • Scope only: com.android.systemui
  • Minimum supported: Android 10
  • Same signing certificate SHA-256 as v1.0.5 (2850e82a…), so it installs over the previous version without uninstalling

Assets

1

v1.0.5

Stable

10/18/2026, 3:55:37 PM

时钟显秒(Clock Seconds)v1.0.5

新增

  • 应用内更新检查:打开设置页自动检测新版本(可在设置中关闭),发现新版本时弹窗提醒,一键跳转 Releases 页;也可手动点击「检查更新」
  • 设置页「关于模块」:显示版本号,并提供 GitHub 源码与开放源代码(Xposed API,Apache-2.0)入口
  • 获取更新入口:设置页可直接打开 Releases 页下载最新版

优化

  • 模块介绍精简(21 语言):移除「真机验证 / 兼容厂商 / 最低 Android 10」等冗余描述,只保留功能说明,模块卡片更清爽

说明

  • 仅作用域:com.android.systemui
  • 最低支持:Android 10
  • 签名证书 SHA-256 与 v1.0.4 一致(2850e82a…),可直接覆盖升级,无需卸载

Clock Seconds v1.0.5

New

  • In-app update check: the settings page automatically checks for a new version on open (can be turned off), shows a dialog when one is found and takes you to the Releases page in one tap; there is also a manual "Check for updates" button
  • "About" section in settings: shows the version and provides entries to the GitHub source and open-source licenses (Xposed API, Apache-2.0)
  • "Get update" entry: open the Releases page directly from the settings page

Improved

  • Shorter module description (21 languages): removed the redundant "verified on device / vendor compatibility / minimum Android 10" sentence, keeping only the feature description, so the module card stays clean

Notes

  • Scope only: com.android.systemui
  • Minimum supported: Android 10
  • Same signing certificate SHA-256 as v1.0.4 (2850e82a…), so it installs over the previous version without uninstalling

Assets

1

v1.0.4

Stable

10/18/2026, 2:41:48 AM

时钟显秒(Clock Seconds)v1.0.4

新增

  • 小时十位数标红:如 13 的「1」、05 的「0」,分钟与秒保持系统原色;无论显秒开启或关闭均保持红色
  • 全厂商适配:移除 ColorOS 单系统限制,基于标准 API 与识别规则,尝试支持小米、荣耀、vivo、一加等所有厂商
  • 界面 21 种语言:简体中文、English、繁體中文、日本語、한국어、Türkçe、Русский、Tiếng Việt、ไทย、Deutsch、Español、Français、Українська、Polski、Português (Brasil)、فارسی、العربية、Bahasa Indonesia、Italiano、Ελληνικά、ქართული,自动跟随系统语言

修复

  • 点击时钟不切换:ColorOS 通知面板拦截状态栏区域触摸,改用全局 View.dispatchTouchEvent 边界命中判定,不消费事件,下拉通知栏照常
  • 关显秒时红色失效(TextUtils.equals 不比较 Span 导致标红被跳过)

说明

  • 仅作用域:com.android.systemui
  • 最低支持:Android 10
  • 已在 ColorOS 15(一加 Ace 2)真机验证

Clock Seconds v1.0.4

New

  • Red hour tens digit: e.g. the 1 in 13, the 0 in 05; minutes and seconds keep the system color. The red stays whether seconds are shown or not
  • All-vendor support: removed the ColorOS-only limit; based on standard APIs and recognition rules, trying to support Xiaomi, Honor, vivo, OnePlus and every other vendor
  • 21 UI languages: 简体中文, English, 繁體中文, 日本語, 한국어, Türkçe, Русский, Tiếng Việt, ไทย, Deutsch, Español, Français, Українська, Polski, Português (Brasil), فارسی, العربية, Bahasa Indonesia, Italiano, Ελληνικά, ქართული — automatically follows the system language

Fixed

  • Tapping the clock did not toggle: ColorOS's notification panel intercepts touches in the status bar area; switched to a global View.dispatchTouchEvent bounds hit-test that consumes no events, so pulling down the notification shade still works as usual
  • Red highlight lost when seconds were off (TextUtils.equals does not compare Spans, so the red span was skipped)

Notes

  • Scope only: com.android.systemui
  • Minimum supported: Android 10
  • Verified on a real device running ColorOS 15 (OnePlus Ace 2)

Assets

1

4-1.0.3

Stable

10/16/2026, 10:45:12 AM

ColorOS 时钟显秒 v1.0.3

让状态栏(左上角)时钟显示秒,并支持单击时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。

本版重要变更(重写,修复崩溃)

  • 彻底重写,改用 legacy Xposed API(de.robv.android.xposed:api:82),只 hook com.android.systemui 的时钟 TextView(setText 之后 / onDraw 之前覆写文本),不修改系统内部状态,因此启用后不再触发 LSPosed 安全模式(v1.0.1 / v1.0.2 因 hook 私有类导致 SystemUI 崩溃的根因已消除)。
  • 仅作用域 系统界面(com.android.systemui),不再 hook 设置进程。
  • 点击 / 长按时钟切换显秒,状态存 Settings.Secure,默认开启。
  • 新增应用图标(状态栏左侧的模块图标为蓝发头像 + 蓝色背景)。

✅ 已在 ColorOS 15 真机实测:状态栏显秒、单击切换、下拉通知栏均正常,且 LSPosed 不会进入安全模式。

安装

  1. 安装 io.github.kelebao.colorosclockseconds_1.0.3.apk
  2. 在 LSPosed 中启用本模块
  3. 作用域勾选:com.android.systemui
  4. 重启 SystemUI 或重启设备

配置页从 LSPosed 管理器打开,不会在桌面生成图标。

校验

APK 签名证书 SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e

源码仓库:https://github.com/kelebao/ColorOS15ClockSeconds

Assets

1

v1.0.2

Stable

10/16/2026, 7:18:07 AM

ColorOS 时钟显秒 v1.0.2(止血版)

让状态栏(左上角)时钟显示秒,并支持单击/长按时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。

本版修复

  • 修复 ColorOS 15 上启用模块即触发 LSPosed 安全模式(SystemUI 崩溃)的问题
  • 原生去时限路径仅在 ColorOS 17+ 启用;15/16 强制走自渲染路径
  • 全局异常兜底 + 拦截器回退,确保模块不会导致系统崩溃

安装

  1. 安装 APK
  2. 在 LSPosed 启用本模块
  3. 作用域勾选 com.android.systemui 与 com.android.settings
  4. 重启这两个进程或重启设备

配置页从 LSPosed 管理器打开,不会在桌面生成图标。

校验

APK 签名证书 SHA-256:
2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e

源码仓库:https://github.com/kelebao/ColorOS15ClockSeconds

v1.0.1

Stable

10/15/2026, 3:03:32 PM

ColorOS 时钟显秒 v1.0.1

让状态栏(左上角)时钟显示秒,并支持单击时钟切换显秒开关。适配 ColorOS 15 及以上(OPPO / 一加 / 真我)。

本版变更

  • 包名变更为 io.github.kelebao.colorosclockseconds(满足 LSPosed 模块仓库收录要求)
  • 已在 ColorOS 15 真机验证可用:状态栏显秒、单击切换、下拉通知栏均正常

安装

  1. 安装 APK
  2. 在 LSPosed 中启用本模块
  3. 作用域勾选:com.android.systemui 与 com.android.settings
  4. 重启这两个进程或重启设备

配置页从 LSPosed 管理器打开,不会在桌面生成图标。

注意

  • ⚠️ 本版包名与 v1.0.0 不同,升级前请先卸载旧版本

校验

APK 签名证书 SHA-256:2850e82a5c4e001eb19e1d4d340bfaca049ebea1abc4f1940c02c8065137b82e

源码仓库:https://github.com/kelebao/ColorOS15ClockSeconds