How to turn a portable SD card into internal storage via ADB command?


This allows you to format the microSD card as internal card when your phone manufacture (like Sony) wont let you.
You must be at least at Android 6.0 (2015) or newer.

  1. 
    $adb devices
    $adb shell
    XQ-BT52:/ $ sm set-force-adoptable true
    XQ-BT52:/ $ exit
    
  2. Go to Settings > Storage > SD Card > three-dot menu > Storage settings > Format as internal > Format SD card.

Sources:
https://www.youtube.com/watch?v=OK_WetmRoLM
https://www.lifewire.com/set-sd-card-as-default-android-6743109
https://stackoverflow.com/questions/38044532/how-to-turn-a-portable-sd-card-into-internal-storage-via-adb-command

Date: August 27th 2024

Back