summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2016-02-19 12:55:27 -0800
committerAmith Yamasani <yamasani@google.com>2016-02-24 11:30:00 -0800
commit4ec6368f13a53906757283d50a17ed3ed43eccc4 (patch)
tree615cb9e92bb489bb4f8770ffd419348657c2b8d1 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb799d3f127f7410e8d0afe16343032e6115750fc (diff)
Optimize calls to TelephonyManager to check for privileged apps
Calling into TelephonyManager each of hundreds of apps to check if the app is carrier privileged was very expensive, especially when there aren't even any carrier access rules specified. This change fetches all the carrier privileged apps in one call, reducing the number of IPC calls to the radio process and checks the package names locally. If the carrier rules change or packages are modified, the list will be computed and fetched again. Other optimizations in Telephony help speed up the individual calls to check if a package is privileged, as well. Bug: 27271861 Change-Id: I5a77b6da4f2cdc603d2a73bd8569c5c38f06b42d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions