forked from ngoquang2708/android_device_samsung_vivalto3gvn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_vivalto3gvn.mk
206 lines (167 loc) · 6.11 KB
/
device_vivalto3gvn.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#
# Copyright (C) 2016 The Android Open Source Project
# Copyright (C) 2016 The CyanogenMod 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.
#
# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
# Inherit from sprd-common device configuration
$(call inherit-product, device/samsung/sprd-common/common.mk)
# Inherit from vendor
$(call inherit-product, vendor/samsung/vivalto3gvn/vivalto3gvn-vendor.mk)
# Dalvik heap config
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# WiFi BCMDHD
$(call inherit-product, hardware/broadcom/wlan/bcmdhd/firmware/bcm4343/device-bcm.mk)
# AAPT configuration
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi ldpi
# Boot animation
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480
# Rootdir files
ROOTDIR_FILES := \
device/samsung/vivalto3gvn/rootdir/init.rc \
device/samsung/vivalto3gvn/rootdir/init.board.rc \
device/samsung/vivalto3gvn/rootdir/init.scx15.rc \
device/samsung/vivalto3gvn/rootdir/init.scx15.usb.rc \
device/samsung/vivalto3gvn/rootdir/init.scx15_ss.rc \
device/samsung/vivalto3gvn/rootdir/init.vivalto3gvn.rc \
device/samsung/vivalto3gvn/rootdir/init.vivalto3gvn_base.rc \
device/samsung/vivalto3gvn/rootdir/init.wifi.rc \
device/samsung/vivalto3gvn/rootdir/init.swap.rc \
device/samsung/vivalto3gvn/rootdir/ueventd.scx15.rc \
device/samsung/vivalto3gvn/rootdir/fstab.scx15 \
PRODUCT_COPY_FILES += \
$(foreach f,$(ROOTDIR_FILES),$(f):root/$(notdir $(f)))
# Recovery
PRODUCT_COPY_FILES += \
device/samsung/vivalto3gvn/rootdir/init.recovery.scx15.rc:root/init.recovery.scx15.rc \
device/samsung/vivalto3gvn/rootdir/twrp.fstab:recovery/root/etc/twrp.fstab \
# Keylayouts
KEYLAYOUT_FILES := \
device/samsung/vivalto3gvn/keylayouts/ist30xx_ts_input.kl \
device/samsung/vivalto3gvn/keylayouts/sci-keypad.kl
PRODUCT_COPY_FILES += \
$(foreach f,$(KEYLAYOUT_FILES),$(f):system/usr/keylayout/$(notdir $(f)))
# Bluetooth config
BLUETOOTH_CONFIGS := \
device/samsung/vivalto3gvn/configs/bluetooth/bt_vendor.conf
PRODUCT_COPY_FILES += \
$(foreach f,$(BLUETOOTH_CONFIGS),$(f):system/etc/bluetooth/$(notdir $(f)))
# Media config
MEDIA_CONFIGS := \
device/samsung/vivalto3gvn/media/media_codecs.xml \
device/samsung/vivalto3gvn/media/media_profiles.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml
PRODUCT_COPY_FILES += \
$(foreach f,$(MEDIA_CONFIGS),$(f):system/etc/$(notdir $(f)))
# HWC
PRODUCT_PACKAGES += \
gralloc.scx15 \
hwcomposer.scx15 \
sprd_gsp.scx15 \
libion_sprd \
libdither \
# Codecs
PRODUCT_PACKAGES += \
libstagefrighthw \
libstagefright_sprd_soft_mpeg4dec \
libstagefright_sprd_soft_h264dec \
libstagefright_sprd_mpeg4dec \
libstagefright_sprd_mpeg4enc \
libstagefright_sprd_h264dec \
libstagefright_sprd_h264enc \
libstagefright_sprd_vpxdec \
libstagefright_sprd_aacdec \
libstagefright_sprd_mp3dec \
# Lights
PRODUCT_PACKAGES += \
lights.scx15
# Bluetooth
PRODUCT_PACKAGES += \
bluetooth.default \
# Audio
PRODUCT_PACKAGES += \
audio.primary.scx15 \
libaudio-resampler \
libatchannel_wrapper \
AUDIO_CONFIGS := \
device/samsung/vivalto3gvn/configs/audio/audio_policy.conf \
device/samsung/vivalto3gvn/configs/audio/audio_hw.xml \
device/samsung/vivalto3gvn/configs/audio/audio_para \
device/samsung/vivalto3gvn/configs/audio/codec_pga.xml \
device/samsung/vivalto3gvn/configs/audio/tiny_hw.xml \
PRODUCT_COPY_FILES += \
$(foreach f,$(AUDIO_CONFIGS),$(f):system/etc/$(notdir $(f))) \
# Common libraries
PRODUCT_PACKAGES += \
libmemoryheapion_sprd
# Shim libraries
PRODUCT_PACKAGES += \
libril_shim \
libgps_shim \
# GPS
GPS_CONFIGS := \
device/samsung/vivalto3gvn/configs/gps/gps.xml \
PRODUCT_COPY_FILES += \
$(foreach f,$(GPS_CONFIGS),$(f):system/etc/$(notdir $(f)))
# Nvitem
NVITEM_CONFIGS := \
device/samsung/vivalto3gvn/configs/nvitem/nvitem_td.cfg \
device/samsung/vivalto3gvn/configs/nvitem/nvitem_w.cfg
PRODUCT_COPY_FILES += \
$(foreach f,$(NVITEM_CONFIGS),$(f):system/etc/$(notdir $(f)))
# Wifi
WIFI_CONFIGS := \
device/samsung/vivalto3gvn/configs/wifi/wpa_supplicant.conf \
device/samsung/vivalto3gvn/configs/wifi/nvram_net.txt \
PRODUCT_COPY_FILES += \
$(foreach f,$(WIFI_CONFIGS),$(f):system/etc/wifi/$(notdir $(f)))
# Memtrack
PRODUCT_PACKAGES += \
memtrack.scx15 \
# Permissions
PERMISSION_XML_FILES := \
frameworks/native/data/etc/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml \
PRODUCT_COPY_FILES += \
$(foreach f,$(PERMISSION_XML_FILES),$(f):system/etc/permissions/$(notdir $(f)))
# Languages
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.locale.language=en \
ro.product.locale.region=GB
# Override phone-hdpi-512-dalvik-heap to match value on stock
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapgrowthlimit=48m
# Enable Google-specific location features, like NetworkLocationProvider and LocationCollector
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# ART device props
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false \
dalvik.vm.dex2oat-Xms=8m \
dalvik.vm.dex2oat-Xmx=96m \
dalvik.vm.dex2oat-flags=--no-watch-dog \
dalvik.vm.dex2oat-filter=speed \
dalvik.vm.image-dex2oat-Xms=48m \
dalvik.vm.image-dex2oat-Xmx=48m \
dalvik.vm.image-dex2oat-filter=everything