Skip to content

Lenovo Smart Clock 2 Tools v2.19.0

Choose a tag to compare

@SychPL SychPL released this 21 Sep 07:45
· 5 commits to main since this release

A bridge other apps can use

Another app on this clock can now ask the tools for a short list of privileged operations instead of asking for
root: switch ADB over Wi-Fi, grant itself a permission it already declares, become the home app, take the
microphone back from the factory assistant, install its own update. It never receives root, a shell, or any way
to run a command of its own choosing - the list is closed and lives in the tools.

Every caller is identified by its signing certificate and named on screen before anything happens. An app that
comes back with a different certificate starts from zero, consent and all. Each request carries an id, so a
repeat of the same request replays its result instead of running twice, and an operation interrupted by a
reboot is resolved rather than left hanging.

The contract is docs/BRIDGE-API.md.

A way out of the tools

The Smart Clock 2 has no navigation bar, so an app without its own exit traps whoever opens it. The tools now
draw an exit button in the header and honour the back key.

Verified, and not verified

Built and exercised on a Lenovo Smart Clock 2 (LenovoCD-24502F, firmware 1.2.2.627): the trust and consent
screens, the state snapshot, write_settings, grant_permission, root_adb_on, the request registry, and the
recovery of an interrupted operation.

Not yet exercised on hardware: set_home, adb_off, install_apk, mic_release and mic_restore. They are
covered by unit tests and by the same code paths as the operations above, but nobody has run them on a real
clock. Treat them as untested until you do.

Before you enable ADB over Wi-Fi

ADB over Wi-Fi accepts anyone on your network who can reach port 5555. On a home LAN that means every device
in the house, including ones you do not control. Turn it off when you are done.