Skip to content

Commit

Permalink
adj: remove a13 & MIUI support
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Jan 18, 2025
1 parent 80608f3 commit e308036
Show file tree
Hide file tree
Showing 235 changed files with 1,042 additions and 16,190 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@

# HyperCeiler

### Make HyperOS/MIUI Great Again!
### Make HyperOS Great Again!

简体中文  |  [English](/README_en-US.md)  |  [Português (Brasil)](/README_pt-BR.md)

</div>

## 当前支持的版本

Android 13-15 的 MIUI 和 HyperOS

> 注:Android 13 已基本停止维护,仅提供临时支持,不再接受反馈
Android 14-15 的 HyperOS

## 使用前说明

请在 [LSPosed](https://github.com/LSPosed/LSPosed/releases) 中启用 HyperCeiler, 然后在 HyperCeiler 应用内启用对应的功能,重启作用域 (需要 Root 权限);

本模块<b>不支持</b> `修改较多的第三方 MIUI/Xiaomi HyperOS ROM``修改较多的系统软件`,以及`部分国际 MIUI/Xiaomi HyperOS ROM`
本模块<b>不支持</b> `修改较多的第三方 Xiaomi HyperOS ROM``修改较多的系统软件`,以及`部分国际 Xiaomi HyperOS ROM`

目前 HyperCeiler 是基于 Android 15 的 Xiaomi HyperOS 2.0 的手机端设备进行适配,覆盖不是很完整,需要不断测试和改进

Expand Down
8 changes: 3 additions & 5 deletions README_en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@

# HyperCeiler

### Make HyperOS/MIUI Great Again!
### Make HyperOS Great Again!

[简体中文](/README.md)&nbsp;&nbsp;|&nbsp;&nbsp;English&nbsp;&nbsp;|&nbsp;&nbsp;[Português (Brasil)](/README_pt-BR.md)

</div>

## Currently supported versions

MIUI and HyperOS for Android 13-15

> Note: Android 13 has basically stopped maintenance, only provides temporary support, and no longer accepts feedback.
HyperOS for Android 14-15

## Pre-use instructions

Please enable HyperCeiler in [LSPosed](https://github.com/LSPosed/LSPosed/releases), then enable the corresponding feature in the HyperCeiler app and restart the scope (root access required).

This module <b>does not support</b> `third-party MIUI/Xiaomi HyperOS ROMs with a lot of modifications`, `system software with a lot of modifications`, and some `international MIUI/Xiaomi HyperOS ROMs`.
This module <b>does not support</b> `third-party Xiaomi HyperOS ROMs with a lot of modifications`, `system software with a lot of modifications`, and some `international Xiaomi HyperOS ROMs`.

Currently, HyperCeiler is adapted for Xiaomi HyperOS 2.0 mobile devices based on Android 15. The coverage isn't very comprehensive and requires ongoing testing and improvements.

Expand Down
8 changes: 3 additions & 5 deletions README_pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@

# HyperCeiler

### Torne o HyperOS/MIUI ótimo novamente!
### Torne o HyperOS ótimo novamente!

[简体中文](/README.md)&nbsp;&nbsp;|&nbsp;&nbsp;[English](/README_en-US.md)&nbsp;&nbsp;|&nbsp;&nbsp;Português (Brasil)

</div>

## Versões atualmente suportadas

MIUI e HyperOS para Android 13-15

> Observação: O Android 13 praticamente encerrou a manutenção, oferecendo apenas suporte temporário e não aceitando mais feedback.
HyperOS para Android 13-15

## Instruções de pré-uso

Por favor, ative o HyperCeiler no [LSPosed](https://github.com/LSPosed/LSPosed/releases), em seguida, ative o recurso correspondente no app HyperCeiler e reinicie o escopo (necessário root).

Este módulo <b>não suporta</b> `ROM MIUI/Xiaomi HyperOS de terceiros com muitas modificações`, `software de sistema com muitas modificações` e algumas `ROM MIUI/Xiaomi HyperOS internacionais`.
Este módulo <b>não suporta</b> `ROM Xiaomi HyperOS de terceiros com muitas modificações`, `software de sistema com muitas modificações` e algumas `ROM Xiaomi HyperOS internacionais`.

Atualmente, o HyperCeiler está adaptado para dispositivos móveis Xiaomi HyperOS 2.0 baseados em Android 15. A cobertura não é muito abrangente e requer testes e melhorias contínuas.

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ fun loadPropertiesFromFile(fileName: String): Properties? {
android {
namespace = "com.sevtinge.hyperceiler"
compileSdk = 35
buildToolsVersion = "35.0.0"
buildToolsVersion = "35.0.1"

defaultConfig {
applicationId = namespace
minSdk = 33
minSdk = 34
targetSdk = 35
versionCode = getVersionCode()
versionName = "2.5.156"
Expand Down
9 changes: 2 additions & 7 deletions app/src/main/java/com/sevtinge/hyperceiler/XposedInit.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
import static com.sevtinge.hyperceiler.utils.devicesdk.MiDeviceAppUtilsKt.isPad;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.getAndroidVersion;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.getHyperOSVersion;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.getMiuiVersion;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isAndroidVersion;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isHyperOSVersion;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isMiuiVersion;
import static com.sevtinge.hyperceiler.utils.log.LogManager.logLevelDesc;
import static com.sevtinge.hyperceiler.utils.log.XposedLogUtils.logE;
import static com.sevtinge.hyperceiler.utils.log.XposedLogUtils.logI;
Expand All @@ -48,7 +46,6 @@
import com.sevtinge.hyperceiler.module.hook.systemframework.ScreenRotation;
import com.sevtinge.hyperceiler.module.hook.systemframework.ToastBlur;
import com.sevtinge.hyperceiler.module.hook.systemframework.UnlockAlwaysOnDisplay;
import com.sevtinge.hyperceiler.module.hook.systemsettings.VolumeSeparateControlForSettings;
import com.sevtinge.hyperceiler.module.skip.SystemFrameworkForCorePatch;
import com.sevtinge.hyperceiler.safe.CrashHook;
import com.sevtinge.hyperceiler.utils.api.ProjectApi;
Expand Down Expand Up @@ -124,8 +121,6 @@ private static void loadZygoteHook(StartupParam startupParam) throws Throwable {
if (mPrefsMap.getBoolean("system_framework_screen_all_rotations")) ScreenRotation.initRes();
if (mPrefsMap.getBoolean("system_framework_clean_share_menu")) CleanShareMenu.initRes();
if (mPrefsMap.getBoolean("system_framework_clean_open_menu")) CleanOpenMenu.initRes();
if (mPrefsMap.getBoolean("system_framework_volume_separate_control"))
VolumeSeparateControlForSettings.initRes();

if (startupParam != null) {
new BackgroundBlurDrawable().initZygote(startupParam);
Expand Down Expand Up @@ -171,7 +166,7 @@ private void setXSharedPrefs() {
private void init(XC_LoadPackage.LoadPackageParam lpparam) {
String packageName = lpparam.packageName;
if (Objects.equals(packageName, "android"))
logI(packageName, "androidVersion = " + getAndroidVersion() + ", miuiVersion = " + getMiuiVersion() + ", hyperosVersion = " + getHyperOSVersion());
logI(packageName, "androidVersion = " + getAndroidVersion() + ", hyperosVersion = " + getHyperOSVersion());
else
logI(packageName, "versionName = " + getPackageVersionName(lpparam) + ", versionCode = " + getPackageVersionCode(lpparam));

Expand Down Expand Up @@ -203,7 +198,7 @@ public void accept(String s, DataBase dataBase) {
return;
if (!(dataBase.mTargetSdk == -1) && !isAndroidVersion(dataBase.mTargetSdk))
return;
if (!(dataBase.mTargetOSVersion == -1F) && !(isHyperOSVersion(dataBase.mTargetOSVersion) || isMiuiVersion(dataBase.mTargetOSVersion)))
if (!(dataBase.mTargetOSVersion == -1F) && !(isHyperOSVersion(dataBase.mTargetOSVersion)))
return;
if ((dataBase.isPad == 1 && !isPad()) || (dataBase.isPad == 2 && isPad()))
return;
Expand Down
140 changes: 0 additions & 140 deletions app/src/main/java/com/sevtinge/hyperceiler/module/app/Camera.java

This file was deleted.

Loading

0 comments on commit e308036

Please sign in to comment.