Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4756830 authored by Chienyuan's avatar Chienyuan Committed by Myles Watson
Browse files

SAP: Ensure pending intent is immutable

Bug: 156021269
TAG: #security
Test: manual
Change-Id: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d
Merged-In: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d
parent ac0783d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -216,6 +216,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);
        /* For PTS TC_SERVER_DCN_BV_03_I we need to expose the option to send immediate disconnect
         * without first sending a graceful disconnect.