ROM: LineageOS 17.1-20201014-UNOFFICIAL-joan
Device: H930 frankensteined from
When attaching the phone to a host device in ADB mode, it falsely reports USB Vendor/Product ID 0000:0000.
➜ ~ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0cf3:e300 Qualcomm Atheros Communications QCA61x4 Bluetooth 4.0
Bus 001 Device 011: ID 0000:0000 LGE LG-H930RE
Bus 001 Device 003: ID 1bcf:2b95 Sunplus Innovation Technology Inc. Integrated_Webcam_HD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
As a consequence, Android udev rules do not apply and it is not possible to do USB debugging without starting the daemon as root.
Property sys.usb.configfs is set to 1, so the device uses FunctionFS/configfs and the rules from file /vendor/etc/init/hw/init.lge.usb.rc do not apply.
Interestingly, it seems like file rootdir/etc/init/hw/init.lge.usb.configfs.rc would already perform relevant steps to configure the USB gadget. It is also present on the device as /vendor/etc/init/hw/init.lge.usb.configfs.rc, but the init process does not add it to its include list (excerpt from dmesg):
A bit late but this might be fixed with a simple import for /vendor/etc/init/hw/init.lge.usb.configfs.rc in rootdir/etc/init/hw/init.joan.rc. I'll try to see if that does anything.
ROM: LineageOS 17.1-20201014-UNOFFICIAL-joan Device: H930 frankensteined from
When attaching the phone to a host device in ADB mode, it falsely reports USB Vendor/Product ID 0000:0000.
As a consequence, Android udev rules do not apply and it is not possible to do USB debugging without starting the daemon as root.
Property
sys.usb.configfs
is set to 1, so the device uses FunctionFS/configfs and the rules from file/vendor/etc/init/hw/init.lge.usb.rc
do not apply.Interestingly, it seems like file rootdir/etc/init/hw/init.lge.usb.configfs.rc would already perform relevant steps to configure the USB gadget. It is also present on the device as
/vendor/etc/init/hw/init.lge.usb.configfs.rc
, but the init process does not add it to its include list (excerpt fromdmesg
):