Class Dex2Pro


  • public class Dex2Pro
    extends java.lang.Object
    This utility class converts Dex2jar dex files to ProGuard class files.
    • Constructor Summary

      Constructors 
      Constructor Description
      Dex2Pro()
      Create a new (single-threaded) Dex2Pro object.
      Dex2Pro​(int maximumThreads)
      Create a new Dex2Pro object that will use up to maximumThreads threads for conversion.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void convertDex​(DexFileNode fileNode, ClassVisitor classVisitor)
      Converts the given Dex to classes and applies the given class visitor to them.
      void shutdown​(int timeoutSeconds)
      Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.
      Dex2Pro usePrimitiveArrayConstants​(boolean usePrimitiveArrayConstants)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Dex2Pro

        public Dex2Pro()
        Create a new (single-threaded) Dex2Pro object.
      • Dex2Pro

        public Dex2Pro​(int maximumThreads)
        Create a new Dex2Pro object that will use up to maximumThreads threads for conversion. If more than one thread is set, one must call shutdown() after adding all work, to allow time for the workers to shut down in an orderly fashion.
    • Method Detail

      • usePrimitiveArrayConstants

        public Dex2Pro usePrimitiveArrayConstants​(boolean usePrimitiveArrayConstants)
      • convertDex

        public void convertDex​(DexFileNode fileNode,
                               ClassVisitor classVisitor)
        Converts the given Dex to classes and applies the given class visitor to them.
      • shutdown

        public void shutdown​(int timeoutSeconds)
        Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.