forked from diepquynh/android_device_samsung_scx35-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
194 lines (165 loc) · 6.78 KB
/
common.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
#
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := device/samsung/scx35-common
# Inherit from AOSP product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from sprd-common device configuration
$(call inherit-product, device/samsung/sprd-common/common.mk)
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
# Audio
PRODUCT_PACKAGES += \
audio_hw.xml \
audio_para \
audio_effects_vendor.conf \
audio_policy.conf \
audio_vbc_eq \
codec_pga.xml \
tiny_hw.xml \
audio.primary.sc8830 \
libaudio-resampler
# Bluetooth
PRODUCT_PACKAGES += \
libbluetooth_jni \
libbt-vendor \
bluetooth.default
# Browser
PRODUCT_PACKAGES += \
Jelly
# Camera
PRODUCT_PACKAGES += \
Snap
# Codecs
PRODUCT_PACKAGES += \
libcolorformat_switcher \
libstagefrighthw \
libstagefright_sprd_mpeg4dec \
libstagefright_sprd_mpeg4enc \
libstagefright_sprd_h264dec \
libstagefright_sprd_h264enc \
libstagefright_sprd_vpxdec \
libstagefright_sprd_aacdec \
libstagefright_sprd_mp3dec
# seccomp
PRODUCT_COPY_FILES += \
device/samsung/scx35-common/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
# Media config
PRODUCT_PACKAGES += \
media_codecs.xml \
MEDIA_XML_CONFIGS := \
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_XML_CONFIGS),$(f):$(TARGET_COPY_OUT_VENDOR)/etc/$(notdir $(f)))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/system/etc/init/[email protected]:$(TARGET_COPY_OUT_VENDOR)/etc/init/[email protected] \
$(LOCAL_PATH)/system/etc/init/mediaserver.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/mediaserver.rc
# Common libs
PRODUCT_PACKAGES += \
libstlport \
librilutils \
libril_shim \
libgps_shim \
libphoneserver_shim
# RIL
PRODUCT_PACKAGES += \
libatchannel \
libsecril-client \
libsecril-shim \
libril \
rild \
modemd \
modem_control
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/system/etc/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
# GPS
PRODUCT_PACKAGES += \
libgpspc \
libefuse \
gps.conf \
gps.xml \
gps.default
# HWC
PRODUCT_PACKAGES += \
libHWCUtils \
gralloc.sc8830 \
libmemoryheapion \
libion_sprd
# System init.rc files
PRODUCT_PACKAGES += \
at_distributor.rc \
chown_service.rc \
data.rc \
dns.rc \
engpc.rc \
gpsd.rc \
kill_phone.rc \
macloader.rc \
modem_control.rc \
modemd.rc \
nvitemd.rc \
phoneserver.rc \
refnotify.rc \
set_mac.rc \
smd_symlink.rc \
swap.rc \
wpa_supplicant.rc
# Rootdir files
PRODUCT_PACKAGES += \
init.board.rc \
init.wifi.rc \
init.sc8830.rc \
init.sc8830.usb.rc \
ueventd.sc8830.rc
# Lights
PRODUCT_PACKAGES += \
lights.sc8830
# Wifi
PRODUCT_PACKAGES += \
wificond \
libwpa_client \
hostapd \
dhcpcd.conf \
macloader \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
# Disable mobile data on first boot
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.android.mobiledata=false
# HIDL (HAL Interface Definition Language)
include $(LOCAL_PATH)/hidl.mk
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.location.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.software.sip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Dalvik heap config
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Go Config
$(call inherit-product, build/make/target/product/go_defaults_512.mk)