Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.37k stars 10.67k forks source link

Lockscreen not visible #3413

Open nyaruku opened 2 years ago

nyaruku commented 2 years ago

Since i have a pattern lock, i would like to unlock it from PC, but the lock screen stays black (prob. an android security thing), can this be fixed/changed ?

rom1v commented 2 years ago

If your lock screen app use the "secure flag", you can't mirror it (on Android 12 and above).

nyaruku commented 2 years ago

If your lock screen app use the "secure flag", you can't mirror it (on Android 12 and above).

I use android 10 (Huawei P20)

Astrosp commented 2 years ago

You can't mirror screen but if you have pin or password lock then you can type with your keyboard and unlock your phone within PC. It's show black screen but execute properly.

nyaruku commented 2 years ago

but how is Vysor doing it?, it shows the lockscreen actually, and it shows the screen while it is off.

rom1v commented 2 years ago

With Vysor, you can mirror the lock screen with the exact same device now, but not with the latest scrcpy (1.24) while every other screen works correctly?

If you record with:

adb shell screenrecord /sdcard/file.mp4
afb pull /sdcard/file.mp4

Can you record the lock screen?

MarinosTBH commented 1 year ago

So it is not possible to mirror secure flag apps ?

nyaruku commented 1 year ago

With Vysor, you can mirror the lock screen with the exact same device now, but not with the latest scrcpy (1.24) while every other screen works correctly?

If you record with:

adb shell screenrecord /sdcard/file.mp4
afb pull /sdcard/file.mp4

Ca' you record the locl screen?

after over a year I wanna get back to this, will try out as soon as possible

ballo commented 11 months ago

I've learned to swipe blindly with my trackpad. It's not ideal. Ideally there would be a way to get past the lock screen with a registered adb device.

rom1v commented 11 months ago

Ideally there would be a way to get past the lock screen

If your lock screen is just a swipe (not a pincode or a schema), Alt+m should unlock it (see shortcuts).

ballo commented 11 months ago

By swipe I meant pattern