diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/app/AiAsst.java b/app/src/main/java/com/sevtinge/hyperceiler/module/app/AiAsst.java
index f3256ad650..8ca3cea632 100644
--- a/app/src/main/java/com/sevtinge/hyperceiler/module/app/AiAsst.java
+++ b/app/src/main/java/com/sevtinge/hyperceiler/module/app/AiAsst.java
@@ -22,6 +22,7 @@
import com.sevtinge.hyperceiler.module.base.HookExpand;
import com.sevtinge.hyperceiler.module.hook.aiasst.AiCaptions;
import com.sevtinge.hyperceiler.module.hook.aiasst.DisableWatermark;
+import com.sevtinge.hyperceiler.module.hook.aiasst.UnlockAllCaptions;
@HookExpand(pkg = "com.xiaomi.aiasst.vision", isPad = false, tarAndroid = 33)
public class AiAsst extends BaseModule {
@@ -30,5 +31,6 @@ public class AiAsst extends BaseModule {
public void handleLoadPackage() {
initHook(new AiCaptions(), mPrefsMap.getBoolean("aiasst_ai_captions"));
initHook(new DisableWatermark(), mPrefsMap.getBoolean("aiasst_disable_watermark"));
+ initHook(UnlockAllCaptions.INSTANCE, mPrefsMap.getBoolean("aiasst_all_captions"));
}
}
diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/aiasst/UnlockAllCaptions.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/aiasst/UnlockAllCaptions.kt
new file mode 100644
index 0000000000..0a1b1a610c
--- /dev/null
+++ b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/aiasst/UnlockAllCaptions.kt
@@ -0,0 +1,17 @@
+package com.sevtinge.hyperceiler.module.hook.aiasst
+
+import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass
+import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook
+import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder
+import com.sevtinge.hyperceiler.module.base.*
+
+object UnlockAllCaptions : BaseHook() {
+ override fun init() {
+ // by PedroZ
+ loadClass("com.xiaomi.aiasst.vision.common.BuildConfigUtils").methodFinder()
+ .filterByName("isSupplierOnline")
+ .single().createHook {
+ returnConstant(true)
+ }
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 14df3c2049..a3e544afdd 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -1516,6 +1516,7 @@
小爱翻译
强制启用实时字幕
+ 解锁多语言在线字幕
禁用水印
弹幕通知
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 0dae67d8ac..de3eeb422f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1488,6 +1488,7 @@
AI Translate
Force enabled AI captions
+ Unlock multi-language online captions
Disable watermark
Barrage
diff --git a/app/src/main/res/xml/aiasst.xml b/app/src/main/res/xml/aiasst.xml
index af00aa2fc8..d2903bbf7f 100644
--- a/app/src/main/res/xml/aiasst.xml
+++ b/app/src/main/res/xml/aiasst.xml
@@ -3,16 +3,21 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
app:myLocation="@string/aiasst">
-
+ android:title="@string/aiasst_ai_captions" />
+
+
+ android:title="@string/aiasst_disable_watermark" />