Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Nov 5, 2023
2 parents 0085624 + b916ade commit c5b5ac4
Show file tree
Hide file tree
Showing 16 changed files with 89 additions and 57 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@

Android 11 ~ 13 的 MIUI 12.5 ~ 14

> 不支持 修改较多的第三方 MIUI Rom、修改较多的系统软件,以及部分国外 MIUI Rom
> 不支持 修改较多的第三方 MIUI/Xiaomi HyperOS Rom、修改较多的系统软件,以及部分国外 MIUI/Xiaomi HyperOS Rom
>
> 目前 HyperCeiler 是基于 Android 13 的 MIUI 14 的手机端设备进行适配,覆盖不是很完整,需要不断测试和改进
> 目前 HyperCeiler 是基于 Android 13 的 MIUI 14 的手机端设备进行适配,覆盖不是很完整,需要不断测试和改进
>
> HyperCeiler 已停止维护 Android 11-12 的 MIUI Rom,如需使用请停留[此版本](https://github.com/saraSakuHj/Cemiuiler/releases/tag/1.3.130)
## 作用域包含的应用

Expand Down Expand Up @@ -155,7 +156,7 @@ Android 11 ~ 13 的 MIUI 12.5 ~ 14

[badge_qguild]: https://img.shields.io/badge/QQ-频道-4991D3?style=for-the-badge&logo=tencentqq

[telegram_url]: https://t.me/hyperceiler
[telegram_url]: https://t.me/cemiuiler

[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dhyperceiler
[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dcemiuiler

11 changes: 5 additions & 6 deletions README_en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@

MIUI 12.5 ~ 14 for Android 11 ~ 13

> Does not support third-party MIUI ROMs with many modifications, system software with many
> modifications, and some foreign MIUI ROMs
> Does not support heavily modified third-party MIUI/Xiaomi HyperOS Rom, heavily modified system software, and some foreign MIUI/Xiaomi HyperOS Rom;
>
> At present, HyperCeiler is based on Android 13 MIUI 14 mobile phone devices for adaptation, the
> coverage is not very complete, it needs continuous testing and improvement
> Currently, HyperCeiler is adapted for mobile devices based on Android 13 and MIUI 14. The coverage is not very complete and requires continuous testing and improvement;
>
> HyperCeiler has stopped maintaining MIUI Rom for Android 11-12. If you want to use it, please stay at [this version](https://github.com/saraSakuHj/Cemiuiler/releases/tag/1.3.130)
## Supported Applications

Expand Down Expand Up @@ -158,6 +157,6 @@ You can provide translations for the HyperCeiler project [here](https://crwd.in/

[badge_qguild]: https://img.shields.io/badge/QQ-Channel-4991D3?style=for-the-badge&logo=tencentqq

[telegram_url]: https://t.me/hyperceiler
[telegram_url]: https://t.me/cemiuiler

[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dhyperceiler
[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dcemiuiler
4 changes: 2 additions & 2 deletions README_pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ Você pode fornecer traduções para o projeto [aqui](https://crwd.in/hyperceile

[badge_qguild]: https://img.shields.io/badge/QQ-Canal-4991D3?style=for-the-badge&logo=tencentqq

[telegram_url]: https://t.me/hyperceiler
[telegram_url]: https://t.me/cemiuiler

[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dhyperceiler
[badge_telegram]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=2CA5E0&label=Telegram&logo=telegram&query=%24.data.totalSubs&url=https%3A%2F%2Fapi.spencerwoo.com%2Fsubstats%2F%3Fsource%3Dtelegram%26queryKey%3Dcemiuiler
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
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.updater.AndroidVersionCode;
import com.sevtinge.hyperceiler.module.hook.updater.DeviceModify;
import com.sevtinge.hyperceiler.module.hook.updater.VabUpdate;
import com.sevtinge.hyperceiler.module.hook.updater.VersionCodeModify;
import com.sevtinge.hyperceiler.module.hook.updater.VersionCodeNew;

import java.util.Objects;

public class Updater extends BaseModule {

@Override
Expand All @@ -21,6 +24,7 @@ public void handleLoadPackage() {
} else {
initHook(new VersionCodeModify(), !TextUtils.isEmpty(mPrefsMap.getString("various_updater_miui_version", "")));
}
initHook(AndroidVersionCode.INSTANCE, !Objects.equals(mPrefsMap.getString("various_updater_android_version", "14"), ""));
initHook(new VabUpdate(), mPrefsMap.getBoolean("updater_fuck_vab"));
initHook(DeviceModify.INSTANCE, !TextUtils.isEmpty(mPrefsMap.getString("updater_device", "")));
// dexKit finish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.sevtinge.hyperceiler.module.base.BaseHook
import com.sevtinge.hyperceiler.utils.DexKit.addUsingStringsEquals
import com.sevtinge.hyperceiler.utils.DexKit.dexKitBridge
import com.sevtinge.hyperceiler.utils.api.BlurDraw.getValueByFields

import de.robv.android.xposed.XposedHelpers
import java.lang.reflect.Modifier

Expand Down Expand Up @@ -102,9 +101,10 @@ object NoAutoTurnOff : BaseHook() {
}

try {
logI(TAG, this.lpparam.packageName, "$nullField")
XposedHelpers.setStaticIntField(nullClass, nullField.name, 999999999)
logI(TAG, this.lpparam.packageName, "nullField hook success.")
findAndHookConstructor(nullClass, object : MethodHook() {
override fun after(param: MethodHookParam) {
XposedHelpers.setObjectField(param.thisObject, nullField.name, 999999999)
} })
} catch (t: Throwable) {
logE(TAG, this.lpparam.packageName, "nullField hook failed", t)
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,31 @@ import com.github.kyuubiran.ezxhelper.EzXHelper
import com.sevtinge.hyperceiler.module.base.BaseHook
import com.sevtinge.hyperceiler.utils.DexKit.addUsingStringsEquals
import com.sevtinge.hyperceiler.utils.DexKit.dexKitBridge
import com.sevtinge.hyperceiler.utils.log.XposedLogUtils
import de.robv.android.xposed.XposedHelpers
import java.lang.reflect.Modifier

object UnlockMoreVolumeFromNew : BaseHook() {
private val getClass by lazy {
dexKitBridge.findClass {
matcher {
addUsingStringsEquals("ro.vendor.audio.screenrecorder.bothrecor")
addUsingStringsEquals("support_a2dp_inner_record")
}
}.map { it.getInstance(EzXHelper.classLoader) }.first()
}

private val getObject by lazy {
dexKitBridge.findField {
override fun init() {
val fieldData = dexKitBridge.findField {
matcher {
declaredClass { getClass }
modifiers = Modifier.PRIVATE
declaredClass(getClass)
type = "boolean"

}
}.map { it.getFieldInstance(EzXHelper.classLoader) }.toList()
}

override fun init() {
XposedLogUtils.logI("hook class $getClass")
for (i in getObject) {
XposedHelpers.setStaticBooleanField(getClass, i.name, true)
logD("hook ${i.name} true")
}
findAndHookConstructor(getClass, object : MethodHook() {
override fun after(param: MethodHookParam) {
for (i in fieldData) {
XposedHelpers.setObjectField(param.thisObject, i.name, true)
}
} })
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object TimeCustomization : BaseHook() {
// 预设模式
1 -> {
var c: Context? = null
mClockClass!!.constructorFinder().first {
mClockClass.constructorFinder().first {
paramCount == 3
}.createHook {
after {
Expand Down Expand Up @@ -120,7 +120,7 @@ object TimeCustomization : BaseHook() {
2 -> {
var c: Context? = null

mClockClass!!.constructorFinder().first {
mClockClass.constructorFinder().first {
paramCount == 3
}.createHook {
after {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.sevtinge.hyperceiler.module.hook.updater

import android.os.Build
import com.sevtinge.hyperceiler.module.base.BaseHook
import de.robv.android.xposed.XposedHelpers

object AndroidVersionCode : BaseHook() {
private val mAndroidVersionCode =
mPrefsMap.getString("various_updater_android_version", "14")

override fun init() {
XposedHelpers.setStaticObjectField(Build.VERSION::class.java, "RELEASE", mAndroidVersionCode)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import com.sevtinge.hyperceiler.utils.DexKit.dexKitBridge
import de.robv.android.xposed.XposedHelpers

object VersionCodeNew : BaseHook() {
private val mBigMethod by lazy {
dexKitBridge.findMethod {
matcher {
addUsingStringsEquals("ro.miui.ui.version.name")
}
}.map { it.getMethodInstance(EzXHelper.classLoader) }.first()
}
private val mOSMethod by lazy {
dexKitBridge.findMethod {
matcher {
Expand Down Expand Up @@ -48,6 +55,15 @@ object VersionCodeNew : BaseHook() {
}
})

// 大版本名字修改
mBigMethod.createHook {
before {
if (!TextUtils.isEmpty(mOldVersionCode)) {
it.result = mOldVersionCode.substringAfter("V")
}
}
}

// OS 版本名修改
mOSMethod.createHook {
before {
Expand Down
20 changes: 15 additions & 5 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--Introduction to Xposed Modules-->
<string name="xposed_description">Torne a MIUI ótima novamente!</string>
<string name="xposed_description">Torne o HyperOS ótimo novamente!</string>
<string name="new_permission_wifi_state_desc">adicionar e excluir arquivos no armazenamento interno do dispositivo</string>
<string name="new_permission_location_desc">ser usado para fornecer serviços como latitude e longitude</string>
<string name="new_cta_agree_desc">Durante o uso, para fornecer mais recursos, podemos solicitar permissão Root/Su. Você pode acessar o Gerenciamento de permissões a qualquer momento para ajustar o status de autorização de todas as permissões e ir ao seu gerenciador Root/Su para obter permissões Root/Su.</string>
<string name="new_cta_app_main_purpose">modificar apps do sistema</string>
<string name="new_cta_app_all_purpose_title">Bem-vindo ao HyperCeiler, este app é executado na estrutura Xposed, você pode usar este app para sequestrar e modificar outros apps suportados para obter melhorias na MIUI. Durante o uso, para fornecer mais recursos, podemos solicitar permissão Root/Su. Você pode ir ao seu gerenciador Root/Su para obter permissões Root/Su.</string>
<string name="new_cta_app_all_purpose_title">Bem-vindo ao HyperCeiler, este app é executado na estrutura Xposed, você pode usar este app para sequestrar e modificar outros apps suportados para obter melhorias no HyperOS. Durante o uso, para fornecer mais recursos, podemos solicitar permissão Root/Su. Você pode ir ao seu gerenciador Root/Su para obter permissões Root/Su.</string>
<!--HyperCeiler Settings/About Page-->
<string name="language">Português (Brasil)</string>
<string name="translator">Igor</string>
Expand Down Expand Up @@ -584,6 +584,8 @@
<string name="system_ui_controlcenter_magnet_title">Magnético</string>
<string name="system_ui_control_center_notification_blur_title">Notificação</string>
<string name="system_control_center_qs_detail_bg">Transparência do fundo do cartão</string>
<string name="quick_settings_state_change_message_on_my">%1$s está ativado</string>
<string name="quick_settings_state_change_message_off_my">%1$s está desativado</string>
<string name="system_control_center_5g_tile">Interruptor de rede 5G</string>
<string name="system_control_center_5g_toggle_label">Rede 5G</string>
<string name="system_control_center_sunshine_mode">Modo luz solar</string>
Expand Down Expand Up @@ -631,6 +633,11 @@
<string name="system_control_center_old_qs_grid_columns_horizontal">Número de colunas no painel recolhido (Paisagem)</string>
<string name="system_ui_control_center_cc_bluetooth_tile_style_title">Estilo do ícone bluetooth</string>
<string name="system_ui_control_center_cc_bluetooth_tile_style_sum">Mova o ícone do bluetooth para perto do ícone de rede</string>
<string name="system_ui_control_center_notifrowmenu">Menu de notificação estendido</string>
<string name="system_ui_control_center_notifrowmenu_desc">Abra as informações do app, force a parada do app e abra em uma janela flutuante no menu de notificação (deslize a notificação para a esquerda para abri-la)</string>
<string name="system_notifrowmenu_appinfo">Informações do app</string>
<string name="system_notifrowmenu_openinfw">Janela flutuante</string>
<string name="system_notifrowmenu_forceclose">Forçar parada</string>
<string name="system_ui_other_title">Outros</string>
<string name="system_ui_charge_animation_title">Animação de carregamento</string>
<string name="system_ui_charge_animation_style">Estilo da animação de carregamento</string>
Expand Down Expand Up @@ -702,6 +709,7 @@
<string name="updater_big_version">Versão grande falsa</string>
<string name="updater_big_version_desc">Itens que precisam ser preenchidos ao disfarçar a versão Xiaomi HyperOS, o padrão é V816</string>
<string name="updater_miui_version">Versão falsa para Atualizações</string>
<string name="updater_android_version">Versão falsa para Android</string>
<string name="updater_miui_version_desc">Modifique apenas a atualização do sistema, que pode proteger a atualização do sistema até certo ponto</string>
<string name="updater_device">Dispositivo falso para Atualizações</string>
<string name="updater_device_desc">Insira o código do modelo do dispositivo de destino para especificar o modelo, que pode ser usado para obter pacotes de ROM para outros modelos, o que é extremamente perigoso</string>
Expand Down Expand Up @@ -753,6 +761,8 @@
<string name="home">Launcher do sistema</string>
<string name="home_gesture">Gestos e Navegação</string>
<string name="home_navigation_title">Navegação</string>
<string name="home_navigation_quick_back">Voltar ao app anterior</string>
<string name="home_navigation_quick_back_more">Deslize pela tela começando pela borda para voltar ao app anterior</string>
<string name="home_navigation_back_area_height">Altura da área do gesto de retorno</string>
<string name="home_navigation_back_area_width">Largura da área do gesto de retorno</string>
<string name="home_gesture_title2">Gestos</string>
Expand Down Expand Up @@ -1272,7 +1282,7 @@
<string name="operator_fix_2">Método 2 (recomendado)</string>
<string name="custom_hook_new">Adicionar gancho</string>
<string name="custom_hook_mode">Selecionar modo</string>
<string name="hyperceiler_notice">Puxe a barra de status para baixo para exibir os interruptores de atalho e as notificações do sistema</string>
<string name="hyperceiler_notice">Puxe para baixo a barra de status para exibir as opções de atalho e notificações do sistema</string>
<string name="hyperceiler_restart_quick">Reiniciar apps rapidamente</string>
<string name="location_add">Adicionar</string>
<string name="location_delete">Excluir</string>
Expand All @@ -1281,9 +1291,9 @@
<string name="tip_1">Dica: Você pode nos apoiar doando em \"Sobre - Patrocinadores\".</string>
<string name="tip_2">Dica: Quer entrar em contato com o desenvolvedor? Telegram: @Sevtinge_PM_bot ou Bilibili: @绀漓丨Sevtinge.</string>
<string name="tip_3">Dica: Quer entrar no grupo oficial? Telegram: @hyperceiler ou pesquise 247909573 no QQ.</string>
<string name="tip_4">Dica: HyperCeiler = Ceiler + MIUI, Ceiler = Ceil + er.</string>
<string name="tip_4">Dica: HyperCeiler = HyperOS + Ceiler, Ceiler = Ceil + er.</string>
<string name="tip_5">Dica: Adivinhe quantas vezes mais você terá que ver essa dica novamente?</string>
<string name="tip_6">Dica: Torne a HyperCeiler ótima novamente!</string>
<string name="tip_6">Dica: Torne o HyperOS ótimo novamente!</string>
<string name="tip_7">Dica: Seja bem-vindo para seguir no Github: @sevtinge ou Bilibili: @绀漓丨Sevtinge.</string>
<string name="tip_8">Dica: A utopia ideal não existe na realidade.</string>
<string name="tip_9">Dica: A cidade de Sanjiang tende a entrar em colapso.</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@
<string name="updater_big_version">伪装大版本</string>
<string name="updater_big_version_desc">伪装 Xiaomi HyperOS 版本时需要填写的项目,默认为 V816</string>
<string name="updater_miui_version">伪装版本</string>
<string name="updater_android_version">伪装 Android 版本</string>
<string name="updater_miui_version_desc">仅对系统更新修改,可在一定程度上屏蔽系统更新</string>
<string name="updater_device">伪装机型</string>
<string name="updater_device_desc">输入目标设备的机型代号以指定机型,可用于获取其他机型的 ROM 包,该功能极度危险</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-zh-rHK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@
<string name="updater">系统更新</string>
<string name="updater_fuck_vab">移除 OTA 驗證</string>
<string name="updater_fuck_vab_desc">僅支援 VAB 設備,其他非 VAB 設備請不要開啟!\n功能特點:無需內測權限即可刷入完整內測卡刷包\n注意事項:\n- 跨不同版本類型刷入後建議清除數據\n- 不支援任何非官方 ROM 使用\n- 此功能有一定危險性,請在了解 Fastboot 操作後再評估是否開啟</string>
<string name="updater_miui_version">偽裝 MIUI 版本</string>
<string name="updater_miui_version">偽裝版本</string>
<string name="updater_android_version">偽裝 Android 版本</string>
<string name="updater_miui_version_desc">僅對系统更新修改,可在一定程度上遮罩系统更新</string>
<string name="updater_device">偽裝機型</string>
<string name="updater_device_desc">輸入目標設備代號以指定設備,可用於獲取其他機型的 ROM 包,此功能極度危險</string>
Expand Down
Loading

0 comments on commit c5b5ac4

Please sign in to comment.