Class ClassPathResolver

java.lang.Object
org.jf.dexlib2.analysis.ClassPathResolver

public class ClassPathResolver extends Object
  • Field Details

  • Constructor Details

    • ClassPathResolver

      public ClassPathResolver(@Nonnull List<String> bootClassPathDirs, @Nullable List<String> bootClassPathEntries, @Nonnull List<String> extraClassPathEntries, @Nonnull MultiDexContainer.DexEntry<?> dexEntry) throws IOException
      Constructs a new ClassPathResolver using a specified list of bootclasspath entries
      Parameters:
      bootClassPathDirs - A list of directories to search for boot classpath entries. Can be empty if all boot classpath entries are specified as local paths
      bootClassPathEntries - A list of boot classpath entries to load. These can either be local paths, or device paths (e.g. "/system/framework/framework.jar"). The entry will be interpreted first as a local path. If not found as a local path, it will be interpreted as a partial or absolute device path, and will be searched for in bootClassPathDirs
      extraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be local paths. Device paths are not supported.
      dexEntry - The dex entry containing the dex file that the classpath will be used to analyze
      Throws:
      IOException - If any IOException occurs
      ClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason If null, a default bootclasspath is used, depending on the the file type of dexFile and the api level. If empty, no boot classpath entries will be loaded
    • ClassPathResolver

      public ClassPathResolver(@Nonnull List<String> bootClassPathDirs, @Nonnull List<String> extraClassPathEntries, @Nonnull MultiDexContainer.DexEntry<?> dexEntry) throws IOException
      Constructs a new ClassPathResolver using a default list of bootclasspath entries
      Parameters:
      bootClassPathDirs - A list of directories to search for boot classpath entries
      extraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be local paths. Device paths are not supported.
      dexEntry - The dex entry containing the dex file that the classpath will be used to analyze
      Throws:
      IOException - If any IOException occurs
      ClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason If null, a default bootclasspath is used, depending on the the file type of dexFile and the api level. If empty, no boot classpath entries will be loaded
  • Method Details