diff options
author | Torne (Richard Coles) <torne@google.com> | 2018-01-30 18:13:00 -0500 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2018-02-01 15:57:19 -0500 |
commit | 85ecae59b16d613426cdbee8ae592bed009f701a (patch) | |
tree | b5ecce5f31aeac15aaca25cc5b27261ff74b2865 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 35501be16f87ef843e2fcf70e32ebbfe8efb82eb (diff) |
Don't attempt to preload fonts in isolated processes.
Isolated processes used to run external services have the package name
of the application which caused them to be started (i.e. the client
application bound to the service) in their ApplicationInfo's packageName
field, not the package name which is actually loaded in the current
process. This meant that the font preloading code used the manifest of
the client application to determine the resource ID for the preloaded
font list, but then looked up that resource ID in the service's APK,
which typically results in a crash as that resource ID is unlikely to
exist.
Avoid this case occurring by not doing font preloading in isolated
processes, which are not normally capable of displaying UI in any case
and so likely do not require it.
Bug: 70968451
Test: CtsWebkitTestCases
Change-Id: Id47e01aab28a6fd48f5928ce33d5060fb2717527
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions