topaz: Switch to use prebuilt USB hals
This commit is contained in:
@@ -561,6 +561,15 @@ prebuilt_etc_xml {
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
prebuilt_etc_xml {
|
||||
name: "android.hardware.usb@1.2-service",
|
||||
owner: "xiaomi",
|
||||
src: "proprietary/vendor/etc/vintf/manifest/android.hardware.usb@1.2-service.xml",
|
||||
filename_from_src: true,
|
||||
sub_dir: "vintf/manifest",
|
||||
soc_specific: true,
|
||||
}
|
||||
|
||||
prebuilt_etc_xml {
|
||||
name: "c2_manifest_vendor",
|
||||
owner: "xiaomi",
|
||||
|
||||
BIN
proprietary/vendor/bin/hw/android.hardware.usb@1.2-service-qti
vendored
Normal file
BIN
proprietary/vendor/bin/hw/android.hardware.usb@1.2-service-qti
vendored
Normal file
Binary file not shown.
31
proprietary/vendor/etc/init/android.hardware.usb@1.2-service-qti.rc
vendored
Normal file
31
proprietary/vendor/etc/init/android.hardware.usb@1.2-service-qti.rc
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
service vendor.usb-hal-1-2 /vendor/bin/hw/android.hardware.usb@1.2-service-qti
|
||||
class hal
|
||||
user root
|
||||
group root system mtp
|
||||
73
proprietary/vendor/etc/usb_compositions.conf
vendored
Normal file
73
proprietary/vendor/etc/usb_compositions.conf
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
# /vendor/etc/usb_compositions.conf: HSUSB VID PID supported compositions
|
||||
#
|
||||
# This file lists the vendor supported vid-pid compositions for HSUSB that are
|
||||
# referenced in UsbGadget.cpp. Use the specified format below for compositions,
|
||||
# where right-most column is the actual order of properties; these are few
|
||||
# cases where adb does not appear in the end of the composition
|
||||
#
|
||||
# <properties> <vid> <pid> <actual order of properties>
|
||||
mass_storage 0x05C6 0xF000
|
||||
mass_storage,adb 0x05C6 0x9015 adb,mass_storage
|
||||
diag,adb 0x05C6 0x901D
|
||||
diag,adb,serial_cdev 0x05C6 0x901F
|
||||
diag 0x05C6 0x900E
|
||||
diag,serial_cdev,rmnet,adb 0x05C6 0x9091
|
||||
diag,serial_cdev,rmnet 0x05C6 0x9092
|
||||
rndis 0x2717 0xFF80
|
||||
rndis,adb 0x2717 0xFF88
|
||||
rndis,diag 0x05C6 0x902C
|
||||
rndis,diag,adb 0x05C6 0x902D
|
||||
rndis,serial_cdev 0x05C6 0x90B3
|
||||
rndis,serial_cdev,adb 0x05C6 0x90B4
|
||||
rndis,serial_cdev,diag 0x05C6 0x90B5
|
||||
rndis,serial_cdev,diag,adb 0x05C6 0x90B6
|
||||
mtp,diag 0x05C6 0x901B
|
||||
mtp,diag,adb 0x05C6 0x903A
|
||||
diag,qdss 0x05C6 0x904A diag,qdss_debug
|
||||
diag,qdss,adb 0x05C6 0x9060 diag,qdss_debug,adb
|
||||
rndis,diag,qdss 0x05C6 0x9081 rndis,diag,qdss_debug
|
||||
rndis,diag,qdss,adb 0x05C6 0x9082 rndis,diag,qdss_debug,adb
|
||||
diag,qdss,rmnet 0x05C6 0x9083 diag,qdss_debug,rmnet
|
||||
diag,qdss,rmnet,adb 0x05C6 0x9084 diag,qdss_debug,adb,rmnet
|
||||
ncm 0x05C6 0xA4A1
|
||||
ncm,adb 0x05C6 0x908C
|
||||
diag,serial_cdev 0x05C6 0x9004
|
||||
diag,serial_cdev,rmnet,dpl 0x05C6 0x90B7
|
||||
diag,serial_cdev,rmnet,dpl,adb 0x05C6 0x90B8
|
||||
rndis,diag,dpl 0x05C6 0x90BF
|
||||
rndis,diag,dpl,adb 0x05C6 0x90C0
|
||||
ccid 0x05C6 0x90CE
|
||||
ccid,adb 0x05C6 0x90CF
|
||||
ccid,diag 0x05C6 0x90D0
|
||||
ccid,diag,adb 0x05C6 0x90D1
|
||||
diag,serial_cdev,rmnet,ccid 0x05C6 0x90D2
|
||||
diag,serial_cdev,rmnet,ccid,adb 0x05C6 0x90D3
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,serial_cdev_mdm,rmnet 0x05C6 0x90D7
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,serial_cdev_mdm,rmnet,adb 0x05C6 0x90D8
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,serial_cdev_mdm,dpl,rmnet 0x05C6 0x90DD
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,serial_cdev_mdm,dpl,rmnet,adb 0x05C6 0x90DE
|
||||
diag,serial_cdev,rmnet,dpl,qdss 0x05C6 0x90DC
|
||||
diag,serial_cdev,rmnet,dpl,qdss,adb 0x05C6 0x90DB
|
||||
diag,uac2,adb 0x05C6 0x90CA diag,adb,uac2
|
||||
diag,uac2 0x05C6 0x901C
|
||||
diag,uvc,adb 0x05C6 0x90CB diag,adb,uvc
|
||||
diag,uvc 0x05C6 0x90DF
|
||||
diag,uac2,uvc,adb 0x05C6 0x90CC diag,adb,uac2,uvc
|
||||
diag,uac2,uvc 0x05C6 0x90E0
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet 0x05C6 0x90E4
|
||||
diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb 0x05C6 0x90E5
|
||||
rndis,diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl 0x05C6 0x90E6
|
||||
rndis,diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,adb 0x05C6 0x90E7
|
||||
rndis,diag,qdss,serial_cdev,dpl 0x05C6 0x90E8
|
||||
rndis,diag,qdss,serial_cdev,dpl,adb 0x05C6 0x90E9
|
||||
diag,diag_mdm,adb 0x05C6 0x90D9
|
||||
diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,rmnet 0x05C6 0x90F6
|
||||
diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb 0x05C6 0x90F7
|
||||
rndis,diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl 0x05C6 0x90F8
|
||||
rndis,diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,adb 0x05C6 0x90F9
|
||||
diag,diag_mdm,adb,ccid 0x05C6 0x9044 diag,diag_mdm,adb,ccid
|
||||
diag,diag_mdm,qdss_mdm,dpl,adb 0x05C6 0x90FF
|
||||
diag,qdss,dpl,adb 0x05C6 0x9104
|
||||
diag,dpl 0x05C6 0x9105
|
||||
diag,diag_cnss,serial_cdev,rmnet,dpl,qdss,adb 0x05C6 0x9110
|
||||
diag,diag_cnss,serial_cdev,rmnet,dpl,qdss 0x05C6 0x9111
|
||||
39
proprietary/vendor/etc/vintf/manifest/android.hardware.usb@1.2-service.xml
vendored
Normal file
39
proprietary/vendor/etc/vintf/manifest/android.hardware.usb@1.2-service.xml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of The Linux Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.usb</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.2</version>
|
||||
<interface>
|
||||
<name>IUsb</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
<fqname>@1.2::IUsb/default</fqname>
|
||||
</hal>
|
||||
</manifest>
|
||||
@@ -156,6 +156,7 @@ PRODUCT_COPY_FILES += \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/android.hardware.gnss-aidl-service-qti:$(TARGET_COPY_OUT_VENDOR)/bin/hw/android.hardware.gnss-aidl-service-qti \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/android.hardware.ir-service.example:$(TARGET_COPY_OUT_VENDOR)/bin/hw/android.hardware.ir-service.example \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/android.hardware.security.keymint-service-qti:$(TARGET_COPY_OUT_VENDOR)/bin/hw/android.hardware.security.keymint-service-qti \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/android.hardware.usb@1.2-service-qti:$(TARGET_COPY_OUT_VENDOR)/bin/hw/android.hardware.usb@1.2-service-qti \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/qcrilNrd:$(TARGET_COPY_OUT_VENDOR)/bin/hw/qcrilNrd \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/vendor.display.color@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.display.color@1.0-service \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/bin/hw/vendor.qti.esepowermanager@1.1-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.qti.esepowermanager@1.1-service \
|
||||
@@ -371,6 +372,7 @@ PRODUCT_COPY_FILES += \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/android.hardware.gnss-aidl-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.gnss-aidl-service-qti.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/android.hardware.ir-service.example.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.ir-service.example.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/android.hardware.security.keymint-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.security.keymint-service-qti.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/android.hardware.usb@1.2-service-qti.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.usb@1.2-service-qti.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/cnd.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/cnd.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/com.qualcomm.qti.wifidisplayhal@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/com.qualcomm.qti.wifidisplayhal@1.0-service.rc \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/init/dataadpl.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/dataadpl.rc \
|
||||
@@ -616,6 +618,7 @@ PRODUCT_COPY_FILES += \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/thermal-videochat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-videochat.conf \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/thermald-devices.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermald-devices.conf \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/tzlog.dict:$(TARGET_COPY_OUT_VENDOR)/etc/tzlog.dict \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/usb_compositions.conf:$(TARGET_COPY_OUT_VENDOR)/etc/usb_compositions.conf \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/wfdconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wfdconfig.xml \
|
||||
vendor/xiaomi/topaz/proprietary/vendor/etc/xtra_root_cert.pem:$(TARGET_COPY_OUT_VENDOR)/etc/xtra_root_cert.pem \
|
||||
@@ -1715,6 +1718,7 @@ PRODUCT_PACKAGES += \
|
||||
android.hardware.ir-service.example \
|
||||
android.hardware.radio.config \
|
||||
android.hardware.security.keymint-service-qti \
|
||||
android.hardware.usb@1.2-service \
|
||||
c2_manifest_vendor \
|
||||
c2_manifest_vendor_audio \
|
||||
deviceinfo-saidl \
|
||||
|
||||
Reference in New Issue
Block a user