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

Commit b601d0a0 authored by Varun Shah's avatar Varun Shah
Browse files

Ensure SyncManager PendingIntent is immutable.

Bug: 154921790
Test: atest SyncManagerTest
Test: atest CtsSyncManagerTest
Change-Id: I88d9a31f49b87e42e5ec759a59e997eedc224396
parent 40f632b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1819,7 +1819,8 @@ public class SyncManager {
        intent.putExtra(Intent.EXTRA_CLIENT_LABEL,
                com.android.internal.R.string.sync_binding_label);
        intent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivityAsUser(context, 0,
                new Intent(Settings.ACTION_SYNC_SETTINGS), 0, null, UserHandle.of(userId)));
                new Intent(Settings.ACTION_SYNC_SETTINGS), PendingIntent.FLAG_IMMUTABLE, null,
                UserHandle.of(userId)));

        return intent;
    }