Support for multiple USB OTG + option to enable direct access to USB OTG#4649
Draft
TranceLove wants to merge 5 commits into
Draft
Support for multiple USB OTG + option to enable direct access to USB OTG#4649TranceLove wants to merge 5 commits into
TranceLove wants to merge 5 commits into
Conversation
…is possible For fallback and troubleshooting
Mostly goes back to DocumentsUI while unmount with root is possible.
Collaborator
Author
User Acceptance Test
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Enable multiple USB OTG plugged into device via USB hub.
With this changeset, it is possible to navigate across different USB storage plugged into the device via USB OTG.
Aside, where VolumeManager access to USB storage is possible, added an option to enable direct access to USB storage via filesystem (
java.io) APIs instead of Android's own Storage Access Framework.However, it does has a caveat: OTG I/O are synchronized while direct filesystem access is not. If you unplug the device without letting system to sync, files may or may not be gone. You have the responsibility to gracefully eject the device via pulldown or DocumentsUI. Therefore this option is off by default.
Issue tracker
Fixes #2633, #1256
Automatic tests
Manual tests
Done
Device:
OS:
Build tasks success
Successfully running following tasks on local:
./gradlew assembledebug./gradlew spotlessCheckGenerative code
This implementation is completed with Copilot's help.