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
898 stars 70 forks source link

Persistent functions? #35

Closed Alexander-Shukaev closed 2 years ago

Alexander-Shukaev commented 2 years ago

Hi, I've noticed that rebooting a device results in all the additional functions configured to be reset. Didn't find any setting for persisting the configuration so far. Can this be a feature request or are there some Android limitations that prevent implementing this?

tejado commented 2 years ago

Hi, yes, this is on the roadmap: Creating & enabling USB Gadgets during boot. It is possible but it will need to be carefully implemented as this could lead to an unbootable rom (then a reflash would be required). So my plan is to implement a check, if the boot with certain settings was successful. If yes, it will be then persistet.

I cant say when this will be implemented but any help on this is highly appreciated.

tejado commented 2 years ago

Duplication of https://github.com/tejado/android-usb-gadget/issues/18

tejado commented 2 years ago

Implemented by #40