This commit is contained in:
2022-02-07 02:12:29 +08:00
parent 108c792ab8
commit 73108a44a6
16 changed files with 144 additions and 89 deletions

View File

@@ -5,6 +5,17 @@ plugins {
}
android {
signingConfigs {
debug {
storeFile file('../keystore/public')
storePassword '123456'
keyAlias 'public'
keyPassword '123456'
v1SigningEnabled true
v2SigningEnabled true
}
}
compileSdk 31
defaultConfig {
@@ -20,6 +31,7 @@ android {
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

View File

@@ -50,8 +50,10 @@ class MainInjecter : YukiHookXposedInitProxy {
override fun onHook() {
// 设置模式
YukiHookAPI.debugTag = "YukiSuki"
YukiHookAPI.isDebug = true
YukiHookAPI.configs {
debugTag = "YukiSuki"
isDebug = true
}
// 方案 1
// encase(MainHooker(), SecondHooker())
// 方案 2
@@ -81,7 +83,7 @@ class MainInjecter : YukiHookXposedInitProxy {
method {
name = "a"
param(StringType, StringType)
returnType = UnitType
returnType = StringType
}
beforeHook {
args(index = 0).set("✌️改了前面的")