RU

HWID and device limit

How devices are counted.

HWID is a stable per-device string. On Android it is the first 16 bytes of a SHA-256 hash of the system identifier, in hex. It contains no name, phone number or other personal data.

What the app sends

On every subscription download: x-hwid, x-device-os, x-ver-os, x-device-model.

User-Agent

Format: nya/version/OS/number, for example nya/2.8.5/Android/722837263881. Panel rules matching ^nya/ keep working.

Reacting to the limit

  1. Return x-hwid-max-devices-reached: true. The app shows “Device limit reached”.
  2. Or return a placeholder: a server with address 0.0.0.0 and a clear name, for example “Subscription expired, renew in @bot”. The app shows it as a row in the server list. Tapping it opens support-url.

HWID is always sent

Since 1.9.1 users cannot turn off or change the HWID, User-Agent and TLS fingerprint: wrong values broke connections and device counting. subscription-always-hwid-enable is kept for compatibility.

The device number in app statistics is a different hash. It does not match the HWID and is not shared with providers.