Merge "Protect some more broadcasts."
This commit is contained in:
@@ -369,6 +369,22 @@
|
||||
<protected-broadcast android:name="ScheduleConditionProvider.EVALUATE" />
|
||||
<protected-broadcast android:name="wifi_scan_available" />
|
||||
|
||||
<protected-broadcast android:name="action.cne.started" />
|
||||
<protected-broadcast android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
<protected-broadcast android:name="android.content.jobscheduler.JOB_DEADLINE_EXPIRED" />
|
||||
<protected-broadcast android:name="android.intent.action.ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW" />
|
||||
<protected-broadcast android:name="android.location.HIGH_POWER_REQUEST_CHANGE" />
|
||||
<protected-broadcast android:name="android.location.HIGH_POWER_REQUEST_CHANGE" />
|
||||
<protected-broadcast android:name="android.net.conn.CONNECTIVITY_CHANGE_SUPL" />
|
||||
<protected-broadcast android:name="android.os.action.ACTION_EFFECTS_SUPPRESSOR_CHANGED" />
|
||||
<protected-broadcast android:name="android.os.action.LIGHT_DEVICE_IDLE_MODE_CHANGED" />
|
||||
<protected-broadcast android:name="android.os.storage.action.VOLUME_STATE_CHANGED" />
|
||||
<protected-broadcast android:name="com.android.server.action.UPDATE_TWILIGHT_STATE" />
|
||||
<protected-broadcast android:name="com.android.server.device_idle.STEP_IDLE_STATE" />
|
||||
<protected-broadcast android:name="com.android.server.device_idle.STEP_LIGHT_IDLE_STATE" />
|
||||
<protected-broadcast android:name="com.android.server.Wifi.action.TOGGLE_PNO" />
|
||||
<protected-broadcast android:name="intent.action.ACTION_RF_BAND_INFO" />
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- RUNTIME PERMISSIONS -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
@@ -4086,10 +4086,12 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
synchronized (mPackages) {
|
||||
if (mProtectedBroadcasts.contains(actionName)) {
|
||||
return true;
|
||||
} else if (actionName != null
|
||||
&& actionName.startsWith("android.net.netmon.lingerExpired")) {
|
||||
// TODO: remove this terrible hack
|
||||
return true;
|
||||
} else if (actionName != null) {
|
||||
// TODO: remove these terrible hacks
|
||||
if (actionName.startsWith("android.net.netmon.lingerExpired")
|
||||
|| actionName.startsWith("com.android.server.sip.SipWakeupTimer")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user