Samsung J5 : Use SD card as internal memory I'm actually trying to use my SD card as internal memory on my Samsung Galaxy J5 with 6.0.1 android version.
I saw some post on google and i follow this tutotial : 

http://www.phonandroid.com/galaxy-s7-s7-edge-fusionner-memoire-interne-carte-sd-sans-root.html (It's in french because i'm french)

but when i try to use sm partition in adb shell nothing is happening... and my internal memory still the same.
As you can see on the tutorial other people got the same bug on Samsung J5.

If someone have a solution or a way to solve it.
This is how I achieved this on a Samsung Galaxy J5 with Marshmallow 6.0.1.
It requires a computer running Windows vista/7/8/10:


Install the official Samsung drivers on your computer - some other driver variants can cause this process not to work: http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
Install Odin on your computer: https://odindownload.com/download/
Enable Developer Options on your phone.
In settings->Developer Options, turn on 'Oem Unlock' and 'USB Debugging'.
Download this zip package: https://download.chainfire.eu/1021/SuperSU/SR3-SuperSU-v2.79-SR3-20170114223742.zip -- and save it to a known location on your phone eg. downloads.
Install TWRP -- this particular one -- others do not work on Marshmallow: https://forum.xda-developers.com/galaxy-j5/development/recovery-samsung-galaxy-j500f-t3416960 
. Follow the instructions on the page to install, however be aware that for this to work, the First Time the phone resets after the flashing process, you must hold Vol Up + Home +  Power key to boot into TWRP. The timing on this is reasonably quick, so keep an eye and your hands on your phone during the flashing process. If you don't do it the first time, you will need to repeat this step, as on subsequent reboots you will not be able to get it to boot into TWRP if you didn't do it the first time.
Now download and install Root Essentials from Google Play Store. Run it, go to Adoptable Storage and follow the instructions. Root Essentials will ask you to download a specific zip package (do so). Then go through the process again, and follow the prompts to reboot into TWRP mode and install the package from the Install menu. Once you've done this, and the phone reboots (it will reboot loop several times, don't worry) it should boot up properly, and may go through an 'App optimizing' process. 
Once booted, you should go into settings->storage, and you should see that your overall storage has increased. Click on the SD card, click on the '...' button in the top left and click on 'Migrate Data'. This should move existing app data (that can be moved) and photos/music to the SD card, and change the default photo storage location to the SD card.
Lastly, go into settings->Apps->Application Manager. Some existing Apps can be moved entirely to the SD card eg. messenger. To do so, click on the app, then storage. If an option to move it is available for that App, the 'Change' button should be available. Click on it and follow the process.


Voila! Enjoy!

Do not mess with adb's, Link2SD's or anything else -- I have wasted too much time on those before I figured out a way that works!