tejado / android-usb-gadget

Convert your Android phone to any USB device you like! USB Gadget Tool allows you to create and activate USB device roles, like a mouse or a keyboard. 🛠🛡📱
GNU General Public License v3.0
885 stars 69 forks source link

Function Name #11

Open maayte opened 3 years ago

maayte commented 3 years ago

Existing functions are linked as function0, function1, ... When a new function is added with the gadget it does not follow the same naming structure

redfin:/config/usb_gadget/g1/configs/b.1 # ls -al

drwxr-xr-x 3 system system 0 2021-02-27 00:15 .. -rw-r--r-- 1 system system 4096 2021-02-27 00:15 MaxPower -rw-r--r-- 1 system system 4096 2021-02-27 00:15 bmAttributes lrwxrwxrwx 1 root root 0 2021-03-02 09:49 diag.diag -> ../../../../usb_gadget/g1/functions/diag.diag lrwxrwxrwx 1 root root 0 2021-02-27 00:15 function0 -> ../../../../usb_gadget/g1/functions/ffs.adb drwxr-xr-x 2 system system 0 2021-02-27 00:15 strings

tejado commented 3 years ago

Thank you @maayte for your first issue on GitHub :-) Is this causing any issues? The functions have the same name as the function folder. As far as I could see, this was never an issue.