blob: 8a7fc25076ba02563fb1302a31eb7b9f61957329 [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 +01002PRODUCT_COPY_FILES := \
Pierre-Hugues Hussona8645ac2017-12-28 00:59:00 +01003 frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
Pierre-Hugues Husson1936b622018-05-19 13:40:50 +02004 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
5 frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.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
14$(call inherit-product, vendor/hardware_overlay/overlay.mk)
Pierre-Hugues Hussoncdf726b2017-12-17 18:12:19 +010015$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
16$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
Pierre-Hugues Husson5f2ba982018-01-27 13:23:31 +010017
18#Those overrides are here because Huawei's init read properties
19#from /system/etc/prop.default, then /vendor/build.prop, then /system/build.prop
20#So we need to set our props in prop.default
21PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
Pierre-Hugues Husson51d142c2018-02-12 19:56:28 +010022 ro.build.version.sdk=$(PLATFORM_SDK_VERSION) \
23 ro.build.version.codename=$(PLATFORM_VERSION_CODENAME) \
24 ro.build.version.all_codenames=$(PLATFORM_VERSION_ALL_CODENAMES) \
Pierre-Hugues Husson76e80692018-03-27 23:39:38 +020025 ro.build.version.release=$(PLATFORM_VERSION) \
Pierre-Hugues Husson520fea12018-04-24 22:36:59 +020026 ro.build.version.security_patch=$(PLATFORM_SECURITY_PATCH) \
Dil3mm4bbc4d302018-07-15 14:18:35 +020027 ro.adb.secure=0
28
29#Huawei HiSuite (also other OEM custom programs I guess) it's of no use in AOSP builds
30PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
31 persist.sys.usb.config=adb
32
Pierre-Hugues Husson5fcaeb32018-02-14 22:05:41 +010033
34#VNDK config files
35PRODUCT_COPY_FILES += \
Pierre-Hugues Husson8a07d2c2018-02-16 22:41:03 +010036 device/phh/treble/vndk-detect:system/bin/vndk-detect \
Pierre-Hugues Husson5fcaeb32018-02-14 22:05:41 +010037 device/phh/treble/vndk.rc:system/etc/init/vndk.rc \
38 device/phh/treble/ld.config.26.txt:system/etc/ld.config.26.txt \
Pierre-Hugues Husson5fcaeb32018-02-14 22:05:41 +010039
Pierre-Hugues Husson1e27cc12018-04-01 00:21:03 +020040#USB Audio
41PRODUCT_COPY_FILES += \
42 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:system/etc/usb_audio_policy_configuration.xml
Pierre-Hugues Husson9dccd6e2018-02-20 21:30:42 +010043
44# NFC:
45# Provide default libnfc-nci.conf file for devices that does not have one in
46# vendor/etc
47PRODUCT_COPY_FILES += \
48 device/phh/treble/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
Pierre-Hugues Husson3afca902018-03-04 21:33:55 +010049
Song Fuchang0b87f3f2018-06-24 21:46:45 +080050# LineageOS build may need this to make NFC work
51PRODUCT_PACKAGES += \
52 NfcNci
53
Pierre-Hugues Husson25d7b4c2018-04-03 00:13:48 +020054PRODUCT_COPY_FILES += \
Pierre-Hugues Hussonf1811092018-04-10 18:33:33 +020055 device/phh/treble/rw-system.sh:system/bin/rw-system.sh \
56 device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL
Pierre-Hugues Husson25d7b4c2018-04-03 00:13:48 +020057
Pierre-Hugues Husson08a31772018-05-14 13:36:26 +020058PRODUCT_COPY_FILES += \
Pierre-Hugues Husson6eaf5012018-05-14 17:04:27 +020059 device/phh/treble/empty:system/phh/empty \
Dil3mm4475fc602018-07-20 15:07:03 +020060 device/phh/treble/phh-on-boot.sh:system/bin/phh-on-boot.sh
Pierre-Hugues Husson08a31772018-05-14 13:36:26 +020061
Pierre-Hugues Husson3afca902018-03-04 21:33:55 +010062PRODUCT_PACKAGES += \
63 treble-environ-rc
Pierre-Hugues Husson6603eb02018-05-26 13:30:17 +020064
Pierre-Hugues Husson8ccedd22018-06-06 15:28:28 +020065PRODUCT_PACKAGES += \
Pierre-Hugues Hussone4866292018-05-31 11:27:23 +020066 bootctl \
Jon West6ac1ec72018-08-03 17:45:17 -040067 vintf \
68 me.phh.treble.app \
Pierre-Hugues Husson9c37ec02018-07-23 15:32:31 +020069
70PRODUCT_COPY_FILES += \
71 device/phh/treble/twrp/twrp.rc:system/etc/init/twrp.rc \
72 device/phh/treble/twrp/twrp.sh:system/bin/twrp.sh \
Pierre-Hugues Husson425290a2018-07-23 21:37:40 +020073 device/phh/treble/twrp/busybox-armv7l:system/bin/busybox_phh
notsyncing712311c2018-08-02 23:07:07 +080074
75PRODUCT_COPY_FILES += \
76 device/phh/treble/device.rc:system/etc/init/device.rc \
77 device/phh/treble/change-device-name.sh:system/bin/change-device-name.sh
Jon West6ac1ec72018-08-03 17:45:17 -040078