• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Adopted Storage in CM13

Otelo2

Member
Feb 5, 2015
78
51
Hi, im making this kind of tutorial to help out everyone who didn't find the "adopted storage" setting in cm13.

Only do this if you know what you're doing

1) Make sure to have proper root access either by superSU or the built-in root. (Developer options> Root access)
12179301_1066170810073184_1896884424_n.jpg

2) Use either adb or the built-in Android shell. (Developer options>Local terminal)
12179609_1066170786739853_1949769302_n.jpg

3) If you use ADB, connect your device, if not, open the Android Shell called "Terminal"

4) I don't know how it works from ADB, but in Terminal you'll have to give root access because of some permissions error, so type "su"
12182244_1066170793406519_1460564896_n.jpg

5) From ADB type: "adb shell sm set-force-adoptable true" (Without the " ) From Terminal type: "sm set-force-adoptable true"
12188355_1066170780073187_1336030359_n.jpg

6) Look at your notifications, it should now say SD card. New SD card detected. Set up. Eject"
12179914_1066170813406517_925707471_n.jpg

7)Select "Set Up" and choose "Use as internal storage" NOTE: Backup your sd card, because this will format it, so read and be careful. Then select "Erase and Format"
12179876_1066170806739851_150789311_n.jpg

12180030_1066170770073188_453979329_n.jpg

12178182_1066170826739849_1579725288_n.jpg

8) When everything finishes, it should ask you if you want to move all your data now, you can choose what you want.


9) Enjoy
12182066_1066177553405843_1826673684_n.jpg

Note: I don't know why, but when I tried this it stopped at 20% and threw a java error, but i know for a fact that this works for other users, so please test if you can so I can update this thread. Thanks -- Fixed by turning off and on the device :p

Another note: I'm no expert, so if you find an easier method please share it so I can update OP

WARNING: Adopted storage may cause bootloop, at least in my phone that's what happened. To fix that you'll have to take out the ext SD and then turn on the phone, wait until it gets to the home screen and then insert the ext SD.


Credits:
http://nelenkov.blogspot.mx/2015/06/decrypting-android-m-adopted-storage.html
 

Attachments

  • 12178978_1066170800073185_310066526_n.jpg
    12178978_1066170800073185_310066526_n.jpg
    33.4 KB · Views: 287
Last edited:
I suggest you using the gapps in Vm03s thread of cm13
I am pretty sure its not GAPPS related, but SELinux related. The SELinux should be set to Enforcing inorder to successfully install SuperSU in Marshmallow/CM13. In other words the boot image has to be modified. I think we could try @vladimirs77 Rom boot image as it seems he has successfully modified the BOOT image.

Edit : I can confirm that I am totally sure now, here is the Information regarding it "How to Root Marshmallow with SuperSU 2.52 and Modified Boot image [SELinux: Enforcing]" and also check "EXPERIMENT: Root without modifying /system" v2.56, It's quite interesting.
 
Last edited:
Upvote 0
I am pretty sure its not GAPPS related, but SELinux related. The SELinux should be set to Enforcing inorder to successfully install SuperSU in Marshmallow/CM13. In other words the boot image has to be modified. I think we could try @vladimirs77 Rom boot image as it seems he has successfully modified the BOOT image.

Edit : I can confirm that I am totally sure now, here is the Information regarding it "How to Root Marshmallow with SuperSU 2.52 and Modified Boot image [SELinux: Enforcing]" and also check "EXPERIMENT: Root without modifying /system" v2.56, It's quite interesting.
and because it works with the 2.56 gapps I put a couple of comments above, anyway it does not solve the problem that in some reset tells you to insert the SD and everything will crash, relocated to another device erase sd and then the pc to go through and create sdfomater ext4 partition MiniTool to return to cm12.1
 
Upvote 0
and because it works with the 2.56 gapps I put a couple of comments above, anyway it does not solve the problem that in some reset tells you to insert the SD and everything will crash, relocated to another device erase sd and then the pc to go through and create sdfomater ext4 partition MiniTool to return to cm12.1
Did you try with @vladimirs77 LG L70 Boot image above and Benzo Gapps from CM13 Thread.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones