Author Topic: partial Adoptable storage  (Read 3172 times)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
partial Adoptable storage
« on: June 24, 2018, 06:49:46 am »
Android 6 and above allow you to turn part of any memory cards into native storage for Android, a process known as adoption. That causes the contents of the adopted file system to be encrypted by the phone, you can't pop the card out and read it in another computer or phone. Android will get upset if you take that storage away!

It is possible to split the memory card so as to have some capacity adopted, and the rest as FAT32 for the traditional "external" legacy storage.

You connect to your phone over ADB to get a list of adoptable capable storage devices like this:

Code: [Select]
$ adb shell sm list-disks adoptable
disk:NNN,MMM


then you decide how much you want to reserve as a percent of the capacity (note that a 64GB card will have only usable 60GB). To set aside 80% of the capacity as legacy:

Code: [Select]
$ adb shell sm partition disk:NNN,MMM mixed 80

You can then go into Settings->Storage and see the separate storage spaces.

If you decide to take the card out to back up the files in the FAT32 space, I recommend you shut down the phone beforehand, and put the card back before starting up.

If you decide to repartition the card, you'll see the "ghosts" of old adopted storage list in the Storage settings and you can remove them.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

rubus-3.142

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
partial Adoptable storage
« Reply #1 on: June 27, 2018, 04:42:10 pm »
I think I am missing the point here...

I tried this via ADB and can format the card as either "mixed" or if I want all as adopted a bit of googling shows the command as

adb shell sm partition disk:179,128 private

But in all cases I then don't see the storage in file-manager either the stock Android version or Solid Explorer

See below for the example with 16GB card where 80% is legacy and 20% is adopted - It does show in storage,  


but when I look in the file manager I only see the 80% portable storage and the internal memory has not increased either!
 [ Invalid Attachment ]

So I essentially lose 20% of my card but don't gain it elsewhere?

This seems to be the same problem as I had when trying to format the entire command as "internal" via the UI it just vanishes - see thread below:
https://www.oesf.org/forum/index.php?showtopic=35218
« Last Edit: June 27, 2018, 05:08:27 pm by rubus-3.142 »