Skip to content

Commit

Permalink
Merge pull request #88 from kcheng-mvp/2.x
Browse files Browse the repository at this point in the history
add support ignore a class
  • Loading branch information
pxb1988 committed Jan 18, 2017
2 parents 23ded14 + 28db75f commit dd9d722
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dex-reader/src/main/java/com/googlecode/d2j/reader/DexFileReader.java 100644 → 100755
Expand Up @@ -592,6 +592,7 @@ public void accept(DexFileVisitor dv, int classIdx, int config) {
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 {
Expand All @@ -611,6 +612,10 @@ public void accept(DexFileVisitor dv, int classIdx, int config) {
}
}

public Boolean ignoreClass(String className){
return false;
}

private Object readEncodedValue(ByteBuffer in) {
int b = 0xFF & in.get();
int type = b & 0x1f;
Expand Down

0 comments on commit dd9d722

Please sign in to comment.