forked from tomgus1/android_device_sony_msm8974-common-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsm8974.mk
161 lines (133 loc) · 3.77 KB
/
msm8974.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
# 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.
COMMON_PATH := device/sony/msm8974-common
# Audio
PRODUCT_PACKAGES += \
audiod \
audio.a2dp.default \
audio.primary.msm8974 \
audio.r_submix.default \
audio.usb.default \
audio_policy.msm8974
PRODUCT_PACKAGES += \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
tinymix
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf
# Camera
PRODUCT_PACKAGES += \
camera.qcom \
CameraWorkaround
PRODUCT_PACKAGES += \
libcutilz
PRODUCT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
# Display
PRODUCT_PACKAGES += \
hwcomposer.msm8974 \
gralloc.msm8974 \
copybit.msm8974 \
memtrack.msm8974 \
libgenlock \
libmemalloc \
liboverlay \
libqdutils \
libtilerenderer \
libI420colorconvert
# Ion
PRODUCT_PACKAGES += \
libion
# IO Scheduler
PRODUCT_PROPERTY_OVERRIDES += \
sys.io.scheduler=bfq
# Lights
PRODUCT_PACKAGES += \
lights.msm8974
# Media profile
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(COMMON_PATH)/media_codecs.xml:system/etc/media_codecs.xml
# Media
PRODUCT_PACKAGES += \
qcmediaplayer
PRODUCT_BOOT_JARS += \
qcmediaplayer
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
# Omx
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libc2dcolorconvert \
libdashplayer \
libdivxdrmdecrypt \
libmm-omxcore \
libstagefrighthw
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
ifneq ($(BOARD_HAVE_RADIO),false)
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay-radio
$(call inherit-product, $(COMMON_PATH)/radio.mk)
else
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay-wifionly
endif
# Power
PRODUCT_PACKAGES += \
power.qcom
# QC Perf
PRODUCT_PROPERTY_OVERRIDES += \
ro.qualcomm.perf.cores_online=2 \
ro.vendor.extension_library=libqti-perfd-client.so
# Recovery
PRODUCT_PACKAGES += \
keycheck
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=SonyRIL
# Thermal management
PRODUCT_PACKAGES += \
thermanager
# USB OTG
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.isUsbOtgEnabled=true
# Wifi
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
dhcpcd.conf \
wpa_supplicant \
wpa_supplicant.conf
# QCOM Display
PRODUCT_PROPERTY_OVERRIDES += \
persist.hwc.mdpcomp.enable=true
# OpenGL ES 3.0
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196608
# Include non-opensource parts
$(call inherit-product, vendor/sony/msm8974-common/msm8974-common-vendor.mk)