Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heruoxin/robfuscate
Obfuscate the int index of R.id/R.string/R.layout… in the classes.dex of Android project
https://github.com/heruoxin/robfuscate
android gradle-plugin
Last synced: 2 months ago
JSON representation
Obfuscate the int index of R.id/R.string/R.layout… in the classes.dex of Android project
- Host: GitHub
- URL: https://github.com/heruoxin/robfuscate
- Owner: heruoxin
- Created: 2019-03-25T07:27:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-18T15:58:15.000Z (over 5 years ago)
- Last Synced: 2024-11-01T00:51:33.937Z (3 months ago)
- Topics: android, gradle-plugin
- Language: Groovy
- Homepage:
- Size: 419 KB
- Stars: 61
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Robfuscate
Obfuscate the int index of R.id/R.string/R.layout… in the classes.dex of Android project.
混淆 Android 项目中 R.id/R.string/R.layout… 等在代码中的 int 索引,可以略微提升破解难度。
#### Before
![img](screenshots/before.png)
### After
![img](screenshots/after.png)
### Limitation
It only works for R in the sub modules. For app level module, R.id will be replaced to static int value before Robfuscate so it will not work.
## Usage
1. Add the following into your project level `build.gradle`:
```groovy
repositories {
//...
maven { url "https://jitpack.io" }
}
dependencies {
//...
classpath 'com.github.heruoxin:Robfuscate:master'
}
```2. Modify your app level `build.gradle`:
```groovy
apply plugin: 'com.android.application'
// NOTICE: Robfuscate must be added AFTER android plugin.
apply plugin: 'com.catchingnow.robfuscate'
```Done.
## Acknowledgement