getDeviceHardwareByModel

open suspend override fun getDeviceHardwareByModel(hwModel: Int, target: String?, forceRefresh: Boolean): Result<DeviceHardware?>(source)

Retrieves device hardware information by its model ID and optional target string.

Pipeline:

  1. A lookup already resolved since the last catalog refresh is answered from memory.

  2. If the local DB is empty, seed it from the bundled JSON asset (instant baseline).

  3. If the cached entry is stale or missing, refresh from the remote API with a timeout.

  4. Return the best available data from the DB (never blocks longer than NETWORK_REFRESH_TIMEOUT_MS).