Merge "Add FLAG_IMMUTABLE in DevTools app" am: 95e0aacc63 am: 40d5fb833c

Original change: https://android-review.googlesource.com/c/platform/development/+/2383492

Change-Id: I6ccb006501aebf516abd6490fd390abf7c4e9ded
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-01-20 14:38:10 +00:00
committed by Automerger Merge Worker

View File

@@ -631,7 +631,8 @@ public class Connectivity extends Activity {
i.putExtra(TEST_ALARM_OFF_EXTRA, Long.toString(mSCOffDuration));
i.putExtra(TEST_ALARM_CYCLE_EXTRA, Integer.toString(mSCCycleCount));
PendingIntent p = PendingIntent.getBroadcast(this, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent p = PendingIntent.getBroadcast(this, 0, i,
PendingIntent.FLAG_UPDATE_CURRENT|PendingIntent.FLAG_IMMUTABLE);
am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + delayMs, p);
}