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

Commit 7b17763d authored by Chienyuan's avatar Chienyuan Committed by Chienyuan Huang
Browse files

SAP: Ensure pending intent is immutable

Bug: 156021269
TAG: #security
Test: manual
Change-Id: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d
parent eb28cfbf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
        }