forked from Trijal08/android_device_google_caimito
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice-komodo.mk
More file actions
90 lines (72 loc) · 2.75 KB
/
device-komodo.mk
File metadata and controls
90 lines (72 loc) · 2.75 KB
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
#
# SPDX-FileCopyrightText: 2021 The Android Open-Source Project
# SPDX-FileCopyrightText: The LineageOS Project
# SPDX-FileCopyrightText: The Calyx Institute
# SPDX-License-Identifier: Apache-2.0
#
# Kernel
TARGET_LINUX_KERNEL_VERSION := 6.1
TARGET_KERNEL_DEVICE := caimito
TARGET_KERNEL_DIR := device/google/$(TARGET_KERNEL_DEVICE)-kernels/$(TARGET_LINUX_KERNEL_VERSION)
TARGET_KERNEL_PLATFORM_SOURCE := google/gs-$(TARGET_LINUX_KERNEL_VERSION)
ifneq ($(TARGET_BOOTS_16K),true)
PRODUCT_16K_DEVELOPER_OPTION := true
endif
# Shipping API level
SHIPPING_API_LEVEL := 34
# Inherit from zumapro
include device/google/zumapro/common.mk
# Overlays
PRODUCT_PACKAGES += \
ConnectivityResourcesOverlayCaimitoOverride \
FrameworkResOverlayProductCaimito \
FrameworkResOverlayVendorCaimito \
PixelNfcOverlayCaimito \
PixelWifiOverlay2024Caimito \
SafetyRegulatoryInfoOverlayProductCaimito \
SettingsGoogleOverlayProductCaimito \
SystemUIGoogleOverlayVendorCaimito \
TeleServiceOverlayVendorCaimito \
TelecomOverlayProductCaimito
PRODUCT_PACKAGES += \
DMServiceOverlayVendorKomodo \
FrameworkResOverlayVendorKomodo \
PixelDisplayServiceOverlayProductKomodo \
PixelNfcOverlayKomodo \
PixelUwbOverlayCT3 \
SettingsGoogleOverlayVendorKomodo \
SettingsKomodoOverlay \
SystemUIGoogleOverlayVendorKomodo
PRODUCT_PACKAGES += \
ApertureOverlayKomodo
$(call soong_config_set_bool,android_hardware_audio,skip_speaker_layout_channel_mask_field,true)
# PowerShare
include hardware/google/pixel/powershare/device.mk
# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/product.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/vendor.prop
# Custom MistOS about phone properties
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/$(DEVICE_CODENAME)/custom_system.prop
# Recovery
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/recovery/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.komodo.rc
PRODUCT_PACKAGES += \
init.recovery.caimito.touch.rc
# Satellite
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/conf/allowlist_satellite.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/allowlist_satellite.xml \
frameworks/native/data/etc/android.hardware.telephony.satellite.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.satellite.xml
# Set support hide display cutout feature
PRODUCT_PRODUCT_PROPERTIES += \
ro.support_hide_display_cutout=true
PRODUCT_PACKAGES += \
NoCutoutOverlay \
AvoidAppsInCutoutOverlay
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# VINTF
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
$(DEVICE_PATH)/vintf/device_framework_matrix_product.xml
# Window extensions
$(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk)