Skip to content

Commit e4b5ed4

Browse files
committed
1.1.16
1 parent 87f36e9 commit e4b5ed4

36 files changed

+304
-189
lines changed

app/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ plugins {
66

77
android {
88
compileSdk sdk
9-
buildToolsVersion buildToolsVersion
109

1110
defaultConfig {
1211
applicationId 'io.github.chsbuffer.miuihelper'
1312
minSdk 27
14-
targetSdk sdk
15-
versionCode 17
16-
versionName '1.1.15'
13+
targetSdkVersion sdk
14+
versionCode 18
15+
versionName '1.1.16'
1716
ndk {
1817
abiFilters 'arm64-v8a'
1918
}

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import io.github.chsbuffer.miuihelper.hooks.securitycenter.RemoveSetSystemAppWif
2121
import io.github.chsbuffer.miuihelper.hooks.systemui.NotificationClickInfoItemStartChannelSetting
2222
import io.github.chsbuffer.miuihelper.hooks.systemui.NotificationSettingsNoWhiteList
2323
import io.github.chsbuffer.miuihelper.hooks.systemui.RestoreCnNearby
24+
import io.github.chsbuffer.miuihelper.hooks.systemui.RestoreCnQuickAccessWalletTile
2425
import io.github.chsbuffer.miuihelper.hooks.updater.RemoveOTAValidate
2526
import io.github.chsbuffer.miuihelper.util.hooks
2627
import io.github.chsbuffer.miuihelper.util.inContext
@@ -78,12 +79,15 @@ class MainHook : IXposedHookLoadPackage {
7879
SupportAiSubtitles
7980
)
8081

81-
"com.android.systemui" -> hooks(
82-
lpparam,
83-
RestoreCnNearby,
84-
NotificationSettingsNoWhiteList,
85-
NotificationClickInfoItemStartChannelSetting
86-
)
82+
"com.android.systemui" -> useDexKit(lpparam) { dexKit ->
83+
hooks(
84+
lpparam,
85+
RestoreCnNearby(dexKit),
86+
RestoreCnQuickAccessWalletTile,
87+
NotificationSettingsNoWhiteList,
88+
NotificationClickInfoItemStartChannelSetting
89+
)
90+
}
8791
}
8892
}
8993
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class SettingsActivity : Activity() {
5555
}
5656
if (miui.os.Build.IS_INTERNATIONAL_BUILD) {
5757
removePreference("restore_google_icon")
58-
5958
removePreference("notification_settings_no_white_list")
59+
removePreference("restore_wallet_tile")
6060
}
6161
}
6262

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import io.github.chsbuffer.miuihelper.model.Hook
77

88

99
object SupportAiSubtitles : Hook() {
10-
override fun init(classLoader: ClassLoader) {
10+
override fun init() {
1111
if (!xPrefs.getBoolean("support_ai_subtitles", true))
1212
return
1313
val clazz = XposedHelpers.findClass(

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/gallery/FixAlbum.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import io.github.chsbuffer.miuihelper.model.Hook
77

88
// DO_NOT_USE_OR_YOU_WILL_BE_FIRED
99
object FixAlbum : Hook() {
10-
override fun init(classLoader: ClassLoader) {
10+
override fun init() {
1111
XposedHelpers.findAndHookMethod(
1212
"com.miui.gallery.model.dto.Album",
1313
classLoader,

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/home/RestoreCnBuildGoogleApp.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import io.github.chsbuffer.miuihelper.model.Hook
77
import miui.os.Build
88

99
object RestoreCnBuildGoogleApp : Hook() {
10-
override fun init(classLoader: ClassLoader) {
10+
override fun init() {
1111
if (!xPrefs.getBoolean("restore_google_icon", true) || Build.IS_INTERNATIONAL_BUILD)
1212
return
1313

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/home/RestoreGoogleSearch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import io.github.chsbuffer.miuihelper.model.Hook
99

1010

1111
object RestoreGoogleSearch : Hook() {
12-
override fun init(classLoader: ClassLoader) {
12+
override fun init() {
1313
if (!xPrefs.getBoolean("restore_google_search", false))
1414
return
1515

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/home/RestoreSwitchMinusScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import miui.os.Build
99

1010

1111
object RestoreSwitchMinusScreen : Hook() {
12-
override fun init(classLoader: ClassLoader) {
12+
override fun init() {
1313
if (!xPrefs.getBoolean("restore_switch_minus_screen", false) || Build.IS_INTERNATIONAL_BUILD) return
1414

1515
// 启用可以切换负一屏(即“智能助理”或“Google”)

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/lbe/SuggestPermissions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object SuggestPermissions : Hook() {
1313

1414
private const val DefaultAccept = PERM_ID_AUTOSTART or PERM_ID_INSTALL_SHORTCUT
1515

16-
override fun init(classLoader: ClassLoader) {
16+
override fun init() {
1717
val clazz =
1818
XposedHelpers.findClass("com.lbe.security.bean.AppPermissionConfig", classLoader)
1919

app/src/main/java/io/github/chsbuffer/miuihelper/hooks/screenrecorder/ForceSupportPlaybackCapture.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import de.robv.android.xposed.XposedHelpers
55
import io.github.chsbuffer.miuihelper.model.Hook
66

77
object ForceSupportPlaybackCapture : Hook() {
8-
override fun init(classLoader: ClassLoader) {
8+
override fun init() {
99
if (!xPrefs.getBoolean("force_support_playbackcapture", true)) return
1010

1111
XposedHelpers.findAndHookMethod("android.os.SystemProperties",

0 commit comments

Comments
 (0)