1 # 2 # Copyright (C) 2017 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 PRODUCT_COPY_FILES += device/google/cuttlefish_kernel/4.4-x86_64/kernel:kernel 18 19 PRODUCT_SHIPPING_API_LEVEL := 26 20 21 # Explanation of specific properties: 22 # debug.hwui.swap_with_damage avoids boot failure on M http://b/25152138 23 # ro.opengles.version OpenGLES 2.0 24 PRODUCT_PROPERTY_OVERRIDES += \ 25 tombstoned.max_tombstone_count=500 \ 26 debug.hwui.swap_with_damage=0 \ 27 ro.adb.qemud=0 \ 28 ro.carrier=unknown \ 29 ro.com.android.dataroaming=false \ 30 ro.com.google.locationfeatures=1 \ 31 ro.debuggable=1 \ 32 ro.hardware.virtual_device=1 \ 33 ro.logd.size=1M \ 34 ro.opengles.version=131072 \ 35 ro.ril.gprsclass=10 \ 36 ro.ril.hsxpa=1 \ 37 ro.setupwizard.mode=DISABLED \ 38 wifi.interface=wlan0 \ 39 40 # Below is a list of properties we probably should get rid of. 41 PRODUCT_PROPERTY_OVERRIDES += \ 42 wlan.driver.status=ok 43 44 45 # Default OMX service to non-Treble 46 PRODUCT_PROPERTY_OVERRIDES += \ 47 persist.media.treble_omx=false 48 49 # 50 # Packages for various cuttlefish-specific tests 51 # 52 PRODUCT_PACKAGES += \ 53 vsoc_guest_region_e2e_test \ 54 vsoc_driver_test 55 56 # 57 # Packages for various GCE-specific utilities 58 # 59 PRODUCT_PACKAGES += \ 60 audiotop \ 61 dhcpcd_wlan0 \ 62 gce_fs_monitor \ 63 socket_forward_proxy \ 64 usbforward \ 65 VSoCService \ 66 wifi_relay \ 67 wpa_supplicant.vsoc.conf \ 68 vsoc_input_service \ 69 vport_trigger \ 70 rename_netiface 71 72 # 73 # Packages for AOSP-available stuff we use from the framework 74 # 75 PRODUCT_PACKAGES += \ 76 dhcpcd-6.8.2 \ 77 dhcpcd-6.8.2.conf \ 78 e2fsck \ 79 ip \ 80 network \ 81 perf \ 82 scp \ 83 sleep \ 84 tcpdump \ 85 wpa_supplicant \ 86 wificond \ 87 88 # 89 # Packages for the OpenGL implementation 90 # TODO(ghartman): Remove this vendor dependency when possible 91 # 92 PRODUCT_PACKAGES += \ 93 libEGL_swiftshader \ 94 libGLESv1_CM_swiftshader \ 95 libGLESv2_swiftshader \ 96 97 DEVICE_PACKAGE_OVERLAYS := device/google/cuttlefish/shared/overlay 98 PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi 99 # PRODUCT_AAPT_PREF_CONFIG is intentionally not set to pick up every density resources. 100 101 # 102 # General files 103 # 104 PRODUCT_COPY_FILES += \ 105 device/google/cuttlefish/shared/config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ 106 device/google/cuttlefish/shared/config/camera_v1.json:vendor/etc/config/camera.json \ 107 device/google/cuttlefish/shared/config/init.vsoc.rc:root/init.vsoc.rc \ 108 device/google/cuttlefish/shared/config/media_codecs.xml:system/etc/media_codecs.xml \ 109 device/google/cuttlefish/shared/config/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \ 110 device/google/cuttlefish/shared/config/media_profiles.xml:system/etc/media_profiles.xml \ 111 device/google/cuttlefish/shared/config/profile.root:root/profile \ 112 device/google/cuttlefish/shared/config/fstab.vsoc:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.vsoc \ 113 frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf \ 114 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ 115 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ 116 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ 117 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ 118 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ 119 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ 120 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ 121 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ 122 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ 123 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.xml \ 124 frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \ 125 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ 126 frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \ 127 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ 128 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ 129 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 130 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 131 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ 132 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 133 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 134 frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ 135 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 136 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ 137 frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml \ 138 system/bt/vendor_libs/test_vendor_lib/data/controller_properties.json:system/etc/bluetooth/controller_properties.json \ 139 140 141 # 142 # USB Specific 143 # 144 PRODUCT_COPY_FILES += \ 145 device/google/cuttlefish/shared/config/init.hardware.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vsoc.usb.rc 146 147 # Packages for HAL implementations 148 149 # 150 # Hardware Composer HAL 151 # 152 PRODUCT_PACKAGES += \ 153 hwcomposer.vsoc \ 154 hwcomposer-stats \ 155 android.hardware.graphics.composer@2.1-impl \ 156 android.hardware.graphics.composer@2.1-service 157 158 # 159 # Gralloc HAL 160 # 161 PRODUCT_PACKAGES += \ 162 gralloc.vsoc \ 163 android.hardware.graphics.mapper@2.0-impl \ 164 android.hardware.graphics.allocator@2.0-impl \ 165 android.hardware.graphics.allocator@2.0-service 166 167 # 168 # Bluetooth HAL and Compatibility Bluetooth library (for older revs). 169 # 170 PRODUCT_PACKAGES += \ 171 android.hardware.bluetooth@1.0-service.sim \ 172 libbt-vendor-build-test 173 174 # 175 # Audio HAL 176 # 177 PRODUCT_PACKAGES += \ 178 audio.primary.vsoc \ 179 android.hardware.audio@4.0-impl \ 180 android.hardware.audio.effect@4.0-impl \ 181 android.hardware.audio@2.0-service 182 183 # 184 # Drm HAL 185 # 186 PRODUCT_PACKAGES += \ 187 android.hardware.drm@1.0-impl \ 188 android.hardware.drm@1.0-service 189 190 # 191 # Dumpstate HAL 192 # 193 PRODUCT_PACKAGES += \ 194 android.hardware.dumpstate@1.0-service.cuttlefish 195 196 # 197 # Camera 198 # 199 PRODUCT_PACKAGES += \ 200 camera.vsoc \ 201 camera.vsoc.jpeg \ 202 camera.device@3.2-impl \ 203 android.hardware.camera.provider@2.4-impl \ 204 android.hardware.camera.provider@2.4-service 205 206 # 207 # Gatekeeper 208 # 209 PRODUCT_PACKAGES += \ 210 gatekeeper.vsoc \ 211 android.hardware.gatekeeper@1.0-impl \ 212 android.hardware.gatekeeper@1.0-service 213 214 # 215 # GPS 216 # 217 PRODUCT_PACKAGES += \ 218 gps.vsoc \ 219 android.hardware.gnss@1.0-impl \ 220 android.hardware.gnss@1.0-service 221 222 # Health 223 PRODUCT_PACKAGES += \ 224 android.hardware.health@2.0-service.cuttlefish 225 226 # 227 # Sensors 228 # 229 PRODUCT_PACKAGES += \ 230 sensors.vsoc \ 231 android.hardware.sensors@1.0-impl \ 232 android.hardware.sensors@1.0-service 233 234 # 235 # Lights 236 # 237 PRODUCT_PACKAGES += \ 238 lights.vsoc \ 239 android.hardware.light@2.0-impl \ 240 android.hardware.light@2.0-service 241 242 # 243 # Keymaster HAL 244 # 245 PRODUCT_PACKAGES += \ 246 android.hardware.keymaster@3.0-impl \ 247 android.hardware.keymaster@3.0-service 248 249 # 250 # Power HAL 251 # 252 PRODUCT_PACKAGES += \ 253 power.vsoc \ 254 android.hardware.power@1.0-impl \ 255 android.hardware.power@1.0-service 256 257 # 258 # USB 259 PRODUCT_PACKAGES += \ 260 android.hardware.usb@1.0-service 261 262 # TODO vibrator HAL 263 # TODO thermal 264 265 PRODUCT_PACKAGES += \ 266 cuttlefish_dtb 267 268 # WLAN driver configuration files 269 PRODUCT_COPY_FILES += \ 270 $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf 271