diff options
| author | Chienyuan <chienyuanhuang@google.com> | 2020-07-23 15:16:35 +0800 |
|---|---|---|
| committer | Anis Assi <anisassi@google.com> | 2020-08-06 17:13:45 -0700 |
| commit | c8d0decf0946bcdfe2edaa18235e4c5e7b6062f8 (patch) | |
| tree | e62380291b9fcf7ccea7fddde0dcf59bb28c2e74 | |
| parent | 62e33df4928f871ac4f9650d2f15a629c0cb41de (diff) | |
SAP: Ensure pending intent is immutable
Bug: 156021269
TAG: #security
Test: manual
Change-Id: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d
(cherry picked from commit 7b17763dad16814cb743c710efd64cc5fccd2239)
| -rw-r--r-- | src/com/android/bluetooth/sap/SapServer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/sap/SapServer.java b/src/com/android/bluetooth/sap/SapServer.java index d8281fe2..a2393bfc 100644 --- a/src/com/android/bluetooth/sap/SapServer.java +++ b/src/com/android/bluetooth/sap/SapServer.java @@ -225,6 +225,7 @@ public class SapServer extends Thread implements Callback { mContext.getString(R.string.bluetooth_sap_notif_title), NotificationManager.IMPORTANCE_HIGH); notificationManager.createNotificationChannel(notificationChannel); + flags |= PendingIntent.FLAG_IMMUTABLE; if (VERBOSE) { Log.i(TAG, "setNotification type: " + type); } |
