Skip to content
Permalink
cr-6.1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#
# Copyright (C) 2017 The LineageOS Project
#
# 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.
#
$(call inherit-product-if-exists, vendor/huawei/berkeley/berkeley-vendor.mk)
$(call inherit-product-if-exists, vendor/gapps/arm64/arm64-vendor.mk)
$(call inherit-product-if-exists, vendor/opengapps/build/opengapps-packages.mk)
# Copy Pre-Builts Needed
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/huawei/berkeley/system/,system/)
# Google Apps
GAPPS_VARIANT := stock
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
ifeq ($(TARGET_PRODUCT),lineage_berkeley)
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay-lineage
endif
ifeq ($(TARGET_PRODUCT),carbon_berkeley)
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay-carbon
endif
# Boot animation
TARGET_SCREEN_HEIGHT := 2160
TARGET_SCREEN_WIDTH := 1080
# APN
ifeq ($(TARGET_PRODUCT),aosp_berkeley)
PRODUCT_COPY_FILES += \
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
endif
# Device init scripts
PRODUCT_PACKAGES += \
init.kirin970.rc
ifeq ($(TARGET_PRODUCT),lineage_berkeley)
PRODUCT_PACKAGES += \
init.kirin970.lineage.rc
endif
# Display
PRODUCT_PACKAGES += \
libion
# Huawei Camera
PRODUCT_PACKAGES += \
HwCamera2
# Huawei Gallery
PRODUCT_PACKAGES += \
HwGallery2
# Huawei Intelligent Recognition System
PRODUCT_PACKAGES += \
HwIntelligentRecSystem
# Huawei Fingerprint
PRODUCT_PACKAGES += \
hw-fpnav-daemon
# HIDL
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/compatibility_matrix.xml:system/compatibility_matrix.xml
PRODUCT_PACKAGES += \
android.hidl.base@1.0 \
android.hidl.manager@1.0
# IR
PRODUCT_PACKAGES += \
irself
PRODUCT_BOOT_JARS += \
irself
# KeyHandler
PRODUCT_PACKAGES += \
org.lineageos.keyhandler
# NFC
PRODUCT_PACKAGES += \
NfcNci \
Tag \
com.android.nfc_extras \
nfc_nci.pn54x.default
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
# Properties
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.build.version.all_codenames=$(PLATFORM_VERSION_ALL_CODENAMES) \
ro.build.version.codename=$(PLATFORM_VERSION_CODENAME) \
ro.build.version.huawei=8.0.0 \
ro.build.version.release=$(PLATFORM_VERSION) \
ro.build.version.sdk=$(PLATFORM_SDK_VERSION)
# Remove unwanted packages
PRODUCT_PACKAGES += \
RemovePackages
# VNDK
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/vndk-compat/vndk-detect:system/bin/vndk-detect \
$(LOCAL_PATH)/vndk-compat/ld.config.compat.txt:system/etc/ld.config.compat.txt \
$(LOCAL_PATH)/vndk-compat/vndk-compat.rc:system/etc/init/vndk-compat.rc
PRODUCT_PACKAGES += \
vndk-sp