Introduce a whitelist for core apps used by system server.

And by default 'speed' compile those apps at build time.

bug:33799337
Test: m -j32

(cherry picked from commit 9af483488a)

Change-Id: I66f1c675369fccc03b6529c08cb030264d15ba1c
This commit is contained in:
Nicolas Geoffray 2017-03-22 12:36:05 +00:00
parent 1a752acc89
commit b08ada1daa
5 changed files with 27 additions and 0 deletions

View File

@ -151,6 +151,13 @@ ifndef LOCAL_DEX_PREOPT_FLAGS
LOCAL_DEX_PREOPT_FLAGS := $(PRODUCT_DEX_PREOPT_DEFAULT_FLAGS)
endif
endif
# Jars of system server, and apps loaded into system server should be
# compiled with the 'speed' compiler filter.
ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(LOCAL_MODULE)))
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed
endif
$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)
$(built_vdex): $(built_odex)
$(built_art): $(built_odex)

View File

@ -112,6 +112,7 @@ _product_var_list := \
PRODUCT_SUPPORTS_VERITY_FEC \
PRODUCT_OEM_PROPERTIES \
PRODUCT_SYSTEM_PROPERTY_BLACKLIST \
PRODUCT_SYSTEM_SERVER_APPS \
PRODUCT_SYSTEM_SERVER_JARS \
PRODUCT_VBOOT_SIGNING_KEY \
PRODUCT_VBOOT_SIGNING_SUBKEY \

View File

@ -61,4 +61,11 @@ PRODUCT_PACKAGES += \
VpnDialogs \
MmsService
# The set of packages whose code can be loaded by the system server.
PRODUCT_SYSTEM_SERVER_APPS += \
FusedLocation \
InputDevices \
KeyChain \
Telecom \
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_base.mk)

View File

@ -110,6 +110,11 @@ PRODUCT_SYSTEM_SERVER_JARS := \
ethernet-service \
wifi-service
# The set of packages whose code can be loaded by the system server.
PRODUCT_SYSTEM_SERVER_APPS += \
SettingsProvider \
WallpaperBackup
# Adoptable external storage supports both ext4 and f2fs
PRODUCT_PACKAGES += \
e2fsck \

View File

@ -105,6 +105,13 @@ PRODUCT_SYSTEM_SERVER_JARS := \
services \
wifi-service
# The set of packages whose code can be loaded by the system server.
PRODUCT_SYSTEM_SERVER_APPS += \
FusedLocation \
InputDevices \
SettingsProvider \
WallpaperBackup \
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.zygote=zygote32
PRODUCT_COPY_FILES += \