Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle/libs.versions.toml
  • Loading branch information
HChenX committed Jun 19, 2024
2 parents 1375731 + 14ecd5f commit 211bd59
Show file tree
Hide file tree
Showing 20 changed files with 105 additions and 19 deletions.
9 changes: 5 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,15 @@ fun loadPropertiesFromFile(fileName: String): Properties? {

android {
namespace = "com.sevtinge.hyperceiler"
compileSdk = 34
compileSdk = 35
buildToolsVersion = "35.0.0"

defaultConfig {
applicationId = namespace
minSdk = 33
targetSdk = 34
versionCode = 146
versionName = "2.4.146"
targetSdk = 35
versionCode = 147
versionName = "2.4.147"

val buildTime = SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(Date())
buildConfigField("String", "BUILD_TIME", "\"$buildTime\"")
Expand Down
7 changes: 5 additions & 2 deletions app/src/main/assets/tips/tips
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ If there is no special annotation for the function that turns gray, it means tha
There has never been a bug in the Canary version.
HyperCeiler! Initiate!
Beware of Furuicon~ (whispering)
Neko Qiqi has obsessive-compulsive disorder and always wants to clean up the HyperCeiler, but it backfires (cry~
Neko Qiqi: Meow~ (Milk sweet)
Ling Qiqi has obsessive-compulsive disorder and always wants to clean up the HyperCeiler, but it backfires (cry~
This is a Tip from 2.x~
I don't understand why Xiaomi doesn't do these user-friendly features.
Improve the stability of the module | Optimize module fluency

14 changes: 12 additions & 2 deletions app/src/main/assets/tips/tips-pt_BR
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ A utopia ideal não existe na realidade.
Faça boas ações e não pergunte sobre o futuro.
Os desenvolvedores não fazem adivinhação, exceto Neko Qiqi.
Guardei alguns bugs para que você saiba que está usando o HyperCeiler.
Você sabia? Na verdade, as dicas são tudo bobagem.
Você sabia? O aniversário do HyperCeiler é em 1 de maio e o aniversário de Sevtinge é em 2 de fevereiro.
Na verdade, as dicas são tudo bobagem.
O aniversário do HyperCeiler é em 1 de maio e o aniversário de Sevtinge é em 2 de fevereiro.
O HyperCeiler está quebrado! Não deve ser um problema com o HyperCeiler!
É mais um dia querendo refatorar em RUST.
Se você é homem, abra o código.
Expand All @@ -27,4 +27,14 @@ Nunca houve um bug na versão Canary.
HyperCeiler iniciado!
Cuidado com o furacão.
Neko Qiqi tem transtorno obsessivo-compulsivo e sempre quer refatorar o HyperCeiler.
Eu quero todas as estrelas...
A cada momento, uma nova oportunidade.
A UI do Sistema não está respondendo.
Você é mais forte do que pensa.
Seu sistema está destruído!
Por que a Xiaomi não oferece esses recursos fáceis de usar?
Melhore a estabilidade do módulo e otimize a fluência do módulo.
Por favor, não envie problemas de FeSO₄, obrigado pela sua cooperação.
Os usuários só precisam atualizar o módulo, mas os desenvolvedores têm muitas coisas a considerar.
Vamos, vamos, novos bugs saindo do forno!
Obrigado por usar o HyperCeiler!
7 changes: 6 additions & 1 deletion app/src/main/assets/tips/tips-zh_CN
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ HyperCeiler!启动!
进程 "system" 没有响应
当你正在凝望 Tip 的时候,Tip 也在凝望你。
Tip: Tip: Tip: Tip:
☆这不神奇吗★
☆这不神奇吗★
这是一条来自 2.x 的 Tip~
提高模块的稳定性 | 优化模块的流畅度
致用户:请不要提交 FeSO₄ 的 issues,谢谢配合
柒柒:想猫叫一下,但是绀漓会敲我的,呜呜呜~(喵~
用户只要更新模块就好了,可是开发者考虑的事情就很多了,什么时候添加新的功能,什么时候修复坏掉的功能,什么时候看用户反馈,都是要经过深思熟虑的
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected void after(MethodHookParam param) {
);

findAndHookMethod("com.miui.home.recents.GestureModeApp",
"onStartGesture", new MethodHook() {
lpparam.classLoader, "onStartGesture", new MethodHook() {
@Override
protected void before(MethodHookParam param) {
unhook = hookToast();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ object RecentResource : BaseHook() {
}
}

val sRoundedCorner by lazy {
mPrefsMap.getInt("task_view_corners", 20)
}

override fun init() {

findAndHookMethod("com.miui.home.recents.util.WindowCornerRadiusUtil", "getTaskViewCornerRadius", object : MethodHook(){
override fun before(param: MethodHookParam?) {
param?.result = sRoundedCorner
}
})
Application::class.java.hookBeforeMethod("attach", Context::class.java) { it ->
EzXHelper.initHandleLoadPackage(lpparam)
EzXHelper.setLogTag(TAG)
Expand All @@ -55,7 +65,7 @@ object RecentResource : BaseHook() {
Resources::class.java.hookBeforeMethod("getInteger", Int::class.javaPrimitiveType) { hook(it) }
Resources::class.java.hookBeforeMethod("getText", Int::class.javaPrimitiveType) { hook(it) }

val value = mPrefsMap.getInt("task_view_corners", -1).toFloat()
val value = sRoundedCorner.toFloat()
val value1 = mPrefsMap.getInt("task_view_header_height", -1).toFloat()
if (value != -1f && value != 20f) {
hookMap["recents_task_view_rounded_corners_radius_min"] = ResourcesHookData("dimen", dp2px(value))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.sevtinge.hyperceiler.module.hook.systemui.plugin;

import static de.robv.android.xposed.XC_MethodReplacement.returnConstant;

import de.robv.android.xposed.XposedHelpers;

public class HideEditButton {
public static void initHideEditButton(ClassLoader classLoader) {
XposedHelpers.findAndHookMethod("miui.systemui.controlcenter.panel.main.qs.EditButtonController", classLoader, "available", boolean.class, returnConstant(false));
XposedHelpers.findAndHookMethod("miui.systemui.controlcenter.panel.main.qs.EditButtonController", classLoader, "available", boolean.class, "miui.systemui.controlcenter.panel.main.MainPanelModeController$MainPanelMode", returnConstant(false));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ protected void after(MethodHookParam param) {

public void setClassLoader(ClassLoader classLoader) {
// CCGrid.loadCCGrid(classLoader);
if (mPrefsMap.getBoolean("system_ui_control_center_hide_edit_botton"))
HideEditButton.initHideEditButton(classLoader);
if (mPrefsMap.getBoolean("system_ui_plugin_enable_volume_blur"))
EnableVolumeBlur.initEnableVolumeBlur(classLoader);
if (mPrefsMap.getStringAsInt("system_ui_control_center_mi_smart_hub_entry", 0) != 0)
Expand Down
12 changes: 11 additions & 1 deletion app/src/main/res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@
<string name="system_framework_volume_first_press">即座な音量調整</string>
<string name="system_framework_volume_separate_control">独立した音量コントロール</string>
<string name="system_framework_volume_disable_safe">大音量の警告を無効化</string>
<string name="default_volume_safe_all">すべての条件で有効</string>
<string name="default_volume_safe_headset">ヘッドフォン接続時にのみ有効</string>
<string name="system_framework_volume_separate_slider">通知の音量スライダー</string>
<string name="system_framework_volume_media_steps">メディアの音量レベル</string>
<string name="system_framework_volume_media_steps_desc">オンにすると、音量バーのスクロールがフリーズしたり、Bluetooth の音量が異常になったりする場合があります</string>
Expand Down Expand Up @@ -358,6 +360,7 @@
<string name="system_framework_disable_app_link_verify_desc">アプリ設定で対応リンクを有効化しなくても、リンクを開いたときに対応しているアプリで直接開くようにします</string>
<string name="system_framework_clean_share_menu">共有メニューを整理する</string>
<string name="system_framework_clean_share_apps">選択中のアプリ</string>
<string name="system_framework_auto_start_apps">自動起動の制限を除外</string>
<string name="system_framework_clean_share_apps_desc">選択したアプリは共有メニューに表示されません</string>
<string name="system_framework_clean_open_menu">「アプリで開く」メニューを整理する</string>
<string name="system_framework_clean_open_apps">選択中のアプリ</string>
Expand Down Expand Up @@ -389,6 +392,7 @@
<string name="system_framework_quick_screenshot_desc">スクリーンショットの遅延を無効化</string>
<string name="system_framework_disable_link_turbo_toast">LinkTurbo トーストを隠す</string>
<string name="system_framework_allow_third_theme">サードパーティテーマの使用を許可</string>
<string name="system_framework_allow_disable_protected_package">保護されたアプリの無効化を許可</string>
<!--Package Manager Service-->
<string name="system_framework_corepatch_title">パッケージマネージャーサービス</string>
<string name="system_framework_core_patch_downgr">ダウングレードを許可</string>
Expand All @@ -407,6 +411,8 @@
<string name="system_framework_core_patch_enhanced_mode_desc">アプリケーションのいくつかの検証に合格させます</string>
<string name="system_framework_disable_low_api_check">低 API チェックを無効化</string>
<string name="system_framework_disable_low_api_check_desc">API 23 未満のアプリを許可します</string>
<string name="system_framework_disable_persistent">常に稼働するアプリのチェックを無効化</string>
<string name="system_framework_disable_persistent_more">システムインターフェースなど、常に稼働するアプリを直接更新できるようになります</string>
<!--Browser-->
<string name="browser">ブラウザー</string>
<string name="browser_debug_mode">開発者オプションの有効化</string>
Expand Down Expand Up @@ -581,7 +587,6 @@
<string name="system_ui_statusbar_iconmanage_privacy_title">プライバシー</string>
<string name="system_ui_statusbar_iconmanage_left_title">アイコンを左側に表示</string>
<string name="system_ui_statusbar_iconmanage_right_title">アイコンを右側に表示</string>
<string name="system_ui_status_bar_icon_paw">肉球</string>
<string name="system_ui_status_bar_icon_wifi">Wi-Fi</string>
<string name="system_ui_status_bar_icon_wifi_slave">補助 Wi-Fi</string>
<string name="system_ui_status_bar_icon_wifi_standard">Wi-Fi 標準規格</string>
Expand Down Expand Up @@ -892,6 +897,7 @@
<string name="system_settings_permission_unknown_origin_app">アプリ一覧を検索せずに「不明なアプリのインストール」権限を表示</string>
<string name="system_settings_permission_unknown_origin_app_desc">「不明なアプリのインストール」の権限スイッチに直接移動する、グローバル版と同様の動作にします</string>
<string name="system_settings_permission_accessibility">アプリ一覧を検索せずにユーザー補助サービスの権限を付与</string>
<string name="system_settings_permission_disable_install_unknown_verify">不明なパッケージのインストールの許可を有効にするときの認証を無効化</string>
<string name="system_settings_develop_title">開発者オプション</string>
<string name="system_settings_apps_freezer">「キャッシュに保存されたアプリの実行を停止」を強制的に表示</string>
<string name="system_settings_apps_freezer_more">有効にすると開発者向けオプションで表示されますが、動作するかは不明です</string>
Expand Down Expand Up @@ -1662,4 +1668,8 @@
<string name="ic_qs_title_autobrightness">明るさの自動調節</string>
<string name="ic_qs_title_vowifi1">VoWiFi SIM1</string>
<string name="ic_qs_title_vowifi2">VoWiFi SIM2</string>
<!--Telecom-->
<string name="telecom">電話</string>
<string name="scam_reminder_bypass_caption">通話転送の MMI コード を許可</string>
<string name="scam_reminder_bypass_description">通話転送を有効にするための **21*8# などの MMI コードを許可します</string>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@
<string name="system_framework_disable_app_link_verify_desc">Reverter para abrir apps suportados diretamente ao abrir links sem habilitar links suportados nas configurações do app</string>
<string name="system_framework_clean_share_menu">Limpar menu de compartilhamento</string>
<string name="system_framework_clean_share_apps">Apps selecionados</string>
<string name="system_framework_auto_start_apps">Exceções em cadeia de restrições</string>
<string name="system_framework_clean_share_apps_desc">O app selecionado não aparecerá no menu de compartilhamento</string>
<string name="system_framework_clean_open_menu">Limpar menu Abrir com</string>
<string name="system_framework_clean_open_apps">Apps selecionados</string>
Expand Down Expand Up @@ -391,6 +392,7 @@
<string name="system_framework_quick_screenshot_desc">Desative o atraso na captura de tela</string>
<string name="system_framework_disable_link_turbo_toast">Ocultar dica da rede móvel usada para aceleração</string>
<string name="system_framework_allow_third_theme">Permitir usar temas de terceiros</string>
<string name="system_framework_allow_disable_protected_package">Permitir desativar apps protegidos</string>
<!--Package Manager Service-->
<string name="system_framework_corepatch_title">Serviço de Gerenciador de Pacotes</string>
<string name="system_framework_core_patch_downgr">Permitir downgrade</string>
Expand Down Expand Up @@ -895,6 +897,7 @@
<string name="system_settings_permission_unknown_origin_app">Instalar apps desconhecidos sem pesquisar na lista de apps</string>
<string name="system_settings_permission_unknown_origin_app_desc">Use a compilação internacional e vá diretamente para o interruptor de permissão correspondente do app exibido na parte superior de outros apps</string>
<string name="system_settings_permission_accessibility">Permissões de serviços de acessibilidade sem pesquisar na lista de apps</string>
<string name="system_settings_permission_disable_install_unknown_verify">Desativar verificação ao instalar apps desconhecidos</string>
<string name="system_settings_develop_title">Opções do desenvolvedor</string>
<string name="system_settings_apps_freezer">Forçar exibição de apps congelados em cache</string>
<string name="system_settings_apps_freezer_more">Uma vez ativado, esse recurso pode ser encontrado nas Opções do desenvolvedor, mas sua funcionalidade não é garantida.</string>
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values-vi-rVN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ Chức năng này là chức năng thử nghiệm có độ ổn định cao</st
<string name="system_framework_disable_app_link_verify_desc">Hoàn nguyên để mở trực tiếp các ứng dụng được hỗ trợ khi mở liên kết, không cần kiểm tra liên kết được hỗ trợ trong cài đặt ứng dụng</string>
<string name="system_framework_clean_share_menu">Dọn dẹp trình đơn chia sẻ</string>
<string name="system_framework_clean_share_apps">Ứng dụng đã chọn</string>
<string name="system_framework_auto_start_apps">Loại bỏ chuỗi hạn chế</string>
<string name="system_framework_clean_share_apps_desc">Ứng dụng đã chọn sẽ không xuất hiện trong menu chia sẻ</string>
<string name="system_framework_clean_open_menu">Dọn dẹp mở với menu</string>
<string name="system_framework_clean_open_apps">Ứng dụng đã lựa chọn</string>
Expand Down Expand Up @@ -392,6 +393,7 @@ Chức năng này là chức năng thử nghiệm có độ ổn định cao</st
<string name="system_framework_quick_screenshot_desc">Tắt độ trễ ảnh chụp màn hình</string>
<string name="system_framework_disable_link_turbo_toast">Ẩn thông báo \"Sử dụng mạng di động để tăng tốc\"</string>
<string name="system_framework_allow_third_theme">Cho phép sử dụng chủ đề của bên thứ ba</string>
<string name="system_framework_allow_disable_protected_package">Cho phép tắt các ứng dụng được bảo vệ</string>
<!--Package Manager Service-->
<string name="system_framework_corepatch_title">Quản lý cài đặt gói</string>
<string name="system_framework_core_patch_downgr">Cho phép hạ cấp</string>
Expand Down Expand Up @@ -897,6 +899,7 @@ Chức năng này là chức năng thử nghiệm có độ ổn định cao</st
<string name="system_settings_permission_unknown_origin_app">Quyền cài đặt ứng dụng không xác định nhanh</string>
<string name="system_settings_permission_unknown_origin_app_desc">Chuyển trực tiếp đến nơi cấp quyền của ứng dụng</string>
<string name="system_settings_permission_accessibility">Quyền dịch vụ trợ năng mà không cần tìm kiếm danh sách ứng dụng</string>
<string name="system_settings_permission_disable_install_unknown_verify">Vô hiệu hóa xác minh khi bật cho phép quyền cài đặt gói không xác định</string>
<string name="system_settings_develop_title">Tùy chọn nhà phát triển</string>
<string name="system_settings_apps_freezer">Hiển thị tạm dừng thực thi cho các ứng dụng được lưu trữ</string>
<string name="system_settings_apps_freezer_more">Khi bật, bạn có thể tìm thấy tùy chọn này trong \"Tùy chọn nhà phát triển\", nhưng không đảm bảo tính khả dụng</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 @@ -860,6 +860,7 @@
<string name="system_ui_control_center_show_weather">显示天气</string>
<string name="system_ui_control_center_show_weather_city">显示地区</string>
<string name="system_ui_control_center_disable_device_managed">隐藏网络监控提示</string>
<string name="system_ui_control_center_hide_edit_botton">隐藏编辑按钮</string>
<string name="system_ui_control_center_unimportant_notification">禁止折叠为历史通知</string>
<string name="system_ui_control_center_mute_visible_notice">亮屏时静音</string>
<string name="system_ui_control_center_expand_notification">展开通知</string>
Expand Down
Loading

0 comments on commit 211bd59

Please sign in to comment.