Skip to content

Commit

Permalink
Disable media tunneling by default on new devices
Browse files Browse the repository at this point in the history
Sony A90J (BRAVIA_VH2) and BRAVIA_VH2
Phillips 4K (O)LED TV (PH7M_EU_5596)
Panasonic 4KTV-JUP (TX_50JXW834)
  • Loading branch information
TobiGr committed Jul 8, 2023
1 parent 19e804d commit ea9dbf3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/src/main/java/org/schabi/newpipe/util/DeviceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,20 @@ public final class DeviceUtils {
// Hilife TV
private static final boolean REALTEKATV = Build.VERSION.SDK_INT == 25
&& Build.DEVICE.equals("RealtekATV");
// 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");
// 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");

private DeviceUtils() {
}
Expand Down Expand Up @@ -254,6 +265,10 @@ public static boolean shouldSupportMediaTunneling() {
return !HI3798MV200
&& !CVT_MT5886_EU_1G
&& !REALTEKATV
&& !QM16XE_U;
&& !QM16XE_U
&& !BRAVIA_VH1
&& !BRAVIA_VH2
&& !PH7M_EU_5596
&& !TX_50JXW834;
}
}

0 comments on commit ea9dbf3

Please sign in to comment.