[🚀]: nonroot USB support
Summary
Support for USB passthrough (or USB booting) without a rooted device
Problem Description
Not everyone is rooted. Allow USB devices from a nonroot method
Proposed Solution
android.hardware.usb.UsbManager looks promising, as things like EtchDroid have progressed so far.
of course, I am a noob, and this may be too high level, but (I think) if raw reading and writing is too little of permissions to be allowed, I think instead hardware of a USB device could be emulated and pass that through to the guest with reading and writing directed at a physical disk
even then, there are millions of devices (like keyboards, mice, and controllers) that can be accessed at a higher level (eg, via APIs that aren't just for USB control) and be safely passed through by emulation rather than native low level passthrough
Alternatives Considered
like I said, if grabbing a device by the balls to emulate back and forth communication from the guest isn't an option or I am too nooby and misinterpreted the use of UsbManager, you can always emulate what the device is and manipulate it through Android's typical means
Additional Context
to clarify by using a higher level proxy In a keyboard poll example some option to connect an emulated keyboard is enabled Vectras Guest polls kb > (either Vectras asks android for keys down (probably nonexistent) or Vectras keeps a log of keys pressed from onkeydown or onkeyup) > Vectras reports back to guest appropriately once again, I could be a nooby fuck
Checklist
- [x] I have searched for similar enhancement requests.
- [x] I have provided sufficient detail in the request.
- [x] I understand that not all requests may be accepted.
hi, do you know how to use usb device from real machine with root??