Skip to content

Commit 5ccaded

Browse files
authored
Merge branch 'ReChronoRain:main' into main
2 parents 55f22ec + 6472a65 commit 5ccaded

8 files changed

Lines changed: 60 additions & 5 deletions

File tree

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ android {
110110
minifyEnabled true
111111
shrinkResources true
112112
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-log.pro'
113-
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now()) + "_r" + gitCode
113+
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now())
114114
buildConfigField "String", "GIT_HASH", "\"${gitHash}\""
115115
if (keyStoreFile != null) {
116116
signingConfig signingConfigs.hyperceiler
@@ -120,7 +120,7 @@ android {
120120
minifyEnabled true
121121
shrinkResources true
122122
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
123-
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now()) + "_b" + gitCode
123+
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now())
124124
buildConfigField "String", "GIT_HASH", "\"${gitHashLong}\""
125125
if (keyStoreFile != null) {
126126
signingConfig signingConfigs.hyperceiler
@@ -130,14 +130,14 @@ android {
130130
minifyEnabled true
131131
shrinkResources true
132132
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
133-
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now()) + "_c" + gitCode
133+
versionNameSuffix "_" + gitHash + "_r" + gitCode
134134
buildConfigField "String", "GIT_HASH", "\"${gitHashLong}\""
135135
if (keyStoreFile != null) {
136136
signingConfig signingConfigs.hyperceiler
137137
}
138138
}
139139
debug {
140-
versionNameSuffix "_" + DateTimeFormatter.ofPattern("yyyyMMdd").format(LocalDateTime.now()) + "_d" + gitCode
140+
versionNameSuffix "_" + gitHash + "_r" + gitCode
141141
buildConfigField "String", "GIT_HASH", "\"${gitHashLong}\""
142142
if (keyStoreFile != null) {
143143
signingConfig signingConfigs.hyperceiler

app/src/main/java/com/sevtinge/hyperceiler/module/app/Home.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void handleLoadPackage() {
224224
initHook(DisableHideTheme.INSTANCE, mPrefsMap.getBoolean("home_title_disable_hide_theme"));
225225
initHook(DisableHideFile.INSTANCE, mPrefsMap.getBoolean("home_title_disable_hide_file"));
226226
initHook(DisableHideGoogle.INSTANCE, mPrefsMap.getBoolean("home_title_disable_hide_google"));
227-
initHook(FakeNonDefaultIcon.INSTANCE, mPrefsMap.getBoolean("fake_non_default_icon"));
227+
initHook(new FakeNonDefaultIcon(), mPrefsMap.getBoolean("fake_non_default_icon"));
228228
initHook(new AnimParamCustom(), mPrefsMap.getBoolean("home_title_custom_anim_param_main"));
229229
// initHook(new IconScaleHook()/*, mPrefsMap.getInt("home_title_icon_scale", 100) != 100*/);
230230

app/src/main/java/com/sevtinge/hyperceiler/module/app/SecurityCenter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import com.sevtinge.hyperceiler.module.hook.securitycenter.lab.AiClipboardEnable;
5555
import com.sevtinge.hyperceiler.module.hook.securitycenter.lab.BlurLocationEnable;
5656
import com.sevtinge.hyperceiler.module.hook.securitycenter.lab.GetNumberEnable;
57+
import com.sevtinge.hyperceiler.module.hook.securitycenter.other.BypassSimLockMiAccountAuth;
5758
import com.sevtinge.hyperceiler.module.hook.securitycenter.other.DisableRootCheck;
5859
import com.sevtinge.hyperceiler.module.hook.securitycenter.other.FuckRiskPkg;
5960
import com.sevtinge.hyperceiler.module.hook.securitycenter.other.LockOneHundredPoints;
@@ -112,6 +113,7 @@ public void handleLoadPackage() {
112113
initHook(FuckRiskPkg.INSTANCE, mPrefsMap.getBoolean("security_center_disable_send_malicious_app_notification"));
113114
initHook(NoLowBatteryWarning.INSTANCE, mPrefsMap.getBoolean("security_center_remove_low_battery_reminder"));
114115
initHook(new UnlockFbo(), mPrefsMap.getBoolean("security_center_unlock_fbo"));
116+
initHook(BypassSimLockMiAccountAuth.INSTANCE, mPrefsMap.getBoolean("security_center_bypass_simlock_miaccount_auth"));
115117

116118
// 小窗和气泡通知
117119
initHook(new RemoveConversationBubbleSettingsRestriction(), mPrefsMap.getBoolean("security_center_remove_conversation_bubble_settings_restriction"));
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* This file is part of HyperCeiler.
3+
4+
* HyperCeiler is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Affero General Public License as
6+
* published by the Free Software Foundation, either version 3 of the
7+
* License.
8+
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Affero General Public License for more details.
13+
14+
* You should have received a copy of the GNU Affero General Public License
15+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
* Copyright (C) 2023-2024 HyperCeiler Contributions
18+
*/
19+
package com.sevtinge.hyperceiler.module.hook.securitycenter.other
20+
21+
import com.github.kyuubiran.ezxhelper.*
22+
import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook
23+
import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder
24+
import com.sevtinge.hyperceiler.module.base.*
25+
26+
object BypassSimLockMiAccountAuth : BaseHook() {
27+
override fun init() {
28+
runCatching {
29+
ClassUtils.loadClass("com.miui.simlock.b").methodFinder()
30+
.filterByName("m")
31+
.single().createHook {
32+
returnConstant(true)
33+
}
34+
}
35+
}
36+
}

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@
14401440
<string name="security_center_sidebar_function_title">全局侧边栏功能</string>
14411441
<string name="security_center_game_speed">快速启动游戏</string>
14421442
<string name="security_center_game_speed_desc">在启动游戏时倍速通过开屏动画,仅部分游戏支持</string>
1443+
<string name="security_center_bypass_simlock_miaccount_auth">SIM 卡安全保护跳过登录验证</string>
1444+
<string name="security_center_bypass_simlock_miaccount_auth_desc">开启 SIM 卡安全保护功能时无需登录小米账号</string>
14431445
<string name="security_center_aosp_app_info">添加 \"原生应用信息\" 入口</string>
14441446
<string name="security_center_aosp_app_info_label">原生应用信息</string>
14451447
<string name="security_center_aosp_app_manager">添加 \"原生应用管理\" 入口</string>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,8 @@
14171417
<string name="security_center_sidebar_function_title">Sidebar Function</string>
14181418
<string name="security_center_game_speed">Launch the game quickly</string>
14191419
<string name="security_center_game_speed_desc">When launching the game, it passes the opening screen animation at 3x speed, which is only supported by some games</string>
1420+
<string name="security_center_bypass_simlock_miaccount_auth">SIM security no Account needed</string>
1421+
<string name="security_center_bypass_simlock_miaccount_auth_desc">Bypass SIM security Mi Account needed, you can open this function even without logging in XiaoMi Account</string>
14201422
<string name="security_center_aosp_app_info_label">AOSP App Info</string>
14211423
<string name="security_center_aosp_app_info">Add AOSP App Info entry</string>
14221424
<string name="security_center_aosp_app_manager_label">AOSP App Manager</string>

app/src/main/res/xml/prefs_about_contributor.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@
107107
android:action="android.intent.action.VIEW"
108108
android:data="https://github.com/NextAlone" />
109109
</Preference>
110+
<Preference
111+
android:summary="GitHub@qdsp6sw"
112+
android:title="qdsp6sw">
113+
<intent
114+
android:action="android.intent.action.VIEW"
115+
android:data="https://github.com/qdsp6sw" />
116+
</Preference>
110117
<Preference
111118
android:summary="CoolApk@Qe_xr"
112119
android:title="Qe_xr">

app/src/main/res/xml/security_center.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@
284284
android:title="@string/security_center_game_speed"
285285
app:isPreferenceVisible="false" />
286286

287+
<SwitchPreference
288+
android:defaultValue="false"
289+
android:key="prefs_key_security_center_bypass_simlock_miaccount_auth"
290+
android:summary="@string/security_center_bypass_simlock_miaccount_auth_desc"
291+
android:title="@string/security_center_bypass_simlock_miaccount_auth" />
292+
287293
</PreferenceCategory>
288294

289295
</PreferenceScreen>

0 commit comments

Comments
 (0)