1# 2# Copyright (C) 2017 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# Sets Android Go recommended default product options.. 18 19 20# Set lowram options and enable traced by default 21PRODUCT_VENDOR_PROPERTIES += \ 22 ro.config.low_ram=true \ 23 persist.traced.enable=1 \ 24 25# Speed profile services and wifi-service to reduce RAM and storage. 26PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile 27 28# Always preopt extracted APKs to prevent extracting out of the APK for gms 29# modules. 30PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK := true 31 32# Use a profile based boot image for this device. Note that this is currently a 33# generic profile and not Android Go optimized. 34PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true 35PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt 36 37# Do not generate libartd. 38PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false 39 40# Do not spin up a separate process for the network stack on go devices, use an in-process APK. 41PRODUCT_PACKAGES += InProcessNetworkStack 42PRODUCT_PACKAGES += CellBroadcastAppPlatform 43PRODUCT_PACKAGES += com.android.tethering.inprocess 44 45# Strip the local variable table and the local variable type table to reduce 46# the size of the system image. This has no bearing on stack traces, but will 47# leave less information available via JDWP. 48PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true 49 50# Disable Scudo outside of eng builds to save RAM. 51ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT))) 52 PRODUCT_DISABLE_SCUDO := true 53endif 54 55# Add the system properties. 56TARGET_SYSTEM_PROP += \ 57 build/make/target/board/go_defaults_common.prop 58 59# use the go specific handheld_core_hardware.xml from frameworks 60PRODUCT_COPY_FILES += \ 61 frameworks/native/data/etc/go_handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 62 63# Dedupe VNDK libraries with identical core variants. 64TARGET_VNDK_USE_CORE_VARIANT := true 65