diff options
| author | Rafael Higuera Silva <rafahs@google.com> | 2022-02-24 21:02:56 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-02-24 21:02:56 +0000 |
| commit | b556d1e30b6d1265d19698d1b4e5562252fcaf3b (patch) | |
| tree | ac3737d2075aeffa5975870caff44801970dab7e /core/java | |
| parent | 4be480315a00b1109d614449c221fa61e2c538a6 (diff) | |
| parent | 4467a524cd44944dedea2bd367cd1572872052e1 (diff) | |
Merge "Adding renounce permissions logic to ipc calls." into tm-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/telephony/TelephonyRegistryManager.java | 10 |
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(); } |
