Skip to content

Commit 9d63412

Browse files
Chienyuanmg712702
authored andcommitted
SAP: Ensure pending intent is immutable
Bug: 156021269 TAG: #security Test: manual Change-Id: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d (cherry picked from commit 7b17763)
1 parent e8429c5 commit 9d63412

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/com/android/bluetooth/sap/SapServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ void setNotification(int type, int flags) {
225225
mContext.getString(R.string.bluetooth_sap_notif_title),
226226
NotificationManager.IMPORTANCE_HIGH);
227227
notificationManager.createNotificationChannel(notificationChannel);
228+
flags |= PendingIntent.FLAG_IMMUTABLE;
228229
if (VERBOSE) {
229230
Log.i(TAG, "setNotification type: " + type);
230231
}

0 commit comments

Comments
 (0)