termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
12.94k stars 2.98k forks source link

[Bug]: bind usb to qemu virtual machine [No Root] #7768

Open acherkaoui opened 2 years ago

acherkaoui commented 2 years ago

Problem description

Hi, i use OTG adapter and i can't connect usb to my QEMU Virtual machine

What steps will reproduce the bug?

-install qemu -install termux:api -run qemu with alpine ISO -try to connect USB adapter like PCSC Reader or USB stick

What is the expected behavior?

QEMU -device usb-host flag works

System information

termux-info: last version

I try to connect a card reader to my QEMU Virtual machine 

No Root

stale[bot] commented 2 years ago

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

julianjulian1 commented 1 year ago

If you want to read or write on OTG: Storage access permission will not enable write access to the external sdcard and drives connected over USB.

Writing in termux private folder is allowed. You can use SMB or rclone serve webdav.

If you want your USB OTG pass through to Qemu, you will need to write a lot of works. It is like making driver that Paragon NTFS app (already in playstore).