Skip to content

Watch vendors

github-actions[bot] edited this page Nov 29, 2026 · 1 revision

The watch app is one build for every Wear OS watch. Watches differ in two ways, and the app keeps the two apart.

  1. What only one vendor has: a private service, a sensor type of its own, a settings key, a permission. That code lives in the vendor's package, wear/.../wear/vendor/<name>, and hands back contracts of wear/.../wear/sources. No recorder, screen or pure-core class names a vendor.
  2. How a standard sensor behaves on one watch: no buffer, no waking variant, a hub that lets a still arm sleep. That is decided from the sensor's own facts, read off the sensor list, never from Build.MANUFACTURER or a model name. A brand appears only in a comment, a test fixture or this page, as the watch a behaviour was seen on.

WearPackageDirectionTest and WearVendorNamesRatchetTest hold both rules (architecture.md, "The watch's pure core").

How a sensor's facts are read

AndroidSensorPort reads the watch's sensor list once into WatchHardware (:wear:recording-core): per sensor its place in the list, its string type, whether it wakes the processor, its buffer sizes and its reporting mode. BatchingProfile.decide(hardware) turns that into how the batched recorders register: the one report latency they share and the variant each takes. Today there is one profile, hub-40s, tuned on the Galaxy hub; the heart rate takes the waking variant where the watch has one, the accelerometer, the barometer and the step counter the non-waking ones, and the step counter's waking variant is kept for while the heart rate's batches do not wake the watch. The recorders register through the port and hold no latency of their own. A second profile needs a watch to tune it on; what would change for a watch that is not a Galaxy is listed under "What is not known yet".

How the app takes a vendor's sources

Each vendor's package has one entry (SamsungSources, GoogleSources) that answers, on whatever watch the app runs, what of that vendor's the watch has, as a VendorSources: every part a contract of sources, and a part the watch lacks null or empty. vendor/Vendors.kt asks every vendor and joins the answers; it is the only file that imports a vendor's package, and its order is the precedence where two offer the same part (a sensor of the watch itself before a platform's tracker). WearGraph takes the joined VendorSources and names no vendor.

Part of VendorSources What it is Who reads it
heartRate sources of the heart rate beside the sensor, by the MeasurementSource the wearer chooses each as HeartRateRecorder
hrv sources of an HRV window, a night instance and a spot one each; the one under RAW_SENSOR is the default NightHrvRecorder, a spot HRV
skin the night's skin temperature, and how long a reading of an on-change source stands SkinTemperatureRecorder
nightSpo2, spotSpo2 SpO2 at night and on the spot Spo2Recorder, SpotMeasurements
platformSpots the spot measurements a platform lists itself (ECG, body composition) SpotMeasurements, the measure list
bedtime the vendor's own bedtime switch BedtimeMonitor
choices what the recording settings offer, with labels and the platform's refusal the recording settings
statusNotes, debugCapture, facts lines for the status screen, a research capture, what the device report says the status screen, the debug report

The names a wearer's choice is stored and sent under (MeasurementSource.SAMSUNG_PLATFORM, SAMSUNG_PPG, the link's samsung and skin_sensor tokens) stay as they are: they are the ids of real vendor sources, and a stored or sent name is never renamed.

Adding a vendor

  1. A package vendor/<name> with one entry that builds a VendorSources. It imports from the watch app only sources, DebugProtocol, SensorTime, the resources and the pure core's types (WearPackageDirectionTest.VendorMayUse).
  2. A line in vendor/Vendors.kt, placed by precedence.
  3. A new permission goes into wear/src/main/AndroidManifest.xml (a health permission also into HealthDataCatalog, see AGENTS.md), and its name stays in the vendor's package.
  4. A section below, and a test of what the entry offers.

A vendor whose watch only behaves differently on the standard sensors needs no package: its facts decide.

Samsung (Galaxy Watch)

Package vendor/samsung. Checked on a Galaxy Watch7 and a Galaxy Watch8.

What How it is reached Grant Used for
Samsung Health Platform, com.samsung.android.service.health the clean-room Binder client (SamsungHealthPlatform, one feed, SamsungHeartRateFeed); opt-in, needs the platform's Developer Mode (samsung-health-and-privacy.md) the heart rate's; the skin temperature and SpO2 health permissions; Samsung's READ_ADDITIONAL_HEALTH_DATA for the green PPG, the ECG and the body composition (Android 16, BODY_SENSORS before) a second heart rate source, HRV from its intervals or its green PPG, SpO2 at night and on the spot, skin temperature at night, ECG, body composition
Raw PPG sensor, com.samsung.sensor.hr_raw found by its string type (PpgWindowSource) the heart rate's the default night HRV windows and breathing rate, a spot HRV; PpgRawLogger, a research capture for debuggable builds
Bedtime mode, Settings.Global setting_bedtime_mode_running_state SamsungBedtimeSetting none the sleep hold and the night's full-rate heart rate
Diagnostics consent, Settings.System setting_diagnostic_data_agree SamsungDiagnostics none a line on the status screen

The platform's sources exist only where its service resolves from the system image. Its trackers are listed only when the wearer opens the measure list. A platform source that refuses, fails or stays silent hands over to the sensor or the default until a setting changes.

Standard sensors, as seen: the accelerometer cannot wake the processor and buffers 300 events, 48 seconds at the 6.25 Hz it delivers; the hub lets a still arm sleep for minutes; the batched heart rate sensor is the waking one (600 events on the Watch7). The 40-second report latency every recorder shares is tuned on this hub.

Google (Pixel Watch)

Package vendor/google. Checked on a Pixel Watch 5 (2026-11-28).

What How it is reached Grant Used for
Skin temperature sensor, com.google.sensor.skin_temperature found by its string type (SensorSkinTemperatureSource) the skin temperature health permission skin temperature at night

The sensor reports only a change, in steps of 0.2 °C, and can stay silent for 50 minutes: its last reading stands for up to 90 (SkinSource.holdLastMillis). It comes before the Samsung platform's tracker in Vendors.kt. The watch has no raw PPG, so no night HRV; bedtime mode is read from Do Not Disturb.

OnePlus (Watch 2R)

No package: nothing of the vendor's is reachable. Its own tracker (com.heytap.wearable.mculinkservice) is behind a signature|privileged permission, and Health Services, whose implementation there is OnePlus's own, is not a dependency. Reported by a wearer (issue #104); not on the test rig.

Standard sensors, as reported: the step counter and the step detector have no buffer and no waking variant, so a reading arrives only when the processor wakes for something else, minutes to hours apart; the accelerometer and the heart rate sensor buffer 40960 events. A step difference over more than two minutes is placed on the minutes that moved (StepMinuteCounter).

Other watches

A TicWatch Pro 5 was checked for the tiles only. A watch of a vendor not named here gets the standard sensors and nothing else, and its vendor entries offer nothing.

Seeing a watch the app does not know

The watch says what it is built of under Settings › This watch, and answers the phone's GET_HW with the same (WearLinkHardware): its maker, model and Android version, the app's version, every sensor in the watch's order with its buffer sizes and waking flag, what the recorders hold registered, and each vendor's facts. It carries no reading and nothing that names the wearer or the one watch. A report sent with an issue is the watch's section on this page, and its HW lines are a test fixture as they are.

How a watch is tested without the watch

The batched recorders reach the sensors through SensorPort, so a test gives one its own (FakeSensorPort, in the watch app's tests): the sensors a watch lists, as WatchHardware, every registration kept, and an event delivered on the thread the recorder registered with. StepRecorderTest drives the step recorder that way on its own thread and over a real store: which variant of the counter it takes and when, readings that come at once, and a reading that comes late, as from a counter with no buffer, which waits for the sleep minutes and lands on the minutes that moved, also over a restart. SensorWakeSyncTest holds who is asked for a buffer at a wake-up and what ends a cycle; BatchedRecordersTest holds how the heart rate, the barometer and the accelerometer register on a Galaxy Watch's sensors.

The sensors in those tests are the facts written on this page, not a watch's whole list. A watch's own list comes with its hardware report: its HW lines read back as they are (WearLinkHardware.parse), and a fixture per watch is those lines in a file, once a report of each watch is in hand. The sleep minutes' handling of the accelerometer's readings is tested in its pure core (MinuteAggregatorTest), not yet through the recorder: its minutes close by the wall clock, which a test of the recorder cannot move.

What is not known yet

  • Sensor lists of any watch but the Watch7 and Watch8: buffer sizes and waking variants on a Pixel Watch, on a Galaxy Watch 5 or 6.
  • Whether the 40-second latency suits a watch without the Samsung hub (refactor-backlog.md, 4.11).
  • Whether a watch exists whose heart rate sensor has only a non-waking variant; there "dense" heart rate would not wake the processor, which the step counter's variant and the sleep hold rely on.

Generated from docs/engineering/watch-vendors.md. Edit it there; changes made here are overwritten.

Clone this wiki locally