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 17 # This file includes all definitions that apply to ALL tuna devices, and 18 # are also specific to tuna devices 19 # 20 # Everything in this directory will become public 21 22 ifeq ($(TARGET_PREBUILT_KERNEL),) 23 LOCAL_KERNEL := device/samsung/tuna/kernel 24 else 25 LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) 26 endif 27 28 DEVICE_PACKAGE_OVERLAYS := device/samsung/tuna/overlay 29 30 # This device is xhdpi. However the platform doesn't 31 # currently contain all of the bitmaps at xhdpi density so 32 # we do this little trick to fall back to the hdpi version 33 # if the xhdpi doesn't exist. 34 PRODUCT_AAPT_CONFIG := normal hdpi xhdpi 35 PRODUCT_AAPT_PREF_CONFIG := xhdpi 36 37 PRODUCT_PACKAGES := \ 38 lights.tuna \ 39 charger \ 40 charger_res_images 41 42 PRODUCT_PACKAGES += \ 43 sensors.tuna \ 44 libinvensense_mpl 45 46 PRODUCT_PACKAGES += \ 47 nfc.tuna 48 49 PRODUCT_PACKAGES += \ 50 audio.primary.tuna \ 51 audio.a2dp.default \ 52 libaudioutils 53 54 PRODUCT_PACKAGES += \ 55 tuna_hdcp_keys 56 57 PRODUCT_COPY_FILES := \ 58 $(LOCAL_KERNEL):kernel \ 59 device/samsung/tuna/init.tuna.rc:root/init.tuna.rc \ 60 device/samsung/tuna/init.tuna.usb.rc:root/init.tuna.usb.rc \ 61 device/samsung/tuna/ueventd.tuna.rc:root/ueventd.tuna.rc \ 62 device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml \ 63 device/samsung/tuna/gps.conf:system/etc/gps.conf 64 65 # Bluetooth configuration files 66 PRODUCT_COPY_FILES += \ 67 system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf 68 69 # Wifi 70 ifneq ($(TARGET_PREBUILT_WIFI_MODULE),) 71 PRODUCT_COPY_FILES += \ 72 $(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcmdhd.ko 73 endif 74 PRODUCT_COPY_FILES += \ 75 device/samsung/tuna/bcmdhd.cal:system/etc/wifi/bcmdhd.cal 76 77 PRODUCT_PROPERTY_OVERRIDES := \ 78 wifi.interface=wlan0 \ 79 wifi.supplicant_scan_interval=15 80 81 # Set default USB interface 82 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 83 persist.sys.usb.config=mtp 84 85 # NFC 86 PRODUCT_PACKAGES += \ 87 libnfc \ 88 libnfc_jni \ 89 Nfc \ 90 Tag 91 92 # Live Wallpapers 93 PRODUCT_PACKAGES += \ 94 LiveWallpapers \ 95 LiveWallpapersPicker \ 96 VisualizationWallpapers \ 97 librs_jni 98 99 # Key maps 100 PRODUCT_COPY_FILES += \ 101 device/samsung/tuna/tuna-gpio-keypad.kl:system/usr/keylayout/tuna-gpio-keypad.kl \ 102 device/samsung/tuna/tuna-gpio-keypad.kcm:system/usr/keychars/tuna-gpio-keypad.kcm 103 104 # Input device calibration files 105 PRODUCT_COPY_FILES += \ 106 device/samsung/tuna/Melfas_MMSxxx_Touchscreen.idc:system/usr/idc/Melfas_MMSxxx_Touchscreen.idc 107 108 # These are the hardware-specific features 109 PRODUCT_COPY_FILES += \ 110 frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ 111 frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ 112 frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ 113 frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ 114 frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ 115 frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ 116 frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 117 frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 118 frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 119 frameworks/base/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 120 frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ 121 frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ 122 frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ 123 frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 124 frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ 125 packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml 126 127 # HACK: copy panda init for now to boot on both boards 128 PRODUCT_COPY_FILES += \ 129 device/ti/panda/init.omap4pandaboard.rc:root/init.omap4pandaboard.rc 130 131 # Melfas touchscreen firmware 132 PRODUCT_COPY_FILES += \ 133 device/samsung/tuna/mms144_ts_rev31.fw:system/vendor/firmware/mms144_ts_rev31.fw \ 134 device/samsung/tuna/mms144_ts_rev32.fw:system/vendor/firmware/mms144_ts_rev32.fw 135 136 # Portrait dock image 137 PRODUCT_COPY_FILES += \ 138 device/samsung/tuna/dock.png:system/vendor/res/images/dock/dock.png 139 140 # Commands to migrate prefs from com.android.nfc3 to com.android.nfc 141 PRODUCT_COPY_FILES += \ 142 packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt 143 144 # file that declares the MIFARE NFC constant 145 PRODUCT_COPY_FILES += \ 146 device/sample/nxp/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml 147 148 # NFC EXTRAS add-on API 149 PRODUCT_PACKAGES += \ 150 com.android.nfc_extras 151 PRODUCT_COPY_FILES += \ 152 frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml 153 154 # NFCEE access control 155 ifeq ($(TARGET_BUILD_VARIANT),user) 156 NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access.xml 157 else 158 NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access_debug.xml 159 endif 160 PRODUCT_COPY_FILES += \ 161 $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml 162 163 PRODUCT_PROPERTY_OVERRIDES += \ 164 ro.opengles.version=131072 165 166 PRODUCT_PROPERTY_OVERRIDES += \ 167 ro.sf.lcd_density=320 168 169 PRODUCT_CHARACTERISTICS := nosdcard 170 171 PRODUCT_TAGS += dalvik.gc.type-precise 172 173 PRODUCT_PACKAGES += \ 174 librs_jni \ 175 com.android.future.usb.accessory 176 177 # Filesystem management tools 178 PRODUCT_PACKAGES += \ 179 make_ext4fs \ 180 setup_fs 181 182 # for bugmailer 183 PRODUCT_PACKAGES += send_bug 184 PRODUCT_COPY_FILES += \ 185 system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \ 186 system/extras/bugmailer/send_bug:system/bin/send_bug 187 188 $(call inherit-product, frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk) 189 190 $(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk) 191 $(call inherit-product, hardware/ti/omap4xxx/omap4.mk) 192 $(call inherit-product-if-exists, vendor/ti/proprietary/omap4/ti-omap4-vendor.mk) 193 $(call inherit-product-if-exists, vendor/samsung/tuna/device-vendor.mk) 194 195 BOARD_WLAN_DEVICE_REV := bcm4330_b2 196 WIFI_BAND := 802_11_ABG 197 $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk) 198