summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorBartosz Fabianowski <bartfab@google.com>2017-01-13 16:46:47 +0100
committerBartosz Fabianowski <bartfab@google.com>2017-01-18 19:55:34 +0100
commit2646571a0ef94401938f067de909d9811594df3a (patch)
tree0a24b0a91266e84851e4236a80994017a6754180 /tools/aapt2/diff/Diff.cpp
parent4b0624fee452138951de919bbe74003258e9bc19 (diff)
Ensure correct install reason
When installing a package, we trust the installer to set the install reason correctly. However, there are cases where we know what the install reason should be (e.g. install by Device Owner or Profile Owner should always be recorded as caused by enterprise policy) or we do not trust the installer (e.g. an ordinary app not acting on behalf of an enterprise should not be allowed to set the install reason to enterprise policy). This CL introduces a fix-up method that enforces these rules. Bug: 32692748 Test: Manually tested all scenarios; DO case also covered by CTS Change-Id: I18eb891401c9e38546f823a14f67391c94b22e28
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions