-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuniversal9810-common.mk
157 lines (127 loc) · 6.31 KB
/
universal9810-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
#
# Copyright (C) 2018 The LineageOS 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.
#
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# VNDK
PRODUCT_EXTRA_VNDK_VERSIONS := 29
# Screen density
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := xlarge
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
# A list of dpis to select prebuilt apk, in precedence order.
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
# Boot animation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
TARGET_SCREEN_HEIGHT := 2960
TARGET_SCREEN_WIDTH := 1440
# Permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/permissions/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-hotword.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.heartrate.xml \
frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.vr.high_performance.xml \
frameworks/native/data/etc/android.software.controls.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.controls.xml
# Rootdir
PRODUCT_PACKAGES += \
fstab.samsungexynos9810 \
init.samsung.rc \
init.usb_accessory.rc
# Recovery
PRODUCT_PACKAGES += \
init.recovery.samsungexynos9810.rc
# Charger
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/charger/animation.txt:$(TARGET_COPY_OUT_PRODUCT)/etc/res/values/charger/animation.txt \
$(LOCAL_PATH)/charger/battery_scale.png:$(TARGET_COPY_OUT_PRODUCT)/etc/res/images/charger/battery_scale.png \
$(LOCAL_PATH)/charger/battery_fail.png:$(TARGET_COPY_OUT_PRODUCT)/etc/res/images/charger/battery_fail.png \
$(LOCAL_PATH)/charger/main_font.png:$(TARGET_COPY_OUT_PRODUCT)/etc/res/images/charger/main_font.png
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_effects.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_effects.xml \
$(LOCAL_PATH)/configs/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_configuration.xml
# SP-NDK
PRODUCT_PACKAGES += \
libvulkan
# Bluetooth
PRODUCT_PACKAGES += \
audio.a2dp.default
# Camera
PRODUCT_PACKAGES += \
Snap
# Net
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
# NFC
PRODUCT_PACKAGES += \
libnfc-nci \
libnfc_nci_jni \
NfcNci \
Tag
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
$(LOCAL_PATH)/configs/libnfc-sec-vendor.conf:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/libnfc-sec-vendor.conf
# LiveDisplay
PRODUCT_PACKAGES += \
# Touch
PRODUCT_PACKAGES += \
# FastCharge
PRODUCT_PACKAGES += \
# Light
PRODUCT_PACKAGES += \
# Doze
PRODUCT_PACKAGES += \
SamsungDoze
# Vibrator
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/hidl/vibrator/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/bin/hw/[email protected] \
$(LOCAL_PATH)/hidl/vibrator/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/init/[email protected]
# Sensors
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/hidl/sensors/lib/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/lib/hw/[email protected] \
$(LOCAL_PATH)/hidl/sensors/lib64/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/lib64/hw/[email protected]
# Power
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/hidl/power/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/init/[email protected] \
$(LOCAL_PATH)/hidl/power/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/vintf/manifest/[email protected] \
$(LOCAL_PATH)/hidl/power/[email protected]:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/bin/hw/[email protected] \
$(LOCAL_PATH)/hidl/power/libperfmgr.so:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/lib64/libperfmgr.so \
$(LOCAL_PATH)/hidl/power/powerhint.json:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/powerhint.json
# Ringtones
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/audio/ringtones/Xylophone_Dubstep.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtones/Xylophone_Dubstep.ogg
# S-Pen
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/samsung-sec_e-pen.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/sec_e-pen.idc
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio_keys.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/gpio_keys.kl
# liboemcrypto.so
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/null:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/lib/liboemcrypto.so
# Soong
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# Property overrides
-include $(LOCAL_PATH)/product_prop.mk
-include $(LOCAL_PATH)/system_prop.mk
# Call proprietary blob setup
$(call inherit-product, vendor/samsung/universal9810-common/universal9810-common-vendor.mk)