generated from Grigo/AndroidTemplate
Initial commit: LoraTester Android + server
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
"""Device ID rules — must match the Android app (SettingsRepository)."""
|
||||
|
||||
import re
|
||||
|
||||
# android- + 8 hex chars from UUID
|
||||
ANDROID_DEVICE_ID = re.compile(r"^android-[0-9a-f]{8}$", re.IGNORECASE)
|
||||
|
||||
|
||||
def is_valid_device_id(device_id: str) -> bool:
|
||||
return bool(ANDROID_DEVICE_ID.match((device_id or "").strip()))
|
||||
Reference in New Issue
Block a user