prevent屏幕捕获的Andr​​oid应用

prevent屏幕捕获的Andr​​oid应用

本文介绍了prevent屏幕捕获的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果有一种方法来检测通过一些onXXXXX回叫方法或接收的广播,如果其他进程将要采取的屏幕截图我的应用程序的显示。例如,如果SDK工具或其他屏幕捕捉应用程序执行截图,我想收到通知,然后再决定我是否应该允许或禁止的屏幕截图。

I was wondering if there is a way to detect through some "onXXXXX" call-back method or received broadcast if some other process is about to take a screen-shot of my app's display. For example if the SDK tools or some other screen capturing app performs a "Screen Capture", I would like to be notified and then decide if I should allow or disallow the screen capture.

如果无法做到这一点是有没有办法锁定显示所以没有其他的方法可以屏幕捕获我的显示器?

If this is not possible is there a way to lock the display so no other process can screen capture my display?

推荐答案

目前的采取对Android的另一个应用程序的截图。唯一的办法涉及任何生根或使用SDK,这既没有机会为您提供一点阻塞或接受它的通知。如果其他应用程序需要你的截图,它使用非支持的方法,甚至能够为所欲为默认情况下。

There is no supported method to take a screenshot of another app on Android. The only ways involve either rooting or using the SDK, which both offer little to no chance of you either blocking or receiving notification of it. If another app takes your screenshot, it is by default using non-supported methods and can probably do as it pleases.

我想澄清的是,我不是暗示你不应该使用任何可用的方法,以确保您的应用程序。我只是让你知道,这恐怕是不可能这样做,不使用不支持的方法,那就算你使用他们,你可能不是100%安全的对抗截图。

I'd like to clarify that I am not implying you shouldn't use any methods available to secure your app. I'm just letting you know that it is probably impossible to do so without using non-supported methods, and that even if you do use them you may not be 100% secure against screenshots.

这篇关于prevent屏幕捕获的Andr​​oid应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 20:40