Add support for Linux based smart TVs

This commit is contained in:
Harald Walker
2018-01-24 08:38:29 +01:00
parent 811a3c8912
commit 689135d4a5
2 changed files with 8 additions and 1 deletions

View File

@@ -165,6 +165,7 @@ public enum OperatingSystem {
LINUX( Manufacturer.OTHER,null, 2, "Linux", new String[] { "Linux", "CamelHttpStream" }, null, DeviceType.COMPUTER, null ), // CamelHttpStream is being used by Evolution, an email client for Linux
UBUNTU( Manufacturer.CONONICAL, OperatingSystem.LINUX, 1, "Ubuntu", new String[] {"ubuntu"}, null, DeviceType.COMPUTER, null),
UBUNTU_TOUCH_MOBILE( Manufacturer.CONONICAL, OperatingSystem.UBUNTU, 200, "Ubuntu Touch (mobile)", new String[] {"mobile"}, null, DeviceType.MOBILE, null),
LINUX_SMART_TV( Manufacturer.OTHER, OperatingSystem.LINUX, 21, "Linux (SmartTV)", new String[] {"SmartTv"}, null, DeviceType.DMR, null),
/**
* Other Symbian OS versions

View File

@@ -397,7 +397,12 @@ public class OperatingSystemTest {
};
String[] ubuntu_touch = {
"Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36 "
"Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"
};
String[] linuxSmartTV = {
"Opera/9.80 (Linux mips; ) Presto/2.12.407 Version/12.51 MB97/0.0.39.18 (DIGIHOME, Mxl661L32, wireless) VSTVB_MB97 SmartTvA/3.0.0",
"Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV+2015; Maple2012) AppleWebKit/537.42+ (KHTML, like Gecko) SmartTV Safari/537.42+"
};
String[] ubuntu = {
@@ -509,6 +514,7 @@ public class OperatingSystemTest {
testAgents(genericTablet, OperatingSystem.UNKNOWN_TABLET);
testAgents(unknown, OperatingSystem.UNKNOWN);
testAgents(ubuntu_touch, OperatingSystem.UBUNTU_TOUCH_MOBILE);
testAgents(linuxSmartTV, OperatingSystem.LINUX_SMART_TV);
}
@Test