Package jadx.core.utils.exceptions

Examples of jadx.core.utils.exceptions.DecodeException


    for (InputFile dex : dexFiles) {
      DexNode dexNode;
      try {
        dexNode = new DexNode(this, dex);
      } catch (Exception e) {
        throw new DecodeException("Error decode file: " + dex, e);
      }
      dexNodes.add(dexNode);
    }
    for (DexNode dexNode : dexNodes) {
      dexNode.loadClasses();
    }

    List<ClassNode> classes = new ArrayList<ClassNode>();
    for (DexNode dexNode : dexNodes) {
      for (ClassNode cls : dexNode.getClasses()) {
        names.put(cls.getFullName(), cls);
      }
      classes.addAll(dexNode.getClasses());
    }

    try {
      initClassPath(classes);
    } catch (IOException e) {
      throw new DecodeException("Error loading classpath", e);
    }
    initInnerClasses(classes);
  }
View Full Code Here


        noCode = true;
        // load without code
        load();
        noCode = false;
      }
      throw new DecodeException(this, "Load method exception", e);
    }
  }
View Full Code Here

      values.put(name, parser.parseValue());
    }
    ArgType type = dex.getType(typeIndex);
    Annotation annotation = new Annotation(visibility, type, values);
    if (!type.isObject()) {
      throw new DecodeException("Incorrect type for annotation: " + annotation);
    }
    return annotation;
  }
View Full Code Here

            int addrInc = adjustedOpcode / DBG_LINE_RANGE;
            addr = addrChange(addr, addrInc, line);
            line += DBG_LINE_BASE + (adjustedOpcode % DBG_LINE_RANGE);
            setLine(addr, line);
          } else {
            throw new DecodeException("Unknown debug insn code: " + c);
          }
          break;
        }
      }
      c = section.readByte() & 0xFF;
View Full Code Here

        accFlagsValue = cls.getAccessFlags();
      }
      this.accessFlags = new AccessInfo(accFlagsValue, AFType.CLASS);

    } catch (Exception e) {
      throw new DecodeException("Error decode class: " + getFullName(), e);
    }
  }
View Full Code Here

        return values;

      case ENCODED_ANNOTATION:
        return AnnotationsParser.readAnnotation(dex, in, false);
    }
    throw new DecodeException("Unknown encoded value type: 0x" + Integer.toHexString(type));
  }
View Full Code Here

      try {
        while (in.hasMore()) {
          decoded[in.cursor()] = DecodedInstruction.decode(in);
        }
      } catch (EOFException e) {
        throw new DecodeException(method, "", e);
      }
      insnArr = decoded;
    }
View Full Code Here

    try {
      while (in.hasMore()) {
        decoded[in.cursor()] = DecodedInstruction.decode(in);
      }
    } catch (Exception e) {
      throw new DecodeException(method, "", e);
    }
    insnArr = decoded;
  }
View Full Code Here

        return insn(InsnType.MONITOR_EXIT,
            null,
            InsnArg.reg(insn, 0, ArgType.UNKNOWN_OBJECT));
    }

    throw new DecodeException("Unknown instruction: " + OpcodeInfo.getName(insn.getOpcode()));
  }
View Full Code Here

      if (dex != null) {
        return dex;
      }
      return loadFromJar(file);
    }
    throw new DecodeException("Unsupported input file format: " + file);
  }
View Full Code Here

TOP

Related Classes of jadx.core.utils.exceptions.DecodeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.