blob: 1a87d7bbd57dbcb154a184a6bf21a61353a8f003 [file] [log] [blame]
nebkatee1a8392012-11-10 10:36:07 +00001#
2# Copyright (C) 2012 The CyanogenMod 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
codeworkx171d0d92012-11-11 10:36:08 +010017COMMON_PATH := device/samsung/smdk4412-common
18
19DEVICE_PACKAGE_OVERLAYS := $(COMMON_PATH)/overlay
nebkatee1a8392012-11-10 10:36:07 +000020
21PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
22
23$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
24
25# The gps config appropriate for this device
26$(call inherit-product, device/common/gps/gps_us_supl.mk)
27
28# Init files
29PRODUCT_COPY_FILES := \
Daniel Hillenbranda6d6fa22013-08-10 17:47:36 +020030 $(COMMON_PATH)/rootdir/init.smdk4x12.rc:root/init.smdk4x12.rc \
codeworkx9ca23f82013-07-30 01:20:12 +020031 $(COMMON_PATH)/rootdir/init.smdk4x12.usb.rc:root/init.smdk4x12.usb.rc \
32 $(COMMON_PATH)/rootdir/lpm.rc:root/lpm.rc \
33 $(COMMON_PATH)/rootdir/init.trace.rc:root/init.trace.rc \
34 $(COMMON_PATH)/rootdir/ueventd.smdk4x12.rc:root/ueventd.smdk4x12.rc \
35 $(COMMON_PATH)/rootdir/ueventd.smdk4x12.rc:recovery/root/ueventd.smdk4x12.rc
nebkatee1a8392012-11-10 10:36:07 +000036
37# Audio
38PRODUCT_COPY_FILES += \
codeworkx7d504ec2012-11-23 17:54:59 +010039 $(COMMON_PATH)/configs/audio_effects.conf:system/etc/audio_effects.conf \
Dominik Marszk248863c2013-12-01 14:37:20 +010040 $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
nebkatee1a8392012-11-10 10:36:07 +000041
codeworkx993cbfb2013-03-13 17:00:06 +000042# Camera FW
43PRODUCT_COPY_FILES += \
44 $(COMMON_PATH)/configs/80cfw:system/etc/init.d/80cfw
45
Ricardo Cerqueira46a81cc2013-09-02 21:37:09 +020046# Netflix hack
47PRODUCT_COPY_FILES += \
48 $(COMMON_PATH)/configs/98netflix:system/etc/init.d/98netflix
49
nebkatee1a8392012-11-10 10:36:07 +000050# Wifi
51PRODUCT_COPY_FILES += \
codeworkx171d0d92012-11-11 10:36:08 +010052 $(COMMON_PATH)/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
nebkatee1a8392012-11-10 10:36:07 +000053
54PRODUCT_PROPERTY_OVERRIDES += \
55 wifi.interface=wlan0 \
56 wifi.supplicant_scan_interval=15
57
58# Gps
59PRODUCT_COPY_FILES += \
codeworkx171d0d92012-11-11 10:36:08 +010060 $(COMMON_PATH)/configs/gps.conf:system/etc/gps.conf
nebkatee1a8392012-11-10 10:36:07 +000061
62# Packages
63PRODUCT_PACKAGES := \
Ricardo Cerqueirade1305c2013-10-25 17:27:47 +010064 AdvancedDisplay \
nebkatee1a8392012-11-10 10:36:07 +000065 audio.a2dp.default \
66 audio.primary.smdk4x12 \
67 audio.usb.default \
nebkatee1a8392012-11-10 10:36:07 +000068 com.android.future.usb.accessory \
codeworkxed2a0982012-12-01 23:59:59 +010069 gralloc.exynos4 \
70 hwcomposer.exynos4 \
Daniel Hillenbrand9498ee72013-06-14 16:19:30 +020071 libfimg \
codeworkxbfc72f42012-11-27 00:45:06 +010072 libnetcmdiface \
codeworkx4bfa6df2013-02-24 11:56:42 +000073 libsecion \
nebkatee1a8392012-11-10 10:36:07 +000074 libsync \
codeworkx171d0d92012-11-11 10:36:08 +010075 lights.exynos4 \
nebkatee1a8392012-11-10 10:36:07 +000076 macloader \
sbrissen832bd422014-01-10 12:12:14 -050077 tinymix
78
79ifneq ($(TARGET_HAS_CAM_FLASH) ,false)
80PRODUCT_PACKAGES += \
81 Torch
82endif
nebkatee1a8392012-11-10 10:36:07 +000083
nebkatee1a8392012-11-10 10:36:07 +000084# MFC API
85PRODUCT_PACKAGES += \
86 libsecmfcdecapi \
87 libsecmfcencapi
88
89# OMX
90PRODUCT_PACKAGES += \
91 libstagefrighthw \
92 libSEC_OMX_Resourcemanager \
93 libSEC_OMX_Core \
94 libOMX.SEC.AVC.Decoder \
95 libOMX.SEC.M4V.Decoder \
96 libOMX.SEC.WMV.Decoder \
97 libOMX.SEC.AVC.Encoder \
98 libOMX.SEC.M4V.Encoder
99# libOMX.SEC.VP8.Decoder
100
101PRODUCT_COPY_FILES += \
codeworkx171d0d92012-11-11 10:36:08 +0100102 $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
103 $(COMMON_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml
nebkatee1a8392012-11-10 10:36:07 +0000104
105# Filesystem management tools
106PRODUCT_PACKAGES += \
107 static_busybox \
108 make_ext4fs \
109 setup_fs
110
111# Live Wallpapers
112PRODUCT_PACKAGES += \
113 Galaxy4 \
114 HoloSpiralWallpaper \
115 LiveWallpapers \
116 LiveWallpapersPicker \
117 MagicSmokeWallpapers \
118 NoiseField \
119 PhaseBeam \
120 VisualizationWallpapers \
121 librs_jni
122
123# These are the hardware-specific features
124PRODUCT_COPY_FILES += \
125 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
Daniel Hillenbrand1e9993a2013-08-14 19:55:10 +0200126 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
nebkatee1a8392012-11-10 10:36:07 +0000127 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
128 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
129 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
130 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
131 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
132 frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
133 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
134 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
135 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
136 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
137 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
nebkatee1a8392012-11-10 10:36:07 +0000138 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
139 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
140 frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
141 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
142 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
143 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
144 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
145 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
codeworkxb72eaab2012-11-11 11:22:43 +0100146 frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml
nebkatee1a8392012-11-10 10:36:07 +0000147
148# Feature live wallpaper
149PRODUCT_COPY_FILES += \
150 packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
151
codeworkx4eb43142013-08-07 19:12:18 +0200152# Graphics
nebkatee1a8392012-11-10 10:36:07 +0000153PRODUCT_PROPERTY_OVERRIDES += \
Ricardo Cerqueira9af9b692013-11-02 17:43:31 +0000154 ro.zygote.disable_gl_preload=1 \
nebkatee1a8392012-11-10 10:36:07 +0000155 ro.opengles.version=131072 \
Ricardo Cerqueira9af9b692013-11-02 17:43:31 +0000156 ro.bq.gpu_to_cpu_unsupported=1 \
Ricardo Cerqueira0607cc22013-10-25 23:44:05 +0100157 debug.hwui.render_dirty_regions=false
nebkatee1a8392012-11-10 10:36:07 +0000158
159PRODUCT_TAGS += dalvik.gc.type-precise
160
161# Set default USB interface
162PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
163 persist.sys.usb.config=mtp
164
165$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
166
167# Include exynos4 platform specific parts
168TARGET_HAL_PATH := hardware/samsung/exynos4/hal
169TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax
170$(call inherit-product, hardware/samsung/exynos4x12.mk)
nebkatee1a8392012-11-10 10:36:07 +0000171
Daniel Hillenbrandc08fc8c2013-09-07 22:18:07 +0200172# Include non-opensource parts
173$(call inherit-product, vendor/samsung/smdk4412-common/common-vendor.mk)