How to make a watch with seconds on Xiaomi: from widgets to ADB

Xiaomi smartphone owners often face a limitation of the MIUI or HyperOS interface: the system clock on the lock screen and status bar display only hours and minutes. For many users, especially those who are used to accurate timing or use the device for professional tasks, the lack of a second hand or a digital second indicator becomes an annoying factor. The company’s standard policy is minimalist interface, but modern technology allows you to circumvent these restrictions without losing warranty.

There are several proven ways to solve this problem, ranging from simple theme settings to more complex manipulation of system files. Data security when using third-party methods remains a priority, so we will only look at proven ways. In this article, we will detail how to make a watch with seconds on the shawmi using built-in system capabilities and specialized tools.

Before you start taking action, you need to understand which interface element you want to modify: Are you interested in a locked screen clock, a desktop widget or time in the status bar? The answer to this question will determine the choice of method. Android 12, 13 and 14 have different levels of protection for system settings, which also affects the availability of certain features.

Use of themes and third-party launchers

The easiest and safest way to change the display of time is to set up a specialized theme. The MIUI theme store contains thousands of options where designers have already sewn seconds into the dial. You don't have to be a programmer, you just need to find the right style. However, it is worth considering that some themes may not work correctly with Always-On Display or consume more power.

To start, open the Themes app on your device. In the search box, type in queries like "Seconds," "Digital Clock" or "Second Time." Once you install the theme, the system will suggest you apply all the changes or select specific components. Select only the lock screen so that you don't completely change the interface.

⚠️ Note: When installing themes from unverified sources or third-party theme stores, there is a risk of getting malware or disrupting the stability of the system.

Alternatively, you can install a third-party launcher like Nova Launcher or Microsoft Launcher, which completely replaces the desktop and provides highly customized watch widgets, and you can choose the font, color and display format by including seconds in the widget settings.

  • πŸ” Open a theme store and search for "Seconds".
  • πŸ“₯ Download a topic with a high rating and number of downloads.
  • βš™οΈ Apply the theme by selecting the option "Block screen".
  • πŸ”„ Restart the device to apply the changes correctly.

If standard themes don’t meet your aesthetic requirements, you can use Lock Screen & Notifications, which allows you to create your own lock screens with any set of widgets, including the exact time with a stopwatch, which gives you maximum flexibility, but requires you to configure access rights to work on top of other windows.

Set up the clock widgets on the desktop

Often, users don't need seconds in the system bar, but rather see them on the home screen, in which case standard MIUI widgets may be limited, but there are workarounds, and widgets are a great way to personalize the space without deep interference.

Press and hold your finger on an empty desktop area, then select Widgets. Search the "Clock" category in the list. The standard set usually only offers digital or analog watches with no seconds. However, if you have a widget package from Google installed, the functionality can be wider.

πŸ“Š What type of watch do you prefer on screen?
Digital with seconds
Analog (with arrows)
Just minutes.
Minimalistic.

For more advanced users, it is recommended to install the Google Clock app or specialized widgets like Digital Clock Widget, which provide detailed time formatting settings, you can choose the 24-hour format, add seconds and change the transparency of the background.

β˜‘οΈ Setting up the time widget

Done: 0 / 1

Once you have installed the widget, click on it to open the configuration menu. Find the Show Seconds switch and activate it. Some widgets also allow you to adjust synchronization with atomic time for maximum accuracy, which is critical for traders or pilots.

Activation of seconds through the Engineering Menu and ADB

For those who want to see seconds in the status bar, standard settings are not enough, requiring USB debugging and a computer, a method that is suitable for confident users who understand the risks of working with system flags.

First, activate the developer mode. Go to Settings β†’ About Phone and quickly click on the MIUI build number seven times. After the message "You became a developer" appears, go back to the settings menu and find the option "Additional β†’ For developers".

Turn on USB Debugging. Connect your smartphone to a computer with the ADB platform tool installed. Open the command line in the ADB folder and enter a command to check the connection:

adb devices

If the device appears in the list, you can move on to modify the system time settings. The command to include seconds in the status bar is as follows. Note that on different versions of Android, the path to setup may be different.

adb shell settings put secure clock_seconds 1

⚠️ Note: Making changes through ADB If you see artifacts or lags after the reboot, return the parameter to 0 or reset the settings.

Some versions of MIUI block this option from changing without root rights, in which case the command will return the error or simply not apply. This is a security limitation of Android 13/14, which is difficult to get around without unlocking the bootloader.

Modification of system files (Root Requires)

The most radical and effective method is direct editing of the framework's system files, which guarantees 100% results, but requires the rights of the superuser (Root) and the unlocked bootloader, and the warranty on the device is canceled.

You're gonna need a file. framework-res.apk or miui-framework.apk, sectional /system/framework/. It needs to be extracted, decompiled with the APKTool tool, and found the resource that controls the time format. XML-line-file.

File for editingLocation.Risk of errorThe need for a Root
framework-res.apk/system/framework/High-pitchedYes.
miui-framework.apk/system/framework/Medium.Yes.
Settings.apk/system/priv-app/Settings/Low.Yes.
Keyguard.apk/system/priv-app/Keyguard/Medium.Yes.

Inside resources, find a time-format bar that usually looks like h:mm or HH:mm. Change it to h:mm:ss or HH:mm:ss. Once compiled back to APK, the file must be replaced in the system by setting the correct access rights (usually 644).

What to do if the phone goes into a bootloop?
If the phone stopped booting after replacing files, you need to go to Recovery mode (Loudness up + Power) and make Wipe Data or restore the original system backup via TWRP.

It is important to make a full backup before you start work. Use the TWRP app or the built-in Xiaomi backup. An error in XML syntax or access rights can lead to an infinite restart (bootloop). Recovery will take time, so backup data is a must before modification.

Compatibility issues on Android 13 and 14

With the release of new versions of the operating system, Google is tightening security policies. On Android 13 and Android 14, access to system time settings through ADB is often blocked at the SELinux level, which means that even with developer rights, the team may not work.

Users note that on the HyperOS Android 14 shells, standard methods through ADB stopped working without unlocking the bootloader.The system checks the integrity of the system partition, and any attempts to change settings.db can be rejected.

  • 🚫 Team team. ADB Returns to Security Exception".
  • πŸ”’ Time settings are hidden in the developer menu.
  • βš™οΈ Requires unlocking the bootloader for deep modification.
  • πŸ“‰ Reduced safety when using old methods.

In such cases, it remains to rely on third-party screen-blocking applications that overlap the standard lockscreen, which have their own time-reflection mechanisms and are independent of the system limitations of MIUI. Examples include the Niagara Launcher application with a time widget or specialized lockscreens.

πŸ’‘

If ADB can’t see the device, install the Xiaomi USB Driver and use the original cable. Often the problem lies in the cable, which only supports charging.

Optimizing the battery when displaying seconds

Constantly updating the number of seconds on the screen, especially if it is AMOLED-The screen is the most energy-intensive component of a smartphone, and the refresh rate of the image affects autonomy.

If you have turned on the seconds on the lock screen, consider using a black background for the screen. AMOLED-The black pixels on these screens don't consume energy, which will help offset the cost of updating the timer frequently.

⚠️ Attention: Using bright widgets with seconds on the always-on screen can reduce the time of the smartphone on the screen 10-15% Watch the temperature of the device.

It is also worth turning off time synchronization over the network if you use atomic time widgets to avoid constant background requests to the server.The local time of the processor is accurate enough for household needs and less expensive for battery.

πŸ’‘

Balance between functionality and autonomy: The inclusion of seconds is only justified if you actually use this information, otherwise it is just a beautiful, but energy-consuming element of the interface.

In conclusion, the choice of method depends on your technical background and the version of MIUI. For most users, the best solution will be themes or widgets that do not require root rights. Advanced users can experiment with ADB, but always keep in mind the risks.

Is it safe to install themes from third-party sources?
Installing themes from unofficial sources carries risks: Theme files may contain malicious code or be corrupted. It is recommended to use only the official Xiaomi theme store or proven forums like 4PDA, where files are moderated by the community.
Will the time adjustment reset after the firmware update?
Yes, any system update (OTA) will restore the original system files. If you modified framework-res.apk or settings through ADB, after the update, all changes will disappear and the procedure will have to be repeated again.
Can you do this without a computer?
Without a computer, you can only use methods with themes and widgets. ADB or APK-Computer files are mandatory, as mobile versions of terminals have limited functionality for such operations.
Why the new Xiaomi does not work with the adb shell settings put secure clock_seconds 1?
Starting with Android 12/13, Google has restricted access to this setting for regular applications and ADB-sessions without special permissions. MIUI/HyperOS This parameter is often ignored by the system without deep firmware modification.