RandomAccessFile openInputFile(String fileName) throws IOException {
  RandomAccessFile raf;
  raf=openInputFileAsZip(fileName);
  if (raf == null) {
    File inputFile=new File(fileName);
    raf=new RandomAccessFile(inputFile,"r");
  }
  return raf;
}

RandomAccessFile openInputFile ( String fileName ) throws IOException { RandomAccessFile raf ; raf = openInputFileAsZip ( fileName ) ; if ( raf == null ) { File inputFile = new File ( fileName ) ; raf = new RandomAccessFile ( inputFile , "r" ) ; } return raf ; }
opens an input file , which could be a . dex or a . jar / . apk with a classes . dex inside . if the latter , we extract the contents to a temporary file .
