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

Commit cb4b1eed authored by Chienyuan's avatar Chienyuan Committed by Vasyl Gello
Browse files

SAP: Ensure pending intent is immutable

Bug: 156021269
TAG: #security
Test: manual
Change-Id: Ieea6a708ca0fd1689e4b120db12f0cd96e8db95d
(cherry picked from commit 7b17763d)
parent a19f952d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@ public class SapServer extends Thread implements Callback {
    {
        String title, text, button, ticker;
        Notification notification;
        flags |= PendingIntent.FLAG_IMMUTABLE;
        if(VERBOSE) Log.v(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.