r/ReverseEngineering • • 14d ago

Mapping a cheap GPS smartwatch's BLE protocol from its Android apps (WatchLink + 4 versions of GloryFitPro), then rebuilding the apps as a local web app

https://github.com/kenyob/HT36-Smart-Watch
7 Upvotes

1 comment sorted by

3

u/kenyob 14d ago

The "HT36" watch uses an Actions ATS3085-family SoC (firmware AT364D). Its vendor app syncs to the vendor's cloud. I wanted direct control over Web Bluetooth, with the data kept on my own machine.

- Starting point: passive BLE scan, read-only GATT discovery, and tcsenpai/ht36 (MIT), which had mapped the frame envelope.

- WatchLink v1.15 (community Android app), decompiled with jadx. Its developers labelled every command frame.

- GloryFitPro 1.8.6.2 → 1.9.2, static analysis only. This gave the full SDK: per-minute history and sleep sync, workout and GPS-track download, face install and delete, caller ID, music upload, and an Opus-over-BLE stream from the watch mic. The watch commands are byte-identical across all four versions. Feature flags come from two plain GATT reads, not a query, which is why the self-describe commands return nothing.

- Envelope: 01 <grp> <AA|AB|AC> <op> … on 34F1/34F2, with sectioned payloads and an XOR trailer.

The web app is standard-library Python plus one HTML file: 18 watch-app pages, a raw frame log, SQLite health logging and GPS tracks. A few controls are proven on the wrist; about 70 are mapped and waiting for testers. It never touches the OTA service, and no vendor code is in the repo.