Skip to content

Commit

Permalink
opt: noautoturnoff hook string (remove 10min)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Sep 26, 2024
1 parent 6cc6064 commit 05db642
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import android.widget.*
import com.github.kyuubiran.ezxhelper.EzXHelper.safeClassLoader
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHooks
import com.sevtinge.hyperceiler.*
import com.sevtinge.hyperceiler.module.base.*
import com.sevtinge.hyperceiler.module.base.dexkit.*
import com.sevtinge.hyperceiler.module.base.dexkit.DexKitTool.addUsingStringsEquals
Expand Down Expand Up @@ -268,6 +269,8 @@ object NoAutoTurnOff : BaseHook() {
})
}
}
mResHook.setResReplacement("com.miui.mishare.connectivity", "string", "switch_mode_all", R.string.mishare_hook_switch_mode_all)
}

}
}
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@
<string name="mishare">小米互传</string>
<string name="mishare_disable_mishare_auto_off">禁用自动关闭小米互传</string>
<string name="mishare_unlock_turbo_mode">解锁极速传输模式</string>
<string name="mishare_hook_switch_mode_all">所有人</string>
<!--壁纸-->
<string name="miwallpaper">壁纸</string>
<string name="miwallpaper_unlock_super_wallpaper">解锁超级壁纸</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@
<string name="mishare">Xiaomi Share</string>
<string name="mishare_disable_mishare_auto_off">Disable automatic closing of Xiaomi Share</string>
<string name="mishare_unlock_turbo_mode">Unlock Turbo transfer</string>
<string name="mishare_hook_switch_mode_all">Everyone</string>
<!--Wallpaper-->
<string name="miwallpaper">Wallpaper</string>
<string name="miwallpaper_unlock_super_wallpaper">Unlock Super wallpaper</string>
Expand Down

0 comments on commit 05db642

Please sign in to comment.