usbaudio icon indicating copy to clipboard operation
usbaudio copied to clipboard

Couldn't use usbaudio with scrcpy

Open jeffshee opened this issue 6 years ago • 6 comments

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

jeffshee avatar Jun 20 '19 13:06 jeffshee

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.

jeffshee avatar Jun 20 '19 15:06 jeffshee

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/

rom1v avatar Jun 20 '19 19:06 rom1v

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)

jeffshee avatar Jun 20 '19 23:06 jeffshee

One more thing to mention, both apps, scrcpy and usbaudio work fine when used separately.

jeffshee avatar Jun 20 '19 23:06 jeffshee

I noticed the same, sometimes it works other times I need to unplug and plug the USB again

Samega7Cattac avatar Mar 02 '20 00:03 Samega7Cattac

I had the same problem and I solved it by installing the archlinux package called 'android-udev'.

oakszyjrnrdy avatar Mar 31 '20 08:03 oakszyjrnrdy