DEV Community

Cover image for The Story on SD card storage for Android on Chromebook
Morrison Chang
Morrison Chang

Posted on

2

The Story on SD card storage for Android on Chromebook

Since Android apps are now available on Chromebooks via ARC++ (Android Runtime for Chrome 2nd version), developers coming from a traditional File storage background will have to make sure their apps conform to take advantage of how to access the SD card.

The Chromium team has implemented USB On-The-Go access for the SD card on ChromeOS 62 (Chromium M-61?) or higher. What this means is that developers who expect their apps to work with the SD card as if it was under the battery in their phone will be disappointed. This is due to the fact that a 'hot swappable' SD card such as those found on a Chromebook isn't considered Adaptable Storage by the Android Framework.

Additionally if you want to use the MediaStore APIs to access it, you are still out of luck as the Android Framework does not support access to removable hardware. The Chromium team is aware and considering options:

https://bugs.chromium.org/p/chromium/issues/detail?id=789045&desc=3

So what to do?

Use: Android Storage Access Framework

See this Commonware's post on Removable Storage for further details.

Originally a StackOverflow answer: https://stackoverflow.com/a/44123748/295004

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay