Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amimo committed Aug 12, 2019
1 parent 1f4b0b5 commit deaffff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ cd tests/demo-c
如果一切顺利,"tests/demo-c/app/build/outputs/apk/debug/app-debug.apk"就是最终生成的apk,安装到手机并运行,看是否会崩溃.

## 使用dcc加固app
首先在app代码合适的位置,如Application的onCreate,添加加载so库代码,并重新生成apk
```
try {
System.loadLibrary("nc");
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
}
```

dcc使用简单的黑白名单机制过滤需要编译或禁止编译的函数.
修改filter.txt,使用正则表达式配置需要处理的函数.默认编译Activity.onCreate,和测试demo中的所有函数.
```
Expand Down

0 comments on commit deaffff

Please sign in to comment.