diff --git a/uarite/clients.py b/uarite/clients.py index fa43ead..3ecc83f 100644 --- a/uarite/clients.py +++ b/uarite/clients.py @@ -58,7 +58,11 @@ SAMSUNG = { "SM-S928": "Galaxy S24 Ultra", "SM-S931": "Galaxy S25", "SM-S936": "Galaxy S25+", + "SM-S937": "Galaxy S25 Edge", "SM-S938": "Galaxy S25 Ultra", + "SM-S942": "Galaxy S26", + "SM-S946": "Galaxy S26+", + "SM-S948": "Galaxy S26 Ultra", # Galaxy Note "SM-N930": "Galaxy Note 7", "SM-N950": "Galaxy Note 8", @@ -69,20 +73,22 @@ SAMSUNG = { "SM-N981": "Galaxy Note 20", "SM-N985": "Galaxy Note 20 Ultra", "SM-N986": "Galaxy Note 20 Ultra", - # Galaxy Z foldables + # Galaxy Z foldables (Samsung dropped the space from Fold2/Flip3 on) "SM-F700": "Galaxy Z Flip", "SM-F707": "Galaxy Z Flip 5G", - "SM-F711": "Galaxy Z Flip 3", - "SM-F721": "Galaxy Z Flip 4", - "SM-F731": "Galaxy Z Flip 5", - "SM-F741": "Galaxy Z Flip 6", + "SM-F711": "Galaxy Z Flip3", + "SM-F721": "Galaxy Z Flip4", + "SM-F731": "Galaxy Z Flip5", + "SM-F741": "Galaxy Z Flip6", + "SM-F766": "Galaxy Z Flip7", "SM-F900": "Galaxy Fold", "SM-F907": "Galaxy Fold 5G", - "SM-F916": "Galaxy Z Fold 2", - "SM-F926": "Galaxy Z Fold 3", - "SM-F936": "Galaxy Z Fold 4", - "SM-F946": "Galaxy Z Fold 5", - "SM-F956": "Galaxy Z Fold 6", + "SM-F916": "Galaxy Z Fold2", + "SM-F926": "Galaxy Z Fold3", + "SM-F936": "Galaxy Z Fold4", + "SM-F946": "Galaxy Z Fold5", + "SM-F956": "Galaxy Z Fold6", + "SM-F966": "Galaxy Z Fold7", } #: Samsung series for codes missing from the table above. diff --git a/uarite/core.py b/uarite/core.py index acd9fe8..b06c20e 100644 --- a/uarite/core.py +++ b/uarite/core.py @@ -127,8 +127,11 @@ def model_name(model: str) -> str: most other brands already send readable names). """ if model.startswith("SM-"): - # Strip the trailing region/carrier letter: SM-S918B -> SM-S918. + # Strip the region/carrier suffix: SM-S918B -> SM-S918, and the + # Chinese/HK variant's trailing zero: SM-S9370 -> SM-S937. code = re.sub(r"[A-Z]{1,2}$", "", model) + if code not in SAMSUNG and code.endswith("0"): + code = code[:-1] if code in SAMSUNG: return SAMSUNG[code] series = SAMSUNG_SERIES.get(code[:4])