Last active
July 29, 2023 19:00
-
-
Save nibirrayy/2d6cb9a9ccd05f481f4c019bcda64e8f to your computer and use it in GitHub Desktop.
Use SD card as internal storage Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First you need to find the disk | |
We now need to enter in a command to show the attached disks, so enter in this command: | |
`sm list-disks` | |
you can type sm on a adb shell to know more | |
NOTE: it onlu shows the SD card | |
Here is the command to format the entire drive as Internal Storage: | |
`sm partition disk:8,0 private` | |
(note I am using 8,0 as that was my disk ID, your might be different) | |
Here is the command to format 50% of your USB drive as Internal Storage | |
`sm partition disk:8,0 mixed 50` | |
Now that we have the package name, we now need to find the volume name of our USB drive. To do that, enter in this command: | |
`mount | grep expand` | |
this gives you the UUID that you need to move to sdcard | |
Now that we have the volume ID, the command to move your package is | |
``` | |
pm move-package <package-name> [ internal| UUID] | |
``` | |
REF:https://www.techdoctoruk.com/tutorials/expand-internal-storage-on-4k-firestick-with-a-usb-drive/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment