Many Android users keep photos, videos, and sensitive documents on an external microSD card because the phone’s internal storage is limited. Unfortunately, a regular SD card is just a portable storage medium – anyone who gets hold of it can read the files. Android offers a built‑in feature called adoptable storage that encrypts the card and integrates it with the internal storage, turning the card into a secure extension of the device.
Adoptable storage was introduced in Android 6.0 (Marshmallow). Not every OEM ships the feature in the UI, but the underlying capability is still present and can be accessed via ADB.
Some manufacturers keep the adoptable‑storage toggle visible in Settings. If you see it, this is the simplest and safest way.
Settings → Storage. The card will appear as a separate entry (e.g., “SD card”).Storage settings or Format as internal – wording varies by brand.Erase & format. Android will warn you that the card will be formatted and encrypted. Confirm.Internal shared storage rather than as removable media.After the conversion, any app you install can be moved to the SD card, and the data stored there is encrypted automatically. To verify encryption, go to Settings → Security → Encryption & credentials. You should see a line stating that “Device encryption is on” and “SD card is encrypted.”
Settings → Apps & notifications → See all apps.Storage, then tap Change → SD card (or “Internal shared storage”).Files app, select files, and use Move to → Internal shared storage (the card is now part of that storage).Do not remove the SD card while it is being used as internal storage. The system will treat the card as part of the device’s internal memory; pulling it out can cause app crashes or data loss.
Many OEMs (e.g., Samsung, LG) hide the adoptable‑storage toggle in the Settings UI, but the underlying sm (storage manager) commands are still available via ADB. This method works on any Android 6.0+ device with USB debugging enabled.
cd path/to/platform-tools
Settings → About phone → tap Build number seven times to enable Developer options.Settings → System → Developer options → toggle USB debugging on.adb devices
If your device shows up, run:
adb shell sm list-disks
The command returns something like 179,0 – that is the disk identifier for the inserted SD card.
adb shell sm partition 179,0 private
Replace 179,0 with the identifier you obtained. The output will confirm the operation, e.g., “Created private partition on disk 179,0.” The phone will now format and encrypt the card. This step may take a few minutes; you can watch progress in the notification shade.
adb shell sm list-volumes
You should see a line similar to:
private:179,0 mounted /storage/XXXX-XXXX
The private label confirms the card is now encrypted and treated as internal storage.
Because the card is now part of internal storage, Android’s normal “Move to SD card” UI appears for compatible apps. Follow the same steps described in Method 1, section “Moving apps and media”.
If you later decide you want the card back as portable storage, you can reverse the process with:
adb shell sm partition 179,0 public
Note: This will erase the card again, so back up any data first.
When you format an SD card as private, Android creates a dm-crypt block device backed by the card. A unique encryption key is generated and stored in the device’s Trusted Execution Environment (TEE). The key never leaves the phone, which means the encrypted data cannot be read on another device or by plugging the card into a PC.
Because the encrypted block device is presented as part of the internal storage pool, the system can move apps, cache files, and media across the two physical media transparently. This is why you’ll notice the total “Internal storage” figure increase after adoption.
force flag:
adb shell sm partition 179,0 private force
adb shell sm list-volumes.public command) and keep only less‑frequent data on it.Settings > Storage to monitor free space on both internal and adopted partitions.public (portable) or using a PC’s full‑disk erase.Because the encryption key is stored only in the device’s secure hardware, a stolen phone cannot decrypt the adopted SD card without the unlock PIN/pattern/password. Conversely, if you lose the phone but retain the SD card, the data remains inaccessible – a useful side‑effect for privacy‑conscious users.
Key takeaway: Adoptable storage gives you true encryption for removable media without rooting, but it also binds the card to a single device. Treat the card as permanent internal storage, back it up, and avoid removing it unless you plan to reformat.
By following the steps above you can turn any compatible SD card into a secure, encrypted extension of your Android phone, protect personal files from prying eyes, and free up valuable internal space for the apps you use most.









