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

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more