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 | |
| 17 | # Device overlay |
| 18 | DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay |
| 19 | |
| 20 | # Build and run only ART |
| 21 | PRODUCT_RUNTIMES := runtime_libart_default |
| 22 | |
| 23 | PRODUCT_SHIPPING_API_LEVEL := 29 |
| 24 | PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false |
| 25 | |
| 26 | # vndk |
| 27 | PRODUCT_PACKAGES := vndk-sp |
| 28 | |
| 29 | # Dynamic partitions |
| 30 | PRODUCT_BUILD_SUPER_PARTITION := true |
| 31 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 32 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true |
| 33 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 34 | # HACK: Avoid usb crash |
| 35 | PRODUCT_PRODUCT_PROPERTIES := \ |
| 36 | persist.adb.nonblocking_ffs=0 \ |
| 37 | ro.adb.nonblocking_ffs=0 |
| 38 | |
| 39 | # Display |
| 40 | PRODUCT_PACKAGES += \ |
| 41 | android.hardware.drm@1.0-impl \ |
| 42 | android.hardware.drm@1.0-service \ |
| 43 | android.hardware.graphics.allocator@2.0-impl \ |
| 44 | android.hardware.graphics.allocator@2.0-service \ |
| 45 | android.hardware.graphics.composer@2.2-impl \ |
| 46 | android.hardware.graphics.composer@2.2-service \ |
| 47 | android.hardware.graphics.mapper@2.0-impl-2.1 \ |
| 48 | gralloc.gbm \ |
| 49 | hwcomposer.drm \ |
| 50 | libGLES_mesa |
| 51 | |
| 52 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 53 | ro.hardware.gralloc=gbm \ |
| 54 | ro.hardware.hwcomposer=drm \ |
| 55 | debug.sf.no_hw_vsync=1 \ |
| 56 | hwc.drm.use_framebuffer_target=1 \ |
| 57 | hwc.drm.use_overlay_planes=0 \ |
| 58 | ro.sf.lcd_density=160 \ |
| 59 | ro.opengles.version=196608 \ |
| 60 | persist.demo.rotationlock=1 |
| 61 | |
| 62 | # Use Launcher3QuickStep |
| 63 | PRODUCT_PACKAGES += Launcher3QuickStep |
| 64 | |
| 65 | # Enable WiFi |
| 66 | PRODUCT_PACKAGES += \ |
| 67 | hostapd \ |
| 68 | libwpa_client \ |
| 69 | wpa_supplicant \ |
| 70 | wpa_supplicant.conf \ |
| 71 | wificond \ |
| 72 | wifilogd |
| 73 | |
| 74 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 75 | wifi.interface=wlan0 \ |
| 76 | wifi.supplicant_scan_interval=15 |
| 77 | |
| 78 | PRODUCT_COPY_FILES += \ |
| 79 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ |
| 80 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 81 | $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
| 82 | $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf |
| 83 | |
| 84 | # Enable BT |
| 85 | PRODUCT_PACKAGES += \ |
| 86 | android.hardware.bluetooth@1.0-service.btlinux |
| 87 | |
| 88 | PRODUCT_COPY_FILES += \ |
| 89 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ |
| 90 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
| 91 | |
| 92 | # Audio |
| 93 | PRODUCT_PACKAGES += \ |
| 94 | android.hardware.audio@4.0-impl:32 \ |
| 95 | android.hardware.audio.effect@4.0-impl:32 \ |
| 96 | android.hardware.audio@2.0-service \ |
| 97 | android.hardware.soundtrigger@2.0-impl |
| 98 | |
| 99 | # Build default bluetooth a2dp and usb audio HALs |
| 100 | PRODUCT_PACKAGES += \ |
| 101 | audio.a2dp.default \ |
| 102 | audio.usb.default \ |
| 103 | audio.r_submix.default |
| 104 | |
| 105 | # Build tinyalsa cli tools for debugging |
| 106 | PRODUCT_PACKAGES += \ |
| 107 | tinyplay \ |
| 108 | tinycap \ |
| 109 | tinymix \ |
| 110 | tinypcminfo |
| 111 | |
| 112 | # audio policy configuration |
| 113 | USE_XML_AUDIO_POLICY_CONF := 1 |
| 114 | PRODUCT_COPY_FILES += \ |
| 115 | $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 116 | $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ |
| 117 | frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ |
| 118 | frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \ |
| 119 | frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ |
| 120 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ |
| 121 | frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ |
| 122 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ |
| 123 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml |
| 124 | |
| 125 | # Copy media codecs config file |
| 126 | PRODUCT_COPY_FILES += \ |
| 127 | $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ |
| 128 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ |
| 129 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml |
| 130 | |
| 131 | # Memtrack |
| 132 | PRODUCT_PACKAGES += \ |
| 133 | memtrack.default \ |
| 134 | android.hardware.memtrack@1.0-service \ |
| 135 | android.hardware.memtrack@1.0-impl |
| 136 | |
| 137 | # Keymaster |
| 138 | PRODUCT_PACKAGES += \ |
| 139 | android.hardware.keymaster@3.0-impl \ |
| 140 | android.hardware.keymaster@3.0-service |
| 141 | |
| 142 | # Gatekeeper |
| 143 | PRODUCT_PACKAGES += \ |
| 144 | android.hardware.gatekeeper@1.0-service.software |
| 145 | |
Amit Pundir | 6e0d4a3 | 2019-10-08 17:38:17 +0530 | [diff] [blame] | 146 | # Health |
| 147 | PRODUCT_PACKAGES += \ |
| 148 | android.hardware.health@2.0-service \ |
| 149 | android.hardware.health@2.0-impl |
| 150 | |
Amit Pundir | ed3f821 | 2019-07-01 18:02:54 +0000 | [diff] [blame] | 151 | # mkbootimg host tool to build boot.img separately |
| 152 | PRODUCT_HOST_PACKAGES := \ |
| 153 | mkbootimg |
| 154 | |
Amit Pundir | 4e37582 | 2019-04-18 16:46:10 +0530 | [diff] [blame] | 155 | # Copy standard platform config files |
| 156 | PRODUCT_COPY_FILES += \ |
| 157 | $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \ |
| 158 | frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \ |
| 159 | frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \ |
| 160 | frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \ |
| 161 | frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \ |
| 162 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ |
| 163 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 164 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \ |
| 165 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |