mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-06 09:35:41 +00:00
Mirror "secure" content
Some applications, like Silence, prevent the content of a window from being viewed on non-secure displays: <https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE> We can mirror it by just creating a "secure" display: <https://developer.android.com/reference/android/view/Display#FLAG_SECURE>
This commit is contained in:
parent
39c5e71605
commit
1fdde490fd
2 changed files with 1 additions and 15 deletions
|
@ -151,7 +151,7 @@ public class ScreenEncoder implements Device.RotationListener {
|
|||
}
|
||||
|
||||
private static IBinder createDisplay() {
|
||||
return SurfaceControl.createDisplay("scrcpy", false);
|
||||
return SurfaceControl.createDisplay("scrcpy", true);
|
||||
}
|
||||
|
||||
private static void configure(MediaCodec codec, MediaFormat format) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue