summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2021-12-21 17:40:02 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2022-02-24 16:21:28 +0000
commit8db9757f0870175d65a057fc02f1ff4ceb7f7a46 (patch)
tree3feb1d13cc3f3b1e1bb7be77507d4bd0ac967104 /libs/androidfw/AttributeResolution.cpp
parentc741f70ac2acf5a37cbc8198e9309e53284c463b (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 Merged-In: I275d75ac37194a4d8fd491529b7cdb697dc04e37 (cherry picked from commit 418ab8212c4e0dee0111a44bdea87c760da215dd)
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions