OSDN Git Service

Exclude packages that's not installed from the hash for role.
authorHai Zhang <zhanghai@google.com>
Wed, 22 May 2019 20:04:12 +0000 (13:04 -0700)
committerHai Zhang <zhanghai@google.com>
Thu, 23 May 2019 02:36:30 +0000 (19:36 -0700)
commiteb8b460c8f63b106ffae254ab51310c9be6c3e0c
tree6c068e775f20f7084b8534d3a90d49aade416eb4
parent09c5edd7a0bed51df6150d1caf0d87f58e33250b
Exclude packages that's not installed from the hash for role.

Otherwise we won't detect the change when a package is set to
installed for an user.

Also added the number of enabled components to the hash so that when
an enabled component get disabled but the order didn't change, we can
still detect the change.

Fixes: 129004850
Test: follow the repro step in b/129004850 and confirm it's fixed
Change-Id: I87d62daf0f6a4d34939ee03ee783e9bdb19bf558
core/java/android/content/pm/PackageManagerInternal.java
services/core/java/com/android/server/pm/PackageManagerService.java
services/core/java/com/android/server/role/RoleManagerService.java