Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 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 | |
Anton Hansson | 889018d | 2018-09-26 16:23:02 +0100 | [diff] [blame] | 17 | # This makefile is the basis of a generic system image for a handheld device. |
Anton Hansson | cac1fc8 | 2018-07-10 17:25:52 +0100 | [diff] [blame] | 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system.mk) |
Anton Hansson | 889018d | 2018-09-26 16:23:02 +0100 | [diff] [blame] | 19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system.mk) |
Anton Hansson | c004218 | 2019-01-04 13:11:55 +0000 | [diff] [blame^] | 20 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk) |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 21 | |
Anton Hansson | bfa4338 | 2018-09-27 13:48:17 +0100 | [diff] [blame] | 22 | # Shared java libs |
| 23 | PRODUCT_PACKAGES += \ |
| 24 | com.android.nfc_extras \ |
| 25 | |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 26 | # Applications |
| 27 | PRODUCT_PACKAGES += \ |
| 28 | DMService \ |
| 29 | LiveWallpapersPicker \ |
| 30 | PartnerBookmarksProvider \ |
Anton Hansson | da02e86 | 2018-10-16 17:17:36 +0100 | [diff] [blame] | 31 | PresencePolling \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 32 | RcsService \ |
| 33 | SafetyRegulatoryInfo \ |
| 34 | Stk \ |
Anton Hansson | cac5bff | 2018-11-06 10:58:44 +0000 | [diff] [blame] | 35 | TimeZoneUpdater \ |
Anton Hansson | 017e68e | 2018-09-27 11:57:08 +0100 | [diff] [blame] | 36 | |
Anton Hansson | 8879840 | 2018-11-13 15:19:34 +0000 | [diff] [blame] | 37 | # Binaries |
| 38 | PRODUCT_PACKAGES += llkd |
| 39 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 40 | # OTA support |
Anton Hansson | 33611b1 | 2018-08-21 16:17:55 +0100 | [diff] [blame] | 41 | PRODUCT_PACKAGES += \ |
| 42 | update_engine \ |
| 43 | update_verifier \ |
| 44 | |
Anton Hansson | 2df4bce | 2018-09-28 15:18:53 +0100 | [diff] [blame] | 45 | # Wrapped net utils for /vendor access. |
Anton Hansson | 8879840 | 2018-11-13 15:19:34 +0000 | [diff] [blame] | 46 | PRODUCT_PACKAGES += netutils-wrapper-1.0 |
Anton Hansson | 2df4bce | 2018-09-28 15:18:53 +0100 | [diff] [blame] | 47 | |
Anton Hansson | aa23688 | 2018-10-16 17:34:33 +0100 | [diff] [blame] | 48 | # Charger images |
Anton Hansson | 8879840 | 2018-11-13 15:19:34 +0000 | [diff] [blame] | 49 | PRODUCT_PACKAGES += charger_res_images |
Anton Hansson | aa23688 | 2018-10-16 17:34:33 +0100 | [diff] [blame] | 50 | |
Anton Hansson | deec280 | 2018-09-27 11:07:38 +0100 | [diff] [blame] | 51 | # system_other support |
| 52 | PRODUCT_PACKAGES += \ |
| 53 | cppreopts.sh \ |
| 54 | otapreopt_script \ |
| 55 | |
Anton Hansson | c941007 | 2018-09-27 15:43:22 +0100 | [diff] [blame] | 56 | # Bluetooth libraries |
| 57 | PRODUCT_PACKAGES += \ |
| 58 | audio.a2dp.default \ |
| 59 | audio.hearing_aid.default \ |
| 60 | |
Anton Hansson | 8af128d | 2018-11-06 17:29:32 +0000 | [diff] [blame] | 61 | # For ringtones that rely on forward lock encryption |
| 62 | PRODUCT_PACKAGES += libfwdlockengine |
| 63 | |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 64 | # System libraries commonly depended on by things on the product partition. |
| 65 | # This list will be pruned periodically. |
| 66 | PRODUCT_PACKAGES += \ |
Anton Hansson | 1f6e024 | 2018-11-26 16:42:57 +0000 | [diff] [blame] | 67 | android.hardware.biometrics.fingerprint@2.1 \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 68 | android.hardware.radio@1.0 \ |
| 69 | android.hardware.radio@1.1 \ |
| 70 | android.hardware.radio@1.2 \ |
| 71 | android.hardware.radio.config@1.0 \ |
| 72 | android.hardware.radio.deprecated@1.0 \ |
| 73 | android.hardware.secure_element@1.0 \ |
| 74 | android.hardware.tests.libhwbinder@1.0-impl \ |
| 75 | android.hidl.base@1.0 \ |
| 76 | libaudio-resampler \ |
| 77 | liblogwrap \ |
| 78 | liblz4 \ |
| 79 | libminui \ |
Anton Hansson | 1f6e024 | 2018-11-26 16:42:57 +0000 | [diff] [blame] | 80 | libnl \ |
Anton Hansson | 6d8a179 | 2018-11-20 13:33:27 +0000 | [diff] [blame] | 81 | libprotobuf-cpp-full \ |
| 82 | libprotobuf-cpp-full-rtti \ |
| 83 | |
Anton Hansson | 28e0f03 | 2018-10-17 09:08:27 +0100 | [diff] [blame] | 84 | PRODUCT_PACKAGES_DEBUG += \ |
Anton Hansson | 36c5d0d | 2018-10-16 16:15:39 +0100 | [diff] [blame] | 85 | avbctl \ |
| 86 | bootctl \ |
| 87 | tinyplay \ |
| 88 | tinycap \ |
| 89 | tinymix \ |
| 90 | tinypcminfo \ |
| 91 | update_engine_client \ |
| 92 | |
Anton Hansson | 3b11910 | 2018-11-22 16:52:29 +0000 | [diff] [blame] | 93 | # Enable stats logging in LMKD |
| 94 | TARGET_LMKD_STATS_LOG := true |
| 95 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 96 | ro.lmk.log_stats=true |
| 97 | |
SzuWei Lin | d7ae1bc | 2018-08-08 13:22:36 +0800 | [diff] [blame] | 98 | # Enable dynamic partition size |
| 99 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 100 | |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 101 | PRODUCT_NAME := mainline_system |
| 102 | PRODUCT_BRAND := generic |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 103 | |
Tao Bao | 696bb33 | 2018-08-17 16:27:01 -0700 | [diff] [blame] | 104 | _base_mk_whitelist := |
Anton Hansson | cf27a3d | 2018-06-27 18:25:33 +0100 | [diff] [blame] | 105 | |
| 106 | _my_whitelist := $(_base_mk_whitelist) |
| 107 | |
Anton Hansson | b65a5ba | 2018-10-18 13:40:22 +0100 | [diff] [blame] | 108 | # For mainline, system.img should be mounted at /, so we include ROOT here. |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 109 | _my_paths := \ |
Anton Hansson | dcb5ef1 | 2018-10-15 11:35:15 +0100 | [diff] [blame] | 110 | $(TARGET_COPY_OUT_ROOT)/ \ |
| 111 | $(TARGET_COPY_OUT_SYSTEM)/ \ |
Anton Hansson | 173b5e7 | 2018-07-02 15:01:35 +0100 | [diff] [blame] | 112 | |
| 113 | $(call require-artifacts-in-path, $(_my_paths), $(_my_whitelist)) |