Skip to content

Commit 87f36e9

Browse files
committed
1.1.15
1 parent 6c9830f commit 87f36e9

File tree

12 files changed

+478
-331
lines changed

12 files changed

+478
-331
lines changed

app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
applicationId 'io.github.chsbuffer.miuihelper'
1313
minSdk 27
1414
targetSdk sdk
15-
versionCode 16
16-
versionName '1.1.14'
15+
versionCode 17
16+
versionName '1.1.15'
1717
ndk {
1818
abiFilters 'arm64-v8a'
1919
}
@@ -35,6 +35,7 @@ android {
3535
minifyEnabled true
3636
shrinkResources true
3737
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
38+
// signingConfig signingConfigs.debug
3839
}
3940
}
4041
kotlinOptions {
@@ -58,5 +59,5 @@ dependencies {
5859
compileOnly project(path: ':miuistub')
5960
implementation("dev.rikka.tools.refine:runtime:$refine")
6061
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
61-
implementation 'org.luckypray:DexKit:1.1.4'
62+
implementation 'org.luckypray:DexKit:1.1.8'
6263
}

app/src/main/java/io/github/chsbuffer/miuihelper/MainHook.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import io.github.chsbuffer.miuihelper.hooks.home.RestoreSwitchMinusScreen
1010
import io.github.chsbuffer.miuihelper.hooks.screenrecorder.ForceSupportPlaybackCapture
1111
import io.github.chsbuffer.miuihelper.hooks.screenrecorder.SaveToMovies
1212
import io.github.chsbuffer.miuihelper.hooks.screenshot.SaveToPictures
13-
import io.github.chsbuffer.miuihelper.hooks.securitycenter.AppDetails
13+
import io.github.chsbuffer.miuihelper.hooks.securitycenter.AppDetailsStockOpenDefaultSettings
14+
import io.github.chsbuffer.miuihelper.hooks.securitycenter.AppDetailsSystemAppWlanControl
15+
import io.github.chsbuffer.miuihelper.hooks.securitycenter.DexKitCache
1416
import io.github.chsbuffer.miuihelper.hooks.securitycenter.EnabledAllTextView
1517
import io.github.chsbuffer.miuihelper.hooks.securitycenter.IntlEnableBehaviorRecord
1618
import io.github.chsbuffer.miuihelper.hooks.securitycenter.LockOneHundred
@@ -37,14 +39,16 @@ class MainHook : IXposedHookLoadPackage {
3739

3840
"com.miui.securitycenter" -> inContext(lpparam) { app ->
3941
useDexKit(lpparam) { dexKit ->
42+
val dexKitCache = DexKitCache()
4043
hooks(
4144
lpparam,
42-
RemoveBehaviorRecordWhiteListAndNoIgnoreSystemApp(dexKit),
45+
RemoveBehaviorRecordWhiteListAndNoIgnoreSystemApp(dexKitCache),
4346
RemoveSetSystemAppWifiRuleAllow,
4447
EnabledAllTextView,
4548
LockOneHundred(dexKit),
46-
AppDetails(dexKit, app),
47-
IntlEnableBehaviorRecord(dexKit)
49+
AppDetailsSystemAppWlanControl(dexKitCache, app),
50+
AppDetailsStockOpenDefaultSettings(dexKitCache, app),
51+
IntlEnableBehaviorRecord(dexKitCache)
4852
)
4953
}
5054
}

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/aiasst/SupportAiSubtitles.kt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,18 @@ object SupportAiSubtitles : Hook() {
2626
Context::class.java,
2727
XC_MethodReplacement.returnConstant(true)
2828
)
29-
XposedHelpers.findAndHookMethod(
30-
clazz,
31-
"deviceWhetherSupportOfflineSubtitles",
32-
XC_MethodReplacement.returnConstant(true)
33-
)
34-
XposedHelpers.findAndHookMethod(
35-
clazz,
36-
"isSupportOfflineAiSubtitles",
37-
android.content.Context::class.java,
38-
XC_MethodReplacement.returnConstant(true)
39-
)
29+
runCatching {
30+
XposedHelpers.findAndHookMethod(
31+
clazz,
32+
"deviceWhetherSupportOfflineSubtitles",
33+
XC_MethodReplacement.returnConstant(true)
34+
)
35+
XposedHelpers.findAndHookMethod(
36+
clazz,
37+
"isSupportOfflineAiSubtitles",
38+
android.content.Context::class.java,
39+
XC_MethodReplacement.returnConstant(true)
40+
)
41+
}
4042
}
4143
}

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/securitycenter/AppDetails.kt

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)