├── .gitignore
├── README.md
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── cn
│ │ └── mtjsoft
│ │ └── www
│ │ └── autotransformplugin
│ │ └── ExampleInstrumentedTest.kt
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── cn
│ │ │ └── mtjsoft
│ │ │ └── www
│ │ │ └── autotransformplugin
│ │ │ ├── APP.java
│ │ │ ├── KTDataBean.kt
│ │ │ ├── KTDataBean2.kt
│ │ │ ├── Main22Activity.kt
│ │ │ ├── MainActivity.kt
│ │ │ ├── TestFragment.java
│ │ │ ├── TestName.java
│ │ │ └── keep
│ │ │ ├── KTDataKeep.kt
│ │ │ ├── TestKeepJava.java
│ │ │ └── TestKeepKT.kt
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ ├── ax.xml
│ │ └── ic_launcher_background.xml
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── values-night
│ │ └── themes.xml
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── themes.xml
│ └── test
│ └── java
│ └── cn
│ └── mtjsoft
│ └── www
│ └── autotransformplugin
│ └── ExampleUnitTest.kt
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── plugin
├── .gitignore
├── build.gradle
├── consumer-rules.pro
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── cn
│ │ └── mtjsoft
│ │ └── www
│ │ └── plugin
│ │ └── ExampleInstrumentedTest.kt
│ ├── main
│ ├── AndroidManifest.xml
│ ├── groovy
│ │ └── cn
│ │ │ └── mtjsoft
│ │ │ └── www
│ │ │ └── plugin
│ │ │ ├── BuryPointPlugin.groovy
│ │ │ ├── Inject.java
│ │ │ ├── MappingPrinter.java
│ │ │ ├── MethodHookConfig.groovy
│ │ │ ├── MethodHookInjectImpl.groovy
│ │ │ ├── MethodHookTransform.groovy
│ │ │ ├── MethodHookVisitor.java
│ │ │ └── utils
│ │ │ └── RandomFieldAndMethodUtils.java
│ └── resources
│ │ └── META-INF
│ │ └── gradle-plugins
│ │ └── mtjsoft.auto.burypoint.plugin.properties
│ └── test
│ └── java
│ └── cn
│ └── mtjsoft
│ └── www
│ └── plugin
│ └── ExampleUnitTest.kt
├── repo
└── cn
│ └── mtjsoft
│ └── www
│ └── burypoint.plugin
│ ├── 1.0.17
│ ├── burypoint.plugin-1.0.17.jar
│ ├── burypoint.plugin-1.0.17.jar.md5
│ ├── burypoint.plugin-1.0.17.jar.sha1
│ ├── burypoint.plugin-1.0.17.pom
│ ├── burypoint.plugin-1.0.17.pom.md5
│ └── burypoint.plugin-1.0.17.pom.sha1
│ ├── maven-metadata.xml
│ ├── maven-metadata.xml.md5
│ └── maven-metadata.xml.sha1
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # AutoTransformPlugin
2 | ASM字节码插桩插件,向代码中插入垃圾代码,用于马甲包代码混淆
3 |
4 | ## 引用发布的库
5 |
6 | project build.gradle引入Maven地址
7 |
8 | ```
9 | buildscript {
10 | repositories {
11 | maven {
12 | url 'https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/master/repo'
13 | }
14 | }
15 | dependencies {
16 | // 导入插件
17 | classpath "cn.mtjsoft.www:burypoint.plugin:1.0.17"
18 | }
19 | }
20 |
21 | allprojects {
22 | repositories {
23 | // // 仓库地址
24 | maven {
25 | url 'https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/master/repo'
26 | }
27 | }
28 | }
29 | ```
30 |
31 | ## 在module build.gradle 中启用
32 | ```
33 | apply plugin: 'mtjsoft.auto.burypoint.plugin'
34 | methodhook {
35 | // 是否启用字节码插入
36 | enable = true
37 | // 项目中的class true:全部插桩
38 | all = true
39 | // 在满足以下类名正则的类中插入垃圾代码
40 | classRegexs = [
41 | "cn/mtjsoft/www/autotransformplugin/keep.*?Java",
42 | "cn/mtjsoft/www/autotransformplugin.*?Activity"
43 | ]
44 | // 排除jar包操作
45 | jarRegexs = []
46 | // 每个类中随机插入的变量、方法数量
47 | randomCount = 10
48 | }
49 | ```
50 | ## 特别注意:
51 |
52 | - 如果代码开启了混淆,一定要在 proguard-rules.pro 中添加:
53 | ```
54 | #关闭代码压缩,防止插入的垃圾代码被认为是无用的代码给删除了。马甲包可配置不压缩,正式包可以掉此配置
55 | -dontshrink
56 | ```
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android'
3 | apply plugin: 'mtjsoft.auto.burypoint.plugin'
4 | methodhook {
5 | enable = true
6 | all = true
7 | classRegexs = [
8 | "cn/mtjsoft/www/autotransformplugin/keep.*?Java",
9 | "cn/mtjsoft/www/autotransformplugin.*?Activity"
10 | ]
11 | }
12 | android {
13 | compileSdkVersion 30
14 |
15 | defaultConfig {
16 | applicationId "cn.mtjsoft.www.autotransformplugin"
17 | minSdkVersion 21
18 | targetSdkVersion 30
19 | versionCode 1
20 | versionName "1.0"
21 |
22 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
23 | multiDexEnabled true
24 | }
25 |
26 | buildTypes {
27 | debug {
28 | minifyEnabled true
29 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
30 | }
31 | release {
32 | minifyEnabled true
33 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
34 | }
35 | }
36 | compileOptions {
37 | sourceCompatibility JavaVersion.VERSION_1_8
38 | targetCompatibility JavaVersion.VERSION_1_8
39 | }
40 | kotlinOptions {
41 | jvmTarget = '1.8'
42 | }
43 | }
44 |
45 | dependencies {
46 |
47 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
48 | implementation 'androidx.core:core-ktx:1.3.1'
49 | implementation 'androidx.appcompat:appcompat:1.2.0'
50 | implementation 'com.google.android.material:material:1.2.1'
51 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
52 | testImplementation 'junit:junit:4.+'
53 | androidTestImplementation 'androidx.test.ext:junit:1.1.2'
54 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
55 | implementation "androidx.multidex:multidex:2.0.1"
56 | }
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 | #关闭压缩,防止插入的垃圾代码被删除。正式版本混淆时可去除
23 | -dontshrink
24 | #优化 不优化输入的类文件
25 | -dontoptimize
26 |
27 | #预校验
28 | -dontpreverify
29 |
30 | #混淆时是否记录日志
31 | -verbose
32 |
33 | -keep class cn.mtjsoft.www.autotransformplugin.keep.**{*;}
--------------------------------------------------------------------------------
/app/src/androidTest/java/cn/mtjsoft/www/autotransformplugin/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("cn.mtjsoft.www.autotransformplugin", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/APP.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 |
6 | import androidx.multidex.MultiDex;
7 |
8 | public class APP extends Application {
9 |
10 | private String test1 = "";
11 |
12 | @Override
13 | protected void attachBaseContext(Context base) {
14 | super.attachBaseContext(base);
15 | MultiDex.install(base);
16 | }
17 |
18 | @Override
19 | public void onCreate() {
20 | super.onCreate();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/KTDataBean.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | data class KTDataBean(
4 | val name: String
5 | )
6 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/KTDataBean2.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | data class KTDataBean2(
4 | val name: String,
5 | var age: Int
6 | )
7 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/Main22Activity.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | import androidx.appcompat.app.AppCompatActivity
4 | import android.os.Bundle
5 |
6 | class Main22Activity : AppCompatActivity() {
7 | override fun onCreate(savedInstanceState: Bundle?) {
8 | super.onCreate(savedInstanceState)
9 | setContentView(R.layout.activity_main)
10 | val fragment = TestFragment()
11 | }
12 | }
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | import android.content.Intent
4 | import androidx.appcompat.app.AppCompatActivity
5 | import android.os.Bundle
6 | import android.widget.TextView
7 |
8 | class MainActivity : AppCompatActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | setContentView(R.layout.activity_main)
12 | val testName = TestName()
13 | testName.age = 18
14 | KTDataBean("111")
15 | KTDataBean2("222", 22)
16 | findViewById(R.id.tv_text).setOnClickListener {
17 | startActivity(Intent(this, Main22Activity::class.java))
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/TestFragment.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin;
2 |
3 | import android.os.Bundle;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 |
8 | import androidx.annotation.NonNull;
9 | import androidx.annotation.Nullable;
10 | import androidx.fragment.app.Fragment;
11 |
12 | public class TestFragment extends Fragment {
13 | @Override
14 | public void onCreate(@Nullable Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | }
17 |
18 | @Nullable
19 | @Override
20 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
21 | return super.onCreateView(inflater, container, savedInstanceState);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/TestName.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin;
2 |
3 | public class TestName {
4 | private String name;
5 | private int age;
6 | private int sex;
7 |
8 | public String getName() {
9 | return name;
10 | }
11 |
12 | public void setName(String name) {
13 | this.name = name;
14 | }
15 |
16 | public int getAge() {
17 | return age;
18 | }
19 |
20 | public void setAge(int age) {
21 | this.age = age;
22 | }
23 |
24 | public int getSex() {
25 | return sex;
26 | }
27 |
28 | public void setSex(int sex) {
29 | this.sex = sex;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/keep/KTDataKeep.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin.keep
2 |
3 | data class KTDataKeep(
4 | val name:String,
5 | var age:Int
6 | )
7 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/keep/TestKeepJava.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin.keep;
2 |
3 | public class TestKeepJava {
4 | private String name;
5 | }
6 |
--------------------------------------------------------------------------------
/app/src/main/java/cn/mtjsoft/www/autotransformplugin/keep/TestKeepKT.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin.keep
2 |
3 | class TestKeepKT {
4 | val name: String = "123"
5 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ax.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
18 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | AutoTransformPlugin
3 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/test/java/cn/mtjsoft/www/autotransformplugin/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.autotransformplugin
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | ext.kotlin_version = "1.5.0"
4 | repositories {
5 | google()
6 | mavenCentral()
7 | maven {
8 | url './repo'
9 | }
10 | }
11 | dependencies {
12 | classpath "com.android.tools.build:gradle:4.0.1"
13 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14 | classpath "cn.mtjsoft.www:burypoint.plugin:1.0.17"
15 | // NOTE: Do not place your application dependencies here; they belong
16 | // in the individual module build.gradle files
17 | }
18 | }
19 |
20 | allprojects {
21 | repositories {
22 | google()
23 | mavenCentral()
24 | maven {
25 | url './repo'
26 | }
27 | }
28 | tasks.withType(Javadoc) {
29 | options.addStringOption('Xdoclint:none', '-quiet')
30 | options.addStringOption('encoding', 'UTF-8')
31 | }
32 | }
33 |
34 | task clean(type: Delete) {
35 | delete rootProject.buildDir
36 | }
37 |
38 | tasks.withType(JavaCompile) {
39 | options.encoding = "UTF-8"
40 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app"s APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Kotlin code style for this project: "official" or "obsolete":
19 | kotlin.code.style=official
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Aug 27 23:33:27 CST 2021
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/plugin/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/plugin/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'groovy'
2 | apply plugin: 'maven'
3 |
4 | dependencies {
5 | implementation gradleApi()
6 | implementation localGroovy()
7 |
8 | // implementation 'org.ow2.asm:asm:7.1'
9 | // implementation 'org.ow2.asm:asm-commons:7.1'
10 | // implementation 'org.ow2.asm:asm-analysis:7.1'
11 | // implementation 'org.ow2.asm:asm-util:7.0'
12 | // implementation 'org.ow2.asm:asm-tree:7.1'
13 | // compileOnly 'com.android.tools.build:gradle:4.2.1', { //这里注意需要保持版本一致,否则会报错
14 | // exclude group:'org.ow2.asm'
15 | // }
16 | implementation 'com.android.tools.build:gradle:4.0.1'
17 | }
18 | repositories {
19 | mavenCentral()
20 | maven {
21 | url '../repo'
22 | }
23 | }
24 |
25 |
26 | def maven_version = "1.0.17"
27 | def maven_groupId = 'cn.mtjsoft.www'
28 | def maven_artifactId = "burypoint.plugin"
29 |
30 | //下面的version和group必须有,gradle打包的pom文件依赖这个版本号和group
31 | version = maven_version
32 | group = maven_groupId
33 |
34 | uploadArchives {
35 | repositories {
36 | mavenDeployer {
37 |
38 | repository(url: uri('../repo'))
39 |
40 | pom.project {
41 | name maven_artifactId
42 | groupId maven_groupId
43 | artifactId maven_artifactId
44 | version maven_version
45 | // packaging 'aar'
46 | }
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/plugin/consumer-rules.pro:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/plugin/consumer-rules.pro
--------------------------------------------------------------------------------
/plugin/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/plugin/src/androidTest/java/cn/mtjsoft/www/plugin/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 | import androidx.test.platform.app.InstrumentationRegistry
4 | import androidx.test.ext.junit.runners.AndroidJUnit4
5 |
6 | import org.junit.Test
7 | import org.junit.runner.RunWith
8 |
9 | import org.junit.Assert.*
10 |
11 | /**
12 | * Instrumented test, which will execute on an Android device.
13 | *
14 | * See [testing documentation](http://d.android.com/tools/testing).
15 | */
16 | @RunWith(AndroidJUnit4::class)
17 | class ExampleInstrumentedTest {
18 | @Test
19 | fun useAppContext() {
20 | // Context of the app under test.
21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22 | assertEquals("cn.mtjsoft.www.plugin.test", appContext.packageName)
23 | }
24 | }
--------------------------------------------------------------------------------
/plugin/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/BuryPointPlugin.groovy:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 | import com.android.build.gradle.AppExtension
4 | import org.gradle.api.Plugin
5 | import org.gradle.api.Project
6 |
7 | class BuryPointPlugin implements Plugin {
8 |
9 | static final String mappingSavePath = "/outputs/mapping/methodHook_mapping.txt"
10 |
11 | @Override
12 | void apply(Project project) {
13 |
14 | project.getTasks().getByName("preBuild").doFirst {
15 | deleteMMaping(project)
16 | }
17 |
18 | project.extensions.create("methodhook", MethodHookConfig)
19 |
20 | def android = project.extensions.android
21 | boolean islib = true
22 | if (android instanceof AppExtension) {
23 | islib = false
24 | }
25 |
26 | android.registerTransform(new MethodHookTransform(project, islib))
27 | }
28 |
29 | static void deleteMMaping(Project project) {
30 | createMappingPrinter(project).delete()
31 | }
32 |
33 |
34 | static MappingPrinter createMappingPrinter(Project project){
35 | return new MappingPrinter(new File(project.getBuildDir(), mappingSavePath))
36 | }
37 | }
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/Inject.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin;
2 |
3 | import java.io.File;
4 |
5 | public interface Inject {
6 | boolean isInject(File file);
7 |
8 | byte[] injectClass(byte[] file);
9 |
10 | File injectJar(File file, File tempDir);
11 | }
12 |
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/MappingPrinter.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin;
2 |
3 |
4 | import java.io.BufferedWriter;
5 | import java.io.File;
6 | import java.io.FileOutputStream;
7 | import java.io.IOException;
8 | import java.io.OutputStreamWriter;
9 |
10 | public final class MappingPrinter {
11 |
12 | private final File mMappingFile;
13 | private BufferedWriter writer;
14 |
15 | /* package */
16 | public MappingPrinter(File mappingFile) {
17 | this.mMappingFile = mappingFile;
18 |
19 | if (!mappingFile.getParentFile().exists()) {
20 | mappingFile.getParentFile().mkdirs();
21 | try {
22 | mappingFile.createNewFile();
23 | } catch (IOException e) {
24 | e.printStackTrace();
25 | }
26 | }
27 | }
28 |
29 | public void delete() {
30 | if (mMappingFile.exists()) {
31 | mMappingFile.delete();
32 | }
33 | }
34 |
35 | public void log(String log) {
36 | try {
37 | if (writer == null) {
38 | FileOutputStream outputStream = new FileOutputStream(mMappingFile, true);
39 | OutputStreamWriter outputStream1 = new OutputStreamWriter(outputStream);
40 | writer = new BufferedWriter(outputStream1);
41 | }
42 | writer.write(log);
43 | writer.flush();
44 | writer.newLine();
45 | close();
46 | } catch (Throwable e) {
47 | e.printStackTrace();
48 | }
49 | }
50 |
51 | public void close() {
52 | try {
53 | writer.flush();
54 | } catch (IOException e) {
55 | e.printStackTrace();
56 | }
57 | try {
58 | writer.close();
59 | } catch (IOException e) {
60 | e.printStackTrace();
61 | }
62 | writer = null;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/MethodHookConfig.groovy:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 | import org.json.JSONObject
4 |
5 | class MethodHookConfig {
6 | //是否启用
7 | boolean enable = true
8 | //是否将所有的方法都统计,否则只统计注解和正则设置的
9 | boolean all = false
10 | //是否打印日志
11 | boolean log = true
12 | //是否保存mapping
13 | boolean mapping = true
14 | //jar包 名称 正则表达式,不设置默认不插桩jar包
15 | List jarRegexs = []
16 | //类名称 正则表达式,class全名
17 | List classRegexs = []
18 | //方法名称 正则表达式
19 | List methodRegexs = []
20 | //是否用插桩后的jar包替换项目中的jar包
21 | boolean replaceJar = false
22 | String impl = ""
23 | int randomCount = 1
24 |
25 | @Override
26 | String toString() {
27 | return toJson().toString()
28 | }
29 |
30 | JSONObject toJson() {
31 | JSONObject jsonObject = new JSONObject()
32 | try {
33 | jsonObject.put("enable", enable)
34 | jsonObject.put("all", all)
35 | jsonObject.put("log", log)
36 | jsonObject.put("mapping", mapping)
37 | jsonObject.put("jarRegexs", jarRegexs)
38 | jsonObject.put("classRegexs", classRegexs)
39 | jsonObject.put("methodRegexs", methodRegexs)
40 | jsonObject.put("replaceJar", replaceJar)
41 | jsonObject.put("impl", impl)
42 | jsonObject.put("randomCount", randomCount)
43 | } catch (Throwable e) {
44 | //JSONException
45 | }
46 | return jsonObject
47 | }
48 |
49 | }
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/MethodHookInjectImpl.groovy:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 |
4 | import org.apache.commons.codec.digest.DigestUtils
5 | import org.apache.commons.io.IOUtils
6 | import org.gradle.api.Project
7 | import org.objectweb.asm.*
8 |
9 | import java.util.jar.JarEntry
10 | import java.util.jar.JarFile
11 | import java.util.jar.JarOutputStream
12 | import java.util.zip.ZipEntry
13 |
14 | import static org.objectweb.asm.ClassReader.EXPAND_FRAMES
15 |
16 | class MethodHookInjectImpl implements Inject {
17 |
18 | MethodHookConfig config
19 |
20 | Project project
21 |
22 | MethodHookInjectImpl(Project project) {
23 | this.project = project
24 | }
25 |
26 | void setConfig(MethodHookConfig config) {
27 | this.config = config
28 | }
29 |
30 | @Override
31 | boolean isInject(File classFile) {
32 | return isInjectImpl(classFile.name)
33 | }
34 |
35 | private static boolean isInjectImpl(String name) {
36 | // if (name.endsWith(".class") && !name.startsWith("R\$") &&
37 | // "R.class" != name && "BuildConfig.class" != name) {
38 | // return true
39 | // }
40 | // return false
41 | // 过滤出想插入垃圾代码的类
42 | boolean isInject = name.endsWith(".class") &&
43 | !("R.class" == name || "BuildConfig.class"== name || "BR.class" == name || "AutoAnnotation.class" == name || "App.class" == name) && !name.startsWith("R\$")
44 | // &&
45 | // !(name.startsWith("R\$") || name.startsWith("DataBind") || name.startsWith("ARouter") || name.contains("Provider") || name.contains("Binding"))
46 | // &&
47 | // (name.contains("Activity") || name.contains("Fragment") || name.contains("Adapter"))
48 | // boolean isInject = name.endsWith(".class") && (name.contains("Activity") || name.contains("Fragment"))
49 | return isInject
50 | }
51 |
52 | @Override
53 | byte[] injectClass(byte[] clazzBytes) {
54 |
55 | ClassReader cr = new ClassReader(clazzBytes)
56 | ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS)
57 | ClassVisitor cv = new MethodHookVisitor(cw, config, project)
58 |
59 | cr.accept(cv, EXPAND_FRAMES)
60 |
61 | byte[] code = cw.toByteArray()
62 |
63 | return code
64 |
65 | }
66 |
67 | @Override
68 | File injectJar(File jarFile, File tempDir) {
69 | /**
70 | * 读取原jar
71 | */
72 | def file = new JarFile(jarFile)
73 | /** 设置输出到的jar */
74 | def hexName = DigestUtils.md5Hex(jarFile.absolutePath).substring(0, 8)
75 | def outputJar = new File(tempDir, hexName + jarFile.name)
76 | JarOutputStream jarOutputStream = new JarOutputStream(new FileOutputStream(outputJar))
77 | Enumeration enumeration = file.entries()
78 | while (enumeration.hasMoreElements()) {
79 | JarEntry jarEntry = (JarEntry) enumeration.nextElement()
80 | InputStream inputStream = file.getInputStream(jarEntry)
81 |
82 | String entryName = jarEntry.getName()
83 |
84 | ZipEntry zipEntry = new ZipEntry(entryName)
85 |
86 | jarOutputStream.putNextEntry(zipEntry)
87 |
88 | byte[] modifiedClassBytes = null
89 | byte[] sourceClassBytes = IOUtils.toByteArray(inputStream)
90 | if (isInjectImpl(entryName)) {
91 | modifiedClassBytes = injectClass(sourceClassBytes)
92 | }
93 | if (modifiedClassBytes == null) {
94 | jarOutputStream.write(sourceClassBytes)
95 | } else {
96 | jarOutputStream.write(modifiedClassBytes)
97 | }
98 | jarOutputStream.closeEntry()
99 | }
100 | jarOutputStream.close()
101 | file.close()
102 | return outputJar
103 | }
104 |
105 | File injectSelfJar(File jarFile, File tempDir) {
106 | /**
107 | * 读取原jar
108 | */
109 | def file = new JarFile(jarFile)
110 | /** 设置输出到的jar */
111 | def hexName = DigestUtils.md5Hex(jarFile.absolutePath).substring(0, 8)
112 | def outputJar = new File(tempDir, hexName + jarFile.name)
113 | JarOutputStream jarOutputStream = new JarOutputStream(new FileOutputStream(outputJar))
114 | Enumeration enumeration = file.entries()
115 | while (enumeration.hasMoreElements()) {
116 | JarEntry jarEntry = (JarEntry) enumeration.nextElement()
117 | InputStream inputStream = file.getInputStream(jarEntry)
118 |
119 | String entryName = jarEntry.getName()
120 |
121 | ZipEntry zipEntry = new ZipEntry(entryName)
122 |
123 | jarOutputStream.putNextEntry(zipEntry)
124 |
125 | byte[] modifiedClassBytes = null
126 | byte[] sourceClassBytes = IOUtils.toByteArray(inputStream)
127 |
128 | if (entryName.equals("com/miqt/pluginlib/tools/MethodHookHandler.class")) {
129 | modifiedClassBytes = dump(config.impl)
130 | }
131 | if (modifiedClassBytes == null) {
132 | jarOutputStream.write(sourceClassBytes)
133 | } else {
134 | jarOutputStream.write(modifiedClassBytes)
135 | }
136 | jarOutputStream.closeEntry()
137 | }
138 | jarOutputStream.close()
139 | file.close()
140 | return outputJar
141 | }
142 |
143 | /**
144 | * dump MethodHookHandler
145 | * @param impl
146 | * @return
147 | * @throws Exception
148 | */
149 | static byte[] dump(String impl) throws Exception {
150 | impl = impl.replace(".", "/")
151 | ClassWriter cw = new ClassWriter(0)
152 | FieldVisitor fv
153 | MethodVisitor mv
154 |
155 | cw.visit(Opcodes.V1_7, Opcodes.ACC_PUBLIC + Opcodes.ACC_SUPER, "com/miqt/pluginlib/tools/MethodHookHandler", null, "java/lang/Object", null)
156 |
157 |
158 | fv = cw.visitField(Opcodes.ACC_PRIVATE + Opcodes.ACC_FINAL + Opcodes.ACC_STATIC, "M_PRINT", "Lcom/miqt/pluginlib/tools/IMethodHookHandler;", null, null)
159 | fv.visitEnd()
160 |
161 | mv = cw.visitMethod(Opcodes.ACC_PUBLIC, "", "()V", null, null)
162 | mv.visitCode()
163 | mv.visitVarInsn(Opcodes.ALOAD, 0)
164 | mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/Object", "", "()V", false)
165 | mv.visitInsn(Opcodes.RETURN)
166 | mv.visitMaxs(1, 1)
167 | mv.visitEnd()
168 |
169 | mv = cw.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC + Opcodes.ACC_VARARGS, "enter", "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", null, null)
170 | mv.visitCode()
171 | mv.visitFieldInsn(Opcodes.GETSTATIC, "com/miqt/pluginlib/tools/MethodHookHandler", "M_PRINT", "Lcom/miqt/pluginlib/tools/IMethodHookHandler;")
172 | mv.visitVarInsn(Opcodes.ALOAD, 0)
173 | mv.visitVarInsn(Opcodes.ALOAD, 1)
174 | mv.visitVarInsn(Opcodes.ALOAD, 2)
175 | mv.visitVarInsn(Opcodes.ALOAD, 3)
176 | mv.visitVarInsn(Opcodes.ALOAD, 4)
177 | mv.visitVarInsn(Opcodes.ALOAD, 5)
178 | mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, "com/miqt/pluginlib/tools/IMethodHookHandler", "onMethodEnter", "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", true)
179 | mv.visitInsn(Opcodes.RETURN)
180 | mv.visitMaxs(7, 6)
181 | mv.visitEnd()
182 |
183 | mv = cw.visitMethod(Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC + Opcodes.ACC_VARARGS, "exit", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", null, null)
184 | mv.visitCode()
185 | mv.visitFieldInsn(Opcodes.GETSTATIC, "com/miqt/pluginlib/tools/MethodHookHandler", "M_PRINT", "Lcom/miqt/pluginlib/tools/IMethodHookHandler;")
186 | mv.visitVarInsn(Opcodes.ALOAD, 0)
187 | mv.visitVarInsn(Opcodes.ALOAD, 1)
188 | mv.visitVarInsn(Opcodes.ALOAD, 2)
189 | mv.visitVarInsn(Opcodes.ALOAD, 3)
190 | mv.visitVarInsn(Opcodes.ALOAD, 4)
191 | mv.visitVarInsn(Opcodes.ALOAD, 5)
192 | mv.visitVarInsn(Opcodes.ALOAD, 6)
193 | mv.visitMethodInsn(Opcodes.INVOKEINTERFACE, "com/miqt/pluginlib/tools/IMethodHookHandler", "onMethodReturn", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V", true)
194 | mv.visitInsn(Opcodes.RETURN)
195 | mv.visitMaxs(8, 7)
196 | mv.visitEnd()
197 |
198 | mv = cw.visitMethod(Opcodes.ACC_STATIC, "", "()V", null, null)
199 | mv.visitCode()
200 | mv.visitTypeInsn(Opcodes.NEW, impl)
201 | mv.visitInsn(Opcodes.DUP)
202 | mv.visitMethodInsn(Opcodes.INVOKESPECIAL, impl, "", "()V", false)
203 | mv.visitFieldInsn(Opcodes.PUTSTATIC, "com/miqt/pluginlib/tools/MethodHookHandler", "M_PRINT", "Lcom/miqt/pluginlib/tools/IMethodHookHandler;")
204 | mv.visitInsn(Opcodes.RETURN)
205 | mv.visitMaxs(2, 0)
206 | mv.visitEnd()
207 |
208 | cw.visitEnd()
209 |
210 | return cw.toByteArray()
211 | }
212 | }
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/MethodHookTransform.groovy:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 |
4 | import com.android.build.api.transform.*
5 | import com.android.build.gradle.internal.pipeline.TransformManager
6 | import com.google.common.collect.Sets
7 | import org.apache.commons.codec.digest.DigestUtils
8 | import org.apache.commons.io.FileUtils
9 | import org.gradle.api.Project
10 |
11 | import java.text.SimpleDateFormat
12 | import java.util.regex.Pattern
13 |
14 | class MethodHookTransform extends Transform {
15 | Project project
16 | boolean islib
17 | MethodHookConfig mtc
18 |
19 | MethodHookTransform(Project project, boolean islib) {
20 | this.project = project
21 | this.islib = islib
22 | }
23 |
24 | @Override
25 | String getName() {
26 | return "MethodHook"
27 | }
28 |
29 | @Override
30 | Set getInputTypes() {
31 | return TransformManager.CONTENT_CLASS
32 | }
33 |
34 | @Override
35 | Set getScopes() {
36 | if (islib) {
37 | Sets.immutableEnumSet(
38 | QualifiedContent.Scope.PROJECT,
39 | )
40 | } else {
41 | TransformManager.SCOPE_FULL_PROJECT
42 | }
43 | }
44 |
45 | @Override
46 | boolean isIncremental() {
47 | return false
48 | }
49 |
50 | @Override
51 | void transform(Context context, Collection inputs,
52 | Collection referencedInputs, TransformOutputProvider outputProvider,
53 | boolean isIncremental) throws IOException, TransformException, InterruptedException {
54 | println '┌------------------------┐'
55 | println '| Method Hook |'
56 | println '└------------------------┘'
57 | mtc = project.methodhook
58 | println("[Config]:" + mtc.toString())
59 | if (!mtc.enable) {
60 | return
61 | }
62 | SimpleDateFormat mSimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.CHINESE)
63 | println("startTime: " + mSimpleDateFormat.format(new Date()))
64 | MethodHookInjectImpl impl = new MethodHookInjectImpl(project)
65 | impl.setConfig(mtc)
66 |
67 | inputs.each { TransformInput input ->
68 | eachClass(input, impl, outputProvider)
69 | eachJar(context, input, impl, outputProvider)
70 | }
71 | println("endTime: " + mSimpleDateFormat.format(new Date()))
72 | println '┌------------------------┐'
73 | println '| Method Hook √ |'
74 | println '└------------------------┘'
75 | }
76 |
77 | private List eachJar(Context context, TransformInput input, MethodHookInjectImpl impl, outputProvider) {
78 | input.jarInputs.each { JarInput jarInput ->
79 | def jarName = jarInput.name
80 |
81 | def md5Name = DigestUtils.md5Hex(jarInput.file.getAbsolutePath())
82 | def file = jarInput.file
83 |
84 | if (impl.config.impl != null && "" != impl.config.impl && jarName.contains(":pluginlib")) {
85 | file = impl.injectSelfJar(jarInput.file, context.getTemporaryDir())
86 | } else {
87 | mtc.jarRegexs.each { def regexStr ->
88 | def isM = Pattern.matches(regexStr, jarName)
89 | if (isM) {
90 | if (mtc.log) {
91 | println("[jar][regex]:$regexStr $jarName is injected.")
92 | }
93 | file = impl.injectJar(jarInput.file, context.getTemporaryDir())
94 | if (mtc.replaceJar && file != null) {
95 | jarInput.file.delete()
96 | FileUtils.copyFile(file, jarInput.file)
97 | }
98 | } else if (mtc.log) {
99 | println("[jar][regex]:$regexStr $jarName not mc.")
100 | }
101 | }
102 | }
103 |
104 | if (jarName.endsWith(".jar")) {
105 | jarName = jarName.substring(0, jarName.length() - 4)
106 | }
107 | def dest = outputProvider.getContentLocation(jarName + md5Name,
108 | jarInput.contentTypes, jarInput.scopes, Format.JAR)
109 |
110 | FileUtils.copyFile(file, dest)
111 | }
112 | }
113 |
114 | private List eachClass(TransformInput input, MethodHookInjectImpl impl, outputProvider) {
115 | input.directoryInputs.each { DirectoryInput directoryInput ->
116 |
117 | if (directoryInput.file.isDirectory()) {
118 | directoryInput.file.eachFileRecurse { File file ->
119 |
120 | if (impl.isInject(file)) {
121 |
122 | byte[] code = impl.injectClass(file.bytes)
123 |
124 | FileOutputStream fos = new FileOutputStream(
125 | file.parentFile.absolutePath + File.separator + file.name)
126 | fos.write(code)
127 | fos.close()
128 |
129 | // println "[class]" + file.name + ' is injected.'
130 | }
131 | }
132 | } else {
133 | println "[directory]" + directoryInput.file.name + ' not inject.'
134 | }
135 |
136 |
137 | def dest = outputProvider.getContentLocation(directoryInput.name,
138 | directoryInput.contentTypes, directoryInput.scopes,
139 | Format.DIRECTORY)
140 | FileUtils.copyDirectory(directoryInput.file, dest)
141 | }
142 | }
143 | }
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/MethodHookVisitor.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin;
2 |
3 | import org.gradle.api.Project;
4 | import org.objectweb.asm.*;
5 |
6 | import java.util.regex.Pattern;
7 |
8 | import cn.mtjsoft.www.plugin.utils.RandomFieldAndMethodUtils;
9 |
10 | public class MethodHookVisitor extends ClassVisitor {
11 |
12 | private String className = null;
13 |
14 | private MethodHookConfig config;
15 | private Project project;
16 |
17 | private MappingPrinter mappingPrinter;
18 | private boolean isIgnoreMethodHook = true;
19 |
20 | MethodHookVisitor(ClassVisitor classVisitor, MethodHookConfig config, Project project) {
21 | super(Opcodes.ASM5, classVisitor);
22 | this.config = config;
23 | this.project = project;
24 | if (config.isMapping()) {
25 | mappingPrinter = BuryPointPlugin.createMappingPrinter(project);
26 | }
27 | }
28 |
29 | @Override
30 | public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
31 | super.visit(version, access, name, signature, superName, interfaces);
32 | className = name;
33 | if (config.getClassRegexs() == null || config.getClassRegexs().isEmpty()) {
34 | isIgnoreMethodHook = true;
35 | } else {
36 | for (String methodRegex : config.getClassRegexs()) {
37 | // 有一个正则命中,就不忽略
38 | boolean isM = Pattern.matches(methodRegex, name);
39 | if (isM) {
40 | isIgnoreMethodHook = false;
41 | }
42 | }
43 | }
44 | // isIgnoreMethodHook = !(className.equals("com/daofeng/peiwan/wxapi/QQEntryActivity") || className.equals("com/daofeng/peiwan/mvp/accusation/ui/AccusationHomePbjyActivity"));
45 | if (config.isMapping() && !isIgnoreMethodHook) {
46 | mappingPrinter.log("[CLASSNAME]" + className);
47 | }
48 | }
49 |
50 | @Override
51 | public AnnotationVisitor visitAnnotation(String descriptor, boolean visible) {
52 | return super.visitAnnotation(descriptor, visible);
53 | }
54 |
55 | @Override
56 | public void visitEnd() {
57 | if (!isIgnoreMethodHook) {
58 | new RandomFieldAndMethodUtils(cv, className, config).randomFieldAndMethod();
59 | }
60 | super.visitEnd();
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/plugin/src/main/groovy/cn/mtjsoft/www/plugin/utils/RandomFieldAndMethodUtils.java:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin.utils;
2 |
3 | import org.objectweb.asm.ClassVisitor;
4 | import org.objectweb.asm.ClassWriter;
5 | import org.objectweb.asm.FieldVisitor;
6 | import org.objectweb.asm.MethodVisitor;
7 | import org.objectweb.asm.Opcodes;
8 |
9 | import java.util.Random;
10 | import java.util.UUID;
11 |
12 | import cn.mtjsoft.www.plugin.MethodHookConfig;
13 | import kotlin.Pair;
14 |
15 | public class RandomFieldAndMethodUtils {
16 |
17 | private ClassVisitor cv;
18 | private String className;
19 | private MethodHookConfig config;
20 |
21 | private final Random random = new Random();
22 |
23 | private final byte[] bytes = new byte[]{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12};
24 |
25 | private int maxRandomNum = 1;
26 |
27 | public RandomFieldAndMethodUtils(ClassVisitor classVisitor, String className, MethodHookConfig config) {
28 | this.cv = classVisitor;
29 | this.className = className;
30 | this.config = config;
31 | }
32 |
33 | public void randomFieldAndMethod() {
34 | if (config.getRandomCount() > 0) {
35 | maxRandomNum = config.getRandomCount();
36 | }
37 | for (int i = 0; i < maxRandomNum; i++) {
38 | Pair pair = randomPair();
39 | addFieldAndMethod(i, randomName(), pair.getFirst(), pair.getSecond());
40 | }
41 | }
42 |
43 | private void addFieldAndMethod(int number, String fieldName, String fieldType, Object value) {
44 | FieldVisitor fv = cv.visitField(Opcodes.ACC_PRIVATE + Opcodes.ACC_FINAL, fieldName + number, fieldType, null, null);
45 | fv.visitEnd();
46 | // public get
47 | MethodVisitor mv = cv.visitMethod(Opcodes.ACC_PUBLIC, "get" + fieldName + number, "()" + fieldType, null, null);
48 | mv.visitCode();
49 | mv.visitVarInsn(Opcodes.ALOAD, 0);
50 | mv.visitFieldInsn(Opcodes.GETFIELD, className, fieldName + number, fieldType);
51 | mv.visitInsn(Opcodes.IRETURN);
52 | mv.visitMaxs(1, 1);
53 | mv.visitEnd();
54 | // mv = cv.visitMethod(Opcodes.ACC_PUBLIC, fieldName + "_" + number, "()V", null, null);
55 | // mv.visitEnd();
56 | }
57 |
58 | private Pair randomPair() {
59 | Pair pair;
60 | int index = random.nextInt(7);
61 | switch (index) {
62 | case 0:
63 | pair = new Pair<>("Ljava/lang/Object;", randomName());
64 | break;
65 | case 1:
66 | pair = new Pair<>("Ljava/lang/Boolean;", random.nextBoolean());
67 | break;
68 | case 2:
69 | pair = new Pair<>("Ljava/lang/Byte;", bytes[random.nextInt(bytes.length)]);
70 | break;
71 | case 3:
72 | pair = new Pair<>("Ljava/lang/Long;", random.nextLong());
73 | break;
74 | case 4:
75 | pair = new Pair<>("Ljava/lang/Float;", random.nextFloat());
76 | break;
77 | case 5:
78 | pair = new Pair<>("Ljava/lang/Double;", random.nextDouble());
79 | break;
80 | default:
81 | pair = new Pair<>("Ljava/lang/String;", randomName());
82 | break;
83 | }
84 | return pair;
85 | }
86 |
87 | private String randomName() {
88 | return "df_" + UUID.randomUUID().toString().replace("-", "_").trim();
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/plugin/src/main/resources/META-INF/gradle-plugins/mtjsoft.auto.burypoint.plugin.properties:
--------------------------------------------------------------------------------
1 | implementation-class=cn.mtjsoft.www.plugin.BuryPointPlugin
--------------------------------------------------------------------------------
/plugin/src/test/java/cn/mtjsoft/www/plugin/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package cn.mtjsoft.www.plugin
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mtjsoft/AutoTransformPlugin/b75e7740077ee6fe1ed7032ea801b11314cfb4ab/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.jar
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.jar.md5:
--------------------------------------------------------------------------------
1 | 8975aadeade42a6552352667a0e285fd
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.jar.sha1:
--------------------------------------------------------------------------------
1 | 5ca2b93494259110c07d419e22eb281dc8a5c3dc
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.pom:
--------------------------------------------------------------------------------
1 |
2 |
4 | 4.0.0
5 | cn.mtjsoft.www
6 | burypoint.plugin
7 | 1.0.17
8 | burypoint.plugin
9 |
10 |
11 | com.android.tools.build
12 | gradle
13 | 4.0.1
14 | runtime
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.pom.md5:
--------------------------------------------------------------------------------
1 | d52322fbeaf939bc9ef1911854d9a238
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/1.0.17/burypoint.plugin-1.0.17.pom.sha1:
--------------------------------------------------------------------------------
1 | d6bf58a9c73868d9e9e24c5591f194425bf1cf9b
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/maven-metadata.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | cn.mtjsoft.www
4 | burypoint.plugin
5 |
6 | 1.0.17
7 |
8 | 1.0.1
9 | 1.0.2
10 | 1.0.3
11 | 1.0.4
12 | 1.0.5
13 | 1.0.6
14 | 1.0.7
15 | 1.0.8
16 | 1.0.9
17 | 1.0.10
18 | 1.0.11
19 | 1.0.12
20 | 1.0.13
21 | 1.0.14
22 | 1.0.15
23 | 1.0.0-debug
24 | 1.0.16
25 | 1.0.17
26 |
27 | 20220615145351
28 |
29 |
30 |
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/maven-metadata.xml.md5:
--------------------------------------------------------------------------------
1 | 8d40bbd967e101a25dd100fa7d959634
--------------------------------------------------------------------------------
/repo/cn/mtjsoft/www/burypoint.plugin/maven-metadata.xml.sha1:
--------------------------------------------------------------------------------
1 | a7d5518b6407c1cd55639ea6ad99ac2d2f159809
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = "AutoTransformPlugin"
2 | include ':app'
3 | include ':plugin'
4 |
--------------------------------------------------------------------------------