private List<String> listFiles(String location) {
        List<String> output = new ArrayList<>();
        output.add("error");
        try {
            output = selectedDevice.getFileSystem().list(location, true);
            if (debug)
                logger.log(Level.DEBUG, "ADB (ls) output: " + "\n" + output);
        } catch (IOException ex) {
            logger.log(Level.ERROR, "An error occurred while attempting to get the requested file from device " + selectedDevice.getSerial() + ": " + ex.toString() + "\n"
                    + "The error stack trace will be printed to the console...");
            ex.printStackTrace(System.err);
            return null;
        }
        
        return output;
    }