Skip to content

Commit

Permalink
feat: support QQ NT (>= 9.0.0) version
Browse files Browse the repository at this point in the history
  • Loading branch information
fankes committed Jun 16, 2024
1 parent 80e89d0 commit fb0182f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ object QQTIMHooker : YukiBaseHooker() {
)
)

/** 是否存在 [BaseChatPieClass] */
private val hasBaseChatPieClass by lazy { BaseChatPieClass != null }

/**
* DexKit 搜索结果数据实现类
*/
Expand Down Expand Up @@ -221,8 +224,14 @@ object QQTIMHooker : YukiBaseHooker() {
* remainScreenOn、cancelRemainScreenOn
*
* 这两个方法一个是挂起电源锁常驻亮屏 - 一个是停止常驻亮屏
*
* - 在 QQ NT 版本中完全移除了 BaseChatPie 类 - 所以不再处理
*/
private fun hookQQBaseChatPie() {
if (hasBaseChatPieClass.not()) {
HookEntry.isHookClientSupport = true
return YLog.debug("Start for QQ NT version,.")
}
/**
* 打印警告信息
* @param index 序号
Expand Down

1 comment on commit fb0182f

@TAT-Hins
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

计划啥时候重新编译新的支持QQ9的apk呀?

Please sign in to comment.