OSDN Git Service

Only autoVerify at install for new hosts
authorChristopher Tate <ctate@google.com>
Fri, 29 May 2020 00:49:53 +0000 (17:49 -0700)
committerChris Tate <ctate@android.com>
Tue, 2 Jun 2020 04:13:58 +0000 (04:13 +0000)
commit3e76c30b7db2cb431e84a3e933c839fefe283c6d
tree57883d49d7c106f88de4997f1d381e82c0b59c8d
parent3d599fd941c864e04af57b9da86d9c91eeb9218c
Only autoVerify at install for new hosts

Re-run app link verification at update time only when the set of hosts
has expanded.  Intentionally revoke verify history when an app stops
using autoVerify, as a one-time measure to place it back into the
non-autoverify model for tracking the user's launch preferences.  If the
app starts using autoVerify again later, it behaves identically to an
app that has never done so before.

Bug: 151475497
Bug: 146204120
Test: described on master CL

Merged-In: I200d85085ce79842a3ed39377d1f75ec381c8991
Change-Id: Ibaf087946966ad82d60c7b255e3ee75990716b63
services/core/java/com/android/server/pm/PackageManagerService.java
services/core/java/com/android/server/pm/Settings.java