-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Audio and clipboard not working on IQOO 11 FuntouchOS 14 #4492
Comments
here error log for clipboard
|
Please post your framework.jar:
|
Here: |
Android 14 added a new int parameter "halInputFlags" to an internal method: <aosp-mirror/platform_frameworks_base@f6135d7> Fixes #4492 <#4492>
Please test with this fix: 3001f8a Here is a binary to replace in your scrcpy 2.3.1 folder:
|
now audio is working with this, but for the clipboard still error here error logs
|
I don't understand this one… In ClipData getPrimaryClip(String str, String str2, int i, int i2) throws RemoteException; It should have matched
|
yeah It should have matched, anyway thankyou for the audio fix 😊 |
Let's print all the methods: diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/ClipboardManager.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/ClipboardManager.java
index 783a34077..ec37baa72 100644
--- a/server/src/main/java/com/genymobile/scrcpy/wrappers/ClipboardManager.java
+++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/ClipboardManager.java
@@ -25,6 +25,9 @@ public final class ClipboardManager {
}
private Method getGetPrimaryClipMethod() throws NoSuchMethodException {
+ for (Method method : manager.getClass().getDeclaredMethods()) {
+ Ln.i("==== " + method);
+ }
if (getPrimaryClipMethod == null) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
getPrimaryClipMethod = manager.getClass().getMethod("getPrimaryClip", String.class);
|
Oh, I checked in the wrong directory (I didn't look at the right framework.jar) 🤦 In yours, there's an additional boolean:
The boolean means So here are 2 versions, one with the boolean being
And one with the boolean being
|
its all working, with true or false for that 'userOperate' parameter |
done with this 👍 |
Merged into |
scrcpy v2.4 Changes since v2.3.1: - Add UHID keyboard and mouse support (Genymobile#4473) - Simulate tilt multitouch by pressing Shift (Genymobile#4529) - Add rotation support for non-default display (Genymobile#4698) - Improve audio player (Genymobile#4572) - Adapt to display API changes in Android 15 (Genymobile#4646, Genymobile#4656, Genymobile#4657) - Adapt audio workarounds to Android 14 (Genymobile#4492) - Fix clipboard for IQOO devices on Android 14 (Genymobile#4492, Genymobile#4589, Genymobile#4703) - Fix integer overflow for audio packet duration (Genymobile#4536) - Rework cleanup (Genymobile#4649) - Upgrade FFmpeg to 6.1.1 in Windows releases (Genymobile#4713) - Upgrade libusb to 1.0.27 in Windows releases (Genymobile#4713) - Various technical fixes
Environment
Describe the bug
After Updating IQOO Firmware to FuntouchOS 14, audio and clipboard not working
The text was updated successfully, but these errors were encountered: