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

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

Change-Id: Ib68d35850173a213bfb02856bc11ed3fb0097b1a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-01-20 15:13:46 +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);
}