From d3f6951afc14c3be13ee25f8368f120ba1da7375 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Mon, 12 Jun 2023 23:09:39 +0200 Subject: [PATCH] Disable media tunneling by default on new devices Sony A90J (BRAVIA_VH2) and BRAVIA_VH2 Phillips 4K (O)LED TV (PH7M_EU_5596) --- .../java/org/schabi/newpipe/util/DeviceUtils.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java index b0e6026ec8f..02433e3d020 100644 --- a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java @@ -51,6 +51,15 @@ public final class DeviceUtils { // Philips QM16XE private static final boolean QM16XE_U = Build.VERSION.SDK_INT == 23 && Build.DEVICE.equals("QM16XE_U"); + // Sony Bravia + private static final boolean BRAVIA_VH1 = Build.VERSION.SDK_INT == 29 + && Build.DEVICE.equals("BRAVIA_VH1"); + // Sony A90J + private static final boolean BRAVIA_VH2 = Build.VERSION.SDK_INT == 29 + && Build.DEVICE.equals("BRAVIA_VH2"); + // Phillips 4K (O)LED TV (supporting custom ROMs with different API levels) + private static final boolean PH7M_EU_5596 = Build.VERSION.SDK_INT >= 26 + && Build.DEVICE.equals("PH7M_EU_5596"); private DeviceUtils() { } @@ -254,6 +263,9 @@ public static boolean shouldSupportMediaTunneling() { return !HI3798MV200 && !CVT_MT5886_EU_1G && !REALTEKATV - && !QM16XE_U; + && !QM16XE_U + && !BRAVIA_VH1 + && !BRAVIA_VH2 + && !PH7M_EU_5596; } }