2017-12-27 23:59:00 +00:00
|
|
|
#Huawei devices don't declare fingerprint and telephony hardware feature
|
2017-12-17 16:46:37 +00:00
|
|
|
#TODO: Proper detection
|
|
|
|
PRODUCT_COPY_FILES := \
|
2017-12-27 23:59:00 +00:00
|
|
|
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
|
2017-12-17 16:46:37 +00:00
|
|
|
|
|
|
|
#Use a more decent APN config
|
2017-12-21 12:31:38 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2017-12-17 16:46:37 +00:00
|
|
|
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
|
|
|
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay
|
|
|
|
|
2017-12-18 22:25:07 +00:00
|
|
|
$(call inherit-product, vendor/vndk/vndk.mk)
|
2017-12-17 16:46:37 +00:00
|
|
|
$(call inherit-product, vendor/hardware_overlay/overlay.mk)
|
2017-12-17 17:12:19 +00:00
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
|
2018-01-27 12:23:31 +00:00
|
|
|
|
|
|
|
#Those overrides are here because Huawei's init read properties
|
|
|
|
#from /system/etc/prop.default, then /vendor/build.prop, then /system/build.prop
|
|
|
|
#So we need to set our props in prop.default
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2018-02-12 18:56:28 +00:00
|
|
|
ro.build.version.sdk=$(PLATFORM_SDK_VERSION) \
|
|
|
|
ro.build.version.codename=$(PLATFORM_VERSION_CODENAME) \
|
|
|
|
ro.build.version.all_codenames=$(PLATFORM_VERSION_ALL_CODENAMES) \
|
2018-02-15 20:11:16 +00:00
|
|
|
ro.build.fingerprint=$(shell cat $(ANDROID_PRODUCT_OUT)/build_fingerprint.txt) \
|
2018-02-14 21:05:41 +00:00
|
|
|
ro.build.version.release=$(PLATFORM_VERSION)
|
|
|
|
|
|
|
|
#VNDK config files
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/vndk.rc:system/etc/init/vndk.rc \
|
|
|
|
device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
|
|
|
|
device/phh/treble/ld.config.27.txt:system/etc/ld.config.27.txt \
|
|
|
|
|