Skip to content
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

Couldn't use usbaudio with scrcpy #1

Open
jeffshee opened this issue Jun 20, 2019 · 6 comments
Open

Couldn't use usbaudio with scrcpy #1

jeffshee opened this issue Jun 20, 2019 · 6 comments

Comments

@jeffshee
Copy link

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
Copy link
Author

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.

@rom1v
Copy link
Owner

rom1v commented Jun 20, 2019

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/

@jeffshee
Copy link
Author

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
Copy link
Author

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

@Samega7Cattac
Copy link

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

@oakszyjrnrdy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants