blob: e3816062e9fdb30e8297decefe0601622fadb0dc [file] [log] [blame]
#
# Copyright (C) 2013 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
PRODUCT_PACKAGES := \
libwpa_client \
hostapd \
wpa_supplicant \
wpa_supplicant.conf
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/htc/flounder-kernel/Image.gz-dtb
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel \
$(LOCAL_PATH)/init.flounder.rc:root/init.flounder.rc \
$(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder.usb.rc \
$(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder.rc \
$(LOCAL_PATH)/fstab.flounder:root/fstab.flounder \
$(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder.rc
# Copy flounder files as flounder64 so that ${ro.hardware} can find them
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.flounder.rc:root/init.flounder64.rc \
$(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder64.usb.rc \
$(LOCAL_PATH)/fstab.flounder:root/fstab.flounder64 \
$(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder64.rc \
$(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder64.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/touch/touch_fusion.cfg:system/vendor/firmware/touch_fusion.cfg \
$(LOCAL_PATH)/touch/maxim_fp35.bin:system/vendor/firmware/maxim_fp35.bin \
$(LOCAL_PATH)/touch/touch_fusion.idc:system/usr/idc/touch_fusion.idc \
$(LOCAL_PATH)/touch/touch_fusion:system/vendor/bin/touch_fusion
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/mixer_paths_1.xml:system/etc/mixer_paths_1.xml \
$(LOCAL_PATH)/mixer_paths_0.xml:system/etc/mixer_paths_0.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/enctune.conf:system/etc/enctune.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
$(LOCAL_PATH)/nvcamera.conf:system/etc/nvcamera.conf \
$(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/bcm/gps.bcm47521.conf:system/etc/gps.bcm47521.conf \
$(LOCAL_PATH)/gps/bcm/glgps:system/bin/glgps \
$(LOCAL_PATH)/gps/bcm/gpsconfig.xml:system/etc/gpsconfig.xml \
$(LOCAL_PATH)/gps/bcm/gps.bcm47521.so:system/lib/hw/gps.bcm47521.so
# NFC feature + config files
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
device/htc/flounder/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
device/htc/flounder/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf
PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_CHARACTERISTICS := tablet,nosdcard
DEVICE_PACKAGE_OVERLAYS := \
$(LOCAL_PATH)/overlay
PRODUCT_TAGS += dalvik.gc.type-precise
# NFC packages
# Note: NFC HAL is built with $(TARGET_DEVICE), so this
# includes both flounder and flounder64 HALs to support both
PRODUCT_PACKAGES += \
nfc_nci.flounder \
nfc_nci.flounder64 \
NfcNci \
Tag \
PRODUCT_PACKAGES += \
librs_jni \
com.android.future.usb.accessory
PRODUCT_PACKAGES += \
power.flounder \
lights.flounder \
sensors.flounder
# Filesystem management tools
PRODUCT_PACKAGES += \
e2fsck
PRODUCT_PROPERTY_OVERRIDES := \
wifi.interface=wlan0 \
ro.opengles.version=196608 \
ro.sf.lcd_density=320 \
ro.zygote.disable_gl_preload=true \
ro.hwui.texture_cache_size=72 \
ro.hwui.layer_cache_size=48 \
ro.hwui.r_buffer_cache_size=8 \
ro.hwui.path_cache_size=32 \
ro.hwui.gradient_cache_size=1 \
ro.hwui.drop_shadow_cache_size=6 \
ro.hwui.texture_cache_flushrate=0.4 \
ro.hwui.text_small_cache_width=1024 \
ro.hwui.text_small_cache_height=1024 \
ro.hwui.text_large_cache_width=2048 \
ro.hwui.text_large_cache_height=1024 \
ro.hwui.disable_scissor_opt=true \
ro.bt.bdaddr_path=/sys/module/flounder_bdaddress/parameters/bdaddress
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
# set default USB configuration
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp \
ro.adb.secure=1
# for off charging mode
PRODUCT_PACKAGES += \
charger \
charger_res_images
# for audio
PRODUCT_PACKAGES += \
audio.primary.flounder \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
# add verity dependencies
$(call inherit-product, build/target/product/verity.mk)
PRODUCT_VERITY_PARTITION := /dev/block/platform/sdhci-tegra.3/by-name/APP
$(call inherit-product-if-exists, hardware/nvidia/tegra132/tegra132.mk)
$(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra132/tegra132-vendor.mk)
$(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk)
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk)