Skip to content

Commit 05db642

Browse files
committed
opt: noautoturnoff hook string (remove 10min)
1 parent 6cc6064 commit 05db642

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

app/src/main/java/com/sevtinge/hyperceiler/module/hook/mishare/NoAutoTurnOff.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import android.widget.*
2323
import com.github.kyuubiran.ezxhelper.EzXHelper.safeClassLoader
2424
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook
2525
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHooks
26+
import com.sevtinge.hyperceiler.*
2627
import com.sevtinge.hyperceiler.module.base.*
2728
import com.sevtinge.hyperceiler.module.base.dexkit.*
2829
import com.sevtinge.hyperceiler.module.base.dexkit.DexKitTool.addUsingStringsEquals
@@ -268,6 +269,8 @@ object NoAutoTurnOff : BaseHook() {
268269
})
269270
}
270271
}
272+
mResHook.setResReplacement("com.miui.mishare.connectivity", "string", "switch_mode_all", R.string.mishare_hook_switch_mode_all)
271273
}
274+
272275
}
273276
}

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@
14371437
<string name="mishare">小米互传</string>
14381438
<string name="mishare_disable_mishare_auto_off">禁用自动关闭小米互传</string>
14391439
<string name="mishare_unlock_turbo_mode">解锁极速传输模式</string>
1440+
<string name="mishare_hook_switch_mode_all">所有人</string>
14401441
<!--壁纸-->
14411442
<string name="miwallpaper">壁纸</string>
14421443
<string name="miwallpaper_unlock_super_wallpaper">解锁超级壁纸</string>

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@
14051405
<string name="mishare">Xiaomi Share</string>
14061406
<string name="mishare_disable_mishare_auto_off">Disable automatic closing of Xiaomi Share</string>
14071407
<string name="mishare_unlock_turbo_mode">Unlock Turbo transfer</string>
1408+
<string name="mishare_hook_switch_mode_all">Everyone</string>
14081409
<!--Wallpaper-->
14091410
<string name="miwallpaper">Wallpaper</string>
14101411
<string name="miwallpaper_unlock_super_wallpaper">Unlock Super wallpaper</string>

0 commit comments

Comments
 (0)