public static void main(String[] args) throws IOException {
    DexIndexPrinter indexPrinter = new DexIndexPrinter(new File(args[0]));
    indexPrinter.printMap();
    indexPrinter.printStrings();
    indexPrinter.printTypeIds();
    indexPrinter.printProtoIds();
    indexPrinter.printFieldIds();
    indexPrinter.printMethodIds();
    indexPrinter.printTypeLists();
    indexPrinter.printClassDefs();
  }
Executable that prints all indices of a dex file.
android/android_framework/dex-maker/src/main/java/com/android/dx/io/DexIndexPrinter.java