Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when loading Asset #20

Open
materialred opened this issue Jun 2, 2024 · 5 comments
Open

Crash when loading Asset #20

materialred opened this issue Jun 2, 2024 · 5 comments

Comments

@materialred
Copy link

materialred commented Jun 2, 2024

FATAL EXCEPTION: pool-2-thread-1
Process: org.netdex.androidusbscript, PID: 23588
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.isEmpty()' on a null object reference
	at org.netdex.androidusbscript.configfs.UsbGadget.isBound(UsbGadget.java:144)
	at org.netdex.androidusbscript.task.LuaUsbTask.run(LuaUsbTask.java:73)
	at org.netdex.androidusbscript.service.LuaUsbService.run(LuaUsbService.java:98)
	at org.netdex.androidusbscript.service.LuaUsbService.lambda$submitTask$0(LuaUsbService.java:74)
	at org.netdex.androidusbscript.service.LuaUsbService.$r8$lambda$pFD85v5CLlLAvsC61b4Fvti21Gw(Unknown Source:0)
	at org.netdex.androidusbscript.service.LuaUsbService$$ExternalSyntheticLambda0.run(Unknown Source:4)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

Version: 1.2.1
Device: Google Pixel 8 Pro
Rom: crDroid 10.5 (Android 14)

@Netdex
Copy link
Owner

Netdex commented Jun 15, 2024

Thanks for reporting the issue. I am unable to reproduce the issue on my own device, so I suspect it is related to device specific configuration. Can you please include the following information to help debug this?

  1. Output of the following commands executed as root on your device, while the app is not running
cat /proc/filesystems
find /config/ -print -exec ls -la {} \; 2>&1
  1. Output of adb logcat while the app is running and during the crash

@materialred
Copy link
Author

materialred commented Jun 17, 2024

Output of cat /proc/filesystems find /config/ -print -exec ls -la {} \; 2>&1

nodev   tmpfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   cgroup2
nodev   cpuset
nodev   binfmt_misc
nodev   configfs
nodev   debugfs
nodev   tracefs
nodev   securityfs
nodev   sockfs
nodev   bpf
nodev   pipefs
nodev   ramfs
nodev   devpts
        ext3
        ext2
        ext4
        vfat
        msdos
        exfat
        fuseblk
nodev   fuse
nodev   fusectl
nodev   virtiofs
nodev   overlay
nodev   incremental-fs
        f2fs
        erofs
nodev   selinuxfs
nodev   binder
nodev   pstore
nodev   functionfs

The adb logcat of org.netdex.androidusbscript:
android usb script.log

@Netdex
Copy link
Owner

Netdex commented Jun 18, 2024

Thanks. I actually meant those as two separate commands though, can you get this one alone?

find /config/ -print -exec ls -la {} \;

@materialred
Copy link
Author

Sorry for that, i didn't noticed that. Here is the output of find /config/ -print -exec ls -la {} \;

total 4
drwxr-xr-x  3 root   root      0 1970-01-01 01:00 .
drwxr-xr-x 29 root   root   4096 2009-01-01 01:00 ..
drwxr-xr-x  4 system system    0 2024-06-19 17:50 usb_gadget
total 0
drwxr-xr-x 4 system system 0 2024-06-19 17:50 .
drwxr-xr-x 3 root   root   0 1970-01-01 01:00 ..
drwxr-xr-x 6 system system 0 2024-06-19 17:47 g1
drwxr-xr-x 6 root   root   0 2024-06-19 17:50 hidf
total 0
drwxr-xr-x 6 root   root      0 2024-06-19 17:50 .
drwxr-xr-x 4 system system    0 2024-06-19 17:50 ..
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 UDC
-rw-r--r-- 1 root   root   4096 2024-06-19 17:50 bDeviceClass
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 bDeviceProtocol
-rw-r--r-- 1 root   root   4096 2024-06-19 17:50 bDeviceSubClass
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 bMaxPacketSize0
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 bcdDevice
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 bcdUSB
drwxr-xr-x 2 root   root      0 2024-06-19 17:50 configs
drwxr-xr-x 2 root   root      0 2024-06-19 17:50 functions
-rw-r--r-- 1 root   root   4096 2024-06-19 17:50 idProduct
-rw-r--r-- 1 root   root   4096 2024-06-19 17:50 idVendor
-rw-r--r-- 1 root   root   4096 2024-06-19 18:19 max_speed
drwxr-xr-x 2 root   root      0 2024-06-19 17:50 os_desc
drwxr-xr-x 2 root   root      0 2024-06-19 17:50 strings
total 0
drwxr-xr-x 2 root root    0 2024-06-19 17:50 .
drwxr-xr-x 6 root root    0 2024-06-19 18:19 ..
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 b_vendor_code
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 qw_sign
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 use
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/os_desc/qw_sign
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/os_desc/b_vendor_code
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/os_desc/use
total 0
drwxr-xr-x 2 root root 0 2024-06-19 17:50 .
drwxr-xr-x 6 root root 0 2024-06-19 18:19 ..
total 0
drwxr-xr-x 2 root root 0 2024-06-19 17:50 .
drwxr-xr-x 6 root root 0 2024-06-19 18:19 ..
total 0
drwxr-xr-x 2 root root 0 2024-06-19 17:50 .
drwxr-xr-x 6 root root 0 2024-06-19 18:19 ..
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/max_speed
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/UDC
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/bcdUSB
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/bcdDevice
-rw-r--r-- 1 root root 4096 2024-06-19 17:50 /config/usb_gadget/hidf/idProduct
-rw-r--r-- 1 root root 4096 2024-06-19 17:50 /config/usb_gadget/hidf/idVendor-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/bMaxPacketSize0
-rw-r--r-- 1 root root 4096 2024-06-19 18:19 /config/usb_gadget/hidf/bDeviceProtocol
-rw-r--r-- 1 root root 4096 2024-06-19 17:50 /config/usb_gadget/hidf/bDeviceSubClass
-rw-r--r-- 1 root root 4096 2024-06-19 17:50 /config/usb_gadget/hidf/bDeviceClass
total 0
drwxr-xr-x  6 system system    0 2024-06-19 17:47 .
drwxr-xr-x  4 system system    0 2024-06-19 17:50 ..
-rw-r--r--  1 system system 4096 2024-06-19 17:47 UDC
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bDeviceClass
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bDeviceProtocol
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bDeviceSubClass
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bMaxPacketSize0
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bcdDevice
-rw-r--r--  1 system system 4096 2024-06-19 17:47 bcdUSB
drwxr-xr-x  3 system system    0 2024-06-19 17:47 configs
drwxr-xr-x 15 system system    0 2024-06-19 17:47 functions
-rw-r--r--  1 system system 4096 2024-06-19 17:47 idProduct
-rw-r--r--  1 system system 4096 2024-06-19 17:47 idVendor
-rw-r--r--  1 system system 4096 2024-06-19 17:47 max_speed
drwxr-xr-x  2 system system    0 2024-06-19 17:47 os_desc
drwxr-xr-x  3 system system    0 2024-06-19 17:47 strings
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 6 system system    0 2024-06-19 18:19 ..
lrwxrwxrwx 1 system system    0 2024-06-19 17:47 b.1 -> ../../../usb_gadget/g1/configs/b.1
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 b_vendor_code
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 qw_sign
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 use
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/os_desc/b.1 -> ../../../usb_gadget/g1/configs/b.1
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/os_desc/qw_sign
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/os_desc/b_vendor_code
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/os_desc/use
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 0x409
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 manufacturer
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 product
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 serialnumber
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/strings/0x409/serialnumber
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/strings/0x409/product
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/strings/0x409/manufacturer
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 3 system system 0 2024-06-19 17:47 b.1
total 0
drwxr-xr-x 3 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 MaxPower
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 bmAttributes
lrwxrwxrwx 1 root   root      0 2024-06-19 17:47 function0 -> ../../../../usb_gadget/g1/functions/ffs.adb
drwxr-xr-x 2 system system    0 2024-06-19 17:47 strings
lrwxrwxrwx 1 root root 0 2024-06-19 17:47 /config/usb_gadget/g1/configs/b.1/function0 -> ../../../../usb_gadget/g1/functions/ffs.adb
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 3 system system 0 2024-06-19 18:19 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/configs/b.1/bmAttributes
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/configs/b.1/MaxPower
total 0
drwxr-xr-x 15 system system 0 2024-06-19 17:47 .
drwxr-xr-x  6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x  2 system system 0 2024-06-19 17:47 accessory.gs2
drwxr-xr-x  2 system system 0 2024-06-19 17:47 acm.gs6
drwxr-xr-x  2 system system 0 2024-06-19 17:47 acm.uwb0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 audio_source.gs3
drwxr-xr-x  2 system system 0 2024-06-19 17:47 dm.gs7
drwxr-xr-x  2 root   root   0 2024-06-19 17:47 etr_miu.gs11
drwxrwx---  2 system system 0 2024-06-19 17:47 ffs.adb
drwxr-xr-x  2 system system 0 2024-06-19 17:47 ffs.mtp
drwxr-xr-x  2 system system 0 2024-06-19 17:47 ffs.ptp
drwxr-xr-x  2 system system 0 2024-06-19 17:47 midi.gs5
drwxr-xr-x  3 system system 0 2024-06-19 17:47 ncm.gs9
drwxr-xr-x  3 system system 0 2024-06-19 17:47 rndis.gs4
drwxr-xr-x  4 system system 0 2024-06-19 17:47 uvc.0
total 0
drwxr-xr-x  4 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
drwxr-xr-x  6 system system    0 2024-06-19 17:47 control
-rw-rw-r--  1 system system 4096 2024-06-19 17:47 function_name
drwxr-xr-x  7 system system    0 2024-06-19 17:47 streaming
-rw-rw-r--  1 system system 4096 2024-06-19 17:47 streaming_interval
-rw-rw-r--  1 system system 4096 2024-06-19 17:47 streaming_maxburst
-rw-rw-r--  1 system system 4096 2024-06-19 17:47 streaming_maxpacket
total 0
drwxr-xr-x 7 system system    0 2024-06-19 17:47 .
drwxr-xr-x 4 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bInterfaceNumber
drwxr-xr-x 5 system system    0 2024-06-19 17:47 class
drwxr-xr-x 3 system system    0 2024-06-19 17:47 color_matching
drwxr-xr-x 3 system system    0 2024-06-19 17:47 header
drwxr-xr-x 3 system system    0 2024-06-19 17:47 mjpeg
drwxr-xr-x 2 system system    0 2024-06-19 17:47 uncompressed
total 0
drwxr-xr-x 5 system system 0 2024-06-19 17:47 .
drwxr-xr-x 7 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 fs
drwxr-xr-x 2 system system 0 2024-06-19 17:47 hs
drwxr-xr-x 2 system system 0 2024-06-19 17:47 ss
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 5 system system 0 2024-06-19 17:47 ..
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/class/ss/h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 5 system system 0 2024-06-19 17:47 ..
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/class/hs/h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 5 system system 0 2024-06-19 17:47 ..
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/class/fs/h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/header/h
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 7 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 default
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bColorPrimaries
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bMatrixCoefficients
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTransferCharacteristics
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bMatrixCoefficients
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bTransferCharacteristics
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bColorPrimaries
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 7 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 6 system system 0 2024-06-19 17:47 m
total 0
drwxr-xr-x 6 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
drwxr-xr-x 2 system system    0 2024-06-19 17:47 1080p
drwxr-xr-x 2 system system    0 2024-06-19 17:47 360p
drwxr-xr-x 2 system system    0 2024-06-19 17:47 480p
drwxr-xr-x 2 system system    0 2024-06-19 17:47 720p
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bAspectRatioX
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bAspectRatioY
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bDefaultFrameIndex
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bFormatIndex
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bmFlags
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bmInterlaceFlags
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bmaControls
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 6 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bFrameIndex
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bmCapabilities
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/bmCapabilities
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/bFrameIndex
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 6 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bFrameIndex
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bmCapabilities
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/bmCapabilities
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/bFrameIndex
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 6 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bFrameIndex
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bmCapabilities
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwDefaultFrameInterval
/config/
/config/usb_gadget
/config/usb_gadget/hidf
/config/usb_gadget/hidf/os_desc
/config/usb_gadget/hidf/os_desc/qw_sign
/config/usb_gadget/hidf/os_desc/b_vendor_code
/config/usb_gadget/hidf/os_desc/use
/config/usb_gadget/hidf/strings
/config/usb_gadget/hidf/configs
/config/usb_gadget/hidf/functions
/config/usb_gadget/hidf/max_speed
/config/usb_gadget/hidf/UDC
/config/usb_gadget/hidf/bcdUSB
/config/usb_gadget/hidf/bcdDevice
/config/usb_gadget/hidf/idProduct
/config/usb_gadget/hidf/idVendor
/config/usb_gadget/hidf/bMaxPacketSize0
/config/usb_gadget/hidf/bDeviceProtocol
/config/usb_gadget/hidf/bDeviceSubClass
/config/usb_gadget/hidf/bDeviceClass
/config/usb_gadget/g1
/config/usb_gadget/g1/os_desc
/config/usb_gadget/g1/os_desc/b.1
/config/usb_gadget/g1/os_desc/qw_sign
/config/usb_gadget/g1/os_desc/b_vendor_code
/config/usb_gadget/g1/os_desc/use
/config/usb_gadget/g1/strings
/config/usb_gadget/g1/strings/0x409
/config/usb_gadget/g1/strings/0x409/serialnumber
/config/usb_gadget/g1/strings/0x409/product
/config/usb_gadget/g1/strings/0x409/manufacturer
/config/usb_gadget/g1/configs
/config/usb_gadget/g1/configs/b.1
/config/usb_gadget/g1/configs/b.1/function0
/config/usb_gadget/g1/configs/b.1/strings
/config/usb_gadget/g1/configs/b.1/bmAttributes
/config/usb_gadget/g1/configs/b.1/MaxPower
/config/usb_gadget/g1/functions
/config/usb_gadget/g1/functions/uvc.0
/config/usb_gadget/g1/functions/uvc.0/streaming
/config/usb_gadget/g1/functions/uvc.0/streaming/class
/config/usb_gadget/g1/functions/uvc.0/streaming/class/ss
/config/usb_gadget/g1/functions/uvc.0/streaming/class/ss/h
/config/usb_gadget/g1/functions/uvc.0/streaming/class/hs
/config/usb_gadget/g1/functions/uvc.0/streaming/class/hs/h
/config/usb_gadget/g1/functions/uvc.0/streaming/class/fs
/config/usb_gadget/g1/functions/uvc.0/streaming/class/fs/h
/config/usb_gadget/g1/functions/uvc.0/streaming/color_matching
/config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default
/config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bMatrixCoefficients
/config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bTransferCharacteristics
/config/usb_gadget/g1/functions/uvc.0/streaming/color_matching/default/bColorPrimaries
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwFrameInterval/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwDefaultFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxVideoFrameBufferSize
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/dwMinBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/wHeight
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/wWidth
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/bmCapabilities
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/1080p/bFrameIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwDefaultFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMaxBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/dwMinBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/wHeight
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/wWidth
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/bmCapabilities
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/720p/bFrameIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwDefaultFrameInterval
/config/usb_gadget/g1/functions/uvc-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/bmCapabilities
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/bFrameIndex
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 6 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bFrameIndex
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bmCapabilities
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwDefaultFrameInterval
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxVideoFrameBufferSize
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMinBitRate
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/wHeight
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/wWidth
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/bmCapabilities
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/bFrameIndex
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmaControls
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmInterlaceFlags
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bAspectRatioY
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bAspectRatioX
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmFlags
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bDefaultFrameIndex
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bFormatIndex
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 7 system system 0 2024-06-19 18:19 ..
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 7 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 h
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bStillCaptureMethod
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTerminalLink
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTriggerSupport
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTriggerUsage
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bmInfo
lrwxrwxrwx 1 system system    0 2024-06-19 17:47 m -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/m -> ../../../../../../../usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTriggerUsage
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTriggerSupport
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bStillCaptureMethod
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTerminalLink
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bmInfo
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming/bInterfaceNumber
total 0
drwxr-xr-x 6 system system    0 2024-06-19 17:47 .
drwxr-xr-x 4 system system    0 2024-06-19 18:19 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bInterfaceNumber
drwxr-xr-x 4 system system    0 2024-06-19 17:47 class
drwxr-xr-x 3 system system    0 2024-06-19 17:47 header
drwxr-xr-x 3 system system    0 2024-06-19 17:47 processing
drwxr-xr-x 4 system system    0 2024-06-19 17:47 terminal
total 0
drwxr-xr-x 4 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 fs
drwxr-xr-x 2 system system 0 2024-06-19 17:47 ss
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 4 system system 0 2024-06-19 17:47 ..
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/control/header/h
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/class/ss/h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/control/header/h
total 0
drwxr-xr-x 2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 4 system system 0 2024-06-19 17:47 ..
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/control/header/h
lrwxrwxrwx 1 system system 0 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/class/fs/h -> ../../../../../../../usb_gadget/g1/functions/uvc.0/control/header/h
total 0
drwxr-xr-x 4 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 3 system system 0 2024-06-19 17:47 camera
drwxr-xr-x 3 system system 0 2024-06-19 17:47 output
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 4 system system 0 2024-06-19 17:47 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 default
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bAssocTerminal
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bSourceID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTerminalID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 iTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wTerminalType
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/iTerminal
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bSourceID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bAssocTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/wTerminalType
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bTerminalID
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 4 system system 0 2024-06-19 17:47 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 default
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bAssocTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bTerminalID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bmControls
-r--r--r-- 1 system system 4096 2024-06-19 17:47 iTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wObjectiveFocalLengthMax
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wObjectiveFocalLengthMin
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wOcularFocalLength
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wTerminalType
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/bmControls
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wOcularFocalLength
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wObjectiveFocalLengthMax
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wObjectiveFocalLengthMin
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/iTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/bAssocTerminal
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wTerminalType
.0/streaming/mjpeg/m/480p/dwMaxVideoFrameBufferSize
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMaxBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/dwMinBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wHeight
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/wWidth
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/bmCapabilities
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/480p/bFrameIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwDefaultFrameInterval
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxVideoFrameBufferSize
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMaxBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/dwMinBitRate
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/wHeight
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/wWidth
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/bmCapabilities
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/360p/bFrameIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmaControls
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmInterlaceFlags
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bAspectRatioY
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bAspectRatioX
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bmFlags
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bDefaultFrameIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/mjpeg/m/bFormatIndex
/config/usb_gadget/g1/functions/uvc.0/streaming/uncompressed
/config/usb_gadget/g1/functions/uvc.0/streaming/header
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/m
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTriggerUsage
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTriggerSupport
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bStillCaptureMethod
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bTerminalLink
/config/usb_gadget/g1/functions/uvc.0/streaming/header/h/bmInfo
/config/usb_gadget/g1/functions/uvc.0/streaming/bInterfaceNumber
/config/usb_gadget/g1/functions/uvc.0/control
/config/usb_gadget/g1/functions/uvc.0/control/class
/config/usb_gadget/g1/functions/uvc.0/control/class/ss
/config/usb_gadget/g1/functions/uvc.0/control/class/ss/h
/config/usb_gadget/g1/functions/uvc.0/control/class/fs
/config/usb_gadget/g1/functions/uvc.0/control/class/fs/h
/config/usb_gadget/g1/functions/uvc.0/control/terminal
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/iTerminal
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bSourceID
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bAssocTerminal
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/wTerminalType
/config/usb_gadget/g1/functions/uvc.0/control/terminal/output/default/bTerminalID
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/bmControls
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wOcularFocalLength
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wObjectiveFocalLengthMax
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wObjectiveFocalLengthMin
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/iTerminal
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/bAssocTerminal
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/wTerminalType
/config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/de-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/terminal/camera/default/bTerminalID
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 default
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bSourceID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bUnitID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 bmControls
-r--r--r-- 1 system system 4096 2024-06-19 17:47 iProcessing
-r--r--r-- 1 system system 4096 2024-06-19 17:47 wMaxMultiplier
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/processing/default/iProcessing
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/processing/default/bmControls
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/processing/default/wMaxMultiplier
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/processing/default/bSourceID
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/processing/default/bUnitID
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 6 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 h
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 bcdUVC
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 dwClockFrequency
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/header/h/dwClockFrequency
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/header/h/bcdUVC
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/control/bInterfaceNumber
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/function_name
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming_maxburst
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming_maxpacket
-rw-rw-r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/uvc.0/streaming_interval
total 0
drwxr-xr-x  2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
-r--r--r--  1 system system 4096 2024-06-19 17:47 port_num
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/acm.uwb0/port_num
total 0
drwxr-xr-x  2 root   root   0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxr-xr-x  3 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
-rw-r--r--  1 system system 4096 2024-06-19 17:47 dev_addr
-rw-r--r--  1 system system 4096 2024-06-19 17:47 host_addr
-rw-r--r--  1 system system 4096 2024-06-19 17:47 ifname
drwxr-xr-x  3 system system    0 2024-06-19 17:47 os_desc
-rw-r--r--  1 system system 4096 2024-06-19 17:47 qmult
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 3 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 interface.ncm
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 sub_compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/os_desc/interface.ncm/sub_compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/os_desc/interface.ncm/compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/ifname
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/qmult
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/host_addr
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/ncm.gs9/dev_addr
total 0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxr-xr-x  2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
-r--r--r--  1 system system 4096 2024-06-19 17:47 port_num
-r--r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/acm.gs6/port_num
total 0
drwxr-xr-x  2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
-rw-r--r--  1 system system 4096 2024-06-19 17:47 buflen
-rw-r--r--  1 system system 4096 2024-06-19 17:47 id
-rw-r--r--  1 system system 4096 2024-06-19 17:47 in_ports
-rw-r--r--  1 system system 4096 2024-06-19 17:47 index
-rw-r--r--  1 system system 4096 2024-06-19 17:47 out_ports
-rw-r--r--  1 system system 4096 2024-06-19 17:47 qlen
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/out_ports
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/in_ports
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/qlen
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/buflen
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/midi.gs5/index
total 0
drwxr-xr-x  3 system system    0 2024-06-19 17:47 .
drwxr-xr-x 15 system system    0 2024-06-19 17:47 ..
-rw-r--r--  1 system system 4096 2024-06-19 17:47 class
-rw-r--r--  1 system system 4096 2024-06-19 17:47 dev_addr
-rw-r--r--  1 system system 4096 2024-06-19 17:47 host_addr
-rw-r--r--  1 system system 4096 2024-06-19 17:47 ifname
drwxr-xr-x  3 system system    0 2024-06-19 17:47 os_desc
-rw-r--r--  1 system system 4096 2024-06-19 17:47 protocol
-rw-r--r--  1 system system 4096 2024-06-19 17:47 qmult
-rw-r--r--  1 system system 4096 2024-06-19 17:47 subclass
total 0
drwxr-xr-x 3 system system 0 2024-06-19 17:47 .
drwxr-xr-x 3 system system 0 2024-06-19 18:19 ..
drwxr-xr-x 2 system system 0 2024-06-19 17:47 interface.rndis
total 0
drwxr-xr-x 2 system system    0 2024-06-19 17:47 .
drwxr-xr-x 3 system system    0 2024-06-19 17:47 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 sub_compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/sub_compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/compatible_id
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/protocol
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/subclass
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/class
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/ifname
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/qmult
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/host_addr
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/functions/rndis.gs4/dev_addr
total 0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxr-xr-x  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
total 0
drwxrwx---  2 system system 0 2024-06-19 17:47 .
drwxr-xr-x 15 system system 0 2024-06-19 17:47 ..
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/max_speed
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/UDC
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bcdUSB-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bcdDevice
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/idProduct
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/idVendor
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bMaxPacketSize0
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bDeviceProtocol
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bDeviceSubClass
-rw-r--r-- 1 system system 4096 2024-06-19 17:47 /config/usb_gadget/g1/bDeviceClass
fault/bTerminalID
/config/usb_gadget/g1/functions/uvc.0/control/processing
/config/usb_gadget/g1/functions/uvc.0/control/processing/default
/config/usb_gadget/g1/functions/uvc.0/control/processing/default/iProcessing
/config/usb_gadget/g1/functions/uvc.0/control/processing/default/bmControls
/config/usb_gadget/g1/functions/uvc.0/control/processing/default/wMaxMultiplier
/config/usb_gadget/g1/functions/uvc.0/control/processing/default/bSourceID
/config/usb_gadget/g1/functions/uvc.0/control/processing/default/bUnitID
/config/usb_gadget/g1/functions/uvc.0/control/header
/config/usb_gadget/g1/functions/uvc.0/control/header/h
/config/usb_gadget/g1/functions/uvc.0/control/header/h/dwClockFrequency
/config/usb_gadget/g1/functions/uvc.0/control/header/h/bcdUVC
/config/usb_gadget/g1/functions/uvc.0/control/bInterfaceNumber
/config/usb_gadget/g1/functions/uvc.0/function_name
/config/usb_gadget/g1/functions/uvc.0/streaming_maxburst
/config/usb_gadget/g1/functions/uvc.0/streaming_maxpacket
/config/usb_gadget/g1/functions/uvc.0/streaming_interval
/config/usb_gadget/g1/functions/acm.uwb0
/config/usb_gadget/g1/functions/acm.uwb0/port_num
/config/usb_gadget/g1/functions/etr_miu.gs11
/config/usb_gadget/g1/functions/ncm.gs9
/config/usb_gadget/g1/functions/ncm.gs9/os_desc
/config/usb_gadget/g1/functions/ncm.gs9/os_desc/interface.ncm
/config/usb_gadget/g1/functions/ncm.gs9/os_desc/interface.ncm/sub_compatible_id
/config/usb_gadget/g1/functions/ncm.gs9/os_desc/interface.ncm/compatible_id
/config/usb_gadget/g1/functions/ncm.gs9/ifname
/config/usb_gadget/g1/functions/ncm.gs9/qmult
/config/usb_gadget/g1/functions/ncm.gs9/host_addr
/config/usb_gadget/g1/functions/ncm.gs9/dev_addr
/config/usb_gadget/g1/functions/dm.gs7
/config/usb_gadget/g1/functions/acm.gs6
/config/usb_gadget/g1/functions/acm.gs6/port_num
/config/usb_gadget/g1/functions/midi.gs5
/config/usb_gadget/g1/functions/midi.gs5/id
/config/usb_gadget/g1/functions/midi.gs5/out_ports
/config/usb_gadget/g1/functions/midi.gs5/in_ports
/config/usb_gadget/g1/functions/midi.gs5/qlen
/config/usb_gadget/g1/functions/midi.gs5/buflen
/config/usb_gadget/g1/functions/midi.gs5/index
/config/usb_gadget/g1/functions/rndis.gs4
/config/usb_gadget/g1/functions/rndis.gs4/os_desc
/config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis
/config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/sub_compatible_id
/config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/compatible_id
/config/usb_gadget/g1/functions/rndis.gs4/protocol
/config/usb_gadget/g1/functions/rndis.gs4/subclass
/config/usb_gadget/g1/functions/rndis.gs4/class
/config/usb_gadget/g1/functions/rndis.gs4/ifname
/config/usb_gadget/g1/functions/rndis.gs4/qmult
/config/usb_gadget/g1/functions/rndis.gs4/host_addr
/config/usb_gadget/g1/functions/rndis.gs4/dev_addr
/config/usb_gadget/g1/functions/audio_source.gs3
/config/usb_gadget/g1/functions/accessory.gs2
/config/usb_gadget/g1/functions/ffs.ptp
/config/usb_gadget/g1/functions/ffs.mtp
/config/usb_gadget/g1/functions/ffs.adb
/config/usb_gadget/g1/max_speed
/config/usb_gadget/g1/UDC
/config/usb_gadget/g1/bcdUSB
/config/usb_gadget/g1/bcdDevice
/config/usb_gadget/g1/idProduct
/config/usb_gadget/g1/idVendor
/config/usb_gadget/g1/bMaxPacketSize0
/config/usb_gadget/g1/bDeviceProtocol
/config/usb_gadget/g1/bDeviceSubClass
/config/usb_gadget/g1/bDeviceClass

@Netdex
Copy link
Owner

Netdex commented Jul 6, 2024

Thanks for providing the information, sorry I haven't had a chance to take a look until now.

From the logcat it seems like this is the root cause is that the app is not expecting the USB gadget to already be present in configfs when a task is started:

1718603805.834 10425 10563 10646 W System.err: :6 vm error: java.lang.IllegalStateException: USB gadget already exists
1718603805.834 10425 10563 10646 W System.err: 	at org.luaj.vm2.LuaClosure.execute(Unknown Source:1969)
1718603805.834 10425 10563 10646 W System.err: 	at org.luaj.vm2.LuaClosure.call(Unknown Source:22)
1718603805.834 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.task.LuaUsbTask.run(LuaUsbTask.java:55)
1718603805.834 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.service.LuaUsbService.run(LuaUsbService.java:98)
1718603805.834 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.service.LuaUsbService.lambda$submitTask$0(LuaUsbService.java:74)
1718603805.835 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.service.LuaUsbService.$r8$lambda$pFD85v5CLlLAvsC61b4Fvti21Gw(Unknown Source:0)
1718603805.835 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.service.LuaUsbService$$ExternalSyntheticLambda0.run(Unknown Source:4)
1718603805.835 10425 10563 10646 W System.err: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
1718603805.835 10425 10563 10646 W System.err: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
1718603805.835 10425 10563 10646 W System.err: 	at java.lang.Thread.run(Thread.java:1012)
1718603805.835 10425 10563 10646 W System.err: Caused by: java.lang.IllegalStateException: USB gadget already exists
1718603805.835 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.configfs.UsbGadget.add(UsbGadget.java:58)
1718603805.835 10425 10563 10646 W System.err: 	at org.netdex.androidusbscript.task.LuaUsbLibrary$luausb$create.invoke(LuaUsbLibrary.java:201)
1718603805.835 10425 10563 10646 W System.err: 	at org.luaj.vm2.lib.VarArgFunction.call(Unknown Source:0)
1718603805.835 10425 10563 10646 W System.err: 	at org.luaj.vm2.LuaClosure.execute(Unknown Source:962)
1718603805.835 10425 10563 10646 W System.err: 	... 9 more

In the directory listing you provided, it seems like /config/usb_gadget/hidf already exists. From this information the most likely cause is the app may have failed to clean up the USB gadget folder in configfs after running a previous task. The following might temporarily resolve this issue:

  1. Manually removing /config/usb_gadget/hidf as root
  2. Rebooting your phone, which will reset configfs

I will try to see how I can make this logic more robust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants