yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] tmiland:
I re-did this guide all over again. Flashed stock rom, rooted it, installed apps2sd and activated the move apps​ to adoptable storage when installed.

Then installed and updated all the apps i need, and have finally cracked the code to have enough space left.

I also did a backup in twrp before and after i installed the apps, so i can easily go back if it fills up again in the future.

I used mixed 87 on a 64 GB SD card. :laugh:
[Sony Xperia M4 Aqua] Samids:
Did you experience any problem?

---------- Post added at 07:39 AM ---------- Previous post was at 07:31 AM ----------

Enable the force adoptable command first in adb shell.
[Sony Xperia M4 Aqua] tmiland:
Yeah, same problem as everyone else I guess, phone gets full, and impossible to update or install any apps...
[Sony Xperia M4 Aqua] Samids:
Try to migrate the data

Open your adopted storage in setting menu, tap the options (three dots).l
[Sony Xperia M4 Aqua] tmiland:
That's been done every time I have done this.

It's all okay now, that I did it the way I explained, finally.
[Sony Xperia M4 Aqua] Samids:
But, I can't install any apps that exceed the internal memory (ex. Cytus, apx 1GB in size). Any solution for this issue?
[Sony Xperia M4 Aqua] tmiland:
Have you tried using apps2sd?
[Sony Xperia M4 Aqua] Samids:
Nope. Did it works?
[Sony Xperia M4 Aqua] tmiland:
Yes, if you do it like i did. Apps2sd will move the apps to sd card when they are installed. I have 73 apps installed now, 2,67 GB used on SD card, and 1,21 GB free space on internal memory. :)

All apps have been updated too, which takes up much space over time.
[Sony Xperia M4 Aqua] Samids:
Even if they are downloaded from Google play store?
[Sony Xperia M4 Aqua] tmiland:
Yes. :)
[Sony Xperia M4 Aqua] Samids:
Which is the app? What is the name of the developer?
[Sony Xperia M4 Aqua] tmiland:
Here's a link to the app: https://play.google.com/store/apps/details?id=in.co.pricealert.apps2sd.pro

Root is required.
[Sony Xperia M4 Aqua] Samids:
Tried to root it. But stuck. Locked bootloader. And not allowed to unlock it via s1 flashtool.

But 1 question, can I root my e2303 via flashtool by flashing boot.img? I used MM build 33 update. Help me please.
[Sony Xperia M4 Aqua] tmiland:
What i did, was; Locked the bootloader in flashtool, restored the software in Xperia Companion, unlocked the bootloader in flashtool (0.9.23.1), now, boot and set up the phone, but skip any internet setups, so it doesn't start downloading or updating anything, then activate dev mode, usb debugging etc. Then flashed recovery (fastboot flash recovery recovery.img), then boot to twrp recovery, transfer supersu to the device and flash.

Now do the guide in the first post in this thread, and then migrate the data.

Then set up the apps2sd app, and tick the "Auto adopt apps" in apps2sd settings.

Next i did boot to twrp and made a backup, so i can easily restore to this state again if it fills up.

Now i did install all my apps and did all the customization i need, then did a second (full) backup, so i can go back to this state again in the future too. :)
[Sony Xperia M4 Aqua] Samids:
How to flash? adb or flashtool?

P.s fastboot didn't detect my device.

I unlocked the bootloader via flashtool, then relocked it again.
[Sony Xperia M4 Aqua] tmiland:
Via adb.

Well, now that it's locked, do a repair in companion, the see if you can unlock it again when it's done.
[Sony Xperia M4 Aqua] Samids:
Did the repairing format the phone?
[Sony Xperia M4 Aqua] tmiland:
Yes, back to stock. So back up everything you need first.
[Sony Xperia M4 Aqua] Samids:
Did it done anything to the adopted storage space?
[Sony Xperia M4 Aqua] tmiland:
Yes, it will go back to stock. :)
[Sony Xperia M4 Aqua] Samids:
Is there any other way to root the phone? Without installing twrp?
[Sony Xperia M4 Aqua] husam666:
You can try hotbooting twrp without flashing it using

fastboot boot /path/to/twrp.img

It might not work, but it should good luck.

You will also need one of those fast and expensive SD cards for apps2sd to work properly, a normal card will be slow and performance wont be that good
[Sony Xperia M4 Aqua] Samids:
So, af after the hotbooting, what should I do?
[Sony Xperia M4 Aqua] husam666:
Flash Super su zip so you get root like you'd normally do

---------- Post added at 03:32 PM ---------- Previous post was at 03:31 PM ----------

you will need unlocked bootloader
[Sony Xperia M4 Aqua] Samids:
Can app2sd run without root access?
[Sony Xperia M4 Aqua] tmiland:
"DISCLAIMER: Requires ROOT. Before using the app take a full backup. Apps2SD will not be responsible for any data loss or damage to your phone. Note: Don't link/move your SuperUser management app" :)
[Sony Xperia M4 Aqua] Samids:
Can I just unlock the bootloader via flashtool?
[Sony Xperia M4 Aqua] husam666:
You need the unlock code from sony, then you put it in flashtool, should work. iirc sony adds a "0x" to the unlock code so you have to get rid of it and I wasn't able to unlock using fastboot, but was able to using flashtool. be careful you need to enter the correct code
[Sony Xperia M4 Aqua] Linas81:
How do you partition a 64gb SD Card? :confused:
[Sony Xperia M4 Aqua] Paulkw:
Thank you for this guide. I have partitioned my sd card 50/50 and it's working fine. However, recently I noticed that the adoptive partition has changed its name in the settings to some random characters, like -^KYM-1^[M-QM-tB+QM-b. Very strange? I haven't noticed any problems at all, but when I re-partition with a different ratio, the name is ok (the card manufacturer). Re-partitioning 50/50 brings back that exact random name again. I tried renaming it in Windows (it's showing under Description of the volume) but it's not letting me. Is the sd card corrupted?
[Sony Xperia M4 Aqua] aligore:
I get to step 5, type adb shell, that appears to work. However sm list-disks comes up with an error sm not found
[Sony Xperia M4 Aqua] Paulkw:
Still insufficient space

Hi all, I've followed the instructions and split my 8G sdcard 50/50 but recently been getting insufficient storage error when installing apps. Attached screenshot of my config. What's the point of adoptive storage if it doesn't work? Anyone got a solution to this?
[Sony Xperia M4 Aqua] N1NJATH3ORY:
it works like a charm dont worry about the post below.. Thanks

Hey all i keep getting this screen in cmd anyone have a workaround ?

C:\Users\NINJA-THEORY\Downloads\platform-tools-latest-windows\platform-tools>adb

devices

List of devices attached

YT9115B0M3 device

C:\Users\NINJA-THEORY\Downloads\platform-tools-latest-windows\platform-tools>adb

devices

List of devices attached

YT9115B0M3 device

C:\Users\NINJA-THEORY\Downloads\platform-tools-latest-windows\platform-tools>adb

shell

shell@E2303:/ $ sm partition disk:179:160 private

usage: sm list-disks [adoptable]

sm list-volumes [public|private|emulated|all]

sm has-adoptable

sm get-primary-storage-uuid

sm set-force-adoptable [true|false]

sm partition DISK [public|private|mixed] [ratio]

sm mount VOLUME

sm unmount VOLUME

sm format VOLUME

sm benchmark VOLUME

sm forget [UUID|all]

Error: java.lang.IllegalArgumentException: command '17 volume partition disk:179

:160 private' failed with '500 17 Unknown disk'

1|shell@E2303:/ $
[Sony Xperia M4 Aqua] franello:
Hi guys, quick question: I properly activated adoptive storage on my samsung 16gb sd card with 50/50 setup. It's recognized by the system and it actually moved some apps on there, so that's fine. Found out that many apps were not moved on it and since I was getting "storage full" message I manually moved some apps using titanium backup. Thing is, everytime I restart the phone, sd card and adoptive storage seem like they are being renamed and app paths need time to reset. Basically I lose app preferences any time I turn on the phone, which is bad. Not to mention that apps that update from play store do move back to internal storage, regardless of what I earlier did. Anyone has any suggestions? Thanks!
[Sony Xperia M4 Aqua] 325i.:
When I get to this line: 5. Now type "adb shell" and then "sm list-disks" , the answer is "sm not found"

And what do I do now?
[Sony Xperia M4 Aqua] lnwj25:
adb shell is working but when I type 'sm list-disks', it says '/system/bin/sh: sm: not found'. Can anyone help me??
[Sony Xperia M4 Aqua] plrsmith:
Have you started the adb shell? Did it start without errors? If it didn't start (i.e. you don't get a shell prompt) you need to start usb debugging.
[Sony Xperia M4 Aqua] Premawansha:
How to set adb tools on pc?
[Sony Xperia M4 Aqua] ThemGo:
Can you pls give me hints which xml file to change and how to redirect folders to the sd card? Root access is already there...
[Sony Xperia M4 Aqua] emreDZ:
Will this be the only method for those who want to use their SD cards as adoptable storage or is there any chance to enable the original android feature for that (by editing the rom released today for example?)
[Sony Xperia M4 Aqua] enkoo1:
There's no other option except to wait for costum ROMs as you said.

---------- Post added at 07:23 PM ---------- Previous post was at 07:18 PM ----------

I heard from another poster that if you install apps from scratch(like from Google Play Store) they ALL will be installed in the adopted SD partion correct?
[Sony Xperia M4 Aqua] jonnyd100:
It would seem new apps downloaded are put onto the adoptive storage
[Sony Xperia M4 Aqua] vyrussu:
I partitioned mixed 50 and first it show available space - 8xxxxxxxxx b, but after i installed some apps now IT shows like în the photo bellow... I think it's ok now
[Sony Xperia M4 Aqua] blubbington:
Finally, i am not alone then. Ill keep an eye on that. However, I am doing a fresh install and follow the advice in post 1. Ill be reporting back whether that helped. :)
[Sony Xperia M4 Aqua] vyrussu:
Dont know if you guys find this, but you can move apps (at least installed by you) from Internal memory to adoptive one...
[Sony Xperia M4 Aqua] jonnyd100:
The only time I saw an error with sm not recognise was when I tried this before I had marshmallow
[Sony Xperia M4 Aqua] jonnyd100:
Yeah, people seem to be having problem with full adoptive since a lot of features cannot recognise the extra storage and want a SD card so 50/50 seems to be the best
[Sony Xperia M4 Aqua] jonnyd100:
I did not unlock my bootloader or root the phone so I am unsure why this isn't working for you
[Sony Xperia M4 Aqua] gezackt:
I'm also in Germany, I have an M4 Aqua, and I am having the SAME problem as you. I went through all the steps, but I still only have 8gb of storage, have the odd "-15045169152,00 B" and get a low storage warning after installing a few apps. HALP! :)
[Sony Xperia M4 Aqua] enkoo1:
Post a screenshot of the Storage menu in Settings.
[Sony Xperia M4 Aqua] vmd.hn:
I run the command "adb shell" but it replies error no devices/emulators found!

In the Device Manager I still see my M4 aqua!

Pls give some advices!
[Sony Xperia M4 Aqua] Synytrix:
For the ones who get this message followed by a corrupted SD

Error: java.lang.IllegalStateException: command '247 volume partition disk:197,64 mixed 50' failed with 'null'

I just let my phone repair the SD card and then i didnt touch my phone after I entered the partitioning command. Then it worked perfectly. Maybe this will work for you too.

E2303
[Sony Xperia M4 Aqua] 7564321:
Good suggestion works for me. But now I still can't install any apps on phone give me same error for enough space. Now what to do guys?
[Sony Xperia M4 Aqua] Synytrix:
Okay i just tried toinstall an app and it doesnt work for me too. Someone has a solution?

Edit: I tried to move an app (BlazBlue RR) from SD to Internal (thats how i named the internal partition of the sd card) and the phone instantly crashed and needed about 4 mins to reboot.. hmmm..
[Sony Xperia M4 Aqua] jonnyd100:
Have you made sure to enable USB Debugging on the phone?
[Sony Xperia M4 Aqua] jonnyd100:
Are you sure you have enabled USB Debugging on your phone?
[Sony Xperia M4 Aqua] Synytrix:
USB Debugging is on

I tried it now with MTP mode and with charging only mode, both work but installing new apps throws the error that theres not enough space.

Edit: Ok I just tried to install a marvel game wich says isntantly "not enough external space" then I tried to install Kingdom Hearts, in settings i can see on the internal partition of the sd card that about 105 MB are used now, when i try to launch the app it just crashes instantly... I will try out more apps.
[Sony Xperia M4 Aqua] vyrussu:
Move apps from internal memory to adopted memory to free space up.... Apps that you have previous installed should be allowed to be moved.
[Sony Xperia M4 Aqua] ThatGeekyGuy:
Hey guys this may or may not be related to adoptable storage but I have to ask, before you made your sd adoptable could you transfer apps to sd normally? I get not enough memory error... And i dont want to do this adoptable storage thing seems buggy to me... And im googling like crazy about this problem but im starting to think thats its normal for MM that if you dont have adoptable storage you cant move apps anywhere.. So sony basically gave us like half of marshmallow
[Sony Xperia M4 Aqua] Krabas:
Browsing internal storage through PC

Hi,

Did somebody tried to browse internal storage on PC after mounting SD as adoptable storage? Does it work for you?

I'm quoting my post from another threat:
[Sony Xperia M4 Aqua] kpbs92:
I've made a 50/50 partitions it works perfectly.. New apps awill be installed to the adoptive one.. It's awesome.
[Sony Xperia M4 Aqua] Synytrix:
Well i just tried some apps...

Kingdom Heart // Crashes without error

Burger King App // Works

Dash Quest // Works

TuneIn Radio // Works

easyTEACHER // Crashes with standard error (Sadly, easyTEACHER has crashed [I dont know if this is the right english translation i'm on a german system])

MeowChat // Works but can't load any pictures

Dragon Heroes // Works , it even downloads the additional data!

Need for Speed No Limits // Not enough space error.

I just figured out that all the apps that don't work are installed on the Internal Partition, while the apps that work perfectly are installed on the Internal memory and can't be moved. So there's something wrong with the partitioning or with my sd card which would be strange because it'S new. I just got it aprox a week ago..

I just try on and on again and again till it magically works. :)
[Sony Xperia M4 Aqua] Asan7:
One question : Can i store music,images etc. in adoptable storage ? or it can be used only for apps ?
[Sony Xperia M4 Aqua] Mephisto40:
I think the key here, is that you need to do the adoptive storage process on a clean install of the os. I'm seeing people posting on here saying the phone is throwing up errors, and then posting screenshots of their stock internal memory being almost full. You need enough free space on the device BEFORE you set up adoptable strage, and you shouldnt run into problems. I imagine a lot of the people having issues have updated their phone and keeping all their old files. If you want this to work correctly you need to do a fresh install and free up as much space by deleteing bloatware as you can before actually performing the adoptive storage trick.
[Sony Xperia M4 Aqua] Synytrix:
Would a factory reset do it too?
[Sony Xperia M4 Aqua] Mephisto40:
The best thing to do would be to plug it into a pc and do a software repair on xperia compainion
[Sony Xperia M4 Aqua] 7564321:
He mean clean installation to prevent any bugs, I'm going to try it now, because all of my apps was on SD card, my SD is formated no data of any apps, right!? But seems my phone memory is full without any data(picture, videos etc) or apps on in. Also i will re-format my SD card on PC first.
[Sony Xperia M4 Aqua] rasce:
How to reset my sd card and make it normal like before ?
[Sony Xperia M4 Aqua] 7564321:
Be careful to not wipe your desktop HDD

http://www.pcworld.com/article/248980/how-to-partition-and-format-your-hard-drive-in-windows.html

You will delete your SD partitions, and will say for your SD card (unlocated space) now right button New Simple Volume and set up your SD.
[Sony Xperia M4 Aqua] bigmini0:
message d'erreur

who can help me please, I have this error message every time

C:\Users\eric\Downloads\fastboot>adb shell

shell@E2303:/ $ sm list-disks

disk:179,64

shell@E2303:/ $ sm partition disk:179,64 private

Error: java.lang.IllegalStateException: command '107 volume partition disk:179,64 private' failed with 'null'

1|shell@E2303:/ $
[Sony Xperia M4 Aqua] 7564321:
Clean installation of Android 6, format your SD, be sure you are developer and USB debugging is on. And now is working fine for all apps.
[Sony Xperia M4 Aqua] Krabas:
Hi, use

sm partition disk:179,64 mixed 90

instead, where 90 means 90% of your SD card volume will be used for adoptable storage.

I was getting same error after trying to use whole SD card as adoptable storage.

So, write this in terminal/command window:

sm partition disk:179,64 public

to format as external SD card

sm partition disk:179,64 mixed 90

to have 90% of SD card volume for adoptable storage
[Sony Xperia M4 Aqua] rasce:
Thanks ! So, in this guide we are "changing" sd card , not phone ?
[Sony Xperia M4 Aqua] Asan7:
Guys, its all right when apps are not showed on adoptable storage ? :) its stuck on 0,94GB used
[Sony Xperia M4 Aqua] JohnTheFarm3r:
Same on my phone. But apps work great. I installed even a few bigger games, they run just fine, so i guess everything is working perfectly. :) It does not show me properly the free space, but i don't really care as long as everything is working fine. :)
[Sony Xperia M4 Aqua] diyar95:
I did it but i Don't understand i can only move apps which i was able to move them even before adopted storage why i can't move other app?
[Sony Xperia M4 Aqua] enkoo1:
Downloaded apps should automatically install on the sd card.
[Sony Xperia M4 Aqua] Asan7:
i have 50:50 partitioning .. why i cant access other 50% of portable memory from PC ? :)

EDIT: OK after disable usb debugging everything seems to works fine. :)
[Sony Xperia M4 Aqua] jonnyd100:
I'm not sure but I think adoptive storage allows you to move the whole app to external storage instead of only part like with standard sd card transfer but I'm also not 100% sure. But I think I have seen a few apps to adoptive storage that can't be moved to standard SD. I think also developers need to allow apps to be put on the adoptive partition but again I'm not sure
[Sony Xperia M4 Aqua] bence.frenyo:
What can one expect to fall apart with adoptive storage enabled in case a OTA would arrive?

Cheers
[Sony Xperia M4 Aqua] Krabas:
At least after factory reset adoptable storage was gone, so probably it would be best to move all apps back to internal storage and external SD card (if possable, e. g. Pokemon Go) before updating
[Sony Xperia M4 Aqua] Jarom83:
Thanks for tuto.

I can't put pictures :crying:

No problems at this moment with storage.
[Sony Xperia M4 Aqua] nigxxx:
got it
[Sony Xperia M4 Aqua] Synytrix:
Well even after reinstalling marshmallow completely clean some apps wont work with adoptable storage so it's useless for me atm. Will follow this thread maybe someone posts a solution that will work fine for me..
[Sony Xperia M4 Aqua] Trampeltierr:
Hey Guys!

Does the phone automatically restart after running the command "sm partition disk:179.64 mixed 50"? Or how do I know that it worked? Right now it shows me that I used -1449144320,00 B out of 8GB... Or do i have to force a restart?
[Sony Xperia M4 Aqua] Krabas:
I think I figured this out: if adopted storage is less than 8GB, it will be shown correct number of used memory (because firmware, I guess, can understand 16GB internal storage because of 16GB M4 version).

So, you should write 30 or 10 instead 50 (it depends on your memory card capacity).

Mine phone didn't restart also after that command.
[Sony Xperia M4 Aqua] Manuelk97:
thanks it works! it has weird numbers but it works!
[Sony Xperia M4 Aqua] Asan7:
Guys i need help with this.. before i have russian fw but LTE dont work. Now iam on BAL fw and this problem appears. (sorry for bad english)
[Sony Xperia M4 Aqua] Asan7:
Now after install some apps on adoptable its showing another "strange" numbers...
[Sony Xperia M4 Aqua] mhrajib:
Maintaining the adoptive partition

Well, how do I explore the adoptive partition?? File manager seems to have no access over it :( ...how do I even manage files in there?? I downloaded two apps from play store but they went to the main internal storage, why is that?? :confused:
[Sony Xperia M4 Aqua] Asan7:
You cant read adoptive partition. Only you phone can ... Stock apps are stored in internal but when you download fresh new app (facebook,messenger etc. ) This all apps will be stored in adopted partition :)
[Sony Xperia M4 Aqua] mhrajib:
So, I don't have any access?? :/

will the apps still go in there if I install from apk??
[Sony Xperia M4 Aqua] SUPERUSER:
According to here: http://android.stackexchange.com/qu...-internal-storage-feature-work-in-android-6-0

You should be able to mount the card/partition as any luks volume via the terminal if you extract the key from /data/misc/vold/
[Sony Xperia M4 Aqua] porroni:
You can, i was stuck in there too, but it's very simple.

To get access on the adoptive partition, you have to migrate data to it. Go into storage settings, open the adoptive one, click on the settings menu in te upper right and choose "Migrate data" or something, I don't know if that's the right translation. After that, file managers and PC won't see anymore the internal memory, but the adoptive one. I'd raccomand to insert this passage in the guide too. If you want to see again the internal memory, or you want to remove definitively the adoptive one, you just have to do "migrate data" on internal memory.
[Sony Xperia M4 Aqua] mhrajib:
Thanks.

So this is how we can choose between which partition to make visible?? And after making the adopted one visible, I can control everything inside there?
[Sony Xperia M4 Aqua] porroni:
This is how we can choose the main one, that's all. All the data (multimedia, app data) is transferred from the internal storage to the adoptive one, and it becomes the main one. After making the adopted storage the main one, you can control everything inside just like you did with the internal one.
[Sony Xperia M4 Aqua] enkoo1:
Even System apps? I wouldn't want Google on the SD card.
[Sony Xperia M4 Aqua] porroni:
No, system apps and user apps that can't be transferred into the adoptive storage will keep their data into the internal one.
[Sony Xperia M4 Aqua] gezackt:
I get the exact same error message as you do, I even have a Sandisk card XD
[Sony Xperia M4 Aqua] depressed_:
For people who have xposed, try this module that allows u to have adoptive storage without boring tutorial

http://repo.xposed.info/module/org.androplus.systemuimod

Go down on the page:

"* Added option to enable adoptable storage on Android 6.0 Marshmallow"
[Sony Xperia M4 Aqua] diyar95:
I did it but what about this number ?
[Sony Xperia M4 Aqua] xernes:
I have problem with this option.

I have done everything like in tutorial on thr first page. My card is 32gb class 10.

It seems like it is is mounted, but overall I have 8 GB of memory to use for apps.

When I try to install apps I get info about lack of memory to use.

Could you help me, please?
[Sony Xperia M4 Aqua] David langton:
K
[Sony Xperia M4 Aqua] diyar95:
What we are doing its not adorable storage you can move only apps that was movable even before marshmallow, am

If anyone could move Google sheets app so it's adoptable storage
[Sony Xperia M4 Aqua] jonnyd100:
I would say this is slightly different from just transferring apps. I;m not sure but I think for this it allows the whole app to the sd not just part. Also i've seen problems with adding more than 8GB of adoptive storage since it seems to just think its just a 16GB xperia so seems to work well. I tried to use a 32GB card and apps didn't automatically move over and didn't seem to really work. I'll update the original post now
[Sony Xperia M4 Aqua] jonnyd100:
The thing is I feel this is a problem just for the M4 aqua cause I had no problem doing this on my dads phone and apps like android pay which can't be moved to SD were able to move over onto adoptive