-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendor_product.mk
31 lines (25 loc) · 1.01 KB
/
vendor_product.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/usb/etc
# USB init scripts
PRODUCT_PACKAGES += init.qcom.usb.rc init.qcom.usb.sh
# additional debugging on userdebug/eng builds
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += init.qti.usb.debug.sh
PRODUCT_PACKAGES += init.qti.usb.debug.rc
endif
ifeq ($(TARGET_HAS_DIAG_ROUTER),true)
PRODUCT_PROPERTY_OVERRIDES += vendor.usb.diag.func.name=ffs
else
PRODUCT_PROPERTY_OVERRIDES += vendor.usb.diag.func.name=diag
endif
ifneq ($(TARGET_KERNEL_VERSION),$(filter $(TARGET_KERNEL_VERSION),4.9 4.14 4.19))
PRODUCT_PROPERTY_OVERRIDES += vendor.usb.use_ffs_mtp=1
PRODUCT_PROPERTY_OVERRIDES += sys.usb.mtp.batchcancel=1
else
PRODUCT_PROPERTY_OVERRIDES += vendor.usb.use_ffs_mtp=0
endif
ifneq ($(TARGET_KERNEL_VERSION),$(filter $(TARGET_KERNEL_VERSION),4.9 4.14))
PRODUCT_PACKAGES += [email protected]
endif
ifeq ($(TARGET_USES_USB_GADGET_HAL), true)
PRODUCT_PACKAGES += [email protected]
endif