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

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

让状态栏时间显示秒,单击即切换,小时十位数常驻标红。
长按弹出毛玻璃浮窗实时预览网络时间(可拖动、可拉伸);不依赖任何厂商私有类,已在 ColorOS 15 真机验证,同时覆盖小米、一加、荣耀、vivo、三星 等主流厂商。

version android lsposed coloros stars license


功能

功能 说明
状态栏显秒 状态栏时间显示到秒(HH:mm:ss / h:mm:ss a,跟随系统 12/24 小时制与本地时区)
点击切换 单击状态栏时间即切换显秒开/关;也可在设置页改为双击(长按专用于浮窗预览)
长按预览浮窗 长按状态栏时间弹出毛玻璃半透明浮窗,实时显示网络时间;可整体拖动、按左下角 ◣ 拉伸缩放、点一下时间浮现按钮,关闭(右上 ✕)/ 拉伸(左下 ◣)随手下发;字号随窗口大小自适应
小时颜色 小时「十位数」可自定义颜色(8 色板)或关闭恢复系统原色;单位数小时(如 9:45)无十位不标红。所有厂商机型均生效
网络时间对比 设置页实时对比网络标准时间与本地时间偏差;偏差较大时点同步,即可打开系统「自动设置时间」向网络校准
免 adb 授权 所有设置写入优先走 Settings.Secure,无 WRITE_SECURE_SETTINGS 权限时自动改走广播由 SystemUI 代写——无需 adb 授权即可正常使用全部功能
界面语言 应用内界面已适配 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 / 17(OPPO / 一加 / 真我)已真机验证;小米 / 荣耀 / 红米 / 三星 等有 root 的其它厂商同步生效。不依赖任何厂商私有类,避免触发 LSPosed 安全模式。最低支持 Android 10
下拉磁贴 下拉通知栏添加「时间显秒」磁贴,一键开关显秒(无需打开设置页)
浮窗增强 浮窗位置与尺寸自动记忆(下次长按按记忆恢复);双击浮窗时间也可切换显秒
省电自适应 系统开启省电模式时自动暂停秒级刷新(状态栏秒数冻结),退出省电立即恢复,零额外耗电
时间识别名 其它厂商机型若未能自动识别状态栏时间,可在设置页点「自动检测」一键完成;也可手动填写资源名(如 clock)

安装

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

需要 root(LSPosed 框架)。写入 Settings.Secure 需授予 WRITE_SECURE_SETTINGS:

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

未授予时仍可点击状态栏时间完成切换(该动作运行在 SystemUI 进程内,天然具备权限)。

使用

  • 单击状态栏时间:切换显秒开/关(默认手势);也可在配置页改为双击。
  • 长按状态栏时间:弹出毛玻璃浮窗显示网络时间——拖动时间移动位置,点一下时间浮现关闭(右上)/ 拉伸(左下)按钮,拉伸可改变浮窗大小(字号自适应)。
  • 切换通过全局触摸命中判定实现,不会与“下拉通知栏”冲突——纯点击切换、下拉滑动照常拉出通知栏。
  • 配置页可查看当前状态、切换手势、自定义小时颜色、对比网络时间并一键同步系统对时。

效果预览

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

工作原理

模块只 hook SystemUI 一个进程,采用稳妥的 legacy Xposed 范式, 完全不触碰任何厂商私有类,因此不会破坏系统内部状态、不会触发 LSPosed 安全模式:

  • 显秒:hook 稳定的 TextView.setText(after)缓存系统在状态栏时间上给出的原始文本, 再 hook TextView.onDraw(before)在系统已设好文本之后覆写显示 原文本:ss, 并用 1 秒级 Handler 驱动刷新。追加的秒保持系统时间自身的文字色(实测为白色 #ccffffff)。 同时把「小时十位数」标红(给该字符追加一段红色 ForegroundColorSpan),无论显秒开启或关闭均保持红色; 分钟与秒不标红;单位数小时无十位则不标红。
  • 切换:ColorOS 的通知面板会拦截状态栏区域的触摸,时间自身的 OnTouchListener 收不到事件。 因此模块改为 hook 系统全局的 View.dispatchTouchEvent,仅当按下点落在已识别时间的屏幕边界内、 且几乎无位移(点击)或 350ms 内第二次点击(双击)时才翻转 Settings.Secure 开关;模块不消费 任何触摸事件,下拉通知栏照常。

省电说明

  • 开启显秒时:模块需要 1 秒级定时器驱动刷新(这是“显示秒”的固有开销,约 60 次/分钟重绘时间)。
  • 关闭显秒时:模块会立即停止该定时器(stopTicker),不再有任何每秒唤醒,也不再有跨进程读取, 回到系统原本的“每分钟刷新一次”节奏,因此关闭显秒确实更省电。
  • 状态采用进程内缓存(sSecondsEnabled),定时器不会每秒去读 Settings.Secure(避免每秒一次 IPC)。
  • 模块不构造任何时间格式化器,直接复用系统给出的原文本并仅追加 :ss,因此没有格式化器开销。
  • 定时器持有的是视图的弱引用,且仅在视图 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/ 外的所有文件都要保留(源码部分仅约 140 KB):

类别 文件 说明
构建脚本 settings.gradle.kts、build.gradle.kts、app/build.gradle.kts、gradle.properties 版本、依赖、编译参数
Gradle Wrapper gradlew、gradlew.bat、gradle/wrapper/* 锁定 Gradle 8.14.5
源码 app/src/main/java/**(3 个 .java) 模块逻辑主体
资源 app/src/main/res/** 字符串(默认中文 + 21 种语言 values-xx)、主题
Xposed 元数据 app/src/main/resources/META-INF/xposed/* 入口类、scope、API 版本
清单 app/src/main/AndroidManifest.xml 权限、Activity
文档 README*.md 21 种语言的说明文档
CI .github/workflows/release.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
  • 若在非 ColorOS 机型上不生效:装 debug 版看日志里的 candidate: / CONFIG CLOCK: 输出, 确认该机型状态栏时间的资源名与类名是否在识别规则内,若不在则补一条规则即可。

反馈与建议

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

License

MIT © kelebao

Releases

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.

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