Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2014 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 | |
John Stultz | fa0fa16 | 2020-02-06 23:14:28 +0000 | [diff] [blame] | 17 | # Enable updating of APEXes |
| 18 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 19 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 20 | # Device overlay |
| 21 | DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay |
| 22 | |
| 23 | # Build and run only ART |
| 24 | PRODUCT_RUNTIMES := runtime_libart_default |
| 25 | |
| 26 | PRODUCT_SHIPPING_API_LEVEL := 29 |
| 27 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
| 28 | |
John Stultz | 80e228b | 2020-10-06 05:03:30 +0000 | [diff] [blame] | 29 | # Enable Scoped Storage related |
| 30 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 31 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 32 | # vndk |
| 33 | PRODUCT_PACKAGES := vndk-sp |
| 34 | |
| 35 | # Dynamic partitions |
| 36 | PRODUCT_BUILD_SUPER_PARTITION := true |
| 37 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 38 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 39 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 40 | # HACK: Avoid usb crash |
| 41 | PRODUCT_PRODUCT_PROPERTIES := \ |
| 42 | persist.adb.nonblocking_ffs=0 \ |
| 43 | ro.adb.nonblocking_ffs=0 |
| 44 | |
| 45 | # Display |
| 46 | PRODUCT_PACKAGES += \ |
| 47 | android.hardware.drm@1.0-impl \ |
| 48 | android.hardware.drm@1.0-service \ |
| 49 | android.hardware.graphics.allocator@2.0-impl \ |
| 50 | android.hardware.graphics.allocator@2.0-service \ |
| 51 | android.hardware.graphics.composer@2.2-impl \ |
| 52 | android.hardware.graphics.composer@2.2-service \ |
| 53 | android.hardware.graphics.mapper@2.0-impl-2.1 \ |
| 54 | gralloc.gbm \ |
| 55 | hwcomposer.drm \ |
| 56 | libGLES_mesa |
| 57 | |
| 58 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 59 | ro.hardware.gralloc=gbm \ |
| 60 | ro.hardware.hwcomposer=drm \ |
| 61 | debug.sf.no_hw_vsync=1 \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 62 | ro.opengles.version=196608 \ |
| 63 | persist.demo.rotationlock=1 |
| 64 | |
| 65 | # Use Launcher3QuickStep |
| 66 | PRODUCT_PACKAGES += Launcher3QuickStep |
| 67 | |
| 68 | # Enable WiFi |
| 69 | PRODUCT_PACKAGES += \ |
| 70 | hostapd \ |
| 71 | libwpa_client \ |
| 72 | wpa_supplicant \ |
| 73 | wpa_supplicant.conf \ |
Elliott Hughes | 6e1a73e | 2020-11-06 14:25:45 -0800 | [diff] [blame] | 74 | wificond |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 75 | |
| 76 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 77 | wifi.interface=wlan0 \ |
| 78 | wifi.supplicant_scan_interval=15 |
| 79 | |
| 80 | PRODUCT_COPY_FILES += \ |
| 81 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 82 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 83 | $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
| 84 | $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf |
| 85 | |
| 86 | # Enable BT |
| 87 | PRODUCT_PACKAGES += \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 88 | android.hardware.bluetooth@1.1-service.btlinux |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 89 | |
| 90 | PRODUCT_COPY_FILES += \ |
| 91 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 92 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| 93 | |
| 94 | # Audio |
| 95 | PRODUCT_PACKAGES += \ |
| 96 | android.hardware.audio@4.0-impl:32 \ |
| 97 | android.hardware.audio.effect@4.0-impl:32 \ |
| 98 | android.hardware.audio@2.0-service \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 99 | android.hardware.soundtrigger@2.0-impl \ |
| 100 | android.hardware.bluetooth.audio@2.0-impl |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 101 | |
| 102 | # Build default bluetooth a2dp and usb audio HALs |
| 103 | PRODUCT_PACKAGES += \ |
| 104 | audio.a2dp.default \ |
John Stultz | 59657d5 | 2020-01-31 23:51:58 +0000 | [diff] [blame] | 105 | audio.bluetooth.default \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 106 | audio.usb.default \ |
| 107 | audio.r_submix.default |
| 108 | |
| 109 | # Build tinyalsa cli tools for debugging |
| 110 | PRODUCT_PACKAGES += \ |
| 111 | tinyplay \ |
| 112 | tinycap \ |
| 113 | tinymix \ |
| 114 | tinypcminfo |
| 115 | |
| 116 | # audio policy configuration |
| 117 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 118 | PRODUCT_COPY_FILES += \ |
Amit Pundir | e6732bb | 2020-09-28 12:43:59 +0530 | [diff] [blame] | 119 | $(LOCAL_PATH)/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 120 | $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 121 | $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ |
| 122 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 123 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
Amit Pundir | 456949d | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 124 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 125 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 126 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 127 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 128 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 129 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml |
| 130 | |
| 131 | # Copy media codecs config file |
| 132 | PRODUCT_COPY_FILES += \ |
| 133 | $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
Amit Pundir | 456949d | 2020-02-18 22:44:16 +0530 | [diff] [blame] | 134 | frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 135 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 136 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml |
| 137 | |
Amit Pundir | ed6df0d | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 138 | PRODUCT_COPY_FILES += \ |
Amit Pundir | 6d532ae | 2021-01-15 02:21:28 +0530 | [diff] [blame] | 139 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ |
Amit Pundir | ed6df0d | 2020-02-19 00:05:38 +0530 | [diff] [blame] | 140 | $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy |
| 141 | |
John Stultz | 365efe2 | 2020-09-23 02:09:15 +0000 | [diff] [blame] | 142 | # Copy hardware config file(s) |
| 143 | PRODUCT_COPY_FILES += \ |
| 144 | device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml |
| 145 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 146 | # Memtrack |
| 147 | PRODUCT_PACKAGES += \ |
| 148 | memtrack.default \ |
| 149 | android.hardware.memtrack@1.0-service \ |
| 150 | android.hardware.memtrack@1.0-impl |
| 151 | |
| 152 | # Keymaster |
| 153 | PRODUCT_PACKAGES += \ |
| 154 | android.hardware.keymaster@3.0-impl \ |
| 155 | android.hardware.keymaster@3.0-service |
| 156 | |
| 157 | # Gatekeeper |
| 158 | PRODUCT_PACKAGES += \ |
| 159 | android.hardware.gatekeeper@1.0-service.software |
| 160 | |
Amit Pundir | 6e0d4a3 | 2019-10-08 17:38:17 +0530 | [diff] [blame] | 161 | # Health |
| 162 | PRODUCT_PACKAGES += \ |
Amit Pundir | 4bcec51 | 2021-03-10 17:53:38 +0530 | [diff] [blame] | 163 | android.hardware.health@2.1-impl-cuttlefish \ |
| 164 | android.hardware.health@2.1-service |
Amit Pundir | 6e0d4a3 | 2019-10-08 17:38:17 +0530 | [diff] [blame] | 165 | |
Amit Pundir | d3525fb | 2021-05-31 16:16:21 +0530 | [diff] [blame] | 166 | # TODO: disable this service once we implement system suspend |
| 167 | PRODUCT_PACKAGES += \ |
| 168 | suspend_blocker |
| 169 | |
Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 170 | # mkbootimg host tool to build boot.img separately |
| 171 | PRODUCT_HOST_PACKAGES := \ |
| 172 | mkbootimg |
| 173 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 174 | # Copy standard platform config files |
| 175 | PRODUCT_COPY_FILES += \ |
| 176 | $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
| 177 | frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \ |
| 178 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
| 179 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
| 180 | frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \ |
| 181 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
Amit Pundir | 6e3b2bb | 2020-04-10 22:47:13 +0530 | [diff] [blame] | 182 | frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \ |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 183 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 184 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 185 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |
Dan Willemsen | 181c24c | 2020-01-27 18:59:03 -0800 | [diff] [blame] | 186 | |
| 187 | PRODUCT_SOONG_NAMESPACES += external/mesa3d |