2017-12-28 00:59:00 +01:00
|
|
|
#Huawei devices don't declare fingerprint and telephony hardware feature
|
2018-08-20 10:58:38 +02:00
|
|
|
#TODO: Proper detection
|
2017-12-17 17:46:37 +01:00
|
|
|
PRODUCT_COPY_FILES := \
|
2017-12-28 00:59:00 +01:00
|
|
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
|
2019-07-17 20:11:18 +02:00
|
|
|
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
|
|
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
|
2017-12-17 17:46:37 +01:00
|
|
|
|
|
|
|
#Use a more decent APN config
|
2017-12-21 13:31:38 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
2017-12-17 17:46:37 +01: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 18:12:19 +01: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 13:23:31 +01: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 19:56:28 +01: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 23:39:38 +02:00
|
|
|
ro.build.version.release=$(PLATFORM_VERSION) \
|
2018-04-24 22:36:59 +02:00
|
|
|
ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \
|
2018-11-26 22:49:44 +01:00
|
|
|
ro.adb.secure=0 \
|
|
|
|
ro.logd.auditd=true
|
2018-07-15 14:18:35 +02:00
|
|
|
|
|
|
|
#Huawei HiSuite (also other OEM custom programs I guess) it's of no use in AOSP builds
|
|
|
|
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
|
2018-09-26 15:12:32 +00:00
|
|
|
persist.sys.usb.config=adb \
|
|
|
|
ro.cust.cdrom=/dev/null
|
2018-02-14 22:05:41 +01:00
|
|
|
|
|
|
|
#VNDK config files
|
|
|
|
PRODUCT_COPY_FILES += \
|
2018-02-16 22:41:03 +01:00
|
|
|
device/phh/treble/vndk-detect:system/bin/vndk-detect \
|
2018-02-14 22:05:41 +01:00
|
|
|
device/phh/treble/vndk.rc:system/etc/init/vndk.rc \
|
|
|
|
|
2018-04-01 00:21:03 +02: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 21:30:42 +01:00
|
|
|
|
|
|
|
# NFC:
|
|
|
|
# Provide default libnfc-nci.conf file for devices that does not have one in
|
|
|
|
# vendor/etc
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-01-08 14:39:22 +01:00
|
|
|
device/phh/treble/nfc/libnfc-nci.conf:system/phh/libnfc-nci-oreo.conf \
|
2018-12-20 15:29:57 +00:00
|
|
|
device/phh/treble/nfc/libnfc-nci-huawei.conf:system/phh/libnfc-nci-huawei.conf
|
2018-03-04 21:33:55 +01:00
|
|
|
|
2018-06-24 21:46:45 +08:00
|
|
|
# LineageOS build may need this to make NFC work
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-09-12 20:58:32 +02:00
|
|
|
NfcNci \
|
2018-06-24 21:46:45 +08:00
|
|
|
|
2018-04-03 00:13:48 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
2018-04-10 18:33:33 +02:00
|
|
|
device/phh/treble/rw-system.sh:system/bin/rw-system.sh \
|
|
|
|
device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL
|
2018-04-03 00:13:48 +02:00
|
|
|
|
2018-05-14 13:36:26 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
2018-05-14 17:04:27 +02:00
|
|
|
device/phh/treble/empty:system/phh/empty \
|
2018-07-20 15:07:03 +02:00
|
|
|
device/phh/treble/phh-on-boot.sh:system/bin/phh-on-boot.sh
|
2018-05-14 13:36:26 +02:00
|
|
|
|
2018-03-04 21:33:55 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
2019-09-12 20:58:32 +02:00
|
|
|
treble-environ-rc \
|
2018-05-26 13:30:17 +02:00
|
|
|
|
2018-06-06 15:28:28 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
2018-05-31 11:27:23 +02:00
|
|
|
bootctl \
|
2019-09-12 20:58:32 +02:00
|
|
|
vintf \
|
2018-07-23 15:32:31 +02:00
|
|
|
|
2019-01-11 17:53:01 +00:00
|
|
|
# Fix Offline Charging on Huawmeme
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
huawei-charger
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(call find-copy-subdir-files,*,device/phh/treble/huawei_charger/files,system/etc/charger)
|
|
|
|
|
2018-07-23 15:32:31 +02: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 21:37:40 +02:00
|
|
|
device/phh/treble/twrp/busybox-armv7l:system/bin/busybox_phh
|
2018-08-16 17:00:28 +02:00
|
|
|
|
2018-12-09 23:24:26 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
simg2img_simple
|
|
|
|
|
2018-08-16 17:29:55 +02:00
|
|
|
ifneq (,$(wildcard external/exfat))
|
2018-08-16 17:00:28 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
mkfs.exfat \
|
|
|
|
fsck.exfat
|
|
|
|
endif
|
2018-08-27 00:38:11 +02:00
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-12-04 23:42:15 +01:00
|
|
|
android.hidl.manager-V1.0-java \
|
2018-09-10 00:32:11 +02:00
|
|
|
android.hardware.wifi.hostapd-V1.0-java \
|
2018-08-27 00:38:11 +02:00
|
|
|
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 23:23:25 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/interfaces.xml:system/etc/permissions/interfaces.xml
|
2018-09-03 14:58:11 +02:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/files/samsung-gpio_keys.kl:system/phh/samsung-gpio_keys.kl \
|
2018-09-10 00:32:11 +02:00
|
|
|
device/phh/treble/files/samsung-sec_touchscreen.kl:system/phh/samsung-sec_touchscreen.kl \
|
|
|
|
device/phh/treble/files/oneplus6-synaptics_s3320.kl:system/phh/oneplus6-synaptics_s3320.kl \
|
2018-10-02 23:56:35 +02:00
|
|
|
device/phh/treble/files/huawei-fingerprint.kl:system/phh/huawei/fingerprint.kl \
|
2018-11-04 18:18:36 +01:00
|
|
|
device/phh/treble/files/samsung-sec_e-pen.idc:system/usr/idc/sec_e-pen.idc \
|
2018-11-06 20:40:56 +01:00
|
|
|
device/phh/treble/files/samsung-9810-floating_feature.xml:system/ph/sam-9810-flo_feat.xml \
|
2019-11-01 18:30:18 +01:00
|
|
|
device/phh/treble/files/mimix3-gpio-keys.kl:system/phh/mimix3-gpio-keys.kl \
|
|
|
|
device/phh/treble/files/nokia-soc_gpio_keys.kl:system/phh/nokia-soc_gpio_keys.kl \
|
2020-02-21 16:35:07 +01:00
|
|
|
device/phh/treble/files/lenovo-synaptics_dsx.kl:system/phh/lenovo-synaptics_dsx.kl \
|
|
|
|
device/phh/treble/files/oppo-touchpanel.kl:system/phh/oppo-touchpanel.kl \
|
2020-02-27 14:46:38 +01:00
|
|
|
device/phh/treble/files/google-uinput-fpc.kl:system/phh/google-uinput-fpc.kl \
|
2018-09-10 00:32:11 +02:00
|
|
|
|
2018-09-18 11:16:19 +02:00
|
|
|
SELINUX_IGNORE_NEVERALLOWS := true
|
2018-10-22 00:11:36 +02:00
|
|
|
|
|
|
|
# Universal NoCutoutOverlay
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
NoCutoutOverlay
|
2018-12-03 21:16:52 +01:00
|
|
|
|
2018-12-03 21:18:28 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
lightsctl \
|
|
|
|
uevent
|
|
|
|
|
2018-12-03 21:16:52 +01:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/files/adbd.rc:system/etc/init/adbd.rc
|
2019-02-26 23:14:06 +01:00
|
|
|
|
|
|
|
#MTK incoming SMS fix
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
mtk-sms-fwk-ready
|
2019-03-14 12:59:54 +01:00
|
|
|
|
2019-06-06 06:48:26 +00:00
|
|
|
# Helper to debug Xiaomi motorized camera
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
xiaomi-motor
|
|
|
|
|
2019-03-14 12:59:54 +01:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
Stk
|
2019-08-22 00:35:41 +02:00
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
resetprop
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/phh-securize.sh:system/bin/phh-securize.sh \
|
|
|
|
|
2019-10-25 22:29:57 +08:00
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-09 01:14:12 +02:00
|
|
|
frameworks/native/data/etc/android.software.secure_lock_screen.xml:system/etc/permissions/android.software.secure_lock_screen.xml \
|
|
|
|
|
2019-09-12 20:58:32 +02:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
|
|
|
|
|
2019-10-01 13:32:49 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
asus-motor
|
2019-10-25 22:29:57 +08:00
|
|
|
|
|
|
|
# Privapp-permissions whitelist for PhhTrebleApp
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/privapp-permissions-me.phh.treble.app.xml:system/etc/permissions/privapp-permissions-me.phh.treble.app.xml
|
2020-02-26 23:48:48 +01:00
|
|
|
|
|
|
|
# Remote debugging
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/phh/treble/remote/dbclient:system/bin/dbclient \
|
|
|
|
device/phh/treble/remote/phh-remotectl.rc:system/etc/init/phh-remotectl.rc \
|
|
|
|
device/phh/treble/remote/phh-remotectl.sh:system/bin/phh-remotectl.sh \
|
|
|
|
|