summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-02-27 14:03:26 -0800
committerWinson <chiuwinson@google.com>2020-02-27 17:07:51 -0800
commitd2732995bb9542eca713c79385bbe40903d97e57 (patch)
tree7bdb90db8337fca862c688ca2ae39d9c3712dcc2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent5b55f124d8d24045ef103dd8eeb767fb376cbd63 (diff)
Skip no-state checkUseInstalled check inside PackageInfoUtils
PackageInfoWithoutStateUtils is designed for use in core when the caller doesn't have a PackageSeting. Because its generic generateApplicationInfo method does a simplified checkUseInstalled check without the PackageSetting, this fails whenever state must be taken into account. This introduces method variants which skips the checks and defers to PackageInfoUtils's own check. Bug: 150328400 Test: manual verify call into PackageManager#setSystemAppState with SYSTEM_APP_STATE_UNINSTALLED and verify PackageManager#getApplicationInfo throws NameNotFoundException without fix and succeeds with fix Test: atest com.android.server.pm.parsing Test: TODO PackageInfo(WithoutState)Utils test in follow up change Change-Id: Ie00984c2e1b80d2a3948923dc1293fbfddf01037
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions