This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
customization.mk
185 lines (149 loc) · 5.04 KB
/
customization.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
# Copyright (C) 2019 AngeloGioacchino Del Regno <[email protected]>
#
# ROM specific customization for Sony Open Devices
#
# 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.
TARGET_GAPPS_ARCH := arm64
TARGET_KERNEL_HEADERS := kernel/sony/msm-4.14/kernel
CUST_PATH := device/sony/customization
# DEVICE_PACKAGE_OVERLAYS += $(CUST_PATH)/overlay
ifneq ($(filter aosp_f53% aosp_g1109 aosp_g8441, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
endif
ifneq ($(filter aosp_f51% aosp_f8% aosp_g82% aosp_g83% aosp_h%13 aosp_i%13 aosp_xqau%, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
endif
ifneq ($(filter aosp_h82%6 aosp_h83%4, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 2160
TARGET_SCREEN_WIDTH := 1080
endif
ifneq ($(filter aosp_h84%6 aosp_h94%6, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 2880
TARGET_SCREEN_WIDTH := 1440
endif
ifneq ($(filter aosp_j%210, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 2520
TARGET_SCREEN_WIDTH := 1080
endif
ifneq ($(filter aosp_g814%, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 3840
TARGET_SCREEN_WIDTH := 2160
endif
ifneq ($(filter aosp_j%110, $(TARGET_PRODUCT)),)
TARGET_SCREEN_HEIGHT := 3840
TARGET_SCREEN_WIDTH := 1644
endif
ifneq ($(filter aosp_g814%, $(TARGET_PRODUCT)),)
# Faking to 1080 to get the right bootanimation res on:
# Maple(3840x2160)
TARGET_BOOT_ANIMATION_RES := 1080
else ifneq ($(filter aosp_j%110, $(TARGET_PRODUCT)),)
# Faking to 1440 to get the best bootanimation res on:
# Griffin (3840x1644)
TARGET_BOOT_ANIMATION_RES := 1440
else
TARGET_BOOT_ANIMATION_RES := $(TARGET_SCREEN_WIDTH)
endif
# Product for OTA
CUSTOM_TARGET_DEVICE := $(CUSTOM_BUILD)
PRODUCT_PACKAGES += \
e2fsprogs \
strace
TARGET_RECOVERY_DEVICE_MODULES := tune2fs strace
# Google Wifi Hal
TARGET_INCLUDE_WIFI_EXT := false
# cust packages
PRODUCT_PACKAGES += \
HotwordEnrollmentOKGoogleHEXAGON \
HotwordEnrollmentXGoogleHEXAGON
# TEMP: Missing libs for soundtrigger
PRODUCT_PACKAGES += \
libsmwrapper \
libmulawdec
# IMS Extras
PRODUCT_PACKAGES += \
qtiImsInCallUi \
ConfURIDialer
PRODUCT_BOOT_JARS += \
telephony-ext
TARGET_FWK_DETECT_PATH := vendor/qcom/opensource/core-utils
TARGET_PROVIDES_QTI_TELEPHONY_JAR := true
# ODM apps are signed with test-keys: stop bind mounting
# these apps, because we are including them in the build
# here to get them signed with our keys for security purposes.
TARGET_USES_ODM_APPS_BINDMOUNT := false
ifeq ($(TARGET_USES_ODM_APPS_BINDMOUNT),false)
# Standard ODM apps
PRODUCT_PACKAGES += \
datastatusnotification \
embms \
QtiTelephonyService \
uceShimService \
uimgbaservice \
uimlpaservice \
uimremoteclient \
uimremoteserver
# Standard ODM priv-apps
PRODUCT_PACKAGES += \
dpmserviceapp \
ims \
qcrilmsgtunnel \
CneApp \
IWlanService
endif # !TARGET_USES_ODM_APPS_BINDMOUNT
# Bind-mount odm files into subfolder of /system_ext
PRODUCT_PACKAGES += \
bindmountims.rc
# Permissions for Hotword
PRODUCT_COPY_FILES += \
$(CUST_PATH)/extras/HotwordEnrollmentXGoogleHEXAGON/privapp-permissions-xGoogleHEXAGON.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-xGoogleHEXAGON.xml \
$(CUST_PATH)/extras/HotwordEnrollmentOKGoogleHEXAGON/privapp-permissions-OkGoogleHEXAGON.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-OkGoogleHEXAGON.xml
# Create folder to bindmount libs for the IMS VideoTelephony
PRODUCT_COPY_FILES += \
$(CUST_PATH)/ims/emptyfile:$(TARGET_COPY_OUT_SYSTEM_EXT)/priv-app/ims/lib/arm64/bind_mount_lib64_here
# USB debugging at boot
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1
# Recovery UI hack for Ganges video mode panels
ifneq ($(filter ganges, $(SOMC_PLATFORM)),)
PRODUCT_PROPERTY_OVERRIDES += \
ro.recovery.ui.blank_unblank_on_init=true
endif
# Update recovery with the ota for legacy
ifneq ($(filter loire tone yoshino, $(SOMC_PLATFORM)),)
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.recovery_update=true
else
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.recovery_update=false
endif
# VoLTE
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.radio.is_voip_enabled=1 \
persist.vendor.radio.rat_on=combine \
persist.vendor.radio.voice_on_lte=1
USE_SODP_APNS := false
# Wallpapers
PRODUCT_PACKAGES += \
PixelLiveWallpaperPrebuilt
# Widevine
$(call inherit-product-if-exists, vendor/widevine/widevine.mk)
# Updatable Apex
DEXPREOPT_GENERATE_APEX_IMAGE := true
-include $(CUST_PATH)/pe_cust.mk
-include vendor/aosp/config/common_full_phone.mk