Skip to content

Commit

Permalink
Blacklist Moto Z from using secure DummySurface.
Browse files Browse the repository at this point in the history
Issue: #3215

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178218535
  • Loading branch information
ojw28 committed Dec 12, 2017
1 parent a4a02f7 commit f677d13
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,17 @@ private static void assertApiLevel17OrHigher() {
*/
@TargetApi(24)
private static boolean enableSecureDummySurfaceV24(Context context) {
if (Util.SDK_INT < 26 && "samsung".equals(Util.MANUFACTURER)) {
if (Util.SDK_INT < 26 && ("samsung".equals(Util.MANUFACTURER) || "XT1650".equals(Util.MODEL))) {
// Samsung devices running Nougat are known to be broken. See
// https://github.com/google/ExoPlayer/issues/3373 and [Internal: b/37197802].
// Moto Z XT1650 is also affected. See
// https://github.com/google/ExoPlayer/issues/3215.
return false;
}
if (Util.SDK_INT < 26 && !context.getPackageManager().hasSystemFeature(
PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE)) {
// Pre API level 26 devices were not well tested unless they supported VR mode.
// Pre API level 26 devices were not well tested unless they supported VR mode. See
// https://github.com/google/ExoPlayer/issues/3215.
return false;
}
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
Expand Down

0 comments on commit f677d13

Please sign in to comment.