Skip to content

Core: Improve portable storage detection (e.g. USB Stick in Tablet)#1070

Merged
d4rken merged 1 commit into
mainfrom
usb_storage
Mar 18, 2024
Merged

Core: Improve portable storage detection (e.g. USB Stick in Tablet)#1070
d4rken merged 1 commit into
mainfrom
usb_storage

Conversation

@d4rken

@d4rken d4rken commented Mar 18, 2024

Copy link
Copy Markdown
Member

Dropping the old legacy code from SD Maid 1 here, partly still stuff from Android 2.1.

Adopt the newer approach based on StorageManager, similar to SDCARD detection, but we filter out any covered path and try to get the isUSB flag via reflection.

This makes detection of a USB sticks work in my Samsung Tab A9+ (Android 14).

@d4rken d4rken added enhancement New feature, request, improvement or optimization c: Setup c: IO SAF/Normal/Root access labels Mar 18, 2024
@d4rken
d4rken merged commit ed15dcd into main Mar 18, 2024
@d4rken
d4rken deleted the usb_storage branch March 18, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: IO SAF/Normal/Root access c: Setup enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant