blob: 28f8ae509aae091dc521cc05b15267b6a443d423 [file] [log] [blame]
Pierre-Hugues Hussona8645ac2017-12-28 00:59:00 +01001#Huawei devices don't declare fingerprint and telephony hardware feature
Pierre-Hugues Husson1cbdf552017-12-17 17:46:37 +01002#TODO: Proper detection
3PRODUCT_COPY_FILES := \
Pierre-Hugues Hussona8645ac2017-12-28 00:59:00 +01004 frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
5 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
Pierre-Hugues Husson1cbdf552017-12-17 17:46:37 +01006
7#Use a more decent APN config
Pierre-Hugues Hussonfbb85732017-12-21 13:31:38 +01008PRODUCT_COPY_FILES += \
Pierre-Hugues Husson1cbdf552017-12-17 17:46:37 +01009 device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
10
11BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/phh/treble/sepolicy
12DEVICE_PACKAGE_OVERLAYS += device/phh/treble/overlay
13
Pierre-Hugues Husson54149002017-12-18 23:25:07 +010014$(call inherit-product, vendor/vndk/vndk.mk)
Pierre-Hugues Husson1cbdf552017-12-17 17:46:37 +010015$(call inherit-product, vendor/hardware_overlay/overlay.mk)
Pierre-Hugues Hussoncdf726b2017-12-17 18:12:19 +010016$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
17$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Pierre-Hugues Husson5f2ba982018-01-27 13:23:31 +010018
19#Those overrides are here because Huawei's init read properties
20#from /system/etc/prop.default, then /vendor/build.prop, then /system/build.prop
21#So we need to set our props in prop.default
22PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
23 ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \
24 ro.build.version.sdk=$(PLATFORM_SDK_VERSION)