From 89b88df157cd40912c117c452e0d011787d809bd Mon Sep 17 00:00:00 2001 From: Jiakai Zhang Date: Fri, 29 Oct 2021 19:57:53 +0000 Subject: [PATCH] Add STANDALONE_SYSTEMSERVER_JARS to classpath.proto. This is an environment variable that lists the jars that system server loads dynamically using separate classloaders. The list is derived from PRODUCT_STANDALONE_SYSTEM_SERVER_JARS and PRODUCT_APEX_PRODUCT_STANDALONE_SYSTEM_SERVER_JARS in Makefile. It will be comsumed by odrefresh to determine what jars to preopt on early boot. Note that the variable should not end with "CLASSPATH" because the list is not used by runtime as a classpath. It is just a colon-separated list of jars. System server loads the jars separately with paths hardcoded in the code. Bug: 203198541 Test: manual - 1. Build an image. 2. Flash the image to a device. 3. adb shell echo \$STANDALONE_SYSTEMSERVER_JARS 4. See the correct list of jars. Change-Id: I5a9653c606969aaa8083e8c8daa9d48b99663790 --- proto/classpaths.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/classpaths.proto b/proto/classpaths.proto index 829c14c..97f288e 100644 --- a/proto/classpaths.proto +++ b/proto/classpaths.proto @@ -21,6 +21,7 @@ enum Classpath { BOOTCLASSPATH = 1; SYSTEMSERVERCLASSPATH = 2; DEX2OATBOOTCLASSPATH = 3; + STANDALONE_SYSTEMSERVER_JARS = 4; } // Individual entry in a classpath variable.