Skip to content

Commit

Permalink
[Revise] Readme & [remove] theme crack
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Nov 5, 2023
1 parent a7c71da commit 55e49c7
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 317 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Android 11 ~ 13 的 MIUI 12.5 ~ 14

## 为 HyperCeiler 贡献翻译

[![Crowdin](https://badges.crowdin.net/hyperceiler/localized.svg)](https://crowdin.com/project/hyperceiler)
[![Crowdin](https://badges.crowdin.net/cemiuiler/localized.svg)](https://crowdin.com/project/cemiuiler)

您可以在[这里](https://crwd.in/hyperceiler)为 HyperCeiler 项目贡献翻译。
您可以在[这里](https://crwd.in/cemiuiler)为 HyperCeiler 项目贡献翻译。

## 感谢

Expand Down
4 changes: 2 additions & 2 deletions README_en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Join our group to report issues or get the latest updates.

## Provide translations for the HyperCeiler project

[![Crowdin](https://badges.crowdin.net/hyperceiler/localized.svg)](https://crowdin.com/project/hyperceiler)
[![Crowdin](https://badges.crowdin.net/cemiuiler/localized.svg)](https://crowdin.com/project/cemiuiler)

You can provide translations for the HyperCeiler project [here](https://crwd.in/hyperceiler).
You can provide translations for the HyperCeiler project [here](https://crwd.in/cemiuiler).

## Thank!

Expand Down
4 changes: 2 additions & 2 deletions README_pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Junte-se ao nosso grupo para relatar problemas ou obter as atualizações mais r

## Tradução

[![Crowdin](https://badges.crowdin.net/hyperceiler/localized.svg)](https://crowdin.com/project/hyperceiler)
[![Crowdin](https://badges.crowdin.net/cemiuiler/localized.svg)](https://crowdin.com/project/cemiuiler)

Você pode fornecer traduções para o projeto [aqui](https://crwd.in/hyperceiler).
Você pode fornecer traduções para o projeto [aqui](https://crwd.in/cemiuiler).

## Obrigado!

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/sevtinge/hyperceiler/XposedInit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class XposedInit : BaseXposedInit(), IXposedHookInitPackageResources {
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 (mPrefsMap.getBoolean("various_theme_crack")) ThemeCrack.initRes()
if (startupParam != null) {
BackgroundBlurDrawable().initZygote(startupParam)
SystemFrameworkForCorePatch().initZygote(startupParam)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package com.sevtinge.hyperceiler.module.app;

import static com.sevtinge.hyperceiler.utils.BuildUtils.getBuildType;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isAndroidR;

import com.sevtinge.hyperceiler.module.base.BaseModule;
import com.sevtinge.hyperceiler.module.base.CloseHostDir;
import com.sevtinge.hyperceiler.module.base.LoadHostDir;
import com.sevtinge.hyperceiler.module.hook.personalassistant.BlurOverlay;
import com.sevtinge.hyperceiler.module.hook.personalassistant.BlurPersonalAssistant;
import com.sevtinge.hyperceiler.module.hook.personalassistant.BlurPersonalAssistantBackGround;
import com.sevtinge.hyperceiler.module.hook.personalassistant.EnableFoldWidget;
import com.sevtinge.hyperceiler.module.hook.personalassistant.WidgetCrack;

public class PersonalAssistant extends BaseModule {

Expand All @@ -19,7 +16,7 @@ public void handleLoadPackage() {
// dexKit load
initHook(LoadHostDir.INSTANCE);

initHook(new BlurOverlay(), false);
// initHook(new BlurOverlay(), false);
initHook(new EnableFoldWidget(), mPrefsMap.getBoolean("personal_assistant_fold_widget_enable"));

if (mPrefsMap.getStringAsInt("personal_assistant_value", 1) != 1 && !isAndroidR()) {
Expand All @@ -28,7 +25,6 @@ public void handleLoadPackage() {
initHook(BlurPersonalAssistantBackGround.INSTANCE, mPrefsMap.getBoolean("pa_enable"));
}

initHook(new WidgetCrack(), mPrefsMap.getBoolean("various_enable_super_function") && mPrefsMap.getBoolean("personal_assistant_widget_crack") && (getBuildType().equals("debug")));
// dexKit finish
initHook(CloseHostDir.INSTANCE);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.sevtinge.hyperceiler.module.app;

import static com.sevtinge.hyperceiler.utils.BuildUtils.getBuildType;
import static com.sevtinge.hyperceiler.utils.api.VoyagerApisKt.isPad;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isMoreAndroidVersion;

Expand All @@ -23,7 +22,6 @@
import com.sevtinge.hyperceiler.module.hook.systemframework.ScreenRotation;
import com.sevtinge.hyperceiler.module.hook.systemframework.SpeedInstall;
import com.sevtinge.hyperceiler.module.hook.systemframework.StickyFloatingWindows;
import com.sevtinge.hyperceiler.module.hook.systemframework.ThemeProvider;
import com.sevtinge.hyperceiler.module.hook.systemframework.ThermalBrightness;
import com.sevtinge.hyperceiler.module.hook.systemframework.UseOriginalAnimation;
import com.sevtinge.hyperceiler.module.hook.systemframework.VolumeDefaultStream;
Expand Down Expand Up @@ -77,8 +75,6 @@ public void handleLoadPackage() {
initHook(new VolumeDisableSafe(), mPrefsMap.getBoolean("system_framework_volume_disable_safe"));
// initHook(new ClockShowSecond(), mPrefsMap.getBoolean("system_ui_statusbar_clock_show_second"));

initHook(new ThemeProvider(), mPrefsMap.getBoolean("various_enable_super_function") && mPrefsMap.getBoolean("various_theme_crack") && (getBuildType().equals("debug")));

// 其他
initHook(new ScreenRotation(), mPrefsMap.getBoolean("system_framework_screen_all_rotations"));
initHook(new CleanShareMenu(), mPrefsMap.getBoolean("system_framework_clean_share_menu"));
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.sevtinge.hyperceiler.ui.fragment;

import static com.sevtinge.hyperceiler.utils.BuildUtils.getBuildType;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isAndroidR;

import android.view.View;

import com.sevtinge.hyperceiler.BuildConfig;
import com.sevtinge.hyperceiler.R;
import com.sevtinge.hyperceiler.ui.base.BaseSettingsActivity;
import com.sevtinge.hyperceiler.ui.fragment.base.SettingsPreferenceFragment;
Expand All @@ -20,7 +18,6 @@
public class PersonalAssistantFragment extends SettingsPreferenceFragment
implements Preference.OnPreferenceChangeListener {

SwitchPreference mWidgetCrack;
SwitchPreference mBlurBackground;
SeekBarPreferenceEx mBlurRadius;
ColorPickerPreference mBlurColor;
Expand All @@ -42,20 +39,13 @@ public View.OnClickListener addRestartListener() {
@Override
public void initPrefs() {
int mBlurMode = Integer.parseInt(PrefsUtils.getSharedStringPrefs(getContext(), "prefs_key_personal_assistant_value", "1"));
mWidgetCrack = findPreference("prefs_key_personal_assistant_widget_crack");
mBlurBackground = findPreference("prefs_key_pa_enable");
mBlurBackgroundStyle = findPreference("prefs_key_personal_assistant_value");
mBlurRadius = findPreference("prefs_key_personal_assistant_blurradius");
mBlurColor = findPreference("prefs_key_personal_assistant_color");

mBlurBackground.setVisible(!isAndroidR()); // 负一屏背景设置

if (!getSharedPreferences().getBoolean("prefs_key_various_enable_super_function", false)) {
if (getBuildType().equals("debug")) {
mWidgetCrack.setVisible(false);
}
}

setBlurMode(mBlurMode);
mBlurBackgroundStyle.setOnPreferenceChangeListener(this);
}
Expand Down
Loading

0 comments on commit 55e49c7

Please sign in to comment.