Skip to content

Commit

Permalink
Update FakePremium.kt
Browse files Browse the repository at this point in the history
增加一个新的hook点
  • Loading branch information
Keeperorowner authored Dec 7, 2024
1 parent b3062e2 commit 7c9ad7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/main/java/cc/ioctl/tmoe/hook/func/FakePremium.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ object FakePremium : CommonDynamicHook() {
name=="isPremium"
}.hookBefore {
if (!isEnabled)return@hookBefore

it.result = true
findMethod(loadClass("org.telegram.messenger.UserConfig")){
name=="hasPremiumOnAccounts" }.hookBefore {
if (!isEnabled) return@hookBefore
it.result = true
}
}
}
}

0 comments on commit 7c9ad7f

Please sign in to comment.