Add new device: Apple HomePod

This commit is contained in:
Faisal Salman 2024-12-12 07:29:56 +07:00
parent 84b41f5be7
commit 5d603dacd7
3 changed files with 21 additions and 1 deletions

View File

@ -840,6 +840,8 @@
], [VENDOR, [TYPE, EMBEDDED]], [ ], [VENDOR, [TYPE, EMBEDDED]], [
/(aeobc)\b/i // Echo Dot /(aeobc)\b/i // Echo Dot
], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [ ], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [
/(homepod).+mac os/i // Apple HomePod
], [MODEL, [VENDOR, APPLE], [TYPE, EMBEDDED]], [
/windows iot/i /windows iot/i
], [[TYPE, EMBEDDED]], [ ], [[TYPE, EMBEDDED]], [
@ -898,7 +900,7 @@
], [[VERSION, strMapper, windowsVersionMap], [NAME, WINDOWS]], [ ], [[VERSION, strMapper, windowsVersionMap], [NAME, WINDOWS]], [
// iOS/macOS // iOS/macOS
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS /[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, // iOS
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
/cfnetwork\/.+darwin/i /cfnetwork\/.+darwin/i
], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [ ], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [

View File

@ -116,6 +116,15 @@
"type": "mobile" "type": "mobile"
} }
}, },
{
"desc": "Apple HomePod",
"ua": "AppleCoreMedia/1.0.0.15D61 (HomePod; U; CPU OS 11_2_5 like Mac OS X; en_us)",
"expect": {
"vendor": "Apple",
"model": "HomePod",
"type": "embedded"
}
},
{ {
"desc": "Issue #519", "desc": "Issue #519",
"ua": "ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION", "ua": "ios/iPhone/14.2/SOME_CUSTOM_APP_VERSION",

View File

@ -52,5 +52,14 @@
"name" : "iOS", "name" : "iOS",
"version" : "7.0.2" "version" : "7.0.2"
} }
},
{
"desc": "Apple HomePod",
"ua": "AppleCoreMedia/1.0.0.15D61 (HomePod; U; CPU OS 11_2_5 like Mac OS X; en_us)",
"expect" :
{
"name" : "iOS",
"version" : "11.2.5"
}
} }
] ]