MCPcopy Index your code
hub / github.com/CodingGay/BlackObfuscator-ASPlugin

github.com/CodingGay/BlackObfuscator-ASPlugin @3.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.9 ↗ · + Follow
19 symbols 36 edges 6 files 5 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DexFile Control Flow Flattening · BlackObfuscator-ASPlugin

This project is an Android Studio plugin version of BlackObfuscator, it supports obfuscating code automatically. More information about this project are in BlackObfuscator.

Matters Need Attention

  • Please check the information of BlackObfuscator.
  • If you got errors in building, please provide the the ./gradlew tasks --all output for me.

Usage

Step 1. Configure your build.gradle (in top level directory)

repositories {
    ...
    maven { url 'https://jitpack.io' }
}
dependencies {
    ...
    classpath "com.github.CodingGay:BlackObfuscator-ASPlugin:3.7"
}

Step 2. Apply the plugin in your app module

...
apply plugin: 'com.android.application'
// Add
apply plugin: 'top.niunaijun.blackobfuscator'

or you can do it like this

plugins {
    id 'com.android.application'
    // Add
    id 'top.niunaijun.blackobfuscator'
}

Step 3. Add configuration in your build.gradle (Module: app)

android {
    ...

    defaultConfig {
       ...
    }
}

// Configuration
BlackObfuscator {
    // Enabled state
    enabled true
    // Obfuscation depth
    depth 2
    // The classes which need to be obfuscated
    obfClass = ["top.niunaijun", "com.abc"]
    // It will not obfuscate the classes that in blackClass
    blackClass = ["top.niunaijun.black"]
}

dependencies {
    ...
}

Step 4. Clean your project, it will obfuscate code automatically while you are building project

License

``` Copyright 2021 Milk

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```

Core symbols most depended-on inside this repo

get
called by 2
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java
handleDex
called by 2
plugin/src/main/java/top/niunaijun/blackobfuscator/core/ObfDex.java
arrayToList
called by 2
plugin/src/main/java/top/niunaijun/blackobfuscator/core/ObfDex.java
parser
called by 1
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java
getMapping
called by 1
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java
go
called by 1
app/src/main/java/top/niunaijun/blackobfuscator/asplugin/Abx.java
Mapping
called by 0
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java
obf
called by 0
plugin/src/main/java/top/niunaijun/blackobfuscator/core/ObfDex.java

Shape

Method 13
Class 6

Languages

Java100%

Modules by API surface

plugin/src/main/java/top/niunaijun/blackobfuscator/core/ObfDex.java6 symbols
plugin/src/main/java/top/niunaijun/blackobfuscator/core/Mapping.java5 symbols
app/src/test/java/top/niunaijun/blackobfuscator/asplugin/ExampleUnitTest.java2 symbols
app/src/main/java/top/niunaijun/blackobfuscator/asplugin/MainActivity.java2 symbols
app/src/main/java/top/niunaijun/blackobfuscator/asplugin/Abx.java2 symbols
app/src/androidTest/java/top/niunaijun/blackobfuscator/asplugin/ExampleInstrumentedTest.java2 symbols

For agents

$ claude mcp add BlackObfuscator-ASPlugin \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact