diff options
author | SongFerngWang <songferngwang@google.com> | 2021-05-05 21:33:00 +0800 |
---|---|---|
committer | SongFerngWang <songferngwang@google.com> | 2021-05-05 21:33:00 +0800 |
commit | 127dc78e43cbe15950cc36fee739f6dea449a26d (patch) | |
tree | a13f95903dfeedce0126c53cfbda56c75c1343f9 /telephony/java | |
parent | ee156a8c47d15330fb21e189d3896f492bee1ed1 (diff) |
[security] SubscriptionGroup is exposed to unprivileged callers
SubscriptionInfo.mGroupUUID is not cleared in
conditionallyRemoveIdentifiers if the caller only has READ_PHONE_STATE
(based on a check to checkReadPhoneState) and not READ_DEVICE_IDENTIFIERS.
Bug: 181053462
Test: atest SubscriptionManagerTest
Change-Id: Ic2b62523330dc6e2169ad851715c4ab3da3b29cf
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/SubscriptionInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/SubscriptionInfo.java b/telephony/java/android/telephony/SubscriptionInfo.java index 4004e37dc4e0..21bb43cb6f32 100644 --- a/telephony/java/android/telephony/SubscriptionInfo.java +++ b/telephony/java/android/telephony/SubscriptionInfo.java @@ -572,6 +572,13 @@ public class SubscriptionInfo implements Parcelable { /** * @hide */ + public void clearGroupUuid() { + this.mGroupUUID = null; + } + + /** + * @hide + */ public List<String> getEhplmns() { return mEhplmns == null ? Collections.emptyList() : Arrays.asList(mEhplmns); } |