usbaudio
usbaudio copied to clipboard
Couldn't use usbaudio with scrcpy
scrcpy connection will be terminated soon after executing usbaudio. Tried reconnect scrcpy will give this error:
adb: error: failed to get feature set: insufficient permissions for device
See [http://developer.android.com/tools/device.html] for more information
ERROR: "adb push" returned with value 1
Android 7.1.2 with Fedora 30
Note that enabling audio accessory changes the USB device product id, so it will close any adb connection (and scrcpy). Therefore, you should enable audio forwarding before running scrcpy.
Okay.. I read your blog, so I tried again. But even I do audio mirroring before running scrcpy, the same error will show up and refuse the connection.
Enable audio forwarding, then execute:
adb devices
I guess it fails with insufficient permissions.
The reason is that enabling audio accessory changes the USB product id (chcek lsusb before and after), and one of them is not authorized in your udev rules.
See also: https://www.reddit.com/r/Android/comments/bzoc4u/scrcpy_v19_screenmirroring_app_released/eqwd20j/
Okay, I added the udev rules. Now adb devices work even after audio forwarding. Still, it doesn't work nice with scrcpy. Which is, scrcpy successfully mirroring my screen, but as soon as the device make any sound, scrcpy get terminated(seems like it crashed) without any error. usbaudio will keep running, but it won't forward the audio as well... Please tell me if there's any logs I could provide.
The most successful however not the best attempt I made is, scrcpy with wireless adb while usbaudio with usb adb, lol. It works, with some sacrifices. (crappy video quality expected)
One more thing to mention, both apps, scrcpy and usbaudio work fine when used separately.
I noticed the same, sometimes it works other times I need to unplug and plug the USB again
I had the same problem and I solved it by installing the archlinux package called 'android-udev'.