【问题标题】:Is there a way to detect screen manipulation apps from another app programmatically?有没有办法以编程方式从另一个应用程序检测屏幕操作应用程序?
【发布时间】:2017-12-22 20:56:50
【问题描述】:

所以我在我的 Android 设备上使用 Blockchain mobile wallet 并打开了我的蓝光过滤器应用程序,当我打开钱包应用程序时,我收到一条警告说“有一个屏幕录制/操作应用程序在此设备上运行” .

我想在我的应用中加入这个功能,有没有办法检测这类应用?

可以用Flags屏蔽屏幕截图

但是是否可以检测到记录或过滤? This question 有点类似,但答案根本不可靠,因为有一个应用程序具有此功能。

【问题讨论】:

标签: android security


【解决方案1】:

您可以使用 FLAG_SECURE 来阻止屏幕录制。

例子

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,
                WindowManager.LayoutParams.FLAG_SECURE);
}

【讨论】:

    猜你喜欢
    • 2011-07-03
    • 2021-12-07
    • 2019-09-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-15
    • 2016-09-06
    相关资源
    最近更新 更多