Skip to content

Allow CIRCUITPY to mount on Android #8580

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

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Allow CIRCUITPY to mount on Android #8580

merged 1 commit into from
Nov 10, 2023

Conversation

eightycc
Copy link
Collaborator

Changing the partition type code reported in the fake MBR for the CIRCUITPY filesystem from 0x01 to 0x06 allows CIRCUITPY to mount on an Android system. Resolves #2751 without switching to FAT16.

Tested on Android, MacOS, Windows and Linux.

Change does not affect existing CIRCUITPY filesystem on device.

@dhalbert
Copy link
Collaborator

Are you able to test on iOS also?

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on an iPad running OS 17. Seems fine, works same before and after. On a Samsung Android 11 tablet, both a Trinket M0 (64kB) and a CIrcuit Playground Bluefruit work fine with the fix. They identify as "USB Storage 1", not CIRCUITPY, in the Files app.

This is a great advance. Thanks so much!

@dhalbert dhalbert merged commit fed12a1 into adafruit:main Nov 10, 2023
@eightycc eightycc deleted the part_type branch November 11, 2023 14:28
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

Successfully merging this pull request may close these issues.

Use FAT16 instead of FAT12, for greater compatibility with Android and other OS's
2 participants