use of org.ow2.asmdex.ApplicationVisitor in project android-classyshark by google.
the class ApkDashboard method fillAnalysisPerClassesDexIndex.
public static ClassesDexDataEntry fillAnalysisPerClassesDexIndex(int dexIndex, File classesDex) {
ClassesDexDataEntry dexData = new ClassesDexDataEntry(dexIndex);
try {
InputStream is = new FileInputStream(classesDex);
ApplicationVisitor av = new ApkNativeMethodsVisitor(dexData);
ApplicationReader ar = new ApplicationReader(Opcodes.ASM4, is);
ar.accept(av, 0);
} catch (Exception e) {
e.printStackTrace();
}
try {
DexFile dxFile = DexlibLoader.loadDexFile(classesDex);
DexBackedDexFile dataPack = (DexBackedDexFile) dxFile;
dexData.allMethods = dataPack.getMethodCount();
//dexData.syntheticAccessors =
// new SyntheticAccessorsInspector(dxFile).getSyntheticAccessors();
} catch (Exception e) {
e.printStackTrace();
System.out.println("here " + e);
}
return dexData;
}
use of org.ow2.asmdex.ApplicationVisitor in project android-classyshark by google.
the class DexMethodsDumper method fillAnalysis.
private static List<String> fillAnalysis(int dexIndex, File file) throws IOException {
ArrayList result = new ArrayList();
InputStream is = new FileInputStream(file);
ApplicationVisitor av = new ApkInspectVisitor(result);
ApplicationReader ar = new ApplicationReader(Opcodes.ASM4, is);
ar.accept(av, 0);
return result;
}
Aggregations