From d520350f2707d84d5570621a3a30470349888291 Mon Sep 17 00:00:00 2001 From: mu7220 <80700814+mu7220@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cemiuiler/ui/fragment/SystemFrameworkFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/sevtinge/cemiuiler/ui/fragment/SystemFrameworkFragment.java b/app/src/main/java/com/sevtinge/cemiuiler/ui/fragment/SystemFrameworkFragment.java index 461682f0d2..e510509fc5 100644 --- a/app/src/main/java/com/sevtinge/cemiuiler/ui/fragment/SystemFrameworkFragment.java +++ b/app/src/main/java/com/sevtinge/cemiuiler/ui/fragment/SystemFrameworkFragment.java @@ -4,6 +4,7 @@ import com.sevtinge.cemiuiler.R; import com.sevtinge.cemiuiler.ui.fragment.base.SettingsPreferenceFragment; +import com.sevtinge.cemiuiler.utils.PrefsUtils; import miui.telephony.TelephonyManager; import moralnorm.preference.Preference; @@ -21,11 +22,12 @@ public int getContentResId() { @Override public void initPrefs() { + boolean mCreak = PrefsUtils.getSharedBoolPrefs(getContext(), "prefs_key_system_framework_core_patch_auth_creak", false); mDisableCreak = findPreference("prefs_key_system_framework_core_patch_auth_creak"); mDisableIntegrity = findPreference("prefs_key_system_framework_core_patch_disable_integrity"); mNetwork = findPreference("prefs_key_system_framework_network"); - mDisableIntegrity.setVisible(isMoreAndroidVersion(33)); + mDisableIntegrity.setVisible(isMoreAndroidVersion(33) && !mCreak); mNetwork.setVisible(TelephonyManager.getDefault().isFiveGCapable()); mDisableCreak.setOnPreferenceChangeListener((preference, o) -> {