summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Shrinidhi Hegde <shrinidhihegde@google.com> 2024-01-22 13:30:14 +0000
committer Harshit Mahajan <harshitmahajan@google.com> 2024-02-08 11:04:31 +0000
commitd293fc8e4d195aa582e6d34e3a84b0530a83f5af (patch)
tree30c5757e2d9987a7ce3b5e155dc3ed9e12c8f898 /api/api.go
parent0a87e803dd1646e4d7c9a6c0855f29e8ff4e013d (diff)
Rollback info API change. Added impact level to RollbackInfo.
Rollbacks are currently stored only for some mainline packages, but rollbacks will be added for phonesky and GMS core in V. These new rollbacks should not be treated similar to mainline. We would want to perform GMS core rollback only when all other rescue party mitigations are already tried. And Phonesky should not be automatically rolled back. We introduce a new field rollbackImpactLevel to RollbackInfo, which is used to determine the order in which these rollbacks should be performed relative to other mitigations in PackageWatchdog. rollbackImpactLevel is exposed through PackageInstaller.SessionParams. Bug: 291135724 Test: CTS test. Unit tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a3ae2464aac43d8bbc2129bdea7733d09b90e2da) Merged-In: I723405eb62577202893ff208af2ab01b212b112a Change-Id: I723405eb62577202893ff208af2ab01b212b112a
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions