summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2021-03-30 02:55:56 +0000
committerHai Zhang <zhanghai@google.com>2021-03-30 03:01:24 +0000
commitdf64212c74d09fc22cc1937e47447d6604f16dd3 (patch)
tree0ab7ac965841f46045a940a90593f1d27ae2477c /tools/aapt2/java/JavaClassGenerator_test.cpp
parent8b23eff356fbd399466a3c6e62d1f69de0f3bfe1 (diff)
Don't call getGrantedPermissions() when generating package info without
GET_PERMISSIONS. To avoid triggering error in logcat about no permission state is available during early boot. The grantedPermission parameter is actually only used in PackageInfoWithoutStateUtils.generateWithoutComponentsUnchecked() when GET_PERMISSIONS is present, so it's safe to omit the call when we don't have the flag. Fixes: 183999679 Test: presubmit Change-Id: I10a07563cb2378d519a6e0ea220fb1b5d76ea129
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions