Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.55k stars 10.76k forks source link

How to unlcok screen lock? #5391

Open WaleedMortaja opened 1 month ago

WaleedMortaja commented 1 month ago

When I try to control my device, it works perfect when it is already unlocked (or does not have screen lock). However, when the screen is locked, and I try to enter the pin/pattern, all I see is a black screen.

How can I unlock the screen lock when connecting using scrcpy? Is this a privacy feature from scrcpy that can be modified?

Side question: I, of course, would appreciate not to send the pin/pattern in clear text. I did not see any mention for encryption in the codebase. However, I am not really sure. So, Is the scrcpy connection encrypted securely?

rom1v commented 1 month ago

Your lock screen app set the "secure flag" not to be captured. Since Android 12 this is enforced even for shell user, so scrcpy can't capture the screen. See #36 #2129

Scrcpy uses adb, which is not encrypted.

WaleedMortaja commented 1 month ago

Can you provide an encryption in scrcpy itself?

WaleedMortaja commented 1 month ago

As for screen lock, It seems that it cannot be solved without root

rom1v commented 1 month ago

Can you provide an encryption in scrcpy itself?

In theory, yes, but not planned for a near future.

Initially, scrcpy is intended to be used over USB. But yes it woild be useful for wireless connection.

WaleedMortaja commented 1 month ago

Would you mind opening a separate issue yourself for the encryption feature request?