Bug 812881 - Add some Samsung JB devices to Stagefright blocklist - r=bjacob

--HG--
extra : rebase_source : f48993a17098a5b54a1a3c92bcc585c987034a30
This commit is contained in:
Chris Double 2013-03-25 11:58:07 +13:00
parent 1d87113442
commit 8eb117319d

View File

@ -410,6 +410,30 @@ GfxInfo::GetFeatureStatusImpl(int32_t aFeature,
return NS_OK;
}
}
else if (CompareVersions(mOSVersion.get(), "4.2.0") < 0)
{
// Whitelist:
// All JB phones except for those in blocklist below
// Blocklist:
// Samsung SPH-L710 (Bug 812881)
// Samsung SGH-T999 (Bug 812881)
// Samsung SCH-I535 (Bug 812881)
// Samsung GT-I8190 (Bug 812881)
// Samsung SGH-I747M (Bug 812881)
// Samsung SGH-I747 (Bug 812881)
bool isBlocklisted =
cModel.Equals("SAMSUNG-SPH-L710", nsCaseInsensitiveCStringComparator()) ||
cModel.Equals("SAMSUNG-SGH-T999", nsCaseInsensitiveCStringComparator()) ||
cModel.Equals("SAMSUNG-SCH-I535", nsCaseInsensitiveCStringComparator()) ||
cModel.Equals("SAMSUNG-GT-I8190", nsCaseInsensitiveCStringComparator()) ||
cModel.Equals("SAMSUNG-SGH-I747M", nsCaseInsensitiveCStringComparator()) ||
cModel.Equals("SAMSUNG-SGH-I747", nsCaseInsensitiveCStringComparator());
if (isBlocklisted) {
*aStatus = nsIGfxInfo::FEATURE_BLOCKED_DEVICE;
return NS_OK;
}
}
}
}