diff options
author | Shuo Qian <shuoq@google.com> | 2021-03-05 09:58:19 -0800 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-05-14 21:56:12 +0000 |
commit | bcab0b0d06f5ba961c7106ac5f0788e003383abc (patch) | |
tree | 791bbd6812bac49fe2d2f0abae44d7adc411289b | |
parent | 78a7feeb2601037bba61aec5f24302896dace6bc (diff) | |
download | voip-bcab0b0d06f5ba961c7106ac5f0788e003383abc.tar.gz |
Add permission for the broadcast intent with SIP profiles for security purpose.
Test: Treehugger
Bug: 176496502
Change-Id: I2087170aceb7c0670afd04fcc779047aa95a373f
(cherry picked from commit 0e459673aa944d65989181b659c820504117ab51)
-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(); } |