forked from openkylin/platform_build
Introduce a whitelist for core apps used by system server.
am: 7d32b8bb4f
Change-Id: Ia7e107be9ff3e36ce918446a0a598d7c09d56f20
This commit is contained in:
commit
58554adb9a
|
@ -151,6 +151,13 @@ ifndef LOCAL_DEX_PREOPT_FLAGS
|
||||||
LOCAL_DEX_PREOPT_FLAGS := $(PRODUCT_DEX_PREOPT_DEFAULT_FLAGS)
|
LOCAL_DEX_PREOPT_FLAGS := $(PRODUCT_DEX_PREOPT_DEFAULT_FLAGS)
|
||||||
endif
|
endif
|
||||||
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_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)
|
||||||
$(built_vdex): $(built_odex)
|
$(built_vdex): $(built_odex)
|
||||||
$(built_art): $(built_odex)
|
$(built_art): $(built_odex)
|
||||||
|
|
|
@ -111,6 +111,7 @@ _product_var_list := \
|
||||||
PRODUCT_SUPPORTS_VERITY_FEC \
|
PRODUCT_SUPPORTS_VERITY_FEC \
|
||||||
PRODUCT_OEM_PROPERTIES \
|
PRODUCT_OEM_PROPERTIES \
|
||||||
PRODUCT_SYSTEM_PROPERTY_BLACKLIST \
|
PRODUCT_SYSTEM_PROPERTY_BLACKLIST \
|
||||||
|
PRODUCT_SYSTEM_SERVER_APPS \
|
||||||
PRODUCT_SYSTEM_SERVER_JARS \
|
PRODUCT_SYSTEM_SERVER_JARS \
|
||||||
PRODUCT_VBOOT_SIGNING_KEY \
|
PRODUCT_VBOOT_SIGNING_KEY \
|
||||||
PRODUCT_VBOOT_SIGNING_SUBKEY \
|
PRODUCT_VBOOT_SIGNING_SUBKEY \
|
||||||
|
|
|
@ -61,4 +61,11 @@ PRODUCT_PACKAGES += \
|
||||||
VpnDialogs \
|
VpnDialogs \
|
||||||
MmsService
|
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)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_base.mk)
|
||||||
|
|
|
@ -112,6 +112,11 @@ PRODUCT_SYSTEM_SERVER_JARS := \
|
||||||
ethernet-service \
|
ethernet-service \
|
||||||
wifi-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
|
# Adoptable external storage supports both ext4 and f2fs
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
e2fsck \
|
e2fsck \
|
||||||
|
|
|
@ -105,6 +105,13 @@ PRODUCT_SYSTEM_SERVER_JARS := \
|
||||||
services \
|
services \
|
||||||
wifi-service
|
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 += \
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
|
||||||
ro.zygote=zygote32
|
ro.zygote=zygote32
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|
Loading…
Reference in New Issue