Flag_secure doesn’t work in Scrcpy program. Is there any other method other than flag_secure?

  android, android-studio

FLAG_SECURE prevents taking screen pictures and screen mirroring. But FLAG_SECURE doesn’t prevent screen sharing over USB. I do screen sharing with scrcpy program. DEVELOPMENT_SETTINGS_ENABLED is not a sufficient solution. How can I prevent scrcpy from grabbing my screen? I have to do this on Android Studio. Is there any other method other than flag_secure?

Source: Android Questions

LEAVE A COMMENT