Skip to content

Commit

Permalink
修复酷狗版本判断导致概念版4.0.0无法使用问题,更新规格文件 (#201)
Browse files Browse the repository at this point in the history
* 优化酷狗版本判断 解决概念版4.0.0(11000)无效问题

* 更新规格文件 备注打开状态栏歌词开关的提示

* 更新规格文件版本

* Update app_rules.json

---------

Co-authored-by: xiao_wine <[email protected]>
  • Loading branch information
klxiaoniu and xiaowine authored Oct 2, 2024
1 parent f432775 commit 0ecb07f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/src/main/assets/app_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
},
{
"packageName": "com.kugou.android.lite",
"name": "酷狗音乐概念版",
"name": "酷狗概念版",
"rules": [
{
"startVersionCode": 10545,
Expand All @@ -160,13 +160,13 @@
"remarks": ""
},
{
"startVersionCode": 10545,
"startVersionCode": 10649,
"endVersionCode": 2147483647,
"excludeVersions": [],
"apiVersion": 0,
"useApi": false,
"getLyricType": 1,
"remarks": ""
"getLyricType": 0,
"remarks": "需在APP设置中打开状态栏歌词开关"
}
]
},
Expand Down Expand Up @@ -220,7 +220,7 @@
"apiVersion": 0,
"useApi": false,
"getLyricType": 0,
"remarks": ""
"remarks": "需在APP设置中打开状态栏歌词开关"
}
]
},
Expand Down Expand Up @@ -528,6 +528,6 @@
]
}
],
"appRulesVersion": 10,
"version": 7
"appRulesVersion": 11,
"version": 8
}
4 changes: 2 additions & 2 deletions app/src/main/kotlin/cn/lyric/getter/hook/app/Kugou.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object Kugou : BaseHook() {
hookLocalBroadcast("android.support.v4.content.LocalBroadcastManager")
}

verCode <= 999999 -> {
else -> {
HookTools.MockFlyme().mock()
hookLocalBroadcast("androidx.localbroadcastmanager.content.LocalBroadcastManager")
}
Expand All @@ -42,7 +42,7 @@ object Kugou : BaseHook() {
hookLocalBroadcast("android.support.v4.content.LocalBroadcastManager")
}

verCode > 11001 -> {
else -> {
HookTools.MockFlyme().mock()
hookLocalBroadcast("androidx.localbroadcastmanager.content.LocalBroadcastManager")
}
Expand Down

0 comments on commit 0ecb07f

Please sign in to comment.