Skip to content

Commit

Permalink
把闪退修复导入到酷狗音乐12版本之后,并添加之前提交缺少的代码 (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghhccghk authored Oct 23, 2024
1 parent ef1c8ef commit 843350c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/kotlin/cn/lyric/getter/hook/app/Kugou.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Kugou : BaseHook() {
val verCode: Int = app.packageManager?.getPackageInfo(app.packageName, 0)?.getVersionCode() ?: 0
when (app.packageName) {
"com.kugou.android" -> {
if (getProcessName(app) == "com.kugou.android") return@getApplication
if (getProcessName(app) == "com.kugou.android.support") return@getApplication
when {
verCode <= 10000 -> hookCarLyric()
verCode <= 12009 -> {
Expand All @@ -37,6 +37,7 @@ object Kugou : BaseHook() {
HookTools.MockFlyme().mock()
hookLocalBroadcast("androidx.localbroadcastmanager.content.LocalBroadcastManager")
hookFixStatusBarLyric()
fixProbabilityCollapse()
}
}
}
Expand Down

0 comments on commit 843350c

Please sign in to comment.