Skip to content

Commit 54a83a8

Browse files
author
Android Build Coastguard Worker
committed
Merge cherrypicks of [15313376] into security-aosp-rvc-release
Change-Id: I6b9ae91409bcf0ce713efc8c03ba0d417f249cb1
2 parents 5985f74 + a9c5f60 commit 54a83a8

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

core/java/android/hardware/display/DisplayManager.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ public final class DisplayManager {
6161
* {@link #EXTRA_WIFI_DISPLAY_STATUS} extra.
6262
* </p><p>
6363
* This broadcast is only sent to registered receivers and can only be sent by the system.
64-
* </p><p>
65-
* {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission is required to
66-
* receive this broadcast.
6764
* </p>
6865
* @hide
6966
*/

services/core/java/com/android/server/display/WifiDisplayAdapter.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ final class WifiDisplayAdapter extends DisplayAdapter {
9191

9292
private boolean mPendingStatusChangeBroadcast;
9393

94-
private static final String[] RECEIVER_PERMISSIONS_FOR_BROADCAST = {
95-
android.Manifest.permission.ACCESS_FINE_LOCATION,
96-
};
97-
9894
// Called with SyncRoot lock held.
9995
public WifiDisplayAdapter(DisplayManagerService.SyncRoot syncRoot,
10096
Context context, Handler handler, Listener listener,
@@ -436,8 +432,7 @@ private void handleSendStatusChangeBroadcast() {
436432
}
437433

438434
// Send protected broadcast about wifi display status to registered receivers.
439-
getContext().createContextAsUser(UserHandle.ALL, 0)
440-
.sendBroadcastWithMultiplePermissions(intent, RECEIVER_PERMISSIONS_FOR_BROADCAST);
435+
getContext().sendBroadcastAsUser(intent, UserHandle.ALL);
441436
}
442437

443438
private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {

0 commit comments

Comments
 (0)