diff options
author | Shuo Qian <shuoq@google.com> | 2021-03-31 22:40:20 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-31 22:40:20 +0000 |
commit | 4ba90c33b595e120dc2ed4d2ccf4790438ffbaf8 (patch) | |
tree | 7ca5d6f7855aa2fdb817e6bf4c12a085b9e6ccee | |
parent | 2ce9e1544377e36cd9a03a9d7aa809911aa735a3 (diff) | |
parent | 0e459673aa944d65989181b659c820504117ab51 (diff) | |
download | voip-4ba90c33b595e120dc2ed4d2ccf4790438ffbaf8.tar.gz |
Add permission for the broadcast intent with SIP profiles for security purpose. am: 0e459673aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/voip/+/13787771
Change-Id: I9285203d6d96ea600cd11fce8dbabebc17f767f8
-rw-r--r-- | src/java/com/android/server/sip/SipService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/android/server/sip/SipService.java b/src/java/com/android/server/sip/SipService.java index d14a8d6..5328801 100644 --- a/src/java/com/android/server/sip/SipService.java +++ b/src/java/com/android/server/sip/SipService.java @@ -342,7 +342,7 @@ public final class SipService extends ISipService.Stub { if (DBG) log("notify: profile added: " + localProfile); Intent intent = new Intent(SipManager.ACTION_SIP_ADD_PHONE); intent.putExtra(SipManager.EXTRA_LOCAL_URI, localProfile.getUriString()); - mContext.sendBroadcast(intent); + mContext.sendBroadcast(intent, android.Manifest.permission.USE_SIP); if (mSipGroups.size() == 1) { registerReceivers(); } @@ -352,7 +352,7 @@ public final class SipService extends ISipService.Stub { if (DBG) log("notify: profile removed: " + localProfile); Intent intent = new Intent(SipManager.ACTION_SIP_REMOVE_PHONE); intent.putExtra(SipManager.EXTRA_LOCAL_URI, localProfile.getUriString()); - mContext.sendBroadcast(intent); + mContext.sendBroadcast(intent, android.Manifest.permission.USE_SIP); if (mSipGroups.size() == 0) { unregisterReceivers(); } |