Giter VIP home page Giter VIP logo

Comments (1)

anggrayudi avatar anggrayudi commented on June 23, 2024 2

This issue is similar to #8. Adding support for USB mass storage has low priority for now. In the past, I've tried to add it, but I found the complexity is extremely high. So I decided to revert the changes. It will ruin the entire code in the current project, and the regression will be insane. Why? Because:

  1. The USB APIs are poorly designed and not following the SOLID principle. When you use the function in your code, it is compiled successfully, but when executing it will throw java.lang.NoSuchMethodError.
  2. Some required functions are only available as internal/hidden APIs.
  3. The API changes are too frequent, it's hard to maintain the compatibility across the OS versions.
  4. Hard to predict the APIs behavior and their patterns.
  5. Too many rules from the official documentation.
  6. There's no emulator that can simulate the USB. So we are able to test the code on physical devices only. You can see the AVD here only has two options for the storage (internal & SD card):

Screenshot 2022-12-13 at 03 16 31

Maintaining the compatibility for internal storage and SD card is already hard. Adding USB support will be a nightmare for me. I only maintain the repository during my spare time. I will leave this issue open until an undetermined time, or when I get enlightened.

from simplestorage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.