Search in sources :

Example 1 with DexFile

use of jadx.core.utils.files.DexFile in project jadx by skylot.

the class RootNode method load.

public void load(List<InputFile> inputFiles) throws DecodeException {
    dexNodes = new ArrayList<DexNode>();
    for (InputFile input : inputFiles) {
        for (DexFile dexFile : input.getDexFiles()) {
            try {
                LOG.debug("Load: {}", dexFile);
                DexNode dexNode = new DexNode(this, dexFile);
                dexNodes.add(dexNode);
            } catch (Exception e) {
                throw new DecodeException("Error decode file: " + dexFile, e);
            }
        }
    }
    for (DexNode dexNode : dexNodes) {
        dexNode.loadClasses();
    }
    initInnerClasses();
}
Also used : DecodeException(jadx.core.utils.exceptions.DecodeException) DexFile(jadx.core.utils.files.DexFile) JadxException(jadx.core.utils.exceptions.JadxException) IOException(java.io.IOException) DecodeException(jadx.core.utils.exceptions.DecodeException) InputFile(jadx.core.utils.files.InputFile)

Aggregations

DecodeException (jadx.core.utils.exceptions.DecodeException)1 JadxException (jadx.core.utils.exceptions.JadxException)1 DexFile (jadx.core.utils.files.DexFile)1 InputFile (jadx.core.utils.files.InputFile)1 IOException (java.io.IOException)1