-
Notifications
You must be signed in to change notification settings - Fork 20
/
device_vivalto3gvn.mk
208 lines (175 loc) · 5.64 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
207
208
# Copyright (C) 2014 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.
LOCAL_PATH := device/samsung/vivalto3gvn
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, $(LOCAL_PATH)/device.mk)
# Keylayouts
KEYLAYOUT_FILES := \
$(LOCAL_PATH)/keylayouts/ist30xx_ts_input.kl \
$(LOCAL_PATH)/keylayouts/sci-keypad.kl
PRODUCT_COPY_FILES += \
$(foreach f,$(KEYLAYOUT_FILES),$(f):system/usr/keylayout/$(notdir $(f)))
# Filesystem management tools
PRODUCT_PACKAGES += \
setup_fs \
e2fsck \
f2fstat \
fsck.f2fs \
fibmap.f2fs \
mkfs.f2fs
# Bluetooth config
BLUETOOTH_CONFIGS := \
$(LOCAL_PATH)/configs/bluetooth/bt_vendor.conf
PRODUCT_COPY_FILES += \
$(foreach f,$(BLUETOOTH_CONFIGS),$(f):system/etc/bluetooth/$(notdir $(f)))
# Media config
MEDIA_CONFIGS := \
$(LOCAL_PATH)/media/media_codecs.xml \
$(LOCAL_PATH)/media/media_profiles.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.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
# Codecs
PRODUCT_PACKAGES += \
libstagefrighthw \
libstagefright_sprd_mpeg4dec \
libstagefright_sprd_mpeg4enc \
libstagefright_sprd_h264dec \
libstagefright_sprd_h264enc \
libstagefright_sprd_vpxdec \
libstagefright_sprd_aacdec \
libstagefright_sprd_mp3dec \
libomx_aacdec_sprd.so \
libomx_avcdec_hw_sprd.so \
libomx_avcenc_hw_sprd.so \
libomx_m4vh263dec_hw_sprd.so \
libomx_m4vh263enc_hw_sprd.so \
libomx_mp3dec_sprd.so \
libomx_vpxdec_hw_sprd.so
# Lights
PRODUCT_PACKAGES += \
lights.scx15
# Bluetooth
PRODUCT_PACKAGES += \
bluetooth.default \
audio.a2dp.default
# Audio
PRODUCT_PACKAGES += \
audio.primary.scx15 \
audio_policy.scx15 \
audio.r_submix.default \
audio.usb.default \
audio_vbc_eq \
libaudio-resampler \
libatchannel \
libatchannel_wrapper \
libtinyalsa
AUDIO_CONFIGS := \
$(LOCAL_PATH)/configs/audio/audio_policy.conf \
$(LOCAL_PATH)/configs/audio/audio_hw.xml \
$(LOCAL_PATH)/configs/audio/audio_para \
$(LOCAL_PATH)/configs/audio/codec_pga.xml \
$(LOCAL_PATH)/configs/audio/tiny_hw.xml \
PRODUCT_COPY_FILES += \
$(foreach f,$(AUDIO_CONFIGS),$(f):system/etc/$(notdir $(f))) \
# Common libraries
PRODUCT_PACKAGES += \
libstlport \
libmemoryheapion_sprd
# Sammy RIL
PRODUCT_PACKAGES += \
SamsungServiceMode
# Shim libraries
PRODUCT_PACKAGES += \
libril_shim \
libgps_shim \
# Wifi
PRODUCT_PACKAGES += \
libnetcmdiface \
dhcpcd.conf \
wpa_supplicant \
hostapd
WIFI_CONFIGS := \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf
PRODUCT_COPY_FILES += \
$(foreach f,$(WIFI_CONFIGS),$(f):system/etc/wifi/$(notdir $(f)))
# Radio
PRODUCT_PACKAGES += \
FMRadio \
radio.fm.default \
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Permissions
PERMISSION_XML_FILES := \
frameworks/native/data/etc/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.location.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.hardware.touchscreen.xml \
frameworks/native/data/etc/android.software.sip.xml \
frameworks/native/data/etc/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml
PRODUCT_COPY_FILES += \
$(foreach f,$(PERMISSION_XML_FILES),$(f):system/etc/permissions/$(notdir $(f)))
# Scripts
SCRIPTS_FILES := \
$(LOCAL_PATH)/scripts/set_freq.sh
PRODUCT_COPY_FILES += \
$(foreach f,$(SCRIPTS_FILES),$(f):system/bin/$(notdir $(f)))
# Set default USB interface
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp
# Device props
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false
# ART device props
PRODUCT_PROPERTY_OVERRIDES += \
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
# Misc
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.enable_boot_charger_mode=1
# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_vivalto3gvn
PRODUCT_DEVICE := vivalto3gvn
PRODUCT_BRAND := samsung
PRODUCT_MANUFACTURER := samsung
PRODUCT_MODEL := SM-G313HZ