2017-10-16 05:07:19 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 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.
|
|
|
|
#
|
|
|
|
|
2018-06-26 03:12:32 +02:00
|
|
|
# Sets Android Go recommended default product options..
|
2017-10-16 05:07:19 +02:00
|
|
|
|
2018-07-10 22:15:01 +02:00
|
|
|
|
2019-06-07 23:17:36 +02:00
|
|
|
# Set lowram options and enable traced by default
|
2018-07-10 22:15:01 +02:00
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
ro.config.low_ram=true \
|
2019-06-07 23:17:36 +02:00
|
|
|
persist.traced.enable=1 \
|
2018-07-10 22:15:01 +02:00
|
|
|
|
2017-10-16 05:07:19 +02:00
|
|
|
# Speed profile services and wifi-service to reduce RAM and storage.
|
|
|
|
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
|
|
|
|
|
|
|
# Always preopt extracted APKs to prevent extracting out of the APK for gms
|
|
|
|
# modules.
|
|
|
|
PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true
|
|
|
|
|
|
|
|
# Use a profile based boot image for this device. Note that this is currently a
|
|
|
|
# generic profile and not Android Go optimized.
|
|
|
|
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
|
|
|
|
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
|
|
|
|
|
2017-10-19 20:42:44 +02:00
|
|
|
# Do not generate libartd.
|
|
|
|
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
|
2017-10-24 23:12:58 +02:00
|
|
|
|
2019-03-08 09:40:22 +01:00
|
|
|
# Do not spin up a separate process for the network stack on go devices, use an in-process APK.
|
|
|
|
PRODUCT_PACKAGES += InProcessNetworkStack
|
2019-06-07 16:15:41 +02:00
|
|
|
PRODUCT_PACKAGES += InProcessWifiStack
|
2019-08-16 00:48:42 +02:00
|
|
|
PRODUCT_PACKAGES += CellBroadcastAppPlatform
|
2018-11-22 10:13:20 +01:00
|
|
|
|
2017-10-24 23:12:58 +02:00
|
|
|
# Strip the local variable table and the local variable type table to reduce
|
|
|
|
# the size of the system image. This has no bearing on stack traces, but will
|
|
|
|
# leave less information available via JDWP.
|
|
|
|
PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
|
2018-06-26 03:12:32 +02:00
|
|
|
|
2019-02-01 18:06:42 +01:00
|
|
|
# Disable Scudo outside of eng builds to save RAM.
|
|
|
|
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
PRODUCT_DISABLE_SCUDO := true
|
|
|
|
endif
|
|
|
|
|
2018-06-26 03:12:32 +02:00
|
|
|
# Add the system properties.
|
|
|
|
TARGET_SYSTEM_PROP += \
|
|
|
|
build/make/target/board/go_defaults_common.prop
|
2019-01-25 01:46:33 +01:00
|
|
|
|
|
|
|
# use the go specific handheld_core_hardware.xml from frameworks
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/native/data/etc/go_handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
2019-07-19 06:41:56 +02:00
|
|
|
|
|
|
|
# Dedupe VNDK libraries with identical core variants.
|
|
|
|
TARGET_VNDK_USE_CORE_VARIANT := true
|