summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Winson Chiu <chiuwinson@google.com> 2022-04-22 20:47:58 +0000
committer Winson Chiu <chiuwinson@google.com> 2022-04-22 20:54:49 +0000
commit9aedadbedc955e854f052e69ba07a4e6a0ad688f (patch)
treecd33da0866cfc37952214564d0665879f88eab34 /libs/androidfw/StringPool.cpp
parentb1b22000d6119036e48f822c4d0e339f8558eff7 (diff)
Optimize ActiveServices targetSdkVersion fetch
Rather than fetching the entire AppInfo object, call the method for specifically getting the targetSdkVersion. In this specific case, match flags and user ID can both be ignored as only 1 physical APK for each package name is allowed on the device, so as long as the caller has package visibility, the targetSdkVersion returned is guaranteed to be the right one. Bug: 219481486 Test: presubmit Change-Id: I1d8c155e9be9b80da0af241273ceb9cf3564d917
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions