1# 2# Copyright (C) 2011 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 17ifeq ($(TARGET_PREBUILT_KERNEL),) 18LOCAL_KERNEL := device/samsung/manta/kernel 19else 20LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) 21endif 22 23PRODUCT_COPY_FILES := \ 24 $(LOCAL_KERNEL):kernel \ 25 device/samsung/manta/init.manta.rc:root/init.manta.rc \ 26 device/samsung/manta/init.manta.usb.rc:root/init.manta.usb.rc \ 27 device/samsung/manta/init.recovery.manta.rc:root/init.recovery.manta.rc \ 28 device/samsung/manta/fstab.manta:root/fstab.manta \ 29 device/samsung/manta/ueventd.manta.rc:root/ueventd.manta.rc 30 31# Input device files for manta 32PRODUCT_COPY_FILES += \ 33 device/samsung/manta/Atmel_maXTouch_Touchscreen.idc:system/usr/idc/Atmel_maXTouch_Touchscreen.idc \ 34 device/samsung/manta/manta-keypad.kl:system/usr/keylayout/manta-keypad.kl \ 35 device/samsung/manta/manta-keypad.kcm:system/usr/keychars/manta-keypad.kcm 36 37 38# Init files for booting smdk5250 with a manta image 39PRODUCT_COPY_FILES += \ 40 device/samsung/manta/init.smdk5250.rc:root/init.smdk5250.rc \ 41 device/samsung/manta/init.smdk5250.usb.rc:root/init.smdk5250.usb.rc \ 42 device/samsung/manta/fstab.smdk5250:root/fstab.smdk5250 \ 43 device/samsung/manta/ueventd.smdk5250.rc:root/ueventd.smdk5250.rc 44 45# Input device files for smdk5250 46PRODUCT_COPY_FILES += \ 47 device/samsung/manta/egalax_i2c.idc:system/usr/idc/egalax_i2c.idc \ 48 device/samsung/manta/smdk5250-keypad.kl:system/usr/keylayout/smdk5250-keypad.kl \ 49 device/samsung/manta/smdk5250-keypad.kcm:system/usr/keychars/smdk5250-keypad.kcm 50 51PRODUCT_COPY_FILES += \ 52 frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ 53 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ 54 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ 55 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ 56 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ 57 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \ 58 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ 59 device/samsung/manta/media_codecs.xml:system/etc/media_codecs.xml \ 60 device/samsung/manta/media_profiles.xml:system/etc/media_profiles.xml \ 61 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ 62 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ 63 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 64 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ 65 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ 66 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ 67 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 68 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ 69 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 70 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 71 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ 72 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml 73 74PRODUCT_COPY_FILES += \ 75 device/samsung/manta/bcmdhd.cal:system/etc/wifi/bcmdhd.cal 76 77# audio mixer paths 78PRODUCT_COPY_FILES += \ 79 device/samsung/manta/mixer_paths.xml:system/etc/mixer_paths.xml 80 81# audio policy configuration 82PRODUCT_COPY_FILES += \ 83 device/samsung/manta/audio_policy.conf:system/etc/audio_policy.conf 84 85PRODUCT_PACKAGES := \ 86 libwpa_client \ 87 hostapd \ 88 dhcpcd.conf \ 89 wpa_supplicant \ 90 wpa_supplicant.conf 91 92# audio effects 93PRODUCT_PACKAGES += libaudience_voicefx 94PRODUCT_COPY_FILES += \ 95 device/samsung/manta/audio_effects.conf:system/etc/audio_effects.conf 96 97# BCM47511 GPS 98PRODUCT_COPY_FILES += \ 99 device/samsung/manta/gps/gps.conf:system/etc/gps.conf \ 100 device/samsung/manta/gps/gpsd:system/vendor/bin/gpsd \ 101 device/samsung/manta/gps/gps.xml:system/vendor/etc/gps.xml \ 102 device/samsung/manta/gps/gps.manta.so:system/lib/hw/gps.manta.so 103 104# NFC packages 105PRODUCT_PACKAGES += \ 106 nfc_nci.bcm2079x.default \ 107 NfcNci \ 108 Tag 109 110# NFC access control + feature files + configuration 111PRODUCT_COPY_FILES += \ 112 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ 113 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ 114 device/samsung/manta/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf 115 116PRODUCT_PACKAGES += \ 117 lights.manta \ 118 sensors.manta 119 120PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi 121PRODUCT_AAPT_PREF_CONFIG := xhdpi 122 123PRODUCT_CHARACTERISTICS := tablet,nosdcard 124 125DEVICE_PACKAGE_OVERLAYS := \ 126 device/samsung/manta/overlay 127 128# for now include gralloc here. should come from hardware/samsung_slsi/exynos5 129PRODUCT_PACKAGES += \ 130 gralloc.exynos5 131 132PRODUCT_PACKAGES += \ 133 libion 134 135PRODUCT_TAGS += dalvik.gc.type-precise 136 137PRODUCT_PACKAGES += \ 138 librs_jni \ 139 com.android.future.usb.accessory 140 141PRODUCT_PACKAGES += \ 142 audio.primary.manta \ 143 audio.a2dp.default \ 144 audio.usb.default \ 145 libbubblelevel \ 146 audio.r_submix.default 147 148PRODUCT_PACKAGES += \ 149 power.manta 150 151PRODUCT_PACKAGES += \ 152 camera.exynos5 153 154# Filesystem management tools 155PRODUCT_PACKAGES += \ 156 e2fsck 157 158PRODUCT_PROPERTY_OVERRIDES := \ 159 wifi.interface=wlan0 \ 160 ro.opengles.version=196609 \ 161 ro.sf.lcd_density=320 \ 162 ro.hwui.texture_cache_size=72 \ 163 ro.hwui.layer_cache_size=48 \ 164 ro.hwui.r_buffer_cache_size=8 \ 165 ro.hwui.path_cache_size=32 \ 166 ro.hwui.gradient_cache_size=1 \ 167 ro.hwui.drop_shadow_cache_size=6 \ 168 ro.hwui.texture_cache_flushrate=0.4 \ 169 ro.hwui.text_small_cache_width=1024 \ 170 ro.hwui.text_small_cache_height=1024 \ 171 ro.hwui.text_large_cache_width=2048 \ 172 ro.hwui.text_large_cache_height=1024 \ 173 ro.hwui.disable_scissor_opt=true \ 174 af.fast_track_multiplier=1 175 176# setup dalvik vm configs. 177$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) 178 179# Enable AAC 5.1 output 180PRODUCT_PROPERTY_OVERRIDES += \ 181 media.aac_51_output_enabled=true 182 183# set default USB configuration 184PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 185 persist.sys.usb.config=mtp 186 187# for off charging mode 188PRODUCT_PACKAGES += \ 189 charger_res_images 190 191$(call inherit-product-if-exists, hardware/samsung_slsi/exynos5/exynos5.mk) 192$(call inherit-product-if-exists, vendor/samsung_slsi/exynos5/exynos5-vendor.mk) 193$(call inherit-product-if-exists, vendor/samsung/manta/device-vendor.mk) 194 195$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4324/device-bcm.mk) 196