mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-13 20:01:17 +08:00
Compare commits
4 Commits
90294a1599
...
5f5bc6572c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f5bc6572c | ||
|
|
b3859653ef | ||
|
|
7dcfdcced7 | ||
|
|
f2a4f06301 |
@@ -11,8 +11,8 @@ android {
|
|||||||
applicationId = "com.lt2333.simplicitytools"
|
applicationId = "com.lt2333.simplicitytools"
|
||||||
minSdk = 31
|
minSdk = 31
|
||||||
targetSdk = 33
|
targetSdk = 33
|
||||||
versionCode = 72
|
versionCode = 73
|
||||||
versionName = "1.7.2"
|
versionName = "1.7.3"
|
||||||
buildConfigField("String", "BUILD_TIME", "\"${System.currentTimeMillis()}\"")
|
buildConfigField("String", "BUILD_TIME", "\"${System.currentTimeMillis()}\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +1,29 @@
|
|||||||
package com.lt2333.simplicitytools.hooks.rules.all.securitycenter
|
package com.lt2333.simplicitytools.hooks.rules.all.securitycenter
|
||||||
|
|
||||||
|
import com.github.kyuubiran.ezxhelper.utils.*
|
||||||
import com.lt2333.simplicitytools.utils.XSPUtils
|
import com.lt2333.simplicitytools.utils.XSPUtils
|
||||||
import com.lt2333.simplicitytools.utils.xposed.base.HookRegister
|
import com.lt2333.simplicitytools.utils.xposed.base.HookRegister
|
||||||
import de.robv.android.xposed.XC_MethodHook
|
import de.robv.android.xposed.XC_MethodHook
|
||||||
|
import de.robv.android.xposed.XposedBridge
|
||||||
import de.robv.android.xposed.XposedHelpers
|
import de.robv.android.xposed.XposedHelpers
|
||||||
|
|
||||||
object RemoveMacroBlacklistForAll : HookRegister() {
|
object RemoveMacroBlacklistForAll : HookRegister() {
|
||||||
|
|
||||||
override fun init() {
|
override fun init() {
|
||||||
// TODO: 新版已失效
|
|
||||||
if (XSPUtils.getBoolean("remove_macro_blacklist", false)) {
|
if (XSPUtils.getBoolean("remove_macro_blacklist", false)) {
|
||||||
var letter = 'a'
|
var letter = 'a'
|
||||||
for (i in 0..25) {
|
for (i in 0..25) {
|
||||||
val classIfExists = XposedHelpers.findClassIfExists(
|
val classIfExists = XposedHelpers.findClassIfExists(
|
||||||
"com.miui.gamebooster.v.$letter" + "0", getDefaultClassLoader()
|
"com.miui.gamebooster.utils.$letter" + "0", getDefaultClassLoader()
|
||||||
) ?: continue
|
) ?: continue
|
||||||
if (classIfExists.declaredMethods.size in 6..12 && classIfExists.fields.isEmpty() && classIfExists.declaredFields.size >= 2) {
|
if (classIfExists.declaredMethods.size in 10..15 && classIfExists.fields.isEmpty() && classIfExists.declaredFields.size >= 2) {
|
||||||
XposedHelpers.findAndHookMethod(classIfExists, "c", String::class.java,
|
XposedBridge.log("Woobox: RemoveMacroBlacklist in ${classIfExists.name}")
|
||||||
object : XC_MethodHook() {
|
findMethod(classIfExists){
|
||||||
override fun beforeHookedMethod(param: MethodHookParam?) {
|
name=="c" && returnType==Boolean::class.java && isStatic &¶meterCount==1
|
||||||
param?.result = false
|
}.hookBefore {
|
||||||
|
XposedBridge.log("Woobox: c")
|
||||||
|
it.result = false
|
||||||
}
|
}
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
letter++
|
letter++
|
||||||
|
|||||||
@@ -16,12 +16,10 @@ object StatusBarBigMobileTypeIconForT : HookRegister() {
|
|||||||
|
|
||||||
private val getLocation = XSPUtils.getInt("big_mobile_type_location", 1)
|
private val getLocation = XSPUtils.getInt("big_mobile_type_location", 1)
|
||||||
private val upAndDownPosition = XSPUtils.getInt("big_mobile_type_icon_up_and_down_position", 0)
|
private val upAndDownPosition = XSPUtils.getInt("big_mobile_type_icon_up_and_down_position", 0)
|
||||||
private val leftAndRightMargin =
|
private val leftAndRightMargin = XSPUtils.getInt("big_mobile_type_icon_left_and_right_margins", 0)
|
||||||
XSPUtils.getInt("big_mobile_type_icon_left_and_right_margins", 0)
|
|
||||||
private val isBold = XSPUtils.getBoolean("big_mobile_type_icon_bold", true)
|
private val isBold = XSPUtils.getBoolean("big_mobile_type_icon_bold", true)
|
||||||
private val size = XSPUtils.getFloat("big_mobile_type_icon_size", 12.5f)
|
private val size = XSPUtils.getFloat("big_mobile_type_icon_size", 12.5f)
|
||||||
private val isOnlyShowNetwork =
|
private val isOnlyShowNetwork = XSPUtils.getBoolean("big_mobile_type_only_show_network_card", false)
|
||||||
XSPUtils.getBoolean("big_mobile_type_only_show_network_card", false)
|
|
||||||
|
|
||||||
override fun init() = hasEnable("big_mobile_type_icon") {
|
override fun init() = hasEnable("big_mobile_type_icon") {
|
||||||
//使网络类型单独显示
|
//使网络类型单独显示
|
||||||
@@ -41,16 +39,13 @@ object StatusBarBigMobileTypeIconForT : HookRegister() {
|
|||||||
val res: Resources = context.resources
|
val res: Resources = context.resources
|
||||||
|
|
||||||
//获取组件
|
//获取组件
|
||||||
val mobileContainerLeftId: Int =
|
val mobileContainerLeftId: Int = res.getIdentifier("mobile_container_left", "id", "com.android.systemui")
|
||||||
res.getIdentifier("mobile_container_left", "id", "com.android.systemui")
|
val mobileContainerLeft = statusBarMobileView.findViewById<ViewGroup>(mobileContainerLeftId)
|
||||||
val mobileContainerLeft =
|
|
||||||
statusBarMobileView.findViewById<ViewGroup>(mobileContainerLeftId)
|
|
||||||
|
|
||||||
val mobileGroupId: Int = res.getIdentifier("mobile_group", "id", "com.android.systemui")
|
val mobileGroupId: Int = res.getIdentifier("mobile_group", "id", "com.android.systemui")
|
||||||
val mobileGroup = statusBarMobileView.findViewById<ViewGroup>(mobileGroupId)
|
val mobileGroup = statusBarMobileView.findViewById<ViewGroup>(mobileGroupId)
|
||||||
|
|
||||||
val mobileTypeSingleId: Int =
|
val mobileTypeSingleId: Int = res.getIdentifier("mobile_type_single", "id", "com.android.systemui")
|
||||||
res.getIdentifier("mobile_type_single", "id", "com.android.systemui")
|
|
||||||
val mobileTypeSingle = statusBarMobileView.findViewById<TextView>(mobileTypeSingleId)
|
val mobileTypeSingle = statusBarMobileView.findViewById<TextView>(mobileTypeSingleId)
|
||||||
|
|
||||||
//更改顺序
|
//更改顺序
|
||||||
@@ -70,12 +65,10 @@ object StatusBarBigMobileTypeIconForT : HookRegister() {
|
|||||||
leftAndRightMargin, upAndDownPosition, leftAndRightMargin, 0
|
leftAndRightMargin, upAndDownPosition, leftAndRightMargin, 0
|
||||||
)
|
)
|
||||||
//显示非上网卡的大图标
|
//显示非上网卡的大图标
|
||||||
if (!isOnlyShowNetwork) {
|
if (!mobileIconState.getObjectAs<Boolean>("dataConnected") && !mobileIconState.getObjectAs<Boolean>("wifiAvailable")) {
|
||||||
if (!mobileIconState.getObjectAs<Boolean>("dataConnected")) {
|
|
||||||
mobileTypeSingle.visibility = View.VISIBLE
|
mobileTypeSingle.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//显示非上网卡的大图标
|
//显示非上网卡的大图标
|
||||||
if (!isOnlyShowNetwork) {
|
if (!isOnlyShowNetwork) {
|
||||||
findMethod("com.android.systemui.statusbar.StatusBarMobileView") {
|
findMethod("com.android.systemui.statusbar.StatusBarMobileView") {
|
||||||
@@ -86,12 +79,10 @@ object StatusBarBigMobileTypeIconForT : HookRegister() {
|
|||||||
val context: Context = statusBarMobileView.context
|
val context: Context = statusBarMobileView.context
|
||||||
val res: Resources = context.resources
|
val res: Resources = context.resources
|
||||||
|
|
||||||
val mobileTypeSingleId: Int =
|
val mobileTypeSingleId: Int = res.getIdentifier("mobile_type_single", "id", "com.android.systemui")
|
||||||
res.getIdentifier("mobile_type_single", "id", "com.android.systemui")
|
val mobileTypeSingle = statusBarMobileView.findViewById<TextView>(mobileTypeSingleId)
|
||||||
val mobileTypeSingle =
|
|
||||||
statusBarMobileView.findViewById<TextView>(mobileTypeSingleId)
|
|
||||||
|
|
||||||
if (!mobileIconState.getObjectAs<Boolean>("dataConnected")) {
|
if (!mobileIconState.getObjectAs<Boolean>("dataConnected") && !mobileIconState.getObjectAs<Boolean>("wifiAvailable")) {
|
||||||
mobileTypeSingle.visibility = View.VISIBLE
|
mobileTypeSingle.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,7 @@
|
|||||||
<string name="status_bar_clock_size">時計のサイズ (0: 変更しない)</string>
|
<string name="status_bar_clock_size">時計のサイズ (0: 変更しない)</string>
|
||||||
<string name="status_bar_clock_double_line_size">デュアル行サイズ (0: 変更しない)</string>
|
<string name="status_bar_clock_double_line_size">デュアル行サイズ (0: 変更しない)</string>
|
||||||
<string name="matters_needing_attention">機能が動作していませんか? </string>
|
<string name="matters_needing_attention">機能が動作していませんか? </string>
|
||||||
|
<string name="Done">OK</string>
|
||||||
<string name="about_module_summary">モジュール関連情報を表示</string>
|
<string name="about_module_summary">モジュール関連情報を表示</string>
|
||||||
<string name="contributor_list">オープンソースリポジトリの貢献者一覧</string>
|
<string name="contributor_list">オープンソースリポジトリの貢献者一覧</string>
|
||||||
<string name="developer">開発者</string>
|
<string name="developer">開発者</string>
|
||||||
@@ -236,4 +237,14 @@
|
|||||||
<string name="pkg_installer_summary">アプリインストール時のカウントチェックを無効にします</string>
|
<string name="pkg_installer_summary">アプリインストール時のカウントチェックを無効にします</string>
|
||||||
<string name="big_mobile_type_only_show_network_card">ネットワークカードのみを表示する大きなモバイルタイプ</string>
|
<string name="big_mobile_type_only_show_network_card">ネットワークカードのみを表示する大きなモバイルタイプ</string>
|
||||||
<string name="big_mobile_type_location">大きなモバイルタイプの位置</string>
|
<string name="big_mobile_type_location">大きなモバイルタイプの位置</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation">カードマーキングアニメーションを変更する</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation_summary">アプリ履歴でカードを削除するときのアニメーション効果を変更します</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening">壁紙の調整を無効にする</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening_summary">アプリ履歴へ出入りするときに壁紙の明るさが徐々に変化する効果を無効します</string>
|
||||||
|
<string name="miuihome_scroll_icon_name">アプリ名をスクロール</string>
|
||||||
|
<string name="miuihome_scroll_icon_name_summary">アプリ名が長すぎるとき、改行させずスクロール表示させます</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window">ショートカットメニューの追加ウィンドウ</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_summary">ホーム画面のアイコンを長押しすると、素早く開けるウィンドウを追加できます</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_title">小さいウィンドウ</string>
|
||||||
|
<string name="click_to_view_use_cases">クリックして使用例を表示</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
<string name="main_switch">Główny przełącznik modułu</string>
|
<string name="main_switch">Główny przełącznik modułu</string>
|
||||||
<string name="hide_gps_icon">Ukryj ikonę GPS</string>
|
<string name="hide_gps_icon">Ukryj ikonę GPS</string>
|
||||||
<string name="hide_status_bar_network_speed_second">Ukryj jednostki prędkości sieci (/s)</string>
|
<string name="hide_status_bar_network_speed_second">Ukryj jednostki prędkości sieci (/s)</string>
|
||||||
|
<string name="menu">Menu</string>
|
||||||
<string name="Tips">Porady</string>
|
<string name="Tips">Porady</string>
|
||||||
<string name="skip_waiting_time">Pomiń 5/10-sekundowe zakładki z ostrzeżeniem</string>
|
<string name="skip_waiting_time">Pomiń 5/10-sekundowe zakładki z ostrzeżeniem</string>
|
||||||
<string name="unlock_unlimited_cropping">Usuń ograniczenie przycinania zdjęć/zrzutów ekranu</string>
|
<string name="unlock_unlimited_cropping">Usuń ograniczenie przycinania zdjęć/zrzutów ekranu</string>
|
||||||
@@ -69,6 +70,7 @@
|
|||||||
<string name="status_bar_clock_size">Rozmiar zegara (0: brak zmian)</string>
|
<string name="status_bar_clock_size">Rozmiar zegara (0: brak zmian)</string>
|
||||||
<string name="status_bar_clock_double_line_size">Rozmiar wiersza (0: brak zmian)</string>
|
<string name="status_bar_clock_double_line_size">Rozmiar wiersza (0: brak zmian)</string>
|
||||||
<string name="matters_needing_attention">Funkcja nie działa? </string>
|
<string name="matters_needing_attention">Funkcja nie działa? </string>
|
||||||
|
<string name="Done">OK</string>
|
||||||
<string name="about_module_summary">Wyświetl informacje dotyczące modułu</string>
|
<string name="about_module_summary">Wyświetl informacje dotyczące modułu</string>
|
||||||
<string name="contributor_list">Lista współtwórców repozytorium</string>
|
<string name="contributor_list">Lista współtwórców repozytorium</string>
|
||||||
<string name="developer">Deweloper</string>
|
<string name="developer">Deweloper</string>
|
||||||
|
|||||||
@@ -241,4 +241,14 @@
|
|||||||
<string name="pkg_installer_summary">Отключить проверку количества установок</string>
|
<string name="pkg_installer_summary">Отключить проверку количества установок</string>
|
||||||
<string name="big_mobile_type_only_show_network_card">Большая иконка типа сети только для активной сим</string>
|
<string name="big_mobile_type_only_show_network_card">Большая иконка типа сети только для активной сим</string>
|
||||||
<string name="big_mobile_type_location">Положение большой иконки типа сети</string>
|
<string name="big_mobile_type_location">Положение большой иконки типа сети</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation">Изменение анимации обозначения карты</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation_summary">Изменить эффект анимации последней карты удаления задачи</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening">Отключить затемнение обоев</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening_summary">Отключит эффект видимости обоев от затемнения при запуске и выходе из недавней задачи</string>
|
||||||
|
<string name="miuihome_scroll_icon_name">Бегущая строка имени приложений</string>
|
||||||
|
<string name="miuihome_scroll_icon_name_summary">Длинное имя приложения будет прокручено и отображено в одну строку</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window">Меню добавления окна</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_summary">Нажмите и удерживайте иконку рабочего стола, чтобы добавить быстрое открытое окно</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_title">Маленькое окно</string>
|
||||||
|
<string name="click_to_view_use_cases">Нажмите, чтобы просмотреть варианты использования</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -237,4 +237,14 @@
|
|||||||
<string name="pkg_installer_summary">Tắt kiểm tra số lần cài đặt ứng dụng</string>
|
<string name="pkg_installer_summary">Tắt kiểm tra số lần cài đặt ứng dụng</string>
|
||||||
<string name="big_mobile_type_only_show_network_card">Mạng dữ liệu lớn chỉ hiển thị thẻ mạng</string>
|
<string name="big_mobile_type_only_show_network_card">Mạng dữ liệu lớn chỉ hiển thị thẻ mạng</string>
|
||||||
<string name="big_mobile_type_location">Vị trí mạng dữ liệu lớn</string>
|
<string name="big_mobile_type_location">Vị trí mạng dữ liệu lớn</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation">Sửa đổi hoạt ảnh đánh dấu thẻ</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation_summary">Sửa đổi hiệu ứng hoạt ảnh của thẻ loại bỏ nhiệm vụ gần đây</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening">Tắt làm mờ hình nền</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening_summary">Điều này sẽ vô hiệu hóa hiệu ứng mà hình nền sẽ sáng lên rồi mờ khi vào và ra khỏi tác vụ gần đây</string>
|
||||||
|
<string name="miuihome_scroll_icon_name">Cuộn tên ứng dụng</string>
|
||||||
|
<string name="miuihome_scroll_icon_name_summary">Tên ứng dụng quá dài sẽ bị cuộn và hiển thị mà không có dòng mới nào</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window">Menu phím tắt thêm cửa sổ</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_summary">Nhấn và giữ biểu tượng màn hình chính để thêm cửa sổ mở nhanh</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_title">Cửa sổ nhỏ</string>
|
||||||
|
<string name="click_to_view_use_cases">Nhấp để xem các trường hợp sử dụng</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -237,4 +237,14 @@
|
|||||||
<string name="pkg_installer_summary">禁用頻繁安裝應用檢查</string>
|
<string name="pkg_installer_summary">禁用頻繁安裝應用檢查</string>
|
||||||
<string name="big_mobile_type_only_show_network_card">大行動網路僅會顯示網路卡</string>
|
<string name="big_mobile_type_only_show_network_card">大行動網路僅會顯示網路卡</string>
|
||||||
<string name="big_mobile_type_location">大行動網路位置</string>
|
<string name="big_mobile_type_location">大行動網路位置</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation">修改卡片動畫</string>
|
||||||
|
<string name="miuihome_recentview_remove_card_animation_summary">修改在最近任務介面移除卡片的動畫效果</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening">停用桌布壓暗</string>
|
||||||
|
<string name="miuihome_recentwiew_wallpaper_darkening_summary">這將會停用進出最近任務介面時的桌布壓暗效果</string>
|
||||||
|
<string name="miuihome_scroll_icon_name">捲動顯示應用程式名稱</string>
|
||||||
|
<string name="miuihome_scroll_icon_name_summary">過長的應用程式名稱將會捲動,而不會在多列顯示</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window">捷徑選單新增小窗</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_summary">長按桌面圖示以快速開啟小窗應用程式</string>
|
||||||
|
<string name="miuihome_shortcut_add_small_window_title">小窗應用程式</string>
|
||||||
|
<string name="click_to_view_use_cases">按一下以檢視用例</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Submodule blockmiui updated: 2b3351fe4d...c380bd47b3
Reference in New Issue
Block a user