2017-12-27 23:59:00 +00:00
|
|
|
#Huawei devices don't declare fingerprint and telephony hardware feature
|
2018-08-20 08:58:38 +00:00
|
|
|
#TODO: Proper detection
|
2017-12-17 16:46:37 +00:00
|
|
|
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 \
|
2018-08-20 08:58:38 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
$(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-03-27 21:39:38 +00:00
|
|
|
ro.build.version.release=$(PLATFORM_VERSION) \
|
2018-04-24 20:36:59 +00:00
|
|
|
ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \
|
2018-07-15 12:18:35 +00:00
|
|
|
ro.adb.secure=0
|
|
|
|
|
|
|
|
#Huawei HiSuite (also other OEM custom programs I guess) it's of no use in AOSP builds
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
|
|
|
persist.sys.usb.config=adb
|
|
|
|
|
2018-02-14 21:05:41 +00:00
|
|
|
|
|
|
|
#VNDK config files
|
|
|
|
PRODUCT_COPY_FILES += \
|
2018-02-16 21:41:03 +00:00
|
|
|
device/phh/treble/vndk-detect:system/bin/vndk-detect \
|
2018-02-14 21:05:41 +00:00
|
|
|
device/phh/treble/vndk.rc:system/etc/init/vndk.rc \
|
|
|
|
device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
|
|
|
|
|
2018-03-31 22:21:03 +00:00
|
|
|
#USB Audio
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:system/etc/usb_audio_policy_configuration.xml
|
2018-02-20 20:30:42 +00:00
|
|
|
|
|
|
|
# NFC:
|
|
|
|
# Provide default libnfc-nci.conf file for devices that does not have one in
|
|
|
|
# vendor/etc
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
|
2018-03-04 20:33:55 +00:00
|
|
|
|
2018-06-24 13:46:45 +00:00
|
|
|
# LineageOS build may need this to make NFC work
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
NfcNci
|
|
|
|
|
2018-04-02 22:13:48 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2018-04-10 16:33:33 +00:00
|
|
|
device/phh/treble/rw-system.sh:system/bin/rw-system.sh \
|
|
|
|
device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL
|
2018-04-02 22:13:48 +00:00
|
|
|
|
2018-05-14 11:36:26 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2018-05-14 15:04:27 +00:00
|
|
|
device/phh/treble/empty:system/phh/empty \
|
2018-07-20 13:07:03 +00:00
|
|
|
device/phh/treble/phh-on-boot.sh:system/bin/phh-on-boot.sh
|
2018-05-14 11:36:26 +00:00
|
|
|
|
2018-03-04 20:33:55 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
treble-environ-rc
|
2018-05-26 11:30:17 +00:00
|
|
|
|
2018-06-06 13:28:28 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
2018-05-31 09:27:23 +00:00
|
|
|
bootctl \
|
|
|
|
vintf
|
2018-07-23 13:32:31 +00:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/twrp/twrp.rc:system/etc/init/twrp.rc \
|
|
|
|
device/phh/treble/twrp/twrp.sh:system/bin/twrp.sh \
|
2018-07-23 19:37:40 +00:00
|
|
|
device/phh/treble/twrp/busybox-armv7l:system/bin/busybox_phh
|
2018-08-16 15:00:28 +00:00
|
|
|
|
2018-08-16 15:29:55 +00:00
|
|
|
ifneq (,$(wildcard external/exfat))
|
2018-08-16 15:00:28 +00:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
mkfs.exfat \
|
|
|
|
fsck.exfat
|
|
|
|
endif
|
2018-08-26 22:38:11 +00:00
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
vendor.huawei.hardware.biometrics.fingerprint-V2.1-java \
|
|
|
|
vendor.huawei.hardware.tp-V1.0-java \
|
|
|
|
vendor.qti.hardware.radio.am-V1.0-java \
|
|
|
|
vendor.qti.qcril.am-V1.0-java \
|
|
|
|
|
2018-08-27 21:23:25 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/interfaces.xml:system/etc/permissions/interfaces.xml
|