diff options
author | 2021-12-21 17:40:02 +0000 | |
---|---|---|
committer | 2022-02-21 20:28:32 +0000 | |
commit | 418ab8212c4e0dee0111a44bdea87c760da215dd (patch) | |
tree | ffa05ecb9d8a325db1160fab3102d10c2121e047 /libs/hwui/SkiaCanvas.cpp | |
parent | 45a071221813a1cd2d12fdda4869b1afbdfed581 (diff) |
Add a runtime check to ensure that system server jars are prefetched.
We prefetch standalone system server jars in ZygoteInit based on the
STANDALONE_SYSTEMSERVER_JARS environment variable, so that they can take
the advantage of AOT compilation. This CL adds a check to disallow jars
that are not prefetched, which reminds developers to make appropriate
changes so that their jars will be in the environment variable.
Bug: 203198541
Test: 1. Build a system image.
2. The device boots.
Test: 1. Remove an entry from PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS
2. Build a system image.
3. The device does not boot and encounters the following error:
java.lang.RuntimeException: Creating a ClassLoader from /apex/com.android.wifi/javalib/service-wifi.jar is not allowed. Please make sure that the jar is listed in `PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS` in the Makefile and added as a `standalone_contents` of a `systemserverclasspath_fragment` in `Android.bp`.
Change-Id: I275d75ac37194a4d8fd491529b7cdb697dc04e37
Diffstat (limited to 'libs/hwui/SkiaCanvas.cpp')
0 files changed, 0 insertions, 0 deletions