mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Restrict usage of secure DummySurface for all Samsung devices.
This commit is contained in:
parent
1f20e6f31e
commit
b9ead4b7d1
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user