scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Sensitive interface black screen

Open CAI5201314 opened this issue 1 year ago • 1 comments

  • [ ] I have read the FAQ.
  • [ ] I have searched for existing questions.

ENVIRONMENT.

  • Operating system: [Windows].
  • scrcpy version: [2.3.1].
  • Installation method: [Windows version USB connection]
  • Device Model
  • Android Version [Xiaomi HyperOS Android14]

Error in description 2 main problems:

1.Occasionally the screen becomes blurred during connection operation.

  1. When operating the software interface which needs to input password or verification code, the corresponding software interface will become black screen state, but you can click on the operation, the cell phone side is displayed normally, just the computer side is black screen state, is it the HyperOS security policy?

CAI5201314 avatar Feb 03 '24 16:02 CAI5201314

Occasionally the screen becomes blurred during connection operation.

These are compression artifacts (typically when there is a lot of movement).

This can be greatly reduced:

  • by switching the codec to h265 (scrcpy --video-codec=h265), and/or
  • by increasing the bit rate (scrcpy -b20M), and/or
  • by using another encoder (if the default one is bad).

When operating the software interface which needs to input password or verification code, the corresponding software interface will become black screen state

Because the app you're using set the "secure flag" (to request not to be captured), and since Android 12 the system refuses to capture such apps, even with some privileges. #2129

rom1v avatar Feb 03 '24 17:02 rom1v