-
Notifications
You must be signed in to change notification settings - Fork 2
/
sm6150.mk
101 lines (77 loc) · 2.55 KB
/
sm6150.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
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
COMMON_PATH := device/samsung/sm6150-common
PRODUCT_TARGET_VNDK_VERSION := 29
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Proprietary blobs
$(call inherit-product-if-exists, vendor/samsung/sm6150-common/sm6150-common-vendor.mk)
# Overlays
PRODUCT_PACKAGE_OVERLAYS += \
$(COMMON_PATH)/overlay \
$(COMMON_PATH)/overlay-lineage
PRODUCT_ENFORCE_RRO_TARGETS += *
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
$(COMMON_PATH)/overlay-lineage/lineage-sdk \
$(COMMON_PATH)/overlay-lineage/packages/apps/Snap
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default
# Display
PRODUCT_PACKAGES += \
libvulkan \
# Camera
PRODUCT_PACKAGES += \
Snap
# HotwordEnrollement app permissions
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/com.android.hotwordenrollment.common.util.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.android.hotwordenrollment.common.util.xml \
$(COMMON_PATH)/configs/hotword-hiddenapi-package-allowlist.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/hotword-hiddenapi-package-allowlist.xml \
$(COMMON_PATH)/configs/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-hotword.xml
# Init
PRODUCT_PACKAGES += \
init.qcom.rc
# Net
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
# OTA Updater
AB_OTA_UPDATER := false
# NFC
PRODUCT_PACKAGES += \
libnfc-nci \
libnfc_nci_jni \
NfcNci \
Tag \
com.android.nfc_extras
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service.sm6150-libperfmgr
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PLATFORM_VNDK_VERSION)/etc/powerhint.json
# Recovery
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/recovery/root/init.recovery.qcom.rc:root/init.recovery.qcom.rc
# SamsungDoze
PRODUCT_PACKAGES += \
SamsungDoze
# Sensors
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml
# Telephony
PRODUCT_PACKAGES += \
telephony-ext
PRODUCT_BOOT_JARS += \
telephony-ext
# Trust HAL
PRODUCT_PACKAGES += \
# WiFi
PRODUCT_PACKAGES += \
WifiOverlay