Package com.googlecode.d2j.dex
Class Dex2jar
java.lang.Object
com.googlecode.d2j.dex.Dex2jar
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncomputeFrames(boolean b) dontSanitizeNames(boolean b) voidvoiddoTranslate(Path dist) voiddoTranslate(Path dist, ByteArrayOutputStream baos) Translates a dex file to a class file and writes it to the specified destination path and stream.static Dex2jarfrom(byte[] in) static Dex2jarfrom(com.googlecode.d2j.reader.BaseDexFileReader reader) static Dex2jarstatic Dex2jarfrom(InputStream in) static Dex2jarstatic Dex2jarfrom(ByteBuffer in) com.googlecode.d2j.reader.BaseDexFileReadernoCode(boolean b) optimizeSynchronized(boolean b) printIR()printIR(boolean b) reUseReg()reUseReg(boolean b) voidsetExceptionHandler(DexExceptionHandler exceptionHandler) skipDebug(boolean b) skipExceptions(boolean b) voidtopoLogicalSort(boolean b) withExceptionHandler(DexExceptionHandler exceptionHandler)
-
Field Details
-
random
For rather deterministic output, we use a fixed seed for random number generator. This field is freely writable by any thread. Use carefully.
-
-
Method Details
-
doTranslate
-
doTranslate
-
doTranslate
Translates a dex file to a class file and writes it to the specified destination path and stream.- Parameters:
dist- The destination path where the translated class file should be written, ornullif unwanted.baos- An output stream used for intermediate data storage, ornullif unwanted.
-
getExceptionHandler
-
getReader
public com.googlecode.d2j.reader.BaseDexFileReader getReader() -
reUseReg
-
topoLogicalSort
-
noCode
-
optimizeSynchronized
-
printIR
-
reUseReg
-
optimizeSynchronized
-
printIR
-
topoLogicalSort
-
setExceptionHandler
-
skipDebug
-
skipDebug
-
to
- Throws:
IOException
-
withExceptionHandler
-
skipExceptions
-
dontSanitizeNames
-
computeFrames
-
setRandom
-
resetRandom
-
from
- Throws:
IOException
-
from
- Throws:
IOException
-
from
-
from
- Throws:
IOException
-
from
- Throws:
IOException
-
from
- Throws:
IOException
-