Skip to content

Commit

Permalink
fix: MusicNotificationHook for Play store (#1493)
Browse files Browse the repository at this point in the history
Signed-off-by: qwq233 <qwq233@qwq2333.top>
  • Loading branch information
qwq233 committed Jul 4, 2024
1 parent ababfa9 commit 2407ddf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.externalNativeBuild
*.apk
*.jar
/.kotlin
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.iacn.biliroaming.hook

import de.robv.android.xposed.XposedHelpers
import me.iacn.biliroaming.utils.Log
import me.iacn.biliroaming.utils.findClassOrNull
import me.iacn.biliroaming.utils.hookBeforeMethod
Expand All @@ -23,6 +24,17 @@ class MusicNotificationHook(classLoader: ClassLoader) : BaseHook(classLoader) {
}
}
}

// Play store
"com.bilibili.lib.blconfig.ConfigManager\$a".findClassOrNull(mClassLoader)?.run {
XposedHelpers.findMethodExactIfExists(this, "g", String::class.java)?.hookBeforeMethod {
(it.args[0] as String).run {
if (this == "ff_background_use_system_media_controls") {
it.result = true
}
}
}
}
}

}

0 comments on commit 2407ddf

Please sign in to comment.