Skip to content

Instantly share code, notes, and snippets.

@erm3nda
Last active August 6, 2020 07:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erm3nda/cc65d425e83df8446203e2042a617a41 to your computer and use it in GitHub Desktop.
Save erm3nda/cc65d425e83df8446203e2042a617a41 to your computer and use it in GitHub Desktop.
Android 6.0 use SDCard as internal storage vía ADB using set-force-adoptable

I have a LG K305 (K8) and without this it is fkng useless, just 1 game and 4 app's

adb shell sm list-disks

adb shell sm set-force-adoptable true

179,128 comes from sm list-disks command, double check it

adb shell sm partition disk:179,128 private

adb shell sm set-force-adoptable false

now go to settings, usb & storage, click on SDCard, and choose "Migrate data" in the context menu

adb shell reboot

@erm3nda
Copy link
Author

erm3nda commented Aug 6, 2020

adoptable storage ended up being a fucking shit, tend to disaster situations.
If you can root, just go ahead with link2sd and link those that you can survive without.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment