Add comment for not listening EXTERNAL_APPLICATIONS_UNAVAILABLE am: e7e02d7880 am: 3c811e1e55 am: 8c8d2ddbb8
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1826071 Change-Id: I782103f90420593a650f36c49d92c708d792353e
This commit is contained in:
@@ -222,6 +222,10 @@ public class PermissionMonitor {
|
||||
mIntentReceiver, intentFilter, null /* broadcastPermission */,
|
||||
null /* scheduler */);
|
||||
|
||||
// Listen to EXTERNAL_APPLICATIONS_AVAILABLE is that an app becoming available means it may
|
||||
// need to gain a permission. But an app that becomes unavailable can neither gain nor lose
|
||||
// permissions on that account, it just can no longer run. Thus, doesn't need to listen to
|
||||
// EXTERNAL_APPLICATIONS_UNAVAILABLE.
|
||||
final IntentFilter externalIntentFilter =
|
||||
new IntentFilter(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
|
||||
userAllContext.registerReceiver(
|
||||
|
||||
Reference in New Issue
Block a user