How do I find out which storage they are located on? (USB stick, external storage, internal storage)
How do I find out which type they are? (primary storage (I have direct r/w access), secondary storage (on android >=4.4, I don't have direct w access and I need to acquire this right through the Storage Access Framework if I need it))
How do I find out what the ROOT path is?
Results that I want
This is: internal storage, primary storage, root path is /storage/emulated/0/
This is: USB Stick, secondary storage, root path is /storage/UsbDriveA/
This is: external storage, secondary storage, root path is /sdcard/
I know the paths may vary from phone to phone, so how do I find out which path is located on which storage and which permissions I do have on which paths? I know I can guess by the names of the path, but I'm interested in a reliable way that works on all (or at least on most) phones...