• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2018 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# This makefile is the basis of a generic system image for a handheld device.
18$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
19$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
20$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
21# Add adb keys to debuggable AOSP builds (if they exist)
22$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk)
23
24# Enable updating of APEXes
25$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
26
27# Shared java libs
28PRODUCT_PACKAGES += \
29    com.android.nfc_extras \
30
31# Applications
32PRODUCT_PACKAGES += \
33    LiveWallpapersPicker \
34    PartnerBookmarksProvider \
35    preinstalled-packages-platform-generic-system.xml \
36    Stk \
37    Tag \
38
39# OTA support
40PRODUCT_PACKAGES += \
41    recovery-refresh \
42    update_engine \
43    update_verifier \
44
45# Wrapped net utils for /vendor access.
46PRODUCT_PACKAGES += netutils-wrapper-1.0
47
48# Charger images
49PRODUCT_PACKAGES += charger_res_images
50
51# system_other support
52PRODUCT_PACKAGES += \
53    cppreopts.sh \
54    otapreopt_script \
55
56# For ringtones that rely on forward lock encryption
57PRODUCT_PACKAGES += libfwdlockengine
58
59# System libraries commonly depended on by things on the system_ext or product partitions.
60# These lists will be pruned periodically.
61PRODUCT_PACKAGES += \
62    android.hardware.biometrics.fingerprint@2.1 \
63    android.hardware.radio@1.0 \
64    android.hardware.radio@1.1 \
65    android.hardware.radio@1.2 \
66    android.hardware.radio@1.3 \
67    android.hardware.radio@1.4 \
68    android.hardware.radio.config@1.0 \
69    android.hardware.radio.deprecated@1.0 \
70    android.hardware.secure_element@1.0 \
71    libaudio-resampler \
72    libaudiohal \
73    libdrm \
74    liblogwrap \
75    liblz4 \
76    libminui \
77    libnl \
78    libprotobuf-cpp-full \
79
80# These libraries are empty and have been combined into libhidlbase, but are still depended
81# on by things off /system.
82# TODO(b/135686713): remove these
83PRODUCT_PACKAGES += \
84    libhidltransport \
85    libhwbinder \
86
87PRODUCT_PACKAGES_DEBUG += \
88    avbctl \
89    bootctl \
90    tinycap \
91    tinyhostless \
92    tinymix \
93    tinypcminfo \
94    tinyplay \
95    update_engine_client \
96
97PRODUCT_HOST_PACKAGES += \
98    tinyplay
99
100# Enable configurable audio policy
101PRODUCT_PACKAGES += \
102    libaudiopolicyengineconfigurable \
103    libpolicy-subsystem
104
105# Add all of the packages used to support older/upgrading devices
106# These can be removed as we drop support for the older API levels
107PRODUCT_PACKAGES += \
108    $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29) \
109    $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_33) \
110    $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_34)
111
112# Include all zygote init scripts. "ro.zygote" will select one of them.
113PRODUCT_PACKAGES += \
114    init.zygote32.rc \
115    init.zygote64.rc \
116    init.zygote64_32.rc
117
118# Support Credential Manager
119PRODUCT_PACKAGES += \
120    android.software.credentials.prebuilt.xml
121
122# Enable dynamic partition size
123PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
124
125PRODUCT_ENFORCE_RRO_TARGETS := *
126
127PRODUCT_NAME := generic_system
128PRODUCT_BRAND := generic
129
130# Define /system partition-specific product properties to identify that /system
131# partition is generic_system.
132PRODUCT_SYSTEM_NAME := mainline
133PRODUCT_SYSTEM_BRAND := Android
134PRODUCT_SYSTEM_MANUFACTURER := Android
135PRODUCT_SYSTEM_MODEL := mainline
136PRODUCT_SYSTEM_DEVICE := generic
137
138_base_mk_allowed_list :=
139
140_my_allowed_list := $(_base_mk_allowed_list)
141
142# For mainline, system.img should be mounted at /, so we include ROOT here.
143_my_paths := \
144  $(TARGET_COPY_OUT_ROOT)/ \
145  $(TARGET_COPY_OUT_SYSTEM)/ \
146
147$(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list))
148
149# Product config map to toggle between sources and prebuilts of required mainline modules
150PRODUCT_RELEASE_CONFIG_MAPS += $(wildcard build/release/gms_mainline/required/release_config_map.textproto)
151PRODUCT_RELEASE_CONFIG_MAPS += $(wildcard vendor/google_shared/build/release/gms_mainline/required/release_config_map.textproto)
152