summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorRafael Higuera Silva <rafahs@google.com>2022-02-25 18:48:27 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-02-25 18:48:27 +0000
commitb35601797781e271ea8fd77f7434f978b7634d88 (patch)
tree8df3f28e0cf35737f3c506f4907ad99b6ee3f972 /core/java
parent9d9a97ca745881882a79d5a37b9f0125a7ba477f (diff)
parent8703fa4981ea283f4c0f763c5d40544d5d96c72d (diff)
Merge "Adding renounce permissions logic to ipc calls." am: b4781afdbf am: 8703fa4981
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1932099 Change-Id: I17638d2267071a0c9cf82388301afb5386f387c3
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/telephony/TelephonyRegistryManager.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/telephony/TelephonyRegistryManager.java b/core/java/android/telephony/TelephonyRegistryManager.java
index 542de3fad8b0..c1fcd664f6fa 100644
--- a/core/java/android/telephony/TelephonyRegistryManager.java
+++ b/core/java/android/telephony/TelephonyRegistryManager.java
@@ -239,8 +239,10 @@ public class TelephonyRegistryManager {
* @param events Events
* @param notifyNow Whether to notify instantly
*/
- public void listenFromListener(int subId, @NonNull String pkg, @NonNull String featureId,
- @NonNull PhoneStateListener listener, @NonNull int events, boolean notifyNow) {
+ public void listenFromListener(int subId, @NonNull boolean renounceFineLocationAccess,
+ @NonNull boolean renounceCoarseLocationAccess, @NonNull String pkg,
+ @NonNull String featureId, @NonNull PhoneStateListener listener,
+ @NonNull int events, boolean notifyNow) {
if (listener == null) {
throw new IllegalStateException("telephony service is null.");
}
@@ -257,8 +259,8 @@ public class TelephonyRegistryManager {
} else if (listener.mSubId != null) {
subId = listener.mSubId;
}
- sRegistry.listenWithEventList(false, false, subId, pkg, featureId,
- listener.callback, eventsList, notifyNow);
+ sRegistry.listenWithEventList(renounceFineLocationAccess, renounceCoarseLocationAccess,
+ subId, pkg, featureId, listener.callback, eventsList, notifyNow);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}