forked from Havoc-Devices/android_device_sony_lilac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
customization.mk
111 lines (92 loc) · 3.94 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
# Copyright (C) 2020 Shashank Verma
#
# 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.
CUST_PATH := device/sony/lilac
# Camera Configuration
PRODUCT_COPY_FILES += \
$(CUST_PATH)/vendor/etc/camera/camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camera_config.xml \
$(CUST_PATH)/vendor/etc/camera/imx219_chromatix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/imx219_chromatix.xml \
$(CUST_PATH)/vendor/etc/camera/imx400_chromatix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/imx400_chromatix.xml
PRODUCT_COPY_FILES += \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.external.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.external.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.manual_postprocessing.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.manual_postprocessing.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.manual_sensor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.manual_sensor.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml
# AR config for Play Store
PRODUCT_COPY_FILES += \
$(CUST_PATH)/vendor/etc/permissions/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml
# Limit dex2oat threads to improve thermals
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-threads=2 \
dalvik.vm.image-dex2oat-threads=4
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.selinux=1 \
ro.opa.eligible_device=true
# Camera
#include device/sony/lilac/camera/camera.mk
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.mobicat=2 \
persist.camera.stats.debugexif=3080192 \
persist.ts.rtmakeup=false \
persist.vendor.camera.tintless.skip=1
# Use Vulkan for UI rendering
#PRODUCT_PROPERTY_OVERRIDES += debug.hwui.renderer=skiavk
# USB debugging at boot
# Do not enable if build type is user
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1
endif
# Packages
PRODUCT_PACKAGES += \
PixelLiveWallpaperPrebuilt \
libshim_camera \
VendorSupport-preference
include device/sony/lilac/prebuilts/prebuilts.mk
# IMS
PRODUCT_PACKAGES += \
ims-ext-common_system \
ims-ext-common \
telephony-ext \
qti-telephony-utils \
qti_telephony_utils.xml \
qti-telephony-hidl-wrapper \
qti_telephony_hidl_wrapper.xml \
qtiImsInCallUi \
ConfURIDialer
# CNE
PRODUCT_PACKAGES += \
cneapiclient \
com.quicinc.cne \
services-ext
# LIGHTS
PRODUCT_PACKAGES += lights.$(TARGET_DEVICE)
# Voice Processing
PRODUCT_PACKAGES += libqcomvoiceprocessingdescriptors
# External exFat tools
PRODUCT_PACKAGES += \
mkfs.exfat \
fsck.exfat
# Charger
# Health (in addition to own board libhealth)
#PRODUCT_PACKAGES += libhealthd.$(TARGET_DEVICE)
# BatteryCare
#PRODUCT_PACKAGES += \
# BatteryCare \
# BatteryCareImpl