summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2021-03-16 23:04:23 +0800
committerRhed Jao <rhedjao@google.com>2021-03-19 19:32:19 +0800
commita0c38a4bdb1a5198405d6462f03e27a75977be8d (patch)
tree4426461ead247af7120a4a737bce63f3885eb43c /tools/aapt2/diff/Diff.cpp
parent30664e5ebdda324d588a94366711c8d6bbcfb8d3 (diff)
Applies package visibility for the broadcast of suspended packages
To allows building the allow list before sending, this cl breaks the original broadcast up from [{ action: ACTION_PACKAGES_SUSPENDED, extras: {EXTRA_SUSPENDED_PACKAGES: [com.app.a, com.app.b], EXTRA_SUSPENDED_UIDS: [10342, 10358]} }] into the following two: [{ action: ACTION_PACKAGES_SUSPENDED, extras: {EXTRA_SUSPENDED_PACKAGES: [com.app.a], EXTRA_SUSPENDED_UIDS: [10342]} }, { action: ACTION_PACKAGES_SUSPENDED, extras: {EXTRA_SUSPENDED_PACKAGES: [com.app.b], EXTRA_SUSPENDED_UIDS: [10358]} }] It also compares allow lists and merges the broadcast if allow lists are the same. Bug: 166181423 Test: atest AppEnumerationTests Test: atest SuspendPackagesTest Test: atest SuspendPackagesBroadcastTest Change-Id: Ie3bb0f18d2b1b933a9a422d0850863b88179076b
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions