• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
24# Speed profile services and wifi-service to reduce RAM and storage.
25PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
26
27# Do not generate libartd.
28PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
29
30# Strip the local variable table and the local variable type table to reduce
31# the size of the system image. This has no bearing on stack traces, but will
32# leave less information available via JDWP.
33PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
34
35# Use the low memory allocator outside of eng builds to save RSS.
36ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
37  MALLOC_LOW_MEMORY := true
38endif
39
40# Add the system properties.
41TARGET_SYSTEM_PROP += \
42    build/make/target/board/go_defaults_common.prop
43
44# use the go specific handheld_core_hardware.xml from frameworks
45PRODUCT_COPY_FILES += \
46    frameworks/native/data/etc/go_handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
47