Skip to content

Commit

Permalink
[移除] 不需要的 Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Oct 30, 2023
1 parent 64aa6bb commit 967911f
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ import com.sevtinge.hyperceiler.utils.DexKit.dexKitBridge
import de.robv.android.xposed.XposedHelpers

object VersionCodeNew : BaseHook() {
private val mBigMethod by lazy {
dexKitBridge.findMethod {
matcher {
addUsingStringsEquals("ro.miui.ui.version.name")
}
}.map { it.getMethodInstance(EzXHelper.classLoader) }.first()
}
private val mOSMethod by lazy {
dexKitBridge.findMethod {
matcher {
Expand Down Expand Up @@ -55,15 +48,6 @@ object VersionCodeNew : BaseHook() {
}
})

// 大版本名字修改
mBigMethod.createHook {
before {
if (!TextUtils.isEmpty(mOldVersionCode)) {
it.result = mOldVersionCode
}
}
}

// OS 版本名修改
mOSMethod.createHook {
before {
Expand Down

0 comments on commit 967911f

Please sign in to comment.