diff options
author | Shuo Qian <shuoq@google.com> | 2021-03-31 23:27:27 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-31 23:27:27 +0000 |
commit | 03c525a6bf7d8bff8eb6cc05e9b6adb963accb29 (patch) | |
tree | 0ed254ab2b4fcc770ca5cce9450a8ecefb934709 | |
parent | 66e4b1d1cce6d6ee2006e56af215bb20cb9ea820 (diff) | |
parent | 4ba90c33b595e120dc2ed4d2ccf4790438ffbaf8 (diff) | |
download | voip-03c525a6bf7d8bff8eb6cc05e9b6adb963accb29.tar.gz |
Add permission for the broadcast intent with SIP profiles for security purpose. am: 0e459673aa am: 4ba90c33b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/net/voip/+/13787771
Change-Id: I03f812b7134b5296335adf517a96600133017f2d
-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(); } |