Skip to content

Commit

Permalink
Add workaround for Skyworth devices
Browse files Browse the repository at this point in the history
The vendor-modified ROM of Skyworth devices needs a valid app
info/context.

Fixes Genymobile#4922 <Genymobile#4922>
  • Loading branch information
rom1v authored and FreedomBen committed Aug 2, 2024
1 parent 567ce30 commit 586ee46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/main/java/com/genymobile/scrcpy/Workarounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ public static void apply(boolean audio, boolean camera) {
// - <https://github.com/Genymobile/scrcpy/issues/940>
// - <https://github.com/Genymobile/scrcpy/issues/994>
mustFillAppInfo = true;
} else if (Build.BRAND.equalsIgnoreCase("honor")) {
} else if (Build.BRAND.equalsIgnoreCase("honor") || Build.MANUFACTURER.equalsIgnoreCase("skyworth")) {
// More workarounds must be applied for Honor devices:
// - <https://github.com/Genymobile/scrcpy/issues/4015>
// and Skyworth devices:
// - <https://github.com/Genymobile/scrcpy/issues/4922>
//
// The system context must not be set for all devices, because it would cause other problems:
// - <https://github.com/Genymobile/scrcpy/issues/4015#issuecomment-1595382142>
Expand Down

0 comments on commit 586ee46

Please sign in to comment.