Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate functionality of discontinued "USB Mountr" #47

Closed
av2k opened this issue Mar 10, 2020 · 1 comment
Closed

Integrate functionality of discontinued "USB Mountr" #47

av2k opened this issue Mar 10, 2020 · 1 comment

Comments

@av2k
Copy link

av2k commented Mar 10, 2020

"USB Mountr" is an open source application that allows to present image files as USB devices over the USB port of the Android device, i.e. you can download an image on the mobile device and mount it with "USB Mountr". If connected to other devices over USB, the mobile device appears as a mass storage device with the content of the loaded disk image.
Thus USB Mountr allows booting images from the mobile device over USB.

Integrate the functionality of USB Mountr into EtchDroid, since EtchDroid is most likely used for booting disk images.

Here are the links:

https://f-droid.org/en/packages/streetwalrus.usbmountr/

https://github.com/9ary/android_usb_msd

@depau
Copy link
Member

depau commented Mar 10, 2020

Hi,
It's sad that USB Mountr has been discontinued and there are no free software alternatives. However, the provided functionality is out of EtchDroid's scope for different reasons:

  • EtchDroid aims to work with no root privileges at all
  • Being root comes with a lot of responsibilities and given that Android devices have a lot of different manufacturer shenanigans, it would be a pain to transparently support non-API functionality among them
  • Particularly, accessing kernel resources is out of scope since there are a bunch of different APIs that different devices use
  • SoC vendors have this secret dream of breaking everything that's breakable and it's not uncommon to find devices with such functionality removed, deeply changed in weird ways, barely functional, etc.

but most importantly

  • EtchDroid is for writing disk images into USB drives, not to function as a USB drive. "Do one thing and do it well". It is already way too bloated and buggy imo, I don't want more stuff to worry about. I want it to be what rufus/unetbootin are for desktop, but for Android, and that's it.

I suggest you fork USB Mountr instead and use it as a standalone app :)

BTW, if your kernel supports it, it's not too hard to write a shell sript that sets up USB MSD from recovery (so you don't have Android and its crap in your way), if that's what you need you can read USB Mountr's source to see what it does, I checked it once and it's not badly written :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants