public List Getpaths(){
List<String> paths = new ArrayList<String>();
StorageManager storageManager =(StorageManager) getSystemService(Context.STORAGE_SERVICE);
try {
Class<?>[] paramClasses ={};
Method getVolumePathsMethod =StorageManager.class.getMethod("getVolumePaths", paramClasses);
getVolumePathsMethod.setAccessible(true);
Object[] params = {};
Object invoke =getVolumePathsMethod.invoke(storageManager, params);
for (int i = 0; i <((String[])invoke).length; i++) {
paths.add(((String[])invoke)[i]);
}
} catch (Exception e1) {
e1.printStackTrace();
}
return paths;
}