[Sony Xperia M4 Aqua] lukas1838:
Hey Guys,

in this Tutorial I will show you how to activate the Adoptable Storage function on the M4 Aqua with the help of the Xposed Framework.

Attention: Me or not anyone else is responsible if you proceed with this. We do not take any responsibility for any bricked phones, dead sd cards, void warranties or anything else.

At first let's talk about what we need:

- Android 6.0.1 (I used the Customized FR version. (Build R5C))

- Xposed Framework Installer: Download

- Xposed SDK23 ZIP File (I used v86): Download

- (Minimal) ADB: Download

- Unlocked Bootloader, ROOT and TWRP

So let's go:

1. Unlock your Bootloader and install TWRP like described here. (It may works also like described here without unlock your Bootloader but I didn`t test this.)

2. Install Root like described here.

3. Install the Xposed Framework Installer.

4. Boot into your TWRP. (Press PowerButton + Vol- Button to start your Phone into TWRP)

5. Connect your Phone with USB on your PC. (Make sure you've got all Drivers installed. You will find them in the Flashtool install location.)

6. Move the Downloaded Xposed ZIP to the install location of your (Minimal) ADB

7. Open an Shell were you've installed your (Minimal) ADB

8. Type the following:

adb devices

If your Phone is now listed you can continue

adb shell

Now you should see a command line like this: ~#

Then Type:

mount -w /dev/block/platform/soc.0/7824900.sdhci/by-name/system /system
mount -w /dev/block/platform/soc.0/7824900.sdhci/by-name/userdata /data
mount -w /dev/block/platform/soc.0/7824900.sdhci/by-name/cache /cache

If you become an response that your Resource is busy don't wory. This means it's already mounted.

Now type this:

twrp sideload

adb sideload xposed-v*-sdk23-arm64.zip

For the * use the version number of your Downloaded Xposed ZIP.

If this is complete type:

adb reboot

Now it may takes up to 10-20 Minutes until your Phone is booted the first time with Xposed.

After Boot open your Xposed Installer App and go to "Framework". It should look like this, if it is successfully installed:

[IMG="Xposed Framework"]http://i.imglol.de/Screenshot_20160729-174248n7cwk9.png[/IMG]

9. Download the SystemUI Patcher for Lollipop+

10. Acitvate it in Xposed App (don't wonder if in the screenshot is another Module... you don't need this):

Open the Xposed Installer App --> Go to "Modules" --> Tick the Checkbox

[IMG="SystemUI Patcher Activation"]http://i.imglol.de/Patcher-activateobn0q3.png[/IMG]

11. Open the SystemUI Patcher App, scroll down, select "Enable adoptable storage" and restart your phone:

[IMG="Enable Adoptable Storage"]http://i.imglol.de/adopt-enableepfi7c.png[/IMG]

11. Insert your SD-Card and select "use it as internal storage". (I can't make a Screenshot of this by myself because I've done this before making this Tutorial):

[IMG="Set SD-Card as Internal Storage"]http://beebom.redkapmedia.netdna-cdn.com/wp-content/uploads/2016/01/Android-6.0-Marshmallow-Adoptable-Storage.jpg[/IMG]

12. Congratulations you've got successfully enabled adoptable storage on your M4 Aqua.

I tested it with the E2303. But it should work with any Version. :)

Special thanks to [MENTION=7108922]depressed_[/MENTION] for the tipp with the SystemUI Patcher in this post.

And to [MENTION=6907849]alby_var[/MENTION] for the Tutorial how to install Xposed on Android 5, because I used this for orientation.

Known Issues: (Everything I or anybody else found)

- Stock Camera App didn't work for me after doing this! .-. It says "Memory unavailable" (I use now the App CameraMX ... This works fine!)

- On your storage settings will be shown some wired Numbers. (See Screenshot(s))