Skip to content

Commit

Permalink
fix boom 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed May 25, 2024
1 parent f1d4110 commit adec2aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ object BatteryHealth : BaseHook() {
}

private val cc by lazy {
DexKit.useDexKitIfNoCache(arrayOf("getSecurityBatteryHealthClass")) {
DexKit.useDexKitIfNoCache(arrayOf("SecurityBatteryHealthClass")) {
it.findClass {
searchPackages("com.miui.powercenter.nightcharge")
findFirst = true
Expand Down Expand Up @@ -59,7 +59,7 @@ object BatteryHealth : BaseHook() {
}
)

val nameClass = DexKit.createCache("getSecurityBatteryHealthClass", cc, lpparam.classLoader).toMethodList().first().name
val nameClass = DexKit.createCache("SecurityBatteryHealthClass", cc, lpparam.classLoader).toClassList().first().name
findAndHookMethod(
nameClass,
"handleMessage",
Expand Down

0 comments on commit adec2aa

Please sign in to comment.