-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...it/apkprotect/obfus/MappingProcessor.java → .../apkprotect/deobfus/MappingProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...medit/apkprotect/obfus/MappingReader.java → ...dit/apkprotect/deobfus/MappingReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/com/nmmedit/apkprotect/obfus/Pair.java → .../com/nmmedit/apkprotect/deobfus/Pair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
nmm-protect/apkprotect/src/main/java/com/nmmedit/apkprotect/dex2c/filters/KeepConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../apkprotect/src/main/java/com/nmmedit/apkprotect/dex2c/filters/ProguardMappingConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...rotect/apkprotect/src/main/java/com/nmmedit/apkprotect/dex2c/filters/RegexKeepConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.nmmedit.apkprotect.dex2c.filters; | ||
|
||
import org.jf.dexlib2.iface.ClassDef; | ||
import org.jf.dexlib2.iface.Method; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* class * extends android.app.Activity | ||
* class * implements java.io.Serializable | ||
*/ | ||
public class RegexKeepConfig implements ClassAndMethodFilter { | ||
private ClassAndMethodFilter filter; | ||
|
||
public RegexKeepConfig(ClassAndMethodFilter filter, File ruleFile) { | ||
this.filter = filter; | ||
} | ||
|
||
@Override | ||
public boolean acceptClass(ClassDef classDef) { | ||
if (filter != null && !filter.acceptClass(classDef)) { | ||
return false; | ||
} | ||
//todo | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean acceptMethod(Method method) { | ||
if (filter != null && !filter.acceptMethod(method)) { | ||
return false; | ||
} | ||
//todo | ||
return false; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...t/apkprotect/obfus/MappingReaderTest.java → ...apkprotect/deobfus/MappingReaderTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters