Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable_media_tunneling_for_more_known_devices #29

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading