Open reilg opened 3 years ago
That's "expected": when you enable/disable this option (MTP), it reconfigures USB and the USB device gets a different vid:pid. As a consequence, all USB connections (adb
uses USB) gets disconnected.
Btw, this is not specific to scrcpy, you can reproduce the problem with adb
alone: run some adb
command which does not return immediately (adb shell
or adb logcat
), then enable/disable MTP: it will immediately close the running command.
Whether I click allow or deny, the app always closes with a warning
That's not expected though, one of them should not reconfigure USB. There is probably a setting somewhere on your phone to disable/force the default option.
That's not expected though, one of them should not reconfigure USB. There is probably a setting somewhere on your phone to disable/force the default option.
Ahh thanks. I'll look into that. We can probably close this as a non-issue then.
(Also, what if you press BACK instead of clicking on one of the two buttons?)
Before anything, Incredible app! Thank you so much for providing it for free.
Environment
A little background
My phone screen is unusable not physically broken but it's unusable because it just keeps on flash when I try to turn it on. The phone is otherwise functioning. So I pretty much use this app so I can see my phone screen.
Describe the bug
When the phone is first plugged in, it shows prompts me to allow the laptop access to data.
Whether I click allow or deny, the app always closes with a warning:
This only happens on the connection though. If I run the command again, I don't get the prompt and I can use the app just fine.
If I detach/reattach the cable or if I restart the laptop, I get the prompt and the issue happens again.
Command used to run scrcpy (in case relevant)
Things I've tried
scrcpy
ADB logcat