Loading services/core/java/com/android/server/location/provider/LocationProviderManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -285,6 +285,7 @@ public class LocationProviderManager extends throws PendingIntent.CanceledException { BroadcastOptions options = BroadcastOptions.makeBasic(); options.setDontSendToRestrictedApps(true); options.setPendingIntentBackgroundActivityLaunchAllowed(false); // allows apps to start a fg service in response to a location PI options.setTemporaryAppAllowlist(TEMPORARY_APP_ALLOWLIST_DURATION_MS, TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED, Loading Loading @@ -327,6 +328,7 @@ public class LocationProviderManager extends throws PendingIntent.CanceledException { BroadcastOptions options = BroadcastOptions.makeBasic(); options.setDontSendToRestrictedApps(true); options.setPendingIntentBackgroundActivityLaunchAllowed(false); mPendingIntent.send(mContext, 0, new Intent().putExtra(KEY_PROVIDER_ENABLED, enabled), null, null, null, options.toBundle()); Loading Loading
services/core/java/com/android/server/location/provider/LocationProviderManager.java +2 −0 Original line number Diff line number Diff line Loading @@ -285,6 +285,7 @@ public class LocationProviderManager extends throws PendingIntent.CanceledException { BroadcastOptions options = BroadcastOptions.makeBasic(); options.setDontSendToRestrictedApps(true); options.setPendingIntentBackgroundActivityLaunchAllowed(false); // allows apps to start a fg service in response to a location PI options.setTemporaryAppAllowlist(TEMPORARY_APP_ALLOWLIST_DURATION_MS, TEMPORARY_ALLOW_LIST_TYPE_FOREGROUND_SERVICE_ALLOWED, Loading Loading @@ -327,6 +328,7 @@ public class LocationProviderManager extends throws PendingIntent.CanceledException { BroadcastOptions options = BroadcastOptions.makeBasic(); options.setDontSendToRestrictedApps(true); options.setPendingIntentBackgroundActivityLaunchAllowed(false); mPendingIntent.send(mContext, 0, new Intent().putExtra(KEY_PROVIDER_ENABLED, enabled), null, null, null, options.toBundle()); Loading