Tutorial: How to enable adoptable storage on an MIUI phone with Android 6

FraMog

New member
Oct 14, 2018
1
0
0
A question

I would like to ask one question...

If i remove the sd card, the phone continues working (with less applications) or not?
 

MeowerZ

New member
Oct 28, 2018
1
0
0
Manila
Working on Redmi 4x

Tried this on Redmi 4x and it's working.
:)

At first I tried using Apps2SD Pro, it was successful, I could link my apps but after that my SD Card appears to be corrupted. I could launch apps I linked but I could not move my music/pictures/files to the SD Card as my Card doesn't appear anywhere. So, I had to reformat it and painstakingly re-install all the apps I lost. Anyways, just a heads up.
 
Last edited:

[email protected]

New member
Apr 30, 2018
3
0
0
Thanks for the howto! I have a Redmi5a and things look a little different on my phones after the procedure. I'm not sure I've done everything right. In storage management I don't get "Unmount shared storage", but instead I see "Unmount SD card". More importantly, for the shortcuts, I'm not finding „com.android.settings“ in Activity-tab. Did I miss a step? Anyone else have this issue?

EDIT: It's in there, just doesn't show up when you search.

EDIT2: Can reconfirm the instructions work on Redmi 5a.
well i cant find it on my redmi note 4x snapdragon using miui 10.1.1.0 (NCFMIFI) stable can someone help pls ???

---------- Post added at 11:50 AM ---------- Previous post was at 11:29 AM ----------

The Xiaomi Redmi Note 3 is still a very good device and many of us use MIUI as it comes preinstalled and has many advantages. One major disadvantage for many of us is, that it does not support adoptable storage out-of-the-box. This means, that if you have a device with limited storage (e.g. 16GB), you have a problem once you run out of space. Fortunately there is a solution! With these few commands we can activate the adoptable storage feature so we can move apps to SD card and we are back in the game!
This should also work for other phones with Android 6 e.g. Samsung and Sony, that do no support this feature out-of-the-box.

NO ROOT NEEDED! NO FLASHING NEEDED!

Screenshots in the first comment!

What you need
  • a computer
  • a phone running Android 6 (or above)
  • a fast microSD card (at least UHS class 1 recommended)
  • a backup of all important files (especially from SD card - it’s going to be formatted during the process!)

Step-by-step guide
--- Warning: You are proceeding at your own risk! ---

  • Enable developer options on your phone (in settings -> about phone -> tap “MIUI Version” 7 times)
    • Enable „Stay awake“
    • Enable „USB debugging“
    • Disable „MIUI optimization“
  • Download and install „ADB and fastboot“ on your computer
  • Connect your phone via USB
  • Run a command window (as administrator) and use the following commands
    • adb shell
    • sm set-force-adoptable true
    • sm list-disks
      • you are going to see a result like disk:179,64
    • sm partition disk:xxx,xx private/mixed xx
      • this is reformating your SD card, change xxx,xx according to prior result e.g. 179,64
      • use private if you want to use the whole SD card as adoptable storage
      • use mixed xx if you still want a specific percentage of the SD card formatted as “portable” storage e.g. mixed 60 (-> 40 percent adoptable storage)
      • check success on your phone (setting -> storage)
    • sm list-volumes
      • you are going to see a result like private:179,67 mounted fb705131-c6a0-4e3a-959b-605a65334c8c
    • pm move-primary-storage xxxxxxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxxx
      • migrate data to adoptable storage, change xxxxxxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxxx according to prior result e.g. fb705131-c6a0-4e3a-959b-605a65334c8c
      • check process on your phone („Moving data“ in the status bar)
  • Install „QuickShortcutMaker“ from the Play Store.
    • Find „com.android.settings“ in Activity-tab
    • Find „com.android.settings.Applications.ManageApplications“
    • Create a shortcut for it on your home screen
  • Reboot!
  • Use the shortcut to manage apps and move them to the adoptable storage (marked as “external storage”)
  • Enjoy!

Note:
  • Not all apps support to be moved!
  • The system settings won't show the correct storage sizes. Use “Mi File Manager” instead.
  • All icons of applications stored in the adoptable storage are going to be moved to your home screen after every reboot. You will have to move them back to their folders manually.
  • In order to install new updates you will have to move the downloaded update file (from downloadad_rom) to your SD card manually and choose it as a source file in the Updater app.


Sources:
http://en.miui.com/forum.php?mod=viewthread&tid=820440
https://forum.xda-developers.com/android/software/auto-formatting-sdcard-to-internal-t3583875

Search: adoptable storage, shared storage, adaptable storage, app2sd, move app to sd card



pls someone help i tried this on redmi note 4x snap and now it's only read my sd card
i just want to revert this back to normal (there is nothing important on sd card) pls someone help how to revert this because my phone didnt want to charge or connect to my pc at all

---------- Post added at 11:57 AM ---------- Previous post was at 11:50 AM ----------

how to revert ?
do you got the answer? because i want to revert as well pls help
 

Black_Stark

Senior Member
Sep 24, 2012
3,481
1,010
0
GOA
well i cant find it on my redmi note 4x snapdragon using miui 10.1.1.0 (NCFMIFI) stable can someone help pls ???

---------- Post added at 11:50 AM ---------- Previous post was at 11:29 AM ----------






pls someone help i tried this on redmi note 4x snap and now it's only read my sd card
i just want to revert this back to normal (there is nothing important on sd card) pls someone help how to revert this because my phone didnt want to charge or connect to my pc at all

---------- Post added at 11:57 AM ---------- Previous post was at 11:50 AM ----------



do you got the answer? because i want to revert as well pls help
Wipe data reset
And flash rom and gapps again
After initial boot it will ask u to select sd card as extended storage or portable storage.

Select sd card as portable storage.

Done.
 
  • Like
Reactions: ibal97

ibal97

Senior Member
Jan 1, 2016
82
12
0
Please give a fix to this. My deivce is redmi 4x
How you solved it please?
Guys..im soo sorry for replying this late
it has been too long, so i might forget things ...as far as i remember, you need to enable option 'force allow apps to write on external storage' first in developer option , then continue doing the instructions to enable adoptable storage on miui. I think that this option might get in the way and might causing the error. not sure. Hope this help. sorry again. :angel:
 
Last edited:

JayArkita

New member
Mar 24, 2019
1
0
0
Working on Redmi 6A Global at 50/50 partition. Used SanDisk 64gb A1.

For those having problems updating MIUI after partitioning, this is what worked for me:

1. Go to About phone>System Update, then click update. This will download the file. After finishing download, update will fail and wont install automatically (make sure download is complete, reaches 100%). Proceed to the tweaks on step 2 onwards.
2. Check where the update file is downloaded. Mine went to Internal storge/downloaded_rom.
3. Copy the update file (.zip file) to root of sd card and rename it to Update.zip.
4. With wifi on, go to About phone>System Update again and CLICK 3 DOTS on the upper corner. Click on "Choose update package" and locate your Update.zip. It will install then. Mine is already at Global 10.2.7.0 (OCBMIXM).

If update options is missing tap miui logo several times to activate setting (10 times, i think?).

Like what others have said, try this at your own risk. Good luck! 
 

shico2o0o

Member
Apr 25, 2019
6
0
0
It doesn't work on Redmi 7 MIUI 10

When I press change storage to SD card, it says "Not enough storage". And the internal storage in the File Manager didn't change after formatting the SD Card :( Is there a solution?
 

adista

Member
Apr 7, 2015
24
4
0
Surabaya
Working on Redmi 6A Global at 50/50 partition. Used SanDisk 64gb A1.

For those having problems updating MIUI after partitioning, this is what worked for me:

1. Go to About phone>System Update, then click update. This will download the file. After finishing download, update will fail and wont install automatically (make sure download is complete, reaches 100%). Proceed to the tweaks on step 2 onwards.
2. Check where the update file is downloaded. Mine went to Internal storge/downloaded_rom.
3. Copy the update file (.zip file) to root of sd card and rename it to Update.zip.
4. With wifi on, go to About phone>System Update again and CLICK 3 DOTS on the upper corner. Click on "Choose update package" and locate your Update.zip. It will install then. Mine is already at Global 10.2.7.0 (OCBMIXM).

If update options is missing tap miui logo several times to activate setting (10 times, i think?).

Like what others have said, try this at your own risk. Good luck! 
but it didnt run on Redmi 6a Global Stable 10.2.8.0 (oCBMIXM). Im using Sandisk 128 A1. Here what i've tried:

First hit:
50:50 Partition. First partition formatted well with FAT32. Device can also recognize this partition as External Storage (SD-CARD). But second partition showing unmoutable volume. I've tried to mount it manually with command sm mount private:179,130 but no luck. When i put it in PC, Mini Tools Partition wizard showing same result: 1st was FAT32 and accessible, 2nd was unknown partition. (actually it has 3 partition, last partition just 16MB for cache i guess)

Second hit:
100 partition. All i got just Failure [-6]. I also tried this one but no luck.
Guys..im soo sorry for replying this late
it has been too long, so i might forget things ...as far as i remember, you need to enable option 'force allow apps to write on external storage' first in developer option , then continue doing the instructions to enable adoptable storage on miui. I think that this option might get in the way and might causing the error. not sure. Hope this help. sorry again. :angel:
Now i was thinking:
  • is my sdcard corrupt or MIUI does not allow this modification on that version?
  • if my sdcard is corrupt, why it accessible on 100% of FAT32??
Maybe someone with same device (Redmi 6a 10.2.8.0) can share their experience here.
 

MyTsukiko

New member
Jul 27, 2020
1
0
0
Can I turn on mi optimization in developer option after finished all step or it needs to stay in that way until I revert back this whole step?
If can, is there any side effect of turning it on while having this adoptable storage option?

btw thanks,
it worked!