From b781f594868d2362f5f3dd1eb2a9c1a28d0cae48 Mon Sep 17 00:00:00 2001 From: LittleTurtle2333 Date: Tue, 14 Feb 2023 19:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DA13=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BD=91=E7=BB=9C=E7=B1=BB=E5=9E=8B=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hooks/rules/t/systemui/CustomMobileTypeTextForT.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/CustomMobileTypeTextForT.kt b/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/CustomMobileTypeTextForT.kt index 1c5f2970..0b829aea 100644 --- a/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/CustomMobileTypeTextForT.kt +++ b/app/src/main/java/com/lt2333/simplicitytools/hooks/rules/t/systemui/CustomMobileTypeTextForT.kt @@ -9,8 +9,7 @@ import com.lt2333.simplicitytools.utils.xposed.base.HookRegister object CustomMobileTypeTextForT : HookRegister() { override fun init() = hasEnable("custom_mobile_type_text_switch") { - // TODO: Android13自定义网络类型文本不可用 - findMethod("com.android.systemui.statusbar.policy.MobileSignalController") { + findMethod("com.android.systemui.statusbar.connectivity.MobileSignalController") { name == "getMobileTypeName" && parameterTypes[0] == Int::class.java }.hookAfter { it.result = XSPUtils.getString("custom_mobile_type_text", "5G")