[Galaxy S 4 Mini Android Development] kamikaze702k:
ok so it is not as easy to partition for some folks, after vigorous hours of searching and reading i have found a solution for those who cant get adb devices up on cmd.exe

here is a detailed guide and the steps you need to follow to fix adb and partition your sdcard

1. you need to download sdk manager and atd bundles

sdk manager from here http://developer.android.com/index.html

atd bundles from the following locations:

windows 32: https://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip

windows 64: https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip

Mac 64: https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip

Linux 86: https://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip

Linux 64: https://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip

The zip file contains the following folders: eclipse & sdk.

download and extract your files in your computers "download folder" for me, my paths are

C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools

C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\tools

your paths will be different depending on your user name, mine is "K" the rest make sure is the same for the sake of this tutorial.

2. enable developer options on your device and android debugging, root access to apps and ADB, have debugging notification on,

connect your device to your computer via usb cable, you will see a marshmallow android notification on your status bar, click on the notification "touch for more options" now select "file transfers" make sure you can see your internal and external card on your computer.

3. open cmd.exe

when you prompt "adb devices if it fails then the following steps will fix this

4. Execute the following commands in the command prompt and run adb it will be recognized now.

1. set ANDROID_PLATFORM_TOOLS="C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools"

2. set ANDROID_TOOLS="C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\tools"

3. set path=%path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%

4. adb

it will give a long list of things after you type the last command "adb"

5. To Fix it permanently set in the environment variable on your computer,

Right Click My Computer --> Click Properties,

Click Advanced System Settings

Click Environment Variables

Click New

6. you will add 3 new Variables:

1. Variable name: ANDROID_PLATFORM_TOOLS

Variable Value: C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\platform-tools

2. Variable name: ANDROID_TOOLS

Variable Value: C:\Users\K\Downloads\adt-bundle-windows-x86_64\sdk\tools

3. Variable name: Path

Variable Value: %Path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%

adb should be working on command prompt and 'adb' is not recognized as an internal or external command,

operable program or batch file is resolved now.

7. now to partition your sd card enter the following commands:

1. adb devices

2. adb shell (press enter twice until you see your device name, mine was serranoltexx then you will see # symbol next to it)

3. adb shell sm list-disks adoptable (now cmd will give you our disk name, mine was 179_32) make sure you note your device name

4. adb shell sm list-disks adoptable disk:179_32 (now i am into my disk 'sdcard')

5. adb shell sm partition disk:179_32 mixed 75 ( now i am partitioning the sdcard)

6. adb shell pm set-install-location 2

7. pm set-install-location 2

DONE!!!