android 7.1.1 开始 Prevent apps to overlay other apps via toast windows
来源:互联网 发布:易推营销软件 编辑:程序博客网 时间:2024/05/22 03:20
细节参考:https://android.googlesource.com
内容如下:
Prevent apps to overlay other apps via toast windowsIt was possible for apps to put toast type windowsthat overlay other apps which toast winodws aren'tremoved after a timeout.Now for apps targeting SDK greater than N MR1 to add atoast window one needs to have a special token. The tokenis added by the notificatoion manager service only forthe lifetime of the shown toast and is then removedincluding all windows associated with this token. Thisprevents apps to add arbitrary toast windows.Since legacy apps may rely on the ability to directlyadd toasts we mitigate by allowing these apps to stilladd such windows for unlimited duration if this app isthe currently focused one, i.e. the user interacts withit then it can overlay itself, otherwise we make surethese toast windows are removed after a timeout likea toast would be.We don't allow more that one toast window per UID beingadded at a time which prevents 1) legacy apps to put thesame toast after a timeout to go around our new policyof hiding toasts after a while; 2) modern apps to reusethe passed token to add more than one window; Note thatthe notification manager shows toasts one at a time.bug:30150688Change-Id: Icc8f8dbd060762ae1a7b1720e96c5afdb8aff3fd
阅读全文
0 0
- android 7.1.1 开始 Prevent apps to overlay other apps via toast windows
- android-Interacting with Other Apps
- Android Training--Allowing Other Apps to Start Your Activity
- Allowing Other Apps to Start Your Activity
- Allowing Other Apps to Start Your Activity
- Allowing Other Apps to Start Your Activity
- Sending Simple Data to Other Apps
- 《Training:Sending Simple Data to Other Apps》
- Interacting with Other Apps
- android Sending Content to Other Apps[ 发送分享的数据到其他App]
- android-Allowing Other Apps to Start Your Activity(App之间进行交互)
- 1. How to open items in other iOS Apps
- 17Allowing Other Apps to Start Your Activity
- Android开发官方文档---Interacting with Other Apps
- Receiving Content from Other Apps
- Interacting with Other Apps笔记
- Windows Store apps[9]通知概述(Toast,Tile和Badge)
- DataBinding: how to develop Android apps faster
- 当中企动力全网门户遇上暴风AI电视
- 2017多校八 1002题 hdu 6134 Battlestation Operational 艾弗森约定 莫比乌斯函数 分块
- .NET并行计算和并发3.2-多线程调用Invoke
- Python RPi GPIO编程控制
- 【红黑树】RB树的实现原理
- android 7.1.1 开始 Prevent apps to overlay other apps via toast windows
- 8种网站防止盗链的方法
- 鼠标移入显示,移出隐藏动态网页实现
- MVC模式
- 水灾
- Eoj 3318&3326 最大的排列 刚好坐满的公交车
- OpenJudge-【3528】:最小新整数
- CODE[VS]1002搭桥
- spring Boot报错 之五种(不打包运行)