Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从应用退到主页或者切换到其他的应用 #1

Open
sumincy opened this issue Nov 16, 2017 · 1 comment
Open

从应用退到主页或者切换到其他的应用 #1

sumincy opened this issue Nov 16, 2017 · 1 comment

Comments

@sumincy
Copy link

sumincy commented Nov 16, 2017

也会进入劫持判断

@6iovan
Copy link
Owner

6iovan commented Dec 8, 2017

是的,其实这个工具只写了一半,没时间维护了。还有挺多细节需要处理。
可以给你提供思路,有兴趣你可以维护下去。

  • 关于回到launcher误报的问题。
    立一个flag判断是否弹出警告AntiHijack.showClickableNotification(),然后监听home键的广播跟最后一个activity的返回按钮时给flag赋值false。然后在AntiHijack.onResume()中恢复flag原来的值true。
    这样应该就可以了。

  • 关于切换到其他应用误报的问题。
    因为国内APP都有自个的保活机制,背后动作太多,在应用栈中上窜下跳,防不胜防。会产生误报,而且就算是打开输入法也可能会误报输入法在劫持应用。
    这里可以维护一个应用白名单,把国内常用的安全的软件加入白名单,可以减少绝大多数的误报情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants