diff options
-rw-r--r-- | backported_fixes/applied_fixes/ki385124056.txtpb | 19 | ||||
-rw-r--r-- | core/Makefile | 1 | ||||
-rw-r--r-- | core/android_soong_config_vars.mk | 2 | ||||
-rw-r--r-- | core/board_config.mk | 2 | ||||
-rw-r--r-- | core/board_config_wpa_supplicant.mk | 88 | ||||
-rw-r--r-- | core/soong_config.mk | 1 | ||||
-rw-r--r-- | core/sysprop.mk | 2 | ||||
-rw-r--r-- | core/tasks/cts-v-host.mk | 29 | ||||
-rw-r--r-- | core/tasks/cts.mk | 15 | ||||
-rw-r--r-- | core/version_util.mk | 16 | ||||
-rw-r--r-- | target/product/base_system.mk | 4 | ||||
-rw-r--r-- | target/product/build_variables.mk | 6 | ||||
-rw-r--r-- | target/product/virtual_ab_ota/vabc_features.mk | 11 | ||||
-rw-r--r-- | teams/Android.bp | 7 | ||||
-rw-r--r-- | tools/aconfig/exported_flag_check/allow_flag_list.txt | 135 | ||||
-rw-r--r-- | tools/aconfig/exported_flag_check/allow_package_list.txt | 2 | ||||
-rwxr-xr-x | tools/finalization/build-step-0.sh | 4 | ||||
-rwxr-xr-x | tools/finalization/finalize-vintf-resources.sh | 56 | ||||
-rw-r--r-- | tools/releasetools/check_partition_sizes.py | 3 |
19 files changed, 276 insertions, 127 deletions
diff --git a/backported_fixes/applied_fixes/ki385124056.txtpb b/backported_fixes/applied_fixes/ki385124056.txtpb new file mode 100644 index 0000000000..e2d4545b65 --- /dev/null +++ b/backported_fixes/applied_fixes/ki385124056.txtpb @@ -0,0 +1,19 @@ +# Copyright (C) 2024 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# proto-file: ../backported_fixes.proto +# proto-message: BackportedFix + +known_issue: 385124056 +alias: 4 diff --git a/core/Makefile b/core/Makefile index 9db50a371c..1bf25e4e56 100644 --- a/core/Makefile +++ b/core/Makefile @@ -7878,6 +7878,7 @@ $(INTERNAL_SDK_TARGET): $(deps) -I $(HOST_OUT) \ -I $(TARGET_COMMON_OUT_ROOT) \ -v "PLATFORM_NAME=$(PRIVATE_PLATFORM_NAME)" \ + -v "PLATFORM_SDK_API_VERSION=$(PLATFORM_SDK_VERSION_FULL)" \ -v "OUT_DIR=$(OUT_DIR)" \ -v "HOST_OUT=$(HOST_OUT)" \ -v "TARGET_ARCH=$(TARGET_ARCH)" \ diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index 70ba6efddf..b64206cfda 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -157,8 +157,6 @@ $(call add_soong_config_var_value,ANDROID,release_binder_death_recipient_weak_fr $(call add_soong_config_var_value,ANDROID,release_libpower_no_lock_binder_txn,$(RELEASE_LIBPOWER_NO_LOCK_BINDER_TXN)) -$(call add_soong_config_var_value,ANDROID,release_package_libandroid_runtime_punch_holes,$(RELEASE_PACKAGE_LIBANDROID_RUNTIME_PUNCH_HOLES)) - $(call add_soong_config_var_value,ANDROID,release_selinux_data_data_ignore,$(RELEASE_SELINUX_DATA_DATA_IGNORE)) ifneq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT))) # write appcompat system properties on userdebug and eng builds diff --git a/core/board_config.mk b/core/board_config.mk index 16cf863e72..cf01c8416c 100644 --- a/core/board_config.mk +++ b/core/board_config.mk @@ -290,7 +290,7 @@ $(foreach var,$(_board_true_false_vars), \ $(error Valid values of $(var) are "true", "false", and "". Not "$($(var))"))) include $(BUILD_SYSTEM)/board_config_wifi.mk -include $(BUILD_SYSTEM)/board_config_wpa_supplicant.mk +-include external/wpa_supplicant_8/board_config_wpa_supplicant.mk # Set up soong config for "soong_config_value_variable". -include hardware/interfaces/configstore/1.1/default/surfaceflinger.mk diff --git a/core/board_config_wpa_supplicant.mk b/core/board_config_wpa_supplicant.mk deleted file mode 100644 index 9ef438e794..0000000000 --- a/core/board_config_wpa_supplicant.mk +++ /dev/null @@ -1,88 +0,0 @@ -# -# Copyright (C) 2024 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# ############################################################### -# This file adds wpa_supplicant_8 variables into soong config namespace (`wpa_supplicant_8`) -# ############################################################### - -ifdef BOARD_HOSTAPD_DRIVER -$(call soong_config_set_bool,wpa_supplicant_8,wpa_build_hostapd,true) -ifneq ($(BOARD_HOSTAPD_DRIVER),NL80211) - $(error BOARD_HOSTAPD_DRIVER set to $(BOARD_HOSTAPD_DRIVER) but current soong expected it should be NL80211 only!) -endif -endif - -ifdef BOARD_WPA_SUPPLICANT_DRIVER -ifneq ($(BOARD_WPA_SUPPLICANT_DRIVER),NL80211) - $(error BOARD_WPA_SUPPLICANT_DRIVER set to $(BOARD_WPA_SUPPLICANT_DRIVER) but current soong expected it should be NL80211 only!) -endif -endif - -# This is for CONFIG_DRIVER_NL80211_BRCM, CONFIG_DRIVER_NL80211_SYNA, CONFIG_DRIVER_NL80211_QCA -# And it is only used for a cflags setting in driver. -$(call soong_config_set,wpa_supplicant_8,board_wlan_device,$(BOARD_WLAN_DEVICE)) - -# Belong to CONFIG_IEEE80211AX definition -ifeq ($(WIFI_FEATURE_HOSTAPD_11AX),true) -$(call soong_config_set_bool,wpa_supplicant_8,hostapd_11ax,true) -endif - -# Belong to CONFIG_IEEE80211BE definition -ifeq ($(WIFI_FEATURE_HOSTAPD_11BE),true) -$(call soong_config_set_bool,wpa_supplicant_8,hostapd_11be,true) -endif - -# PLATFORM_VERSION -$(call soong_config_set,wpa_supplicant_8,platform_version,$(PLATFORM_VERSION)) - -# BOARD_HOSTAPD_PRIVATE_LIB -ifeq ($(BOARD_HOSTAPD_PRIVATE_LIB),) -$(call soong_config_set_bool,wpa_supplicant_8,hostapd_use_stub_lib,true) -else -$(call soong_config_set,wpa_supplicant_8,board_hostapd_private_lib,$(BOARD_HOSTAPD_PRIVATE_LIB)) -endif - -ifeq ($(BOARD_HOSTAPD_CONFIG_80211W_MFP_OPTIONAL),true) -$(call soong_config_set_bool,wpa_supplicant_8,board_hostapd_config_80211w_mfp_optional,true) -endif - -ifneq ($(BOARD_HOSTAPD_PRIVATE_LIB_EVENT),) -$(call soong_config_set_bool,wpa_supplicant_8,board_hostapd_private_lib_event,true) -endif - -# BOARD_WPA_SUPPLICANT_PRIVATE_LIB -ifeq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB),) -$(call soong_config_set_bool,wpa_supplicant_8,wpa_supplicant_use_stub_lib,true) -else -$(call soong_config_set,wpa_supplicant_8,board_wpa_supplicant_private_lib,$(BOARD_WPA_SUPPLICANT_PRIVATE_LIB)) -endif - -ifneq ($(BOARD_WPA_SUPPLICANT_PRIVATE_LIB_EVENT),) -$(call soong_config_set_bool,wpa_supplicant_8,board_wpa_supplicant_private_lib_event,true) -endif - -ifeq ($(WIFI_PRIV_CMD_UPDATE_MBO_CELL_STATUS), enabled) -$(call soong_config_set_bool,wpa_supplicant_8,wifi_priv_cmd_update_mbo_cell_status,true) -endif - -ifeq ($(WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY), true) -$(call soong_config_set_bool,wpa_supplicant_8,wifi_hidl_unified_supplicant_service_rc_entry,true) -endif - -# New added in internal main -ifeq ($(WIFI_BRCM_OPEN_SOURCE_MULTI_AKM), enabled) -$(call soong_config_set_bool,wpa_supplicant_8,wifi_brcm_open_source_multi_akm,true) -endif diff --git a/core/soong_config.mk b/core/soong_config.mk index f5c52382b1..c786737b8d 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -38,6 +38,7 @@ $(call add_json_bool, DisplayBuildNumber, $(filter true,$(DISPLAY $(call add_json_str, Platform_display_version_name, $(PLATFORM_DISPLAY_VERSION)) $(call add_json_str, Platform_version_name, $(PLATFORM_VERSION)) $(call add_json_val, Platform_sdk_version, $(PLATFORM_SDK_VERSION)) +$(call add_json_val, Platform_sdk_version_full, $(PLATFORM_SDK_VERSION_FULL)) $(call add_json_str, Platform_sdk_codename, $(PLATFORM_VERSION_CODENAME)) $(call add_json_bool, Platform_sdk_final, $(filter REL,$(PLATFORM_VERSION_CODENAME))) $(call add_json_val, Platform_sdk_extension_version, $(PLATFORM_SDK_EXTENSION_VERSION)) diff --git a/core/sysprop.mk b/core/sysprop.mk index 5485a3a65f..4c040e497e 100644 --- a/core/sysprop.mk +++ b/core/sysprop.mk @@ -79,7 +79,7 @@ define generate-common-build-props echo "ro.$(1).build.version.release=$(PLATFORM_VERSION_LAST_STABLE)" >> $(2);\ echo "ro.$(1).build.version.release_or_codename=$(PLATFORM_VERSION)" >> $(2);\ echo "ro.$(1).build.version.sdk=$(PLATFORM_SDK_VERSION)" >> $(2);\ - echo "ro.$(1).build.version.sdk_minor=$(PLATFORM_SDK_MINOR_VERSION)" >> $(2);\ + echo "ro.$(1).build.version.sdk_full=$(PLATFORM_SDK_VERSION_FULL)" >> $(2);\ endef diff --git a/core/tasks/cts-v-host.mk b/core/tasks/cts-v-host.mk new file mode 100644 index 0000000000..67cc0f21e4 --- /dev/null +++ b/core/tasks/cts-v-host.mk @@ -0,0 +1,29 @@ +# Copyright (C) 2024 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# cts-v-host includes host-side interactive and multi-device CTS tests that +# cannot be fully automated. It is part of CTS Verifier. +ifneq ($(wildcard cts/tools/cts-v-host/README),) +test_suite_name := cts-v-host +test_suite_tradefed := cts-v-host-tradefed +test_suite_readme := cts/tools/cts-v-host/README +test_suite_tools := $(HOST_OUT_JAVA_LIBRARIES)/ats_console_deploy.jar \ + $(HOST_OUT_JAVA_LIBRARIES)/ats_olc_server_local_mode_deploy.jar + +include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk + +.PHONY: cts-v-host +cts-v-host: $(compatibility_zip) $(compatibility_tests_list_zip) +$(call dist-for-goals, cts-v-host, $(compatibility_zip) $(compatibility_tests_list_zip)) +endif diff --git a/core/tasks/cts.mk b/core/tasks/cts.mk index f5b3aa9d3a..c7b5cad5eb 100644 --- a/core/tasks/cts.mk +++ b/core/tasks/cts.mk @@ -78,14 +78,28 @@ verifier-dir-name := android-cts-verifier verifier-dir := $(cts-dir)/$(verifier-dir-name) verifier-zip-name := $(verifier-dir-name).zip verifier-zip := $(cts-dir)/$(verifier-zip-name) +cts-v-host-zip := $(HOST_OUT)/cts-v-host/android-cts-v-host.zip cts : $(verifier-zip) +ifeq ($(wildcard cts/tools/cts-v-host/README),) $(verifier-zip): PRIVATE_DIR := $(cts-dir) $(verifier-zip): $(SOONG_ANDROID_CTS_VERIFIER_ZIP) rm -rf $(PRIVATE_DIR) mkdir -p $(PRIVATE_DIR) unzip -q -d $(PRIVATE_DIR) $< $(copy-file-to-target) +else +$(verifier-zip): PRIVATE_DIR := $(cts-dir) +$(verifier-zip): PRIVATE_verifier_dir := $(verifier-dir) +$(verifier-zip): PRIVATE_host_zip := $(cts-v-host-zip) +$(verifier-zip): $(SOONG_ANDROID_CTS_VERIFIER_ZIP) $(cts-v-host-zip) $(SOONG_ZIP) + rm -rf $(PRIVATE_DIR) + mkdir -p $(PRIVATE_DIR) + unzip -q -d $(PRIVATE_DIR) $< + unzip -q -d $(PRIVATE_verifier_dir) $(PRIVATE_host_zip) + $(SOONG_ZIP) -d -o $@ -C $(PRIVATE_DIR) -D $(PRIVATE_verifier_dir) +endif +$(call dist-for-goals, cts, $(verifier-zip)) # For producing CTS coverage reports. # Run "make cts-test-coverage" in the $ANDROID_BUILD_TOP directory. @@ -372,3 +386,4 @@ verifier-dir-name := verifier-dir := verifier-zip-name := verifier-zip := +cts-v-host-zip := diff --git a/core/version_util.mk b/core/version_util.mk index ddcbda2cdc..cc94063bbe 100644 --- a/core/version_util.mk +++ b/core/version_util.mk @@ -22,6 +22,7 @@ # PLATFORM_VERSION # PLATFORM_DISPLAY_VERSION # PLATFORM_SDK_VERSION +# PLATFORM_SDK_VERSION_FULL # PLATFORM_SDK_EXTENSION_VERSION # PLATFORM_BASE_SDK_EXTENSION_VERSION # PLATFORM_VERSION_CODENAME @@ -62,11 +63,18 @@ endif PLATFORM_SDK_VERSION := $(RELEASE_PLATFORM_SDK_VERSION) .KATI_READONLY := PLATFORM_SDK_VERSION -ifdef PLATFORM_SDK_MINOR_VERSION - $(error Do not set PLATFORM_SDK_MINOR_VERSION directly. Use RELEASE_PLATFORM_SDK_MINOR_VERSION. value: $(PLATFORM_SDK_MINOR_VERSION)) +ifdef PLATFORM_SDK_VERSION_FULL + $(error Do not set PLATFORM_SDK_VERSION_FULL directly. Use RELEASE_PLATFORM_SDK_VERSION_FULL. value: $(PLATFORM_SDK_VERSION_FULL)) endif -PLATFORM_SDK_MINOR_VERSION := $(RELEASE_PLATFORM_SDK_MINOR_VERSION) -.KATI_READONLY := PLATFORM_SDK_MINOR_VERSION +ifeq ($(RELEASE_PLATFORM_SDK_VERSION_FULL),) + PLATFORM_SDK_VERSION_FULL := "$(PLATFORM_SDK_VERSION).0" +else + ifneq ($(RELEASE_PLATFORM_SDK_VERSION),$(word 1,$(subst ., ,$(RELEASE_PLATFORM_SDK_VERSION_FULL)))) + $(error if RELEASE_PLATFORM_SDK_VERSION_FULL ($(RELEASE_PLATFORM_SDK_VERSION_FULL)) is set, its major version must match RELEASE_PLATFORM_SDK_VERSION ($(RELEASE_PLATFORM_SDK_VERSION))) + endif + PLATFORM_SDK_VERSION_FULL := "$(RELEASE_PLATFORM_SDK_VERSION_FULL)" +endif +.KATI_READONLY := PLATFORM_SDK_VERSION_FULL ifdef PLATFORM_SDK_EXTENSION_VERSION $(error Do not set PLATFORM_SDK_EXTENSION_VERSION directly. Use RELEASE_PLATFORM_SDK_EXTENSION_VERSION. value: $(PLATFORM_SDK_EXTENSION_VERSION)) diff --git a/target/product/base_system.mk b/target/product/base_system.mk index 3fe97badcd..135a0570c6 100644 --- a/target/product/base_system.mk +++ b/target/product/base_system.mk @@ -582,3 +582,7 @@ $(call inherit-product,$(SRC_TARGET_DIR)/product/updatable_apex.mk) $(call soong_config_set, bionic, large_system_property_node, $(RELEASE_LARGE_SYSTEM_PROPERTY_NODE)) $(call soong_config_set, Aconfig, read_from_new_storage, $(RELEASE_READ_FROM_NEW_STORAGE)) $(call soong_config_set, SettingsLib, legacy_avatar_picker_app_enabled, $(if $(RELEASE_AVATAR_PICKER_APP),,true)) +$(call soong_config_set, appsearch, enable_isolated_storage, $(RELEASE_APPSEARCH_ENABLE_ISOLATED_STORAGE)) + +# Enable AppSearch Isolated Storage per BUILD flag +PRODUCT_PRODUCT_PROPERTIES += appsearch.feature.enable_isolated_storage=$(RELEASE_APPSEARCH_ENABLE_ISOLATED_STORAGE) diff --git a/target/product/build_variables.mk b/target/product/build_variables.mk index 562e5b7c6d..7c54258eef 100644 --- a/target/product/build_variables.mk +++ b/target/product/build_variables.mk @@ -32,8 +32,8 @@ $(call soong_config_set, libsqlite3, release_package_libsqlite3, $(RELEASE_PACKA # Use the configured MessageQueue implementation $(call soong_config_set, messagequeue, release_package_messagequeue_implementation, $(RELEASE_PACKAGE_MESSAGEQUEUE_IMPLEMENTATION)) -# Use the configured version of WebView -$(call soong_config_set, webview, release_package_webview_version, $(RELEASE_PACKAGE_WEBVIEW_VERSION)) - # Use the configured version of Cronet $(call soong_config_set,cronet,enable_cronet_tot,$(RELEASE_ENABLE_TOT_CRONET)) + +# Use the configured version of WebView +$(call soong_config_set, webview, release_package_webview_version, $(RELEASE_PACKAGE_WEBVIEW_VERSION)) diff --git a/target/product/virtual_ab_ota/vabc_features.mk b/target/product/virtual_ab_ota/vabc_features.mk index d092699a47..0339ebddb8 100644 --- a/target/product/virtual_ab_ota/vabc_features.mk +++ b/target/product/virtual_ab_ota/vabc_features.mk @@ -42,6 +42,7 @@ PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.xor.enabled?=true # device's .mk file improve performance for low mem devices. # # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.read_ahead_size=16 +# warning: enabling o_direct on devices with low CMA could lead to failures # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.o_direct.enabled=true # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.merge_thread_priority=19 # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.worker_thread_priority=0 @@ -52,6 +53,16 @@ PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.xor.enabled?=true # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.verify_threshold_size=1073741824 # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.verify_block_size=1048576 + +# Enabling this property will skip verification post OTA reboot. +# Verification allows the device to safely roll back if any boot failures +# are detected. If the verification is disabled, update_verifier to will +# try to verify using bufferred read if care_map.pb is present in +# /metadata/ota/. This will increase the boot time and may also impact +# memory usage as all the blocks in dynamic partitions are read into page-cache. +# If care_map.pb isn't present, update-verifier will skip the verification. +# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.skip_verification =true + # Enabling this property, will improve OTA install time # but will use an additional CPU core # PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.threads=true diff --git a/teams/Android.bp b/teams/Android.bp index d5bef59b7d..7946a3d21a 100644 --- a/teams/Android.bp +++ b/teams/Android.bp @@ -3332,6 +3332,13 @@ team { } team { + name: "trendy_team_wear_partner_engineering", + + // go/trendy/manage/engineers/5098351636676608 + trendy_team_id: "5098351636676608", +} + +team { name: "trendy_team_framework_android_multiuser", // go/trendy/manage/engineers/5981525732392960 diff --git a/tools/aconfig/exported_flag_check/allow_flag_list.txt b/tools/aconfig/exported_flag_check/allow_flag_list.txt index b9c81c4ae9..93dacee38c 100644 --- a/tools/aconfig/exported_flag_check/allow_flag_list.txt +++ b/tools/aconfig/exported_flag_check/allow_flag_list.txt @@ -257,4 +257,137 @@ com.android.wifi.flags.shared_connectivity_broadcast_receiver_test_api com.android.wifi.flags.wep_disabled_in_apm com.android.window.flags.untrusted_embedding_state_sharing vendor.vibrator.hal.flags.enable_pwle_v2 -vendor.vibrator.hal.flags.remove_capo
\ No newline at end of file +vendor.vibrator.hal.flags.remove_capo + +android.app.supervision.flags.enable_app_approval +android.app.supervision.flags.enable_supervision_app_service +android.app.supervision.flags.enable_supervision_pin_recovery_screen +android.app.supervision.flags.enable_supervision_settings_screen +android.app.supervision.flags.enable_web_content_filters_screen +android.car.feature.display_compatibility_caption_bar +android.companion.virtualdevice.flags.viewconfiguration_apis +android.content.pm.always_load_past_certs_v4 +android.content.res.always_false +android.content.res.use_new_aconfig_storage +android.credentials.flags.propagate_user_context_for_intent_creation +android.database.sqlite.concurrent_open_helper +android.hardware.devicestate.feature.flags.device_state_configuration_flag +android.media.audio.ringtone_user_uri_check +android.media.soundtrigger.detection_service_paused_resumed_api +android.media.tv.flags.tif_extension_standardization +android.os.allow_thermal_hal_skin_forecast +android.os.force_concurrent_message_queue +android.permission.flags.enable_all_sqlite_appops_accesses +android.permission.flags.grant_read_blocked_numbers_to_system_ui_intelligence +android.permission.flags.record_all_runtime_appops_sqlite +android.permission.flags.unknown_call_setting_blocked_logging_enabled +android.server.wear_gesture_api +android.view.accessibility.a11y_is_visited_api +android.view.accessibility.request_rectangle_with_source +android.view.contentcapture.flags.flush_after_each_frame +com.android.adservices.flags.ad_id_cache_enabled +com.android.adservices.flags.adservices_enablement_check_enabled +com.android.adservices.flags.adservices_outcomereceiver_r_api_enabled +com.android.adservices.flags.enable_adservices_api_enabled +com.android.adservices.flags.sdksandbox_invalidate_effective_target_sdk_version_cache +com.android.adservices.flags.sdksandbox_use_effective_target_sdk_version_for_restrictions +com.android.appsearch.flags.enable_all_package_indexing_on_indexer_update +com.android.appsearch.flags.enable_app_functions +com.android.appsearch.flags.enable_app_open_events_indexer_check_prior_attempt +com.android.appsearch.flags.enable_app_search_manage_blob_files +com.android.appsearch.flags.enable_apps_indexer_check_prior_attempt +com.android.appsearch.flags.enable_batch_put +com.android.appsearch.flags.enable_calculate_time_since_last_attempted_optimize +com.android.appsearch.flags.enable_check_contacts_indexer_delta_timestamps +com.android.appsearch.flags.enable_check_contacts_indexer_update_job_params +com.android.appsearch.flags.enable_four_hour_min_time_optimize_threshold +com.android.appsearch.flags.enable_isolated_storage +com.android.appsearch.flags.enable_marker_file_for_optimize +com.android.appsearch.flags.enable_qualified_id_join_index_v3 +com.android.appsearch.flags.enable_recovery_proof_persistence +com.android.appsearch.flags.enable_release_backup_schema_file_if_overlay_present +com.android.appsearch.flags.enable_soft_index_restoration +com.android.clockwork.flags.support_paired_device_none +com.android.gms.flags.enable_deleted_gms +com.android.gms.flags.enable_new_gms +com.android.gms.flags.enable_optional_gms +com.android.hardware.input.key_event_activity_detection +com.android.healthfitness.flags.cloud_backup_and_restore_db +com.android.healthfitness.flags.exercise_segment_weight +com.android.healthfitness.flags.exercise_segment_weight_db +com.android.healthfitness.flags.extend_export_import_telemetry +com.android.healthfitness.flags.launch_onboarding_activity +com.android.healthfitness.flags.personal_health_record_enable_export_import +com.android.healthfitness.flags.phr_change_logs +com.android.healthfitness.flags.phr_change_logs_db +com.android.healthfitness.flags.phr_fhir_extension_validation +com.android.healthfitness.flags.phr_fhir_resource_validator_use_weak_reference +com.android.healthfitness.flags.phr_fhir_validation_disallow_empty_objects_arrays +com.android.healthfitness.flags.refactor_aggregations +com.android.healthfitness.flags.single_user_permission_intent_tracker +com.android.healthfitness.flags.smoking +com.android.healthfitness.flags.smoking_db +com.android.healthfitness.flags.step_tracking_enabled +com.android.healthfitness.flags.symptoms +com.android.healthfitness.flags.symptoms_db +com.android.icu.telephony_lookup_mcc_extension +com.android.internal.telephony.flags.pass_copied_call_state_list +com.android.internal.telephony.flags.robust_number_verification +com.android.internal.telephony.flags.satellite_exit_p2p_session_outside_geofence +com.android.internal.telephony.flags.starlink_data_bugfix +com.android.media.audio.hardening_partial +com.android.media.flags.enable_suggested_device_api +com.android.media.flags.enable_use_of_singleton_audio_manager_route_controller +com.android.media.projection.flags.app_content_sharing +com.android.media.projection.flags.show_stop_dialog_post_call_end +com.android.permission.flags.cross_user_role_ux_bugfix_enabled +com.android.permission.flags.default_apps_recommendation_enabled +com.android.permission.flags.fix_safety_center_touch_target +com.android.providers.media.flags.enable_exclusion_list_for_default_folders +com.android.providers.media.flags.enable_mime_type_fix_for_android_15 +com.android.providers.media.flags.exclude_unreliable_volumes +com.android.providers.media.flags.revoke_access_owned_photos +com.android.sdksandbox.flags.sandbox_activity_sdk_based_context +com.android.sdksandbox.flags.selinux_input_selector +com.android.sdksandbox.flags.selinux_sdk_sandbox_audit +com.android.settings.flags.enable_remove_association_bt_unpair +com.android.settingslib.widget.theme.flags.is_expressive_design_enabled +com.android.window.flags.fix_hide_overlay_api +com.android.window.flags.update_host_input_transfer_token +com.fuchsia.bluetooth.flags.a2dp_lhdc_api +com.fuchsia.bluetooth.flags.aics_api +com.fuchsia.bluetooth.flags.allow_switching_hid_and_hogp +com.fuchsia.bluetooth.flags.bt_offload_socket_api +com.fuchsia.bluetooth.flags.bt_socket_api_l2cap_cid +com.fuchsia.bluetooth.flags.channel_sounding +com.fuchsia.bluetooth.flags.channel_sounding_25q2_apis +com.fuchsia.bluetooth.flags.directed_advertising_api +com.fuchsia.bluetooth.flags.encryption_change_broadcast +com.fuchsia.bluetooth.flags.hci_vendor_specific_extension +com.fuchsia.bluetooth.flags.identity_address_type_api +com.fuchsia.bluetooth.flags.key_missing_public +com.fuchsia.bluetooth.flags.leaudio_add_opus_codec_type +com.fuchsia.bluetooth.flags.leaudio_broadcast_api_get_local_metadata +com.fuchsia.bluetooth.flags.leaudio_broadcast_api_manage_primary_group +com.fuchsia.bluetooth.flags.leaudio_broadcast_monitor_source_sync_status +com.fuchsia.bluetooth.flags.leaudio_broadcast_volume_control_for_connected_devices +com.fuchsia.bluetooth.flags.leaudio_mono_location_errata_api +com.fuchsia.bluetooth.flags.leaudio_multiple_vocs_instances_api +com.fuchsia.bluetooth.flags.metadata_api_inactive_audio_device_upon_connection +com.fuchsia.bluetooth.flags.metadata_api_microphone_for_call_enabled +com.fuchsia.bluetooth.flags.settings_can_control_hap_preset +com.fuchsia.bluetooth.flags.socket_settings_api +com.fuchsia.bluetooth.flags.support_bluetooth_quality_report_v6 +com.fuchsia.bluetooth.flags.support_exclusive_manager +com.fuchsia.bluetooth.flags.support_metadata_device_types_apis +com.fuchsia.bluetooth.flags.support_remote_device_metadata +com.fuchsia.bluetooth.flags.unix_file_socket_creation_failure +com.google.android.clockwork.pele.flags.koru_feature_cached_views +com.google.android.clockwork.pele.flags.koru_origami +com.google.android.device.pixel.watch.flags.pdms_flag_1 +com.google.android.haptics.flags.vendor_vibration_control +com.google.clockwork.flags.prevent_ime_startup +vendor.gc2.flags.mse_report +vendor.google.plat_security.flags.enable_service +vendor.google.plat_security.flags.enable_trusty_service +vendor.google.wireless_charger.service.flags.enable_service
\ No newline at end of file diff --git a/tools/aconfig/exported_flag_check/allow_package_list.txt b/tools/aconfig/exported_flag_check/allow_package_list.txt index e69de29bb2..e76472b7ae 100644 --- a/tools/aconfig/exported_flag_check/allow_package_list.txt +++ b/tools/aconfig/exported_flag_check/allow_package_list.txt @@ -0,0 +1,2 @@ +com.google.wear.sdk +com.google.wear.services.infra.flags diff --git a/tools/finalization/build-step-0.sh b/tools/finalization/build-step-0.sh index 8826b35c0f..bc41a196e8 100755 --- a/tools/finalization/build-step-0.sh +++ b/tools/finalization/build-step-0.sh @@ -25,8 +25,8 @@ RELEASE_BOARD_API_LEVEL='$FINAL_BOARD_API_LEVEL'" fi; if [ "$need_vintf_finalize" = true ] ; then # VINTF finalization - source $top/build/make/tools/finalization/finalize-vintf-resources.sh + source $top/build/make/tools/finalization/finalize-vintf-resources.sh $@ fi; } -finalize_main_step0 +finalize_main_step0 $@ diff --git a/tools/finalization/finalize-vintf-resources.sh b/tools/finalization/finalize-vintf-resources.sh index 45efc104db..9660e3fc8c 100755 --- a/tools/finalization/finalize-vintf-resources.sh +++ b/tools/finalization/finalize-vintf-resources.sh @@ -3,6 +3,21 @@ set -ex function finalize_vintf_resources() { + if [ $# -gt 1 ]; then + echo "No argument or '--steps_for_build_test_only' is allowed" + exit 1 + fi + if [ $# -eq 1 ]; then + if [ "$1" == "--steps_for_build_test_only" ]; then + echo "This is only to verify building a target." + echo "Skip LLNDK ABI dump and VINTF check." + local build_test_only=true + else + echo "Unknown argument $1" + exit 1 + fi + fi + local top="$(dirname "$0")"/../../../.. source $top/build/make/tools/finalization/environment.sh # environment needed to build dependencies and run scripts @@ -26,37 +41,30 @@ function finalize_vintf_resources() { # system/sepolicy "$top/system/sepolicy/tools/finalize-vintf-resources.sh" "$top" "$FINAL_BOARD_API_LEVEL" - create_new_compat_matrix_and_kernel_configs - - # pre-finalization build target (trunk) local aidl_m="$top/build/soong/soong_ui.bash --make-mode" AIDL_TRANSITIVE_FREEZE=true $aidl_m aidl-freeze-api create_reference_dumps - # Generate LLNDK ABI dumps - # This command depends on ANDROID_BUILD_TOP - "$ANDROID_HOST_OUT/bin/create_reference_dumps" -release "$TARGET_RELEASE" --build-variant "$TARGET_BUILD_VARIANT" --lib-variant LLNDK + finalize_compat_matrix $build_test_only + + if ! [ "$build_test_only" = "true" ]; then + # Generate LLNDK ABI dumps + # This command depends on ANDROID_BUILD_TOP + "$ANDROID_HOST_OUT/bin/create_reference_dumps" -release "$TARGET_RELEASE" --build-variant "$TARGET_BUILD_VARIANT" --lib-variant LLNDK + fi } -function create_new_compat_matrix_and_kernel_configs() { - # The compatibility matrix versions are bumped during vFRC - # These will change every time we have a new vFRC +function finalize_compat_matrix() { + local build_test_only=$1 local CURRENT_COMPATIBILITY_MATRIX_LEVEL="$FINAL_BOARD_API_LEVEL" - local NEXT_COMPATIBILITY_MATRIX_LEVEL="$FINAL_NEXT_BOARD_API_LEVEL" - # The kernel configs need the letter of the Android release - local CURRENT_RELEASE_LETTER="$FINAL_CORRESPONDING_VERSION_LETTER" - local NEXT_RELEASE_LETTER="$FINAL_NEXT_CORRESPONDING_VERSION_LETTER" - - # build the targets required before touching the Android.bp/Android.mk files - local build_cmd="$top/build/soong/soong_ui.bash --make-mode" - $build_cmd bpmodify + "$top/prebuilts/build-tools/path/linux-x86/python3" "$top/hardware/interfaces/compatibility_matrices/finalize.py" "$CURRENT_COMPATIBILITY_MATRIX_LEVEL" - "$top/prebuilts/build-tools/path/linux-x86/python3" "$top/hardware/interfaces/compatibility_matrices/bump.py" "$CURRENT_COMPATIBILITY_MATRIX_LEVEL" "$NEXT_COMPATIBILITY_MATRIX_LEVEL" "$CURRENT_RELEASE_LETTER" "$NEXT_RELEASE_LETTER" "$FINAL_CORRESPONDING_PLATFORM_VERSION" - - # Freeze the current framework manifest file. This relies on the - # aosp_cf_x86_64-trunk_staging build target to get the right manifest - # fragments installed. - "$top/system/libhidl/vintfdata/freeze.sh" "$CURRENT_COMPATIBILITY_MATRIX_LEVEL" + if ! [ "$build_test_only" = "true" ]; then + # Freeze the current framework manifest file. This relies on the + # interfaces already being frozen because we are building with fina_0 which + # inherits from `next` where RELEASE_AIDL_USE_UNFROZEN=false + "$top/system/libhidl/vintfdata/freeze.sh" "$CURRENT_COMPATIBILITY_MATRIX_LEVEL" + fi } function freeze_framework_manifest() { @@ -65,5 +73,5 @@ function freeze_framework_manifest() { } -finalize_vintf_resources +finalize_vintf_resources $@ diff --git a/tools/releasetools/check_partition_sizes.py b/tools/releasetools/check_partition_sizes.py index 738d77d63e..5d7dd8cf72 100644 --- a/tools/releasetools/check_partition_sizes.py +++ b/tools/releasetools/check_partition_sizes.py @@ -57,7 +57,8 @@ class Expression(object): logger.info("%s is less than or equal to %s:\n%s == %d <= %s == %d", *format_args) else: - msg = "{} is greater than {}:\n{} == {} > {} == {}".format(*format_args) + msg = ("If setting \"SOONG_RUSTC_INCREMENTAL\" try building without it. " + "{} is greater than {}:\n{} == {} > {} == {}".format(*format_args)) if level == logging.ERROR: raise RuntimeError(msg) else: |