Package org.jf.smali

Class Smali

java.lang.Object
org.jf.smali.Smali

public class Smali extends Object
  • Constructor Details

    • Smali

      public Smali()
  • Method Details

    • assemble

      public static boolean assemble(SmaliOptions options, String... input) throws IOException
      Assemble the specified files, using the given options
      Parameters:
      options - a SmaliOptions object with the options to run smali with
      input - The files/directories to process
      Returns:
      true if assembly completed with no errors, or false if errors were encountered
      Throws:
      IOException
    • assemble

      public static boolean assemble(SmaliOptions options, List<String> input) throws IOException
      Assemble the specified files, using the given options
      Parameters:
      options - a SmaliOptions object with the options to run smali with
      input - The files/directories to process
      Returns:
      true if assembly completed with no errors, or false if errors were encountered
      Throws:
      IOException
    • printTokens

      public static boolean printTokens(SmaliOptions options, List<String> input) throws IOException
      Prints the lexical tokens for the given files.
      Parameters:
      options - a SmaliOptions object with the options to use
      input - The files/directories to process
      Returns:
      true if assembly completed with no errors, or false if errors were encountered
      Throws:
      IOException
    • getSmaliFilesInDir

      private static void getSmaliFilesInDir(@Nonnull File dir, @Nonnull Set<File> smaliFiles)
    • assembleSmaliFile

      private static boolean assembleSmaliFile(File smaliFile, DexBuilder dexBuilder, SmaliOptions options) throws Exception
      Throws:
      Exception
    • printTokensForSingleFile

      private static boolean printTokensForSingleFile(File smaliFile, SmaliOptions options) throws Exception
      Throws:
      Exception