Compare commits
15 commits
5d80775841
...
22cbd6054f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22cbd6054f | ||
|
|
bdf3474394 | ||
|
|
0fc8410b07 | ||
|
|
219d8fdfaa | ||
|
|
6a04b1f9a2 | ||
|
|
11d4e154ed | ||
|
|
9db2fb62fe | ||
|
|
ced4f33fe0 | ||
|
|
bac9f13ff2 | ||
|
|
5c84874c51 | ||
|
|
3916a75115 | ||
|
|
ae53e47efb | ||
|
|
4f0bb25f6f | ||
|
|
b64e54d2c6 | ||
|
|
2941b03df1 |
13 changed files with 262 additions and 102 deletions
|
|
@ -169,7 +169,7 @@ $(foreach cf,$(unique_product_copy_files_pairs), \
|
||||||
$(eval $(call copy-xml-file-checked,$(_src),$(_fulldest))),\
|
$(eval $(call copy-xml-file-checked,$(_src),$(_fulldest))),\
|
||||||
$(if $(and $(filter %.jar,$(_dest)),$(filter $(basename $(notdir $(_dest))),$(PRODUCT_LOADED_BY_PRIVILEGED_MODULES))),\
|
$(if $(and $(filter %.jar,$(_dest)),$(filter $(basename $(notdir $(_dest))),$(PRODUCT_LOADED_BY_PRIVILEGED_MODULES))),\
|
||||||
$(eval $(call copy-and-uncompress-dexs,$(_src),$(_fulldest))), \
|
$(eval $(call copy-and-uncompress-dexs,$(_src),$(_fulldest))), \
|
||||||
$(if $(filter init%rc,$(notdir $(_dest)))$(filter %/etc/init,$(dir $(_dest))),\
|
$(if $(filter init%rc,$(notdir $(_dest)))$(filter %/etc/init/,$(dir $(_dest))),\
|
||||||
$(eval $(call copy-init-script-file-checked,$(_src),$(_fulldest))),\
|
$(eval $(call copy-init-script-file-checked,$(_src),$(_fulldest))),\
|
||||||
$(if $(and $(filter true,$(check_elf_prebuilt_product_copy_files)), \
|
$(if $(and $(filter true,$(check_elf_prebuilt_product_copy_files)), \
|
||||||
$(filter bin lib lib64,$(subst /,$(space),$(_dest)))), \
|
$(filter bin lib lib64,$(subst /,$(space),$(_dest)))), \
|
||||||
|
|
@ -2304,11 +2304,9 @@ $(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR),$(hide) echo "$(1)_squashfs_compr
|
||||||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT),$(hide) echo "$(1)_squashfs_compressor_opt=$(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT)" >> $(2))
|
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT),$(hide) echo "$(1)_squashfs_compressor_opt=$(BOARD_$(_var)IMAGE_SQUASHFS_COMPRESSOR_OPT)" >> $(2))
|
||||||
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN),$(hide) echo "$(1)_squashfs_disable_4k_align=$(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN)" >> $(2))
|
$(if $(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN),$(hide) echo "$(1)_squashfs_disable_4k_align=$(BOARD_$(_var)IMAGE_SQUASHFS_DISABLE_4K_ALIGN)" >> $(2))
|
||||||
$(if $(PRODUCT_$(_var)_BASE_FS_PATH),$(hide) echo "$(1)_base_fs_file=$(PRODUCT_$(_var)_BASE_FS_PATH)" >> $(2))
|
$(if $(PRODUCT_$(_var)_BASE_FS_PATH),$(hide) echo "$(1)_base_fs_file=$(PRODUCT_$(_var)_BASE_FS_PATH)" >> $(2))
|
||||||
$(if $(filter true,$(AB_OTA_UPDATER)),,\
|
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
||||||
$(eval _size := $(BOARD_$(_var)IMAGE_PARTITION_SIZE))
|
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
||||||
$(eval _reserved := $(BOARD_$(_var)IMAGE_PARTITION_RESERVED_SIZE))
|
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
||||||
$(eval _headroom := $(PRODUCT_$(_var)_HEADROOM))
|
|
||||||
)
|
|
||||||
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
$(if $(or $(_size), $(_reserved), $(_headroom)),,
|
||||||
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
$(hide) echo "$(1)_disable_sparse=true" >> $(2))
|
||||||
$(call add-common-flags-to-image-props,$(1),$(2))
|
$(call add-common-flags-to-image-props,$(1),$(2))
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,10 @@ $(call add_soong_config_var,ANDROID,TARGET_DYNAMIC_64_32_DRMSERVER)
|
||||||
$(call add_soong_config_var,ANDROID,TARGET_ENABLE_MEDIADRM_64)
|
$(call add_soong_config_var,ANDROID,TARGET_ENABLE_MEDIADRM_64)
|
||||||
$(call add_soong_config_var,ANDROID,TARGET_DYNAMIC_64_32_MEDIASERVER)
|
$(call add_soong_config_var,ANDROID,TARGET_DYNAMIC_64_32_MEDIASERVER)
|
||||||
$(call add_soong_config_var,ANDROID,BOARD_GENFS_LABELS_VERSION)
|
$(call add_soong_config_var,ANDROID,BOARD_GENFS_LABELS_VERSION)
|
||||||
|
$(call soong_config_set_bool,ANDROID,PRODUCT_FSVERITY_GENERATE_METADATA,$(if $(filter true,$(PRODUCT_FSVERITY_GENERATE_METADATA)),true,false))
|
||||||
|
|
||||||
$(call add_soong_config_var,ANDROID,ADDITIONAL_M4DEFS,$(if $(BOARD_SEPOLICY_M4DEFS),$(addprefix -D,$(BOARD_SEPOLICY_M4DEFS))))
|
$(call add_soong_config_var,ANDROID,ADDITIONAL_M4DEFS,$(if $(BOARD_SEPOLICY_M4DEFS),$(addprefix -D,$(BOARD_SEPOLICY_M4DEFS))))
|
||||||
|
$(call add_soong_config_var,ANDROID,TARGET_ADD_ROOT_EXTRA_VENDOR_SYMLINKS)
|
||||||
|
|
||||||
# For bootable/recovery
|
# For bootable/recovery
|
||||||
RECOVERY_API_VERSION := 3
|
RECOVERY_API_VERSION := 3
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@
|
||||||
# (like "CRB01"). It must be a single word, and is
|
# (like "CRB01"). It must be a single word, and is
|
||||||
# capitalized by convention.
|
# capitalized by convention.
|
||||||
|
|
||||||
BUILD_ID=BP1A.250305.019
|
BUILD_ID=BP1A.250305.020.T2
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ endif
|
||||||
|
|
||||||
include $(BUILD_SYSTEM)/base_rules.mk
|
include $(BUILD_SYSTEM)/base_rules.mk
|
||||||
|
|
||||||
ifneq ($(filter init%rc,$(notdir $(LOCAL_INSTALLED_MODULE)))$(filter %/etc/init,$(dir $(LOCAL_INSTALLED_MODULE))),)
|
ifneq ($(filter init%rc,$(notdir $(LOCAL_INSTALLED_MODULE)))$(filter %/etc/init/,$(dir $(LOCAL_INSTALLED_MODULE))),)
|
||||||
$(eval $(call copy-init-script-file-checked,$(my_prebuilt_src_file),$(LOCAL_BUILT_MODULE)))
|
$(eval $(call copy-init-script-file-checked,$(my_prebuilt_src_file),$(LOCAL_BUILT_MODULE)))
|
||||||
else
|
else
|
||||||
$(LOCAL_BUILT_MODULE) : $(my_prebuilt_src_file)
|
$(LOCAL_BUILT_MODULE) : $(my_prebuilt_src_file)
|
||||||
|
|
|
||||||
|
|
@ -482,11 +482,18 @@ function lunch()
|
||||||
|
|
||||||
export TARGET_BUILD_APPS=
|
export TARGET_BUILD_APPS=
|
||||||
|
|
||||||
# This must be <product>-<release>-<variant>
|
# This must be <product>-[<release>]-<variant>
|
||||||
local product release variant
|
local product release variant
|
||||||
# Split string on the '-' character.
|
# Split string on the '-' character.
|
||||||
IFS="-" read -r product release variant <<< "$selection"
|
IFS="-" read -r product release variant <<< "$selection"
|
||||||
|
|
||||||
|
if [[ -z "$variant" ]]
|
||||||
|
then
|
||||||
|
# try to lunch with latest release
|
||||||
|
variant=$release
|
||||||
|
# from https://github.com/yaap/build_make/blob/c7753b7616c75f020cd1bdb04fda05625d2649cc/envsetup.sh#L523
|
||||||
|
release=$(grep "BUILD_ID" build/make/core/build_id.mk | tail -1 | cut -d '=' -f 2 | cut -d '.' -f 1 | tr '[:upper:]' '[:lower:]')
|
||||||
|
fi
|
||||||
if [[ -z "$product" ]] || [[ -z "$release" ]] || [[ -z "$variant" ]]
|
if [[ -z "$product" ]] || [[ -z "$release" ]] || [[ -z "$variant" ]]
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ include build/make/target/board/BoardConfigGsiCommon.mk
|
||||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||||
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
|
||||||
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/firmware_mnt:/firmware
|
||||||
|
# for Android.bp
|
||||||
|
TARGET_ADD_ROOT_EXTRA_VENDOR_SYMLINKS := true
|
||||||
|
|
||||||
# TODO(b/36764215): remove this setting when the generic system image
|
# TODO(b/36764215): remove this setting when the generic system image
|
||||||
# no longer has QCOM-specific directories under /.
|
# no longer has QCOM-specific directories under /.
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,12 @@ ifeq (aosp_arm,$(TARGET_PRODUCT))
|
||||||
MODULE_BUILD_FROM_SOURCE ?= true
|
MODULE_BUILD_FROM_SOURCE ?= true
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||||
endif
|
|
||||||
|
|
||||||
|
PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := aosp_system_image
|
||||||
|
USE_SOONG_DEFINED_SYSTEM_IMAGE := true
|
||||||
|
PRODUCT_USE_SOONG_NOTICE_XML := true
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_NAME := aosp_arm
|
PRODUCT_NAME := aosp_arm
|
||||||
PRODUCT_DEVICE := generic
|
PRODUCT_DEVICE := generic
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,12 @@ ifeq (aosp_arm64,$(TARGET_PRODUCT))
|
||||||
MODULE_BUILD_FROM_SOURCE ?= true
|
MODULE_BUILD_FROM_SOURCE ?= true
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||||
endif
|
|
||||||
|
|
||||||
|
PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := aosp_system_image
|
||||||
|
USE_SOONG_DEFINED_SYSTEM_IMAGE := true
|
||||||
|
PRODUCT_USE_SOONG_NOTICE_XML := true
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_NAME := aosp_arm64
|
PRODUCT_NAME := aosp_arm64
|
||||||
PRODUCT_DEVICE := generic_arm64
|
PRODUCT_DEVICE := generic_arm64
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,12 @@ ifeq (aosp_x86,$(TARGET_PRODUCT))
|
||||||
MODULE_BUILD_FROM_SOURCE ?= true
|
MODULE_BUILD_FROM_SOURCE ?= true
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||||
endif
|
|
||||||
|
|
||||||
|
PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := aosp_system_image
|
||||||
|
USE_SOONG_DEFINED_SYSTEM_IMAGE := true
|
||||||
|
PRODUCT_USE_SOONG_NOTICE_XML := true
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_NAME := aosp_x86
|
PRODUCT_NAME := aosp_x86
|
||||||
PRODUCT_DEVICE := generic_x86
|
PRODUCT_DEVICE := generic_x86
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,12 @@ ifeq (aosp_x86_64,$(TARGET_PRODUCT))
|
||||||
MODULE_BUILD_FROM_SOURCE ?= true
|
MODULE_BUILD_FROM_SOURCE ?= true
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||||
endif
|
|
||||||
|
|
||||||
|
PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := aosp_system_image
|
||||||
|
USE_SOONG_DEFINED_SYSTEM_IMAGE := true
|
||||||
|
PRODUCT_USE_SOONG_NOTICE_XML := true
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_NAME := aosp_x86_64
|
PRODUCT_NAME := aosp_x86_64
|
||||||
PRODUCT_DEVICE := generic_x86_64
|
PRODUCT_DEVICE := generic_x86_64
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,23 @@ android_symlinks = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
extra_vendor_symlinks = [
|
||||||
|
// Some vendors still haven't cleaned up all device specific directories under root!
|
||||||
|
// TODO(b/111434759, b/111287060) SoC specific hacks
|
||||||
|
{
|
||||||
|
target: "/vendor/lib/dsp",
|
||||||
|
name: "dsp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
target: "/mnt/vendor/persist",
|
||||||
|
name: "persist",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
target: "/vendor/firmware_mnt",
|
||||||
|
name: "firmware",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
filegroup {
|
filegroup {
|
||||||
name: "generic_system_sign_key",
|
name: "generic_system_sign_key",
|
||||||
srcs: [":avb_testkey_rsa4096"],
|
srcs: [":avb_testkey_rsa4096"],
|
||||||
|
|
@ -347,27 +364,142 @@ phony {
|
||||||
}
|
}
|
||||||
|
|
||||||
android_filesystem_defaults {
|
android_filesystem_defaults {
|
||||||
|
name: "system_ext_image_defaults",
|
||||||
|
deps: [
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// base_system_ext
|
||||||
|
///////////////////////////////////////////
|
||||||
|
"build_flag_system_ext",
|
||||||
|
"fs_config_dirs_system_ext",
|
||||||
|
"fs_config_files_system_ext",
|
||||||
|
"group_system_ext",
|
||||||
|
"passwd_system_ext",
|
||||||
|
"SatelliteClient",
|
||||||
|
"selinux_policy_system_ext",
|
||||||
|
"system_ext_manifest.xml",
|
||||||
|
"system_ext-build.prop",
|
||||||
|
// Base modules when shipping api level is less than or equal to 34
|
||||||
|
"hwservicemanager",
|
||||||
|
"android.hidl.allocator@1.0-service",
|
||||||
|
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// window_extensions_base
|
||||||
|
///////////////////////////////////////////
|
||||||
|
"androidx.window.extensions",
|
||||||
|
"androidx.window.sidecar",
|
||||||
|
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// base_system
|
||||||
|
///////////////////////////////////////////
|
||||||
|
"charger",
|
||||||
|
] + select(release_flag("RELEASE_APPFUNCTION_SIDECAR"), {
|
||||||
|
true: [
|
||||||
|
"com.android.extensions.appfunctions",
|
||||||
|
"appfunctions.extension.xml",
|
||||||
|
],
|
||||||
|
default: [],
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
|
||||||
|
android_filesystem_defaults {
|
||||||
|
name: "product_image_defaults",
|
||||||
|
deps: [
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// media_product
|
||||||
|
///////////////////////////////////////////
|
||||||
|
"webview",
|
||||||
|
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// base_product
|
||||||
|
///////////////////////////////////////////
|
||||||
|
|
||||||
|
// Base modules and settings for the product partition.
|
||||||
|
"build_flag_product",
|
||||||
|
"fs_config_dirs_product",
|
||||||
|
"fs_config_files_product",
|
||||||
|
"group_product",
|
||||||
|
"ModuleMetadata",
|
||||||
|
"passwd_product",
|
||||||
|
"product_compatibility_matrix.xml",
|
||||||
|
"product_manifest.xml",
|
||||||
|
"selinux_policy_product",
|
||||||
|
"product-build.prop",
|
||||||
|
|
||||||
|
// AUDIO
|
||||||
|
"frameworks_sounds",
|
||||||
|
] + select(product_variable("debuggable"), {
|
||||||
|
// Packages included only for eng or userdebug builds, previously debug tagged
|
||||||
|
true: ["adb_keys"],
|
||||||
|
default: [],
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
|
||||||
|
system_image_fsverity_default = {
|
||||||
|
inputs: [
|
||||||
|
"etc/boot-image.prof",
|
||||||
|
"etc/classpaths/*.pb",
|
||||||
|
"etc/dirty-image-objects",
|
||||||
|
"etc/preloaded-classes",
|
||||||
|
"framework/*",
|
||||||
|
"framework/*/*", // framework/{arch}
|
||||||
|
"framework/oat/*/*", // framework/oat/{arch}
|
||||||
|
],
|
||||||
|
libs: [":framework-res{.export-package.apk}"],
|
||||||
|
}
|
||||||
|
|
||||||
|
soong_config_module_type {
|
||||||
|
name: "system_image_defaults",
|
||||||
|
module_type: "android_filesystem_defaults",
|
||||||
|
config_namespace: "ANDROID",
|
||||||
|
bool_variables: ["TARGET_ADD_ROOT_EXTRA_VENDOR_SYMLINKS"],
|
||||||
|
properties: ["symlinks"],
|
||||||
|
}
|
||||||
|
|
||||||
|
genrule {
|
||||||
|
name: "plat_and_vendor_file_contexts",
|
||||||
|
device_common_srcs: [
|
||||||
|
":plat_file_contexts",
|
||||||
|
":vendor_file_contexts",
|
||||||
|
],
|
||||||
|
out: ["file_contexts"],
|
||||||
|
cmd: "cat $(in) > $(out)",
|
||||||
|
}
|
||||||
|
|
||||||
|
system_image_defaults {
|
||||||
name: "system_image_defaults",
|
name: "system_image_defaults",
|
||||||
partition_name: "system",
|
partition_name: "system",
|
||||||
base_dir: "system",
|
base_dir: "system",
|
||||||
dirs: generic_rootdirs,
|
dirs: generic_rootdirs,
|
||||||
symlinks: generic_symlinks,
|
soong_config_variables: {
|
||||||
file_contexts: ":plat_file_contexts",
|
TARGET_ADD_ROOT_EXTRA_VENDOR_SYMLINKS: {
|
||||||
|
symlinks: generic_symlinks + extra_vendor_symlinks,
|
||||||
|
conditions_default: {
|
||||||
|
symlinks: generic_symlinks,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
file_contexts: ":plat_and_vendor_file_contexts",
|
||||||
linker_config: {
|
linker_config: {
|
||||||
gen_linker_config: true,
|
gen_linker_config: true,
|
||||||
linker_config_srcs: [":system_linker_config_json_file"],
|
linker_config_srcs: [":system_linker_config_json_file"],
|
||||||
},
|
},
|
||||||
fsverity: {
|
fsverity: {
|
||||||
inputs: [
|
inputs: select(soong_config_variable("ANDROID", "PRODUCT_FSVERITY_GENERATE_METADATA"), {
|
||||||
"etc/boot-image.prof",
|
true: [
|
||||||
"etc/classpaths/*.pb",
|
"etc/boot-image.prof",
|
||||||
"etc/dirty-image-objects",
|
"etc/classpaths/*.pb",
|
||||||
"etc/preloaded-classes",
|
"etc/dirty-image-objects",
|
||||||
"framework/*",
|
"etc/preloaded-classes",
|
||||||
"framework/*/*", // framework/{arch}
|
"framework/*",
|
||||||
"framework/oat/*/*", // framework/oat/{arch}
|
"framework/*/*", // framework/{arch}
|
||||||
],
|
"framework/oat/*/*", // framework/oat/{arch}
|
||||||
libs: [":framework-res{.export-package.apk}"],
|
],
|
||||||
|
default: [],
|
||||||
|
}),
|
||||||
|
libs: select(soong_config_variable("ANDROID", "PRODUCT_FSVERITY_GENERATE_METADATA"), {
|
||||||
|
true: [":framework-res{.export-package.apk}"],
|
||||||
|
default: [],
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
build_logtags: true,
|
build_logtags: true,
|
||||||
gen_aconfig_flags_pb: true,
|
gen_aconfig_flags_pb: true,
|
||||||
|
|
@ -610,6 +742,11 @@ android_filesystem_defaults {
|
||||||
"update_engine_client",
|
"update_engine_client",
|
||||||
],
|
],
|
||||||
default: [],
|
default: [],
|
||||||
|
}) + select(release_flag("RELEASE_UPROBESTATS_MODULE"), {
|
||||||
|
true: [],
|
||||||
|
default: [
|
||||||
|
"uprobestats", // base_system internal
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
multilib: {
|
multilib: {
|
||||||
common: {
|
common: {
|
||||||
|
|
@ -762,12 +899,7 @@ android_filesystem_defaults {
|
||||||
"android.system.virtualizationservice-ndk",
|
"android.system.virtualizationservice-ndk",
|
||||||
"libgsi",
|
"libgsi",
|
||||||
"servicemanager",
|
"servicemanager",
|
||||||
] + select(release_flag("RELEASE_UPROBESTATS_MODULE"), {
|
],
|
||||||
true: [],
|
|
||||||
default: [
|
|
||||||
"uprobestats", // base_system internal
|
|
||||||
],
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
both: {
|
both: {
|
||||||
deps: [
|
deps: [
|
||||||
|
|
|
||||||
|
|
@ -81,9 +81,13 @@ gsi_symlinks = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
android_system_image {
|
android_filesystem_defaults {
|
||||||
name: "android_gsi",
|
name: "android_gsi_defaults",
|
||||||
defaults: ["system_image_defaults"],
|
defaults: [
|
||||||
|
"system_image_defaults",
|
||||||
|
"system_ext_image_defaults",
|
||||||
|
"product_image_defaults",
|
||||||
|
],
|
||||||
symlinks: gsi_symlinks,
|
symlinks: gsi_symlinks,
|
||||||
dirs: ["cache"],
|
dirs: ["cache"],
|
||||||
deps: [
|
deps: [
|
||||||
|
|
@ -101,33 +105,6 @@ android_system_image {
|
||||||
// telephony packages
|
// telephony packages
|
||||||
"CarrierConfig",
|
"CarrierConfig",
|
||||||
|
|
||||||
// Install a copy of the debug policy to the system_ext partition, and allow
|
|
||||||
// init-second-stage to load debug policy from system_ext.
|
|
||||||
// This option is only meant to be set by compliance GSI targets.
|
|
||||||
"system_ext_userdebug_plat_sepolicy.cil",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
|
||||||
// base_system_ext
|
|
||||||
///////////////////////////////////////////
|
|
||||||
"build_flag_system_ext",
|
|
||||||
"fs_config_dirs_system_ext",
|
|
||||||
"fs_config_files_system_ext",
|
|
||||||
"group_system_ext",
|
|
||||||
"passwd_system_ext",
|
|
||||||
"SatelliteClient",
|
|
||||||
"selinux_policy_system_ext",
|
|
||||||
"system_ext_manifest.xml",
|
|
||||||
"system_ext-build.prop",
|
|
||||||
// Base modules when shipping api level is less than or equal to 34
|
|
||||||
"hwservicemanager",
|
|
||||||
"android.hidl.allocator@1.0-service",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
|
||||||
// window_extensions_base
|
|
||||||
///////////////////////////////////////////
|
|
||||||
"androidx.window.extensions",
|
|
||||||
"androidx.window.sidecar",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// gsi_release
|
// gsi_release
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
@ -147,12 +124,6 @@ android_system_image {
|
||||||
"com.android.vndk.v33",
|
"com.android.vndk.v33",
|
||||||
"com.android.vndk.v34",
|
"com.android.vndk.v34",
|
||||||
|
|
||||||
///////////////////////////////////////////
|
|
||||||
// AVF
|
|
||||||
///////////////////////////////////////////
|
|
||||||
"com.android.compos",
|
|
||||||
"features_com.android.virt.xml",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// gsi_product
|
// gsi_product
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
@ -161,49 +132,80 @@ android_system_image {
|
||||||
"Dialer",
|
"Dialer",
|
||||||
"LatinIME",
|
"LatinIME",
|
||||||
"apns-full-conf.xml",
|
"apns-full-conf.xml",
|
||||||
|
],
|
||||||
///////////////////////////////////////////
|
|
||||||
// media_product
|
|
||||||
///////////////////////////////////////////
|
|
||||||
"webview",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
|
||||||
// base_product
|
|
||||||
///////////////////////////////////////////
|
|
||||||
|
|
||||||
// Base modules and settings for the product partition.
|
|
||||||
"build_flag_product",
|
|
||||||
"fs_config_dirs_product",
|
|
||||||
"fs_config_files_product",
|
|
||||||
"group_product",
|
|
||||||
"ModuleMetadata",
|
|
||||||
"passwd_product",
|
|
||||||
"product_compatibility_matrix.xml",
|
|
||||||
"product_manifest.xml",
|
|
||||||
"selinux_policy_product",
|
|
||||||
"product-build.prop",
|
|
||||||
|
|
||||||
// AUDIO
|
|
||||||
"frameworks_sounds",
|
|
||||||
|
|
||||||
///////////////////////////////////////////
|
|
||||||
// base_system
|
|
||||||
///////////////////////////////////////////
|
|
||||||
"charger",
|
|
||||||
] + select(product_variable("debuggable"), {
|
|
||||||
// Packages included only for eng or userdebug builds, previously debug tagged
|
|
||||||
true: ["adb_keys"],
|
|
||||||
default: [],
|
|
||||||
}),
|
|
||||||
multilib: {
|
multilib: {
|
||||||
|
lib64: {
|
||||||
|
deps: [
|
||||||
|
///////////////////////////////////////////
|
||||||
|
// AVF
|
||||||
|
///////////////////////////////////////////
|
||||||
|
"com.android.compos",
|
||||||
|
"features_com.android.virt.xml",
|
||||||
|
],
|
||||||
|
},
|
||||||
both: {
|
both: {
|
||||||
// PRODUCT_PACKAGES_SHIPPING_API_LEVEL_34
|
// PRODUCT_PACKAGES_SHIPPING_API_LEVEL_34
|
||||||
deps: ["android.hidl.memory@1.0-impl"],
|
deps: ["android.hidl.memory@1.0-impl"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
type: "ext4",
|
||||||
|
}
|
||||||
|
|
||||||
|
// system.img for gsi_{arch} targets
|
||||||
|
android_system_image {
|
||||||
|
name: "android_gsi",
|
||||||
|
defaults: ["android_gsi_defaults"],
|
||||||
enabled: select(soong_config_variable("ANDROID", "PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT"), {
|
enabled: select(soong_config_variable("ANDROID", "PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT"), {
|
||||||
"true": true,
|
"true": true,
|
||||||
default: false,
|
default: false,
|
||||||
}),
|
}),
|
||||||
type: "ext4",
|
deps: [
|
||||||
|
// Install a copy of the debug policy to the system_ext partition, and allow
|
||||||
|
// init-second-stage to load debug policy from system_ext.
|
||||||
|
// This option is only meant to be set by compliance GSI targets.
|
||||||
|
"system_ext_userdebug_plat_sepolicy.cil",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
// system.img for aosp_{arch} targets
|
||||||
|
android_system_image {
|
||||||
|
name: "aosp_system_image",
|
||||||
|
defaults: ["android_gsi_defaults"],
|
||||||
|
deps: [
|
||||||
|
// handheld_system_ext
|
||||||
|
"AccessibilityMenu",
|
||||||
|
"WallpaperCropper",
|
||||||
|
|
||||||
|
// telephony_system_ext
|
||||||
|
"EmergencyInfo",
|
||||||
|
|
||||||
|
// handheld_product
|
||||||
|
"Calendar",
|
||||||
|
"Contacts",
|
||||||
|
"DeskClock",
|
||||||
|
"Gallery2",
|
||||||
|
"Music",
|
||||||
|
"preinstalled-packages-platform-handheld-product.xml",
|
||||||
|
"QuickSearchBox",
|
||||||
|
"SettingsIntelligence",
|
||||||
|
"frameworks-base-overlays",
|
||||||
|
|
||||||
|
// telephony_product
|
||||||
|
"ImsServiceEntitlement",
|
||||||
|
"preinstalled-packages-platform-telephony-product.xml",
|
||||||
|
|
||||||
|
// more AOSP packages
|
||||||
|
"initial-package-stopped-states-aosp.xml",
|
||||||
|
"messaging",
|
||||||
|
"PhotoTable",
|
||||||
|
"preinstalled-packages-platform-aosp-product.xml",
|
||||||
|
"ThemePicker",
|
||||||
|
] + select(product_variable("debuggable"), {
|
||||||
|
true: ["frameworks-base-overlays-debug"],
|
||||||
|
default: [],
|
||||||
|
}),
|
||||||
|
enabled: select(soong_config_variable("gsi", "building_gsi"), {
|
||||||
|
true: true,
|
||||||
|
default: false,
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ PRODUCT_PACKAGES += \
|
||||||
CertInstaller \
|
CertInstaller \
|
||||||
CredentialManager \
|
CredentialManager \
|
||||||
DeviceAsWebcam \
|
DeviceAsWebcam \
|
||||||
|
DeviceDiagnostics \
|
||||||
DocumentsUI \
|
DocumentsUI \
|
||||||
DownloadProviderUi \
|
DownloadProviderUi \
|
||||||
EasterEgg \
|
EasterEgg \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue