Merge pull request #88 from kcheng-mvp/2.x

add support ignore a class
This commit is contained in:
Bob Pan 2017-01-18 13:36:43 +08:00 committed by GitHub
commit dd9d7221e4

View File

@ -592,6 +592,7 @@ public class DexFileReader implements BaseDexFileReader {
int static_values_off = classDefIn.getInt();
String className = getType(class_idx);
if(ignoreClass(className)) return;
String superClassName = getType(superclass_idx);
String[] interfaceNames = getTypeList(interfaces_off);
try {
@ -611,6 +612,10 @@ public class DexFileReader implements BaseDexFileReader {
}
}
public Boolean ignoreClass(String className){
return false;
}
private Object readEncodedValue(ByteBuffer in) {
int b = 0xFF & in.get();
int type = b & 0x1f;