Skip to content

Display and control your Android device

Do not apply all workarounds for ONYX devices

Romain Vimont0c95794463ee
diff --git a/server/src/main/java/com/genymobile/scrcpy/Workarounds.java b/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
index 8fc38555..7de98b72 100644
--- a/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
+++ b/server/src/main/java/com/genymobile/scrcpy/Workarounds.java
@@ -61,7 +61,14 @@ public final class Workarounds {
fillConfigurationController();
}
- fillAppInfo();
+ // On ONYX devices, fillAppInfo() breaks video mirroring:
+ // <https://github.com/Genymobile/scrcpy/issues/5182>
+ boolean mustFillAppInfo = !Build.BRAND.equalsIgnoreCase("ONYX");
+
+ if (mustFillAppInfo) {
+ fillAppInfo();
+ }
+
fillAppContext();
}