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

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

Change-Id: I81b30c05cd3e3748486e45341b542871c7903d55
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:03:20 +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);
}