I'm using the following code to get the list of all external storage devices either SDCard or USB connected via OTG
List<String> paths = new ArrayList<String>();
File directory = new File("/storage");
File[] files = directory.listFiles();
It reads sdcard in all devices but the USB gets detected in some
What should i use?