Skip to content

Commit

Permalink
Merge branch 'flora' into flora-conscrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
ShareASmile committed Jun 21, 2024
2 parents 48b7831 + 7ed4e55 commit 13df627
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion app/src/main/java/org/schabi/newpipelegacy/util/DeviceUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,29 @@ public final class DeviceUtils {
// Philips QM16XE
private static final boolean QM16XE_U = Build.VERSION.SDK_INT == 23
&& Build.DEVICE.equals("QM16XE_U");
// Sony Bravia VH1 with Processor: MT5895
private static final boolean BRAVIA_VH1 = Build.VERSION.SDK_INT == 29
&& Build.DEVICE.equals("BRAVIA_VH1");
// Sony Bravia VH2 this includes model A90J
private static final boolean BRAVIA_VH2 = Build.VERSION.SDK_INT == 29
&& Build.DEVICE.equals("BRAVIA_VH2");
// Sony Bravia Android TV platform 2
// Uses a MediaTek MT5891 (MT5596) SoC
private static final boolean BRAVIA_ATV2 = Build.VERSION.SDK_INT == 29
&& Build.DEVICE.equals("BRAVIA_ATV2");
// Sony Bravia Android TV platform 3 4K
// Uses ARM MT5891 and a BRAVIA_ATV2 motherboard
private static final boolean BRAVIA_ATV3_4K = Build.VERSION.SDK_INT == 29
&& Build.DEVICE.equals("BRAVIA_ATV3_4K");
// Panasonic 4KTV-JUP
private static final boolean TX_50JXW834 = Build.VERSION.SDK_INT == 30
&& Build.DEVICE.equals("TX_50JXW834");
// Bouygtel4K / Bouygues Telecom Bbox 4K
private static final boolean HMB9213NW = Build.VERSION.SDK_INT == 28
&& Build.DEVICE.equals("HMB9213NW");
// Phillips 4K (O)LED TV
private static final boolean PH7M_EU_5596 = Build.VERSION.SDK_INT == 26
&& Build.DEVICE.equals("PH7M_EU_5596");

private DeviceUtils() {
}
Expand Down Expand Up @@ -138,7 +161,14 @@ public static boolean shouldSupportMediaTunneling() {
&& !HI3798MV200
&& !CVT_MT5886_EU_1G
&& !REALTEKATV
&& !QM16XE_U;
&& !QM16XE_U
&& !BRAVIA_VH1
&& !BRAVIA_VH2
&& !BRAVIA_ATV2
&& !BRAVIA_ATV3_4K
&& !TX_50JXW834
&& !HMB9213NW
&& !PH7M_EU_5596;
}

public static boolean isLandscape(final Context context) {
Expand Down

0 comments on commit 13df627

Please sign in to comment.