diff options
| author | 2022-04-13 00:27:46 +0000 | |
|---|---|---|
| committer | 2022-04-13 00:27:46 +0000 | |
| commit | e7282659ef9d17e23d2073b62d1e4ad8caa44e32 (patch) | |
| tree | f2235d0f8f57c45873be46bdf08c9002fea36c8a | |
| parent | 8e177ad51b4d63d6871363bfd84fdd8be6d163ce (diff) | |
| parent | 83383957493864930f3465bde1681e19e98530be (diff) | |
Merge "Fix the @RequiresPermission annotation." into tm-dev am: 8338395749
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17698251
Change-Id: If885c18d6af186f22e9f51f599ebf7e55de144a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | core/api/system-current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/app/BroadcastOptions.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 650de2e00c3b..66af50c24db2 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -762,7 +762,7 @@ package android.app { method public void clearRequireCompatChange(); method public boolean isPendingIntentBackgroundActivityLaunchAllowed(); method public static android.app.BroadcastOptions makeBasic(); - method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from=0) long); + method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RESPONSE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from=0) long); method @RequiresPermission(android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND) public void setBackgroundActivityStartsAllowed(boolean); method public void setDontSendToRestrictedApps(boolean); method public void setPendingIntentBackgroundActivityLaunchAllowed(boolean); diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index 8b3c9fa73798..56f8760f6059 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -532,7 +532,7 @@ public class BroadcastOptions extends ComponentOptions { * @hide */ @SystemApi - @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) + @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RESPONSE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from = 0) long id) { mIdForResponseEvent = id; } |