• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] How to partition your sdcard and install apps on it (use as internal storage).

Search This thread

Yuki1001

Senior Member
Disclaimer: I am not responsible for the results of any of these operations.

This thread I will tell you how to partition sdcard and install/move apps to sdcard.

Required environment:
1. A working sdcard inserted to your phone.
2. Root.
3. Activity Launcher for calling hidden activities.

Install Magisk first if you have no root permission. Install Terminal Emulator or use adb shell to open a command window.

>Partition the sdcard

Let's start right now. Switch to root shell by running su.

1. Check your disk number of your sdcard.
Code:
sm list-disks adoptable
Check the output and remember the disk number for further use.
img2.png


2. Partition the sdcard to seperate space of storing apps and external files.
Code:
sm partition "disk_number" mixed "reserved_percent"
Replace "disk_number" with your real disk number. The parameter "reserved_percent" means how much space you want to reserve for external storage.
Code:
Example 1: Want 90% of sdcard goes to store apps and 10% left as external storage.
sm partition "disk_number" mixed 10

Example 2: Want 70% of sdcard goes to store apps and 30% left as external storage.
sm partition "disk_number" mixed 30
img3.png

Press ENTER to execute your command. All data on your sdcard will be destroyed. Back up all data on sdcard first if needed.

Right now the sdcard has the ability to store apps. Let's go to the 2nd part.

>Move apps to sdcard

1. Open Activity Launcher and wait for it scan all activities. Search "ManageApplications" and start that activity. Exact name is "com.android.settings.applications.ManageApplications".

2. Select the app you want to move to sdcard. I use Root Explorer as example.
Select "Storage" to check whether the app is installed in Internal Storage".
sc1.png

Click on "Change" and select your sdcard.
sc2.png


3. The system will go to the app moving page. Click "Move" to start moving the app to sdcard.
sc3.png

Wait for the progress done and the app should already in sdcard.
Move any other apps as you want.

OK. All steps are done. Thanks for reading.

If this guide helped you, please click the "Like" button.
 
Last edited:
  • Like
Reactions: pnin

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Disclaimer: I am not responsible for the results of any of these operations.

    This thread I will tell you how to partition sdcard and install/move apps to sdcard.

    Required environment:
    1. A working sdcard inserted to your phone.
    2. Root.
    3. Activity Launcher for calling hidden activities.

    Install Magisk first if you have no root permission. Install Terminal Emulator or use adb shell to open a command window.

    >Partition the sdcard

    Let's start right now. Switch to root shell by running su.

    1. Check your disk number of your sdcard.
    Code:
    sm list-disks adoptable
    Check the output and remember the disk number for further use.
    img2.png


    2. Partition the sdcard to seperate space of storing apps and external files.
    Code:
    sm partition "disk_number" mixed "reserved_percent"
    Replace "disk_number" with your real disk number. The parameter "reserved_percent" means how much space you want to reserve for external storage.
    Code:
    Example 1: Want 90% of sdcard goes to store apps and 10% left as external storage.
    sm partition "disk_number" mixed 10
    
    Example 2: Want 70% of sdcard goes to store apps and 30% left as external storage.
    sm partition "disk_number" mixed 30
    img3.png

    Press ENTER to execute your command. All data on your sdcard will be destroyed. Back up all data on sdcard first if needed.

    Right now the sdcard has the ability to store apps. Let's go to the 2nd part.

    >Move apps to sdcard

    1. Open Activity Launcher and wait for it scan all activities. Search "ManageApplications" and start that activity. Exact name is "com.android.settings.applications.ManageApplications".

    2. Select the app you want to move to sdcard. I use Root Explorer as example.
    Select "Storage" to check whether the app is installed in Internal Storage".
    sc1.png

    Click on "Change" and select your sdcard.
    sc2.png


    3. The system will go to the app moving page. Click "Move" to start moving the app to sdcard.
    sc3.png

    Wait for the progress done and the app should already in sdcard.
    Move any other apps as you want.

    OK. All steps are done. Thanks for reading.

    If this guide helped you, please click the "Like" button.