question: 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 ; }
target:  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.