mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-13 03:41:19 +08:00
修复A13自定义网络类型文本不可用
This commit is contained in:
@@ -9,8 +9,7 @@ import com.lt2333.simplicitytools.utils.xposed.base.HookRegister
|
|||||||
object CustomMobileTypeTextForT : HookRegister() {
|
object CustomMobileTypeTextForT : HookRegister() {
|
||||||
|
|
||||||
override fun init() = hasEnable("custom_mobile_type_text_switch") {
|
override fun init() = hasEnable("custom_mobile_type_text_switch") {
|
||||||
// TODO: Android13自定义网络类型文本不可用
|
findMethod("com.android.systemui.statusbar.connectivity.MobileSignalController") {
|
||||||
findMethod("com.android.systemui.statusbar.policy.MobileSignalController") {
|
|
||||||
name == "getMobileTypeName" && parameterTypes[0] == Int::class.java
|
name == "getMobileTypeName" && parameterTypes[0] == Int::class.java
|
||||||
}.hookAfter {
|
}.hookAfter {
|
||||||
it.result = XSPUtils.getString("custom_mobile_type_text", "5G")
|
it.result = XSPUtils.getString("custom_mobile_type_text", "5G")
|
||||||
|
|||||||
Reference in New Issue
Block a user