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

Android 6.0 Marshmallows introduces Adoptable Storage, a feature that allows you to use an SD card as internal storage.

Is it possible to activate receive storage through ADB shell commands?

+5
source share
2 answers

I was able to successfully complete this operation on my LG K8 LTE. I want to note that there are problems with the "500 xxx Unknown disk" errors and give a solution to avoid this. The solution is very simple. The right steps at ADB will be:

adb shell sm list-disks // HERE YOU GET YOUR DISK ID, SOMETHING LIKE "disk:179,64" - REMEMBER THOSE NUMBERS sm set-force-adoptable true // IN NEXT LINE, SIMPLY PUT THOSE NUMBERS AFTER "disk:" AND ALSO AFTER WORD "mixed" TYPE PERCENTAGE OF SPACE LEFT AS EXTERNAL, SO IN MY CASE: sm partition disk:179,64 mixed 60 // IT TAKES TIME. BE PATIENT. WITH THIS LINE I TRANSFORMED WHOLE EXTERNAL SD INTO 40% OF INTERNAL AND 60% OF EXTERNAL sm set-force-adoptable false 

BANG! It! Now go to the storage and usb, click on the inside of the SD and expand the parameters, click "use as internal" or something like that, the last parameter (I don’t see what it was because I already clicked on it and that's it works) applications finally go to SD with OBB files!;)

Have a nice day!

+11
source

I have done some detailed research on this subject online. I can tell you the steps, and they seem to work for everyone but me. Try them out and let me know if they work for you.

  • Back up your SD card as it will be wiped.
  • If you do not already have one, download and install the Java SE Development Kit. Website: www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. I used version 8u101 for Windows x64.
  • If you don’t have one yet, download the Android SDK Manager. Website - developer.android.com/studio/index.html. Scroll almost to the bottom where it has “Get only command line tools” and select android-sdk_r24.4.1-windows.zip for Windows. When it loads, extract everything to the place where you want to save the folder.
  • Open the Android SDK folder and launch the SDK manager. (If it does not start, see Question 14504325 on stackoverflow). Follow the instructions on the website www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/ to start it.
  • When you open a command prompt for geek website instructions, enter "adb shell"
  • Then enter "sm list-disks". This will return the name of your microSD card. The instructions I gave showed a disc labeled 179: 160, but my computer showed the discs as 179.32. This is where I am stuck.
  • Finally, enter "sm partition disk: 179: 160 private", where the numbers are the name of your disk from step 6 if you want to use your entire SD card as internal storage. Otherwise, enter "sm partition disk disk: 179: 160 mixed 25", where the last number is the percentage of space for the card used for external storage. I could not get this to work.

For initial instructions, see http://www.modaco.com/news/android/heres-how-to-configure-adoptable-storage-on-your-s7-s7-edge-r1632/ .

PS I tried this on a Samsung Galaxy On5 to explain why it didn't work.

0
source

All Articles