From bff90b2ecf935883849bd8a5bd3a705b2becd138 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 18 Jul 2023 21:27:28 +0200 Subject: [PATCH] Disable media tunneling by default on new devices Sony A90J (BRAVIA_VH1) and BRAVIA_VH2 Phillips 4K (O)LED TV (PH7M_EU_5596) Panasonic 4KTV-JUP (TX_50JXW834) Bouygtel4K (HMB9213NW) --- .../org/schabi/newpipe/util/DeviceUtils.java | 32 ++++++++++++++++++- 1 file changed, 31 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 111072a9650..c8168251558 100644 --- a/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java +++ b/app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java @@ -55,11 +55,36 @@ public final class DeviceUtils { */ private static final boolean REALTEKATV = Build.VERSION.SDK_INT == 25 && Build.DEVICE.equals("RealtekATV"); + /** + * Phillips 4K (O)LED TV. + * Supports custom ROMs with different API levels + */ + private static final boolean PH7M_EU_5596 = Build.VERSION.SDK_INT >= 26 + && Build.DEVICE.equals("PH7M_EU_5596"); /** * 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"); + /** + * Panasonic 4KTV-JUP. + */ + private static final boolean TX_50JXW834 = Build.DEVICE.equals("TX_50JXW834"); + /** + *

Bouygtel4K / Bouygues Telecom Bbox 4K.

+ * Reported at https://github.com/TeamNewPipe/NewPipe/pull/10122#issuecomment-1638475769 + */ + private static final boolean HMB9213NW = Build.DEVICE.equals("HMB9213NW"); private DeviceUtils() { } @@ -263,6 +288,11 @@ public static boolean shouldSupportMediaTunneling() { return !HI3798MV200 && !CVT_MT5886_EU_1G && !REALTEKATV - && !QM16XE_U; + && !QM16XE_U + && !BRAVIA_VH1 + && !BRAVIA_VH2 + && !PH7M_EU_5596 + && !TX_50JXW834 + && !HMB9213NW; // crash caused by exiting full screen } }