summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2017-07-06 15:30:39 -0700
committerJesse Hall <jessehall@google.com>2017-07-07 14:52:53 -0700
commit1fe1dc0131f8251703ad54ac5e79eefa84affc2b (patch)
tree63a939d4bff3ddd5ec1b40a08d335d0505426294 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent49e6000f935744c6d8ec4c42aaa8fc8d616d0b4f (diff)
Preload app-process HALs in Zygote
Some HALs, like a.h.graphics.mapper, are always passthrough and are used by nearly all app processes. Preload those in Zygote to save app startup time and share more pages between processes. This has the side effect of also preloading a bunch of HIDL-related system and vndk libraries that would also otherwise be loaded independently by every app. An earlier attempt at this change tried to preload the HAL via a static initializer in libui.so (which is already preloaded, and which is the immediate client of the HAL). But several other non-Zygote processes also use libui.so, and didn't have SELinux permission to access the device nodes used by the HAL. This version uses an explicit call from Zygote to preload the HAL, instead of doing it implicitly. Bug: 62353585 Test: check that a.h.graphics.mapper is in /proc/`pid zygote64`/maps Change-Id: I42405c3b6cdf1ae412039140d656d15a6d4f8882
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions