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

感觉这个方案稍显复杂,提供一个反射绕过通知权限思路 #15

Open
xiaogaofudao opened this issue Aug 12, 2017 · 1 comment

Comments

@xiaogaofudao
Copy link

2017080209000810

https://github.com/xiaogaofudao/Android-Widget/blob/master/toast/src/main/java/com/gaogeek/toast/Toast.java

经测试。发现 Android 7.1.1 及以后 对于 Toast 的 show 方法 加入了 IBinder token 限制。如果 targetSdkVersion 大于 25。会导致Toast 校验 token,从而引发 崩溃。如果 targetSdkVersion 小于 26。经测试可以在所有android 版本正常弹出Toast(可绕过通知权限)。

如果能构造一个 合法的 IBinder token 就完美了。束手无策求大神完善

@CoXier
Copy link

CoXier commented Aug 17, 2017

个人认为走“后门”并不好。系统定义了这些权限就应该引导用户去开启权限,虽然会给交互层面带来不小的影响。

最难受的是国内 rom 的定制让人无暇兼顾。

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