mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-30 22:05:12 +00:00
Adapt FakeContext for Android 14
This fixes audio for Android 14 developer preview 2. Fixes #3784 <https://github.com/Genymobile/scrcpy/issues/3784> Suggested-by: Namelesswonder <Namelesswonder@users.noreply.github.com>
This commit is contained in:
@@ -38,4 +38,10 @@ public final class FakeContext extends ContextWrapper {
|
||||
builder.setPackageName(PACKAGE_NAME);
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
// @Override to be added on SDK upgrade for Android 14
|
||||
@SuppressWarnings("unused")
|
||||
public int getDeviceId() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user