-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
58 lines (47 loc) · 2.41 KB
/
config.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
# Copyright (C) 2023 Paranoid Android
#
# 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.
# Namespace
PRODUCT_SOONG_NAMESPACES += \
device/xiaomi/sm6225-common-miuicamera
DEVICE_CAMERA_PATH := device/xiaomi/sm6225-common-miuicamera
TARGET_USES_MIUI_CAMERA := true
# Camera property
PRODUCT_PRODUCT_PROPERTIES += \
ro.com.google.lens.oem_camera_package=com.android.camera \
ro.miui.build.region=in \
ro.miui.notch=1
PRODUCT_SYSTEM_PROPERTIES += \
persist.vendor.camera.privapp.list=com.android.camera \
vendor.camera.aux.packagelist=com.android.camera
# HIDL
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += $(DEVICE_CAMERA_PATH)/configs/hidl/xiaomi_framework_compatibility_matrix.xml
PRODUCT_PACKAGES += \
# Init scripts
PRODUCT_COPY_FILES += \
$(DEVICE_CAMERA_PATH)/init/init.miuicamera.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.miuicamera.rc
# Permissions
PRODUCT_COPY_FILES += \
$(DEVICE_CAMERA_PATH)/configs/permissions/miuicamera-permissions.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/miuicamera-permissions.xml \
$(DEVICE_CAMERA_PATH)/configs/permissions/miuicamera-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-whitelist.xml \
$(DEVICE_CAMERA_PATH)/configs/permissions/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml
PRODUCT_COPY_FILES += \
$(DEVICE_CAMERA_PATH)/configs/public.libraries-xiaomi.txt:$(TARGET_COPY_OUT_SYSTEM)/etc/public.libraries-xiaomi.txt
# Sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_CAMERA_PATH)/sepolicy/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_CAMERA_PATH)/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_CAMERA_PATH)/sepolicy/public
# Vendor Proprietary
$(call inherit-product, vendor/xiaomi/sm6225-common-miuicamera/sm6225-common-miuicamera-vendor.mk)