blob: 0ddc3db5978bd4284c90193e7b29eadada65fd54 [file] [log] [blame]
Anton Hanssoncf27a3d2018-06-27 18:25:33 +01001#
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
Anton Hansson889018d2018-09-26 16:23:02 +010017# This makefile is the basis of a generic system image for a handheld device.
Anton Hanssoncac1fc82018-07-10 17:25:52 +010018$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk)
Anton Hansson889018d2018-09-26 16:23:02 +010019$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk)
Anton Hanssonc0042182019-01-04 13:11:55 +000020$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
Anton Hansson0cb36d72019-01-07 14:36:12 +000021# Add adb keys to debuggable AOSP builds (if they exist)
22$(call inherit-product-if-exists, vendor/google/security/adb/vendor_key.mk)
Anton Hanssoncf27a3d2018-06-27 18:25:33 +010023
Anton Hanssonbfa43382018-09-27 13:48:17 +010024# Shared java libs
25PRODUCT_PACKAGES += \
26 com.android.nfc_extras \
27
Anton Hansson017e68e2018-09-27 11:57:08 +010028# Applications
29PRODUCT_PACKAGES += \
Anton Hansson017e68e2018-09-27 11:57:08 +010030 LiveWallpapersPicker \
31 PartnerBookmarksProvider \
Anton Hanssonda02e862018-10-16 17:17:36 +010032 PresencePolling \
Anton Hansson017e68e2018-09-27 11:57:08 +010033 RcsService \
34 SafetyRegulatoryInfo \
35 Stk \
Anton Hanssonda77c522019-01-03 16:48:55 +000036 Tag \
Anton Hanssoncac5bff2018-11-06 10:58:44 +000037 TimeZoneUpdater \
Anton Hansson017e68e2018-09-27 11:57:08 +010038
Anton Hansson88798402018-11-13 15:19:34 +000039# Binaries
40PRODUCT_PACKAGES += llkd
41
Anton Hanssondeec2802018-09-27 11:07:38 +010042# OTA support
Anton Hansson33611b12018-08-21 16:17:55 +010043PRODUCT_PACKAGES += \
Anton Hansson91fddbb2019-01-25 11:07:15 +000044 recovery-refresh \
Anton Hansson33611b12018-08-21 16:17:55 +010045 update_engine \
46 update_verifier \
47
Anton Hansson2df4bce2018-09-28 15:18:53 +010048# Wrapped net utils for /vendor access.
Anton Hansson88798402018-11-13 15:19:34 +000049PRODUCT_PACKAGES += netutils-wrapper-1.0
Anton Hansson2df4bce2018-09-28 15:18:53 +010050
Anton Hanssonaa236882018-10-16 17:34:33 +010051# Charger images
Anton Hansson88798402018-11-13 15:19:34 +000052PRODUCT_PACKAGES += charger_res_images
Anton Hanssonaa236882018-10-16 17:34:33 +010053
Anton Hanssondeec2802018-09-27 11:07:38 +010054# system_other support
55PRODUCT_PACKAGES += \
56 cppreopts.sh \
57 otapreopt_script \
58
Anton Hanssonc9410072018-09-27 15:43:22 +010059# Bluetooth libraries
60PRODUCT_PACKAGES += \
61 audio.a2dp.default \
62 audio.hearing_aid.default \
63
Anton Hansson8af128d2018-11-06 17:29:32 +000064# For ringtones that rely on forward lock encryption
65PRODUCT_PACKAGES += libfwdlockengine
66
Anton Hansson6d8a1792018-11-20 13:33:27 +000067# System libraries commonly depended on by things on the product partition.
68# This list will be pruned periodically.
69PRODUCT_PACKAGES += \
Anton Hansson1f6e0242018-11-26 16:42:57 +000070 android.hardware.biometrics.fingerprint@2.1 \
Anton Hansson6d8a1792018-11-20 13:33:27 +000071 android.hardware.radio@1.0 \
72 android.hardware.radio@1.1 \
73 android.hardware.radio@1.2 \
74 android.hardware.radio.config@1.0 \
75 android.hardware.radio.deprecated@1.0 \
76 android.hardware.secure_element@1.0 \
Ahmed ElArabawy69e62af2019-01-04 13:39:20 -080077 android.hardware.wifi@1.0 \
Anton Hansson6d8a1792018-11-20 13:33:27 +000078 libaudio-resampler \
79 liblogwrap \
80 liblz4 \
81 libminui \
Anton Hansson1f6e0242018-11-26 16:42:57 +000082 libnl \
Anton Hansson6d8a1792018-11-20 13:33:27 +000083 libprotobuf-cpp-full \
84 libprotobuf-cpp-full-rtti \
85
Anton Hansson28e0f032018-10-17 09:08:27 +010086PRODUCT_PACKAGES_DEBUG += \
Anton Hansson36c5d0d2018-10-16 16:15:39 +010087 avbctl \
88 bootctl \
89 tinyplay \
90 tinycap \
91 tinymix \
92 tinypcminfo \
93 update_engine_client \
94
Dan Willemsen3d05a082019-02-22 23:06:03 +000095PRODUCT_HOST_PACKAGES += \
96 tinyplay
97
Anton Hansson3b119102018-11-22 16:52:29 +000098# Enable stats logging in LMKD
99TARGET_LMKD_STATS_LOG := true
100PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
101 ro.lmk.log_stats=true
102
SzuWei Lind7ae1bc2018-08-08 13:22:36 +0800103# Enable dynamic partition size
104PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
105
Anton Hanssoncf27a3d2018-06-27 18:25:33 +0100106PRODUCT_NAME := mainline_system
107PRODUCT_BRAND := generic
Anton Hanssoncf27a3d2018-06-27 18:25:33 +0100108
Tao Bao696bb332018-08-17 16:27:01 -0700109_base_mk_whitelist :=
Anton Hanssoncf27a3d2018-06-27 18:25:33 +0100110
111_my_whitelist := $(_base_mk_whitelist)
112
Anton Hanssonb65a5ba2018-10-18 13:40:22 +0100113# For mainline, system.img should be mounted at /, so we include ROOT here.
Anton Hansson173b5e72018-07-02 15:01:35 +0100114_my_paths := \
Anton Hanssondcb5ef12018-10-15 11:35:15 +0100115 $(TARGET_COPY_OUT_ROOT)/ \
116 $(TARGET_COPY_OUT_SYSTEM)/ \
Anton Hansson173b5e72018-07-02 15:01:35 +0100117
118$(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist))