Giter Site home page Giter Site logo

baffle's Introduction

Android apk包res 资源混淆工具

功能描述: 对编译后的APK 进行资源名称混淆。混淆之后apk对比如下图: image

目前支持命令行操作: java -jar baffle.jar [-c/--config filepaths list ][-o/--output filepath] ApkFile TargetApkFile

-c/--config 可选项,支持keep和mapping配置文件。 -o/--output 可选项,支持混淆后mapping文件输出。

config文件格式见res目录,描述如下:


\#这个开头的行是注释。
\#key keep 段,比较关键。需要用名字取得资源需要keep,支持正则表达式。 key指的是R文件里的变量名。不是文件名,不包含后缀
----keep_key

notificationsound
newicon
\#下面这个是,java的正则表达式。
^mini.*

----keep_key

\#key 段的mapping
----map_key

activity_login,bx
imexaple,a
icon,b
activity_myinformation,ae
----map_key
\#大概就是这个样子,暂时不支持include之类的操作。和keep规则冲突以mapping为准

具体原理可以参见我的博客:Android apk文件资源混淆原理及实现

baffle's People

Contributors

joker535 avatar

Watchers

melbshark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.