mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 03:11:18 +08:00
Update AndroidHooker.kt
This commit is contained in:
@@ -8,14 +8,15 @@ import com.lt2333.simplicitytools.hooks.rules.all.android.DisableFlagSecureForAl
|
||||
|
||||
object AndroidHooker: YukiBaseHooker() {
|
||||
override fun onHook() {
|
||||
//判断Android版本号加载不同的Hooker
|
||||
when (Build.VERSION.SDK_INT) {
|
||||
Build.VERSION_CODES.TIRAMISU -> {
|
||||
Build.VERSION_CODES.TIRAMISU -> { //Android13
|
||||
loadHooker(DisableFlagSecureForAll) //允许截图
|
||||
loadHooker(AllowUntrustedTouchesForAll) //允许不受信任触摸
|
||||
loadHooker(DeleteOnPostNotificationForAll) //上层显示
|
||||
}
|
||||
|
||||
Build.VERSION_CODES.S -> {
|
||||
Build.VERSION_CODES.S -> { //Android12
|
||||
loadHooker(DisableFlagSecureForAll) //允许截图
|
||||
loadHooker(AllowUntrustedTouchesForAll) //允许不受信任触摸
|
||||
loadHooker(DeleteOnPostNotificationForAll) //上层显示
|
||||
|
||||
Reference in New Issue
Block a user