The PRODUCT_DISABLE_SCUDO only removes scudo from the list of sanitizers. It doesn't change the allocator to be used. Instead use MALLOC_LOW_MEMORY := true, which causes a device to use a low memory version of the allocator. Bug: 318756974 Test: Treehugger. Change-Id: Idaf57cfa4fa723ce8d7f285b2bad8ec29059f0df
52 lines
1.9 KiB
Makefile
52 lines
1.9 KiB
Makefile
#
|
|
# 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.
|
|
#
|
|
|
|
# Sets Android Go recommended default product options..
|
|
|
|
|
|
# Set lowram options and enable traced by default
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
|
ro.config.low_ram=true \
|
|
|
|
# Speed profile services and wifi-service to reduce RAM and storage.
|
|
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
|
|
|
|
# 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
|
|
|
|
# Do not generate libartd.
|
|
PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
|
|
|
|
# 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
|
|
|
|
# Use the low memory allocator outside of eng builds to save RSS.
|
|
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
|
MALLOC_LOW_MEMORY := true
|
|
endif
|
|
|
|
# Add the system properties.
|
|
TARGET_SYSTEM_PROP += \
|
|
build/make/target/board/go_defaults_common.prop
|
|
|
|
# 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
|