Android 8.0 隐式广播豁免列表
来源:互联网 发布:127.0.0.1 linux 编辑:程序博客网 时间:2024/06/05 21:49
Implicit Broadcast Exceptions
As part of the Android 8.0 (API level 26) Background Execution Limits, apps that target the API level 26 or higher can no longer register broadcast receivers for implicit broadcasts in their manifest. However, several broadcasts are currently exempted from these limitations. Apps can continue to register listeners for the following broadcasts, no matter what API level the apps target.
ACTION_LOCKED_BOOT_COMPLETED
,ACTION_BOOT_COMPLETED
Exempted because these broadcasts are only sent only once, at first boot, and many apps need to receive this broadcast to schedule jobs, alarms, and so forth.
ACTION_USER_INITIALIZE
,"android.intent.action.USER_ADDED"
,"android.intent.action.USER_REMOVED"
These broadcasts are protected by privileged permissions, so most normal apps cannot receive them anyway.
"android.intent.action.TIME_SET"
,ACTION_TIMEZONE_CHANGED
,ACTION_NEXT_ALARM_CLOCK_CHANGED
Clock apps may need to receive these broadcasts to update alarms when the time, timezone, or alarms are changed.
ACTION_LOCALE_CHANGED
Only sent when the locale changes, which is not often. Apps might need to update their data when the locale changes.
ACTION_USB_ACCESSORY_ATTACHED
,ACTION_USB_ACCESSORY_DETACHED
,ACTION_USB_DEVICE_ATTACHED
,ACTION_USB_DEVICE_DETACHED
If an app needs to know about these USB-related events, there is not currently a good alternative to registering for the broadcast.
ACTION_HEADSET_PLUG
Since this broadcast is only sent when the user physically connects or disconnects a plug, it's not likely to affect user experience if apps respond to this broadcast.
ACTION_CONNECTION_STATE_CHANGED
,ACTION_CONNECTION_STATE_CHANGED
,ACTION_ACL_CONNECTED
,ACTION_ACL_DISCONNECTED
Similar to
ACTION_HEADSET_PLUG
, user experience is not likely to suffer if apps receive broadcasts for these Bluetooth events.ACTION_CARRIER_CONFIG_CHANGED
,TelephonyIntents.ACTION_*_SUBSCRIPTION_CHANGED
,"TelephonyIntents.SECRET_CODE_ACTION"
OEM telephony apps may need to receive these broadcasts.
LOGIN_ACCOUNTS_CHANGED_ACTION
Some apps need to know about changes to login accounts so they can set up scheduled operations for the new and changed accounts.
ACTION_PACKAGE_DATA_CLEARED
Only sent when the user explicitly clears their data from Settings, so broadcast receivers are unlikely to significantly affect user experience.
ACTION_PACKAGE_FULLY_REMOVED
Some apps may need to update their stored data when another package is removed; for those apps, there is no good alternative to registering for this broadcast.
Note: Other package-related broadcasts (such as
ACTION_PACKAGE_REPLACED
) are not exempted from the new restrictions. These broadcasts are common enough that there is a potential performance impact to exempting them.ACTION_NEW_OUTGOING_CALL
Apps that take action in response to users placing calls need to receive this broadcast.
ACTION_DEVICE_OWNER_CHANGED
This broadcast is not sent very often; some apps need to receive it, so that they know that the device's security status has changed.
ACTION_EVENT_REMINDER
Sent by the calendar provider to post an event reminder to the calendar app. Since the calendar provider doesn't know what the calendar app is, this broadcast has to be implicit.
ACTION_MEDIA_MOUNTED
,ACTION_MEDIA_CHECKING
,ACTION_MEDIA_UNMOUNTED
,ACTION_MEDIA_EJECT
,ACTION_MEDIA_UNMOUNTABLE
,ACTION_MEDIA_REMOVED
,ACTION_MEDIA_BAD_REMOVAL
These broadcasts are sent as a result of the user's physical interactions with the device (installing or removing storage volumes) or as part of boot initialization (as available volumes get mounted), so they are not a common occurrence and are generally under the user’s control.
SMS_RECEIVED_ACTION
,WAP_PUSH_RECEIVED_ACTION
These broadcasts are relied on by SMS recipient apps.
- Android 8.0 隐式广播豁免列表
- FBWF豁免写保护列表增加文件注意
- Android系统广播列表
- Android O行为变更--隐式广播限制
- Android O行为变更--隐式广播限制
- android 广播
- android广播
- Android广播
- android广播
- android广播
- android广播
- android 广播
- android 广播
- android 广播
- android广播
- android广播
- android广播
- android 广播
- 1-004.百度云中的百度人脸识别用java开发人脸识别Demo
- java和js实现aes加密解密
- MySQL (九)
- JavaScript设置cookie、读取cookie、删除cookie详解
- php 模拟返回url上一层目录
- Android 8.0 隐式广播豁免列表
- 如何高效优化Android网络连接以降低电耗
- 查询无效的索引
- Q139:PBRT-V3,Metropolis Light Transport (MLT)(16.4章节)
- [Git安装]REHL6.0下安装git-1.8.5.1
- google水波按钮效果
- vsftp修改端口
- 对象锁和类锁
- 抽奖算法的实现