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

adb cannot display matched mobile devices in time #5656

Open
yk2911533608 opened this issue Dec 12, 2024 · 3 comments
Open

adb cannot display matched mobile devices in time #5656

yk2911533608 opened this issue Dec 12, 2024 · 3 comments

Comments

@yk2911533608
Copy link

1733990885(1)
Operating system win10 64 bit
scrcpy version: 3.1
Mobile phone model: oppo Reno
Android 11

Problem: After using adb pair to pair the phone, and then using adb devices, the device list will not be displayed. It takes a while or repeated use of adb pair and adb devices before "Connecting through wireless debugging" will be displayed on the phone. Is there any way to optimize this problem?

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

Looks like a bug on the device.

Anyway, I always find wireless pairing cumbersome. It is easier to plug the device once over USB to enable adb over tcp/ip: https://github.com/Genymobile/scrcpy/blob/master/doc/connection.md#tcpip-wireless

@yk2911533608
Copy link
Author

One more question:Which command can meet this scenario: cast the screen to the computer to record the video, the audio is output on the mobile device, and the sound can be heard in the recorded video. This is the effect in version 2.7, but it won’t work after upgrading to 3.1.

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2024

This is the effect in version 2.7, but it won’t work after upgrading to 3.1.

There were no changes related to that. By default, the audio should not be output on the mobile device (but maybe it was on an older version of your Android system, as a bug).

However, for Android 13+, you can use --audio-dup: https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md#duplication

scrcpy --record=file.mp4 --audio-dup

If you want to record without live playback:

scrcpy --record=file.mp4 --audio-dup --no-playback

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

2 participants