コード例 #1
0
ファイル: Scene.java プロジェクト: droidsec-cn/EC700-Epoch-2
  public SootClass loadClass(String className, int desiredLevel) {
    /*
    if(Options.v().time())
        Main.v().resolveTimer.start();
    */

    setPhantomRefs(true);
    // SootResolver resolver = new SootResolver();
    SootResolver resolver = SootResolver.v();
    SootClass toReturn = resolver.resolveClass(className, desiredLevel);
    setPhantomRefs(false);

    return toReturn;

    /*
    if(Options.v().time())
        Main.v().resolveTimer.end(); */
  }
コード例 #2
0
ファイル: Scene.java プロジェクト: droidsec-cn/EC700-Epoch-2
  /**
   * Attempts to load the given class and all of the required support classes. Returns the original
   * class if it was loaded, or null otherwise.
   */
  public SootClass tryLoadClass(String className, int desiredLevel) {
    /*
    if(Options.v().time())
        Main.v().resolveTimer.start();
    */

    setPhantomRefs(true);
    // SootResolver resolver = new SootResolver();
    if (!getPhantomRefs() && SourceLocator.v().getClassSource(className) == null) {
      setPhantomRefs(false);
      return null;
    }
    SootResolver resolver = SootResolver.v();
    SootClass toReturn = resolver.resolveClass(className, desiredLevel);
    setPhantomRefs(false);

    return toReturn;

    /*
    if(Options.v().time())
        Main.v().resolveTimer.end(); */
  }