zach-klippenstein / adbfs

A FUSE filesystem that uses goadb to expose Android devices' filesystems.
Apache License 2.0
150 stars 12 forks source link

adbfs crashes at start #62

Open cavestp opened 3 months ago

cavestp commented 3 months ago

This call:

adbfs --device <serial_number> --mountpoint ~/mnt 

Crashes with this backtrace:

2024-05-21T14:40:43.906572491+01:00] adbfs v1.0.0                                 
2024-05-21T14:40:43.906657888+01:00] stat cache ttl: 300ms                        
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/exidler/goadb.parseKeyVal(...)
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/goadb/device_info.go:86
github.com/exidler/goadb.parseDeviceAttributes({0xc0000a0020, 0x5, 0x8b3200?})
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/goadb/device_info.go:77 +0x105
github.com/exidler/goadb.parseDeviceLong({0xc00009e0c0?, 0xc000099000?})
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/goadb/device_info.go:70 +0x45
github.com/exidler/goadb.parseDeviceList({0xc00009e060, 0x52}, 0x945de0)
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/goadb/device_info.go:47 +0x122
github.com/exidler/goadb.(*Adb).ListDevices(0xc0001c8a80)
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/goadb/adb.go:133 +0x51
main.resolveSerial(0xc000129374?, {0x7ffd8a4706ef, 0xc})
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/adbfs-klippenstein/cmd/adbfs/main.go:109 +0x2f
main.main()
/home/pedro/.cache/yay/adbfs-klippenstein-git/src/adbfs-klippenstein/cmd/adbfs/main.go:66 +0x28c

adb is up and running and udev rules added to /etc/udev/rules.d