Restrict usage of secure DummySurface for all Samsung devices.

This commit is contained in:
Oliver Woodman 2017-08-11 15:47:03 +01:00 committed by Oliver Woodman
parent 1f20e6f31e
commit b9ead4b7d1

View File

@ -154,7 +154,7 @@ public final class DummySurface extends Surface {
*/ */
private static boolean deviceNeedsSecureDummySurfaceWorkaround(Context context) { private static boolean deviceNeedsSecureDummySurfaceWorkaround(Context context) {
return Util.SDK_INT == 24 return Util.SDK_INT == 24
&& (Util.MODEL.startsWith("SM-G950") || Util.MODEL.startsWith("SM-G955")) && "samsung".equals(Util.MANUFACTURER)
&& !hasVrModeHighPerformanceSystemFeatureV24(context.getPackageManager()); && !hasVrModeHighPerformanceSystemFeatureV24(context.getPackageManager());
} }