• 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    Stk \
36    Tag \
37
38# OTA support
39PRODUCT_PACKAGES += \
40    recovery-refresh \
41    update_engine \
42    update_verifier \
43
44# Wrapped net utils for /vendor access.
45PRODUCT_PACKAGES += netutils-wrapper-1.0
46
47# Charger images
48PRODUCT_PACKAGES += charger_res_images
49
50# system_other support
51PRODUCT_PACKAGES += \
52    cppreopts.sh \
53    otapreopt_script \
54
55# Bluetooth libraries
56PRODUCT_PACKAGES += \
57    audio.a2dp.default \
58    audio.hearing_aid.default \
59
60# For ringtones that rely on forward lock encryption
61PRODUCT_PACKAGES += libfwdlockengine
62
63# System libraries commonly depended on by things on the system_ext or product partitions.
64# These lists will be pruned periodically.
65PRODUCT_PACKAGES += \
66    android.hardware.biometrics.fingerprint@2.1 \
67    android.hardware.radio@1.0 \
68    android.hardware.radio@1.1 \
69    android.hardware.radio@1.2 \
70    android.hardware.radio@1.3 \
71    android.hardware.radio@1.4 \
72    android.hardware.radio.config@1.0 \
73    android.hardware.radio.deprecated@1.0 \
74    android.hardware.secure_element@1.0 \
75    android.hardware.wifi@1.0 \
76    libaudio-resampler \
77    libaudiohal \
78    libdrm \
79    liblogwrap \
80    liblz4 \
81    libminui \
82    libnl \
83    libprotobuf-cpp-full \
84
85# These libraries are empty and have been combined into libhidlbase, but are still depended
86# on by things off /system.
87# TODO(b/135686713): remove these
88PRODUCT_PACKAGES += \
89    libhidltransport \
90    libhwbinder \
91
92PRODUCT_PACKAGES_DEBUG += \
93    avbctl \
94    bootctl \
95    tinycap \
96    tinyhostless \
97    tinymix \
98    tinypcminfo \
99    tinyplay \
100    update_engine_client \
101
102PRODUCT_HOST_PACKAGES += \
103    tinyplay
104
105# Enable configurable audio policy
106PRODUCT_PACKAGES += \
107    libaudiopolicyengineconfigurable \
108    libpolicy-subsystem
109
110# Include all zygote init scripts. "ro.zygote" will select one of them.
111PRODUCT_COPY_FILES += \
112    system/core/rootdir/init.zygote32.rc:system/etc/init/hw/init.zygote32.rc \
113    system/core/rootdir/init.zygote64.rc:system/etc/init/hw/init.zygote64.rc \
114    system/core/rootdir/init.zygote64_32.rc:system/etc/init/hw/init.zygote64_32.rc \
115
116# Enable dynamic partition size
117PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
118
119PRODUCT_ENFORCE_RRO_TARGETS := *
120
121PRODUCT_NAME := generic_system
122PRODUCT_BRAND := generic
123
124# Define /system partition-specific product properties to identify that /system
125# partition is generic_system.
126PRODUCT_SYSTEM_NAME := mainline
127PRODUCT_SYSTEM_BRAND := Android
128PRODUCT_SYSTEM_MANUFACTURER := Android
129PRODUCT_SYSTEM_MODEL := mainline
130PRODUCT_SYSTEM_DEVICE := generic
131
132_base_mk_allowed_list :=
133
134_my_allowed_list := $(_base_mk_allowed_list)
135
136# For mainline, system.img should be mounted at /, so we include ROOT here.
137_my_paths := \
138  $(TARGET_COPY_OUT_ROOT)/ \
139  $(TARGET_COPY_OUT_SYSTEM)/ \
140
141$(call require-artifacts-in-path, $(_my_paths), $(_my_allowed_list))
142