Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@
import java.util.Set;

import fan.preference.DropDownPreference;
import fan.preference.SeekBarPreferenceCompat;

public class VariousFragment extends DashboardFragment {
private static final String PREF_IME_STYLE = "prefs_key_various_unlock_ime_style";
private static final String PREF_IME_TARGET_APPS = "prefs_key_various_unlock_ime_apps";
private static final String PREF_IME_SHOW_ALL = "prefs_key_various_unlock_ime_show_all";
private static final String PREF_IME_UI_COUNT = "prefs_key_various_unlock_ime_ui_count";

private static final String PREF_AOSP_IME_NAV_BAR_LAYOUT_START = "prefs_key_various_aosp_ime_nav_bar_layout_start";
private static final String PREF_AOSP_IME_NAV_BAR_LAYOUT_END = "prefs_key_various_aosp_ime_nav_bar_layout_end";
private static final int IME_STYLE_OFF = 0;
Expand All @@ -55,6 +58,7 @@ public class VariousFragment extends DashboardFragment {
SwitchPreference mClipboard;
SwitchPreference mClipboardClear;
SwitchPreference mShowAllImeList;
SwitchPreference mImeListUiCount;
DropDownPreference mImeStyle;
DropDownPreference mAospImeNavBarLayoutStart;
DropDownPreference mAospImeNavBarLayoutEnd;
Expand All @@ -72,6 +76,7 @@ public void initPrefs() {
mImeStyle = findPreference(PREF_IME_STYLE);
mImeTargetApps = findPreference(PREF_IME_TARGET_APPS);
mShowAllImeList = findPreference(PREF_IME_SHOW_ALL);
mImeListUiCount = findPreference(PREF_IME_UI_COUNT);
mAospImeNavBarLayoutStart = findPreference(PREF_AOSP_IME_NAV_BAR_LAYOUT_START);
mAospImeNavBarLayoutEnd = findPreference(PREF_AOSP_IME_NAV_BAR_LAYOUT_END);

Expand All @@ -98,6 +103,10 @@ public void initPrefs() {
mShowAllImeList.setChecked(getSharedPreferences().getBoolean(PREF_IME_SHOW_ALL, false));
}

if(mImeListUiCount != null){
mImeListUiCount.setChecked(getSharedPreferences().getBoolean(PREF_IME_UI_COUNT, false));
}

if (mAospImeNavBarLayoutStart != null) {
mAospImeNavBarLayoutStart.setOnPreferenceChangeListener((preference, newValue) -> {
String value = String.valueOf(newValue);
Expand Down Expand Up @@ -179,6 +188,9 @@ private void updateInputMethodPreferenceState(int imeStyle) {
if (mShowAllImeList != null) {
mShowAllImeList.setVisible(imeStyle == IME_STYLE_MIUI);
}
if (mImeListUiCount != null) {
mImeListUiCount.setVisible(imeStyle == IME_STYLE_MIUI);
}
if (mAospImeNavBarLayoutStart != null) {
mAospImeNavBarLayoutStart.setVisible(imeStyle == IME_STYLE_AOSP);
}
Expand Down
19 changes: 15 additions & 4 deletions library/core/src/main/res/values-zh-rCN/strings_app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@
<string name="system_framework_other_speed_install">快速安装</string>
<string name="system_framework_other_speed_install_desc">安装至运行内存以提升安装速度,需要系统底层支持</string>
<string name="system_framework_other_rotation_button">旋转建议</string>
<string name="system_framework_other_rotation_button_desc">若强制不生效,你需要确保没有在系统或模块中启用隐藏手势提示线\n如果你有隐藏手势提示线的需求,你可以在自定义导航栏中将导航栏和导航栏框架高度调为 0dp,并且在自定义手势提示线中把粗细调为 0.00dp</string>
<string name="system_framework_other_thermal_brightness">禁止自动降低屏幕亮度</string>
<string name="system_framework_other_thermal_brightness_more">仅限非温控导致的自动降低屏幕亮度</string>
<string name="system_framework_other_disable_cleaner">禁止自动终止后台应用进程</string>
Expand Down Expand Up @@ -472,6 +473,9 @@
<string name="system_framework_market_use_detailmini_desc">解除应用在未使用 appClientId 的情况下跳转到小米应用商店其他应用的详情页会被拒绝展示的限制</string>
<string name="system_framework_bypass_force_downloadui">打开下载页面时不强制使用小米下载管理器</string>
<string name="system_framework_bypass_force_downloadui_desc">解决 Google 快速分享查看下载内容跳转错误的问题</string>
<string name="system_framework_bypass_wake_path_checker">绕过链式启动检测器</string>
<string name="system_framework_bypass_wake_path_checker_desc">允许所有链式启动请求</string>

<!--核心破解-->
<string name="system_framework_corepatch_tip">此列表下的功能需要在您了解此类功能后再选择性启用,部分选项存在一定危险性,请知悉\n常规选项的功能除总开关外均即时生效,扩展功能无论开关都需要重启才能生效</string>
<string name="system_framework_corepatch_title">包管理服务</string>
Expand Down Expand Up @@ -989,6 +993,12 @@
<!--权限管理服务-->
<string name="lbe">权限管理服务</string>
<string name="lbe_auto_start">禁止自动关闭自启动</string>
<string name="lbe_paste_toast">剪贴板读取提示</string>
<string name="lbe_paste_toast_custom">自定义剪贴板读取提示</string>
<string name="lbe_paste_toast_custom_close_button_to_close">将关闭按钮改为关闭本次的提示</string>
<string name="lbe_paste_toast_custom_close_button_text_custom">自定义关闭按钮名称</string>
<string name="lbe_paste_toast_custom_close_button_text_tip">太小的按钮名称会导致难以点击</string>
<string name="lbe_paste_toast_custom_toast_opacity">提示不透明度</string>
<!--投屏-->
<string name="milink_hyperos">互联互通服务</string>
<string name="milink_unlock_mishare">解锁小米妙享</string>
Expand Down Expand Up @@ -1060,9 +1070,9 @@
<string name="home_navigation_title">导航</string>
<string name="home_navigation_quick_back">切换上一个应用</string>
<string name="home_navigation_quick_back_more">从屏幕两侧向内滑动并停顿,快速切换上一个应用</string>
<string name="home_navigation_assist_left_slide">右上滑动</string>
<string name="home_navigation_assist_left_slide">左下角向内滑动</string>
<string name="home_navigation_assist_left_slide_desc">在任意界面从屏幕左下角向内滑动</string>
<string name="home_navigation_assist_right_slide">左上滑动</string>
<string name="home_navigation_assist_right_slide">右下角向内滑动</string>
<string name="home_navigation_assist_right_slide_desc">在任意界面从屏幕右下角向内滑动</string>
<string name="home_navigation_disable_full_screen_back_gesture">禁用全屏返回手势</string>
<string name="home_gesture_back_haptic">返回手势触觉反馈</string>
Expand Down Expand Up @@ -1619,13 +1629,14 @@
<string name="various_nobrightness">拒绝强制亮度</string>
<string name="various_no_overscroll">禁用越界回弹</string>
<string name="various_disable_access_device_logs">关闭访问设备日志确认</string>
<string name="various_phrase_clipboardlist">解除常用语剪贴板条数和时间限制</string>
<string name="various_phrase_clipboardlist">解除输入法全面屏优化常用语剪贴板条数和时间限制</string>
<string name="various_phrase_clipboardlist_more">开启后请在 Xposed 管理器中勾选对应输入法作用域</string>
<string name="various_unlock_ime">解锁输入法全面屏优化</string>
<string name="various_unlock_ime_desc">对目标输入法启用所选样式的全面屏优化\n原生风格需要额外勾选系统框架作用域\n选择原生风格后只对非小米定制版生效,小米定制版勾选将加入键盘可切换列表</string>
<string name="various_unlock_ime_apps">目标输入法</string>
<string name="various_unlock_ime_apps_desc">若所选输入法未加入作用域,将同时申请作用域</string>
<string name="various_unlock_ime_show_all">显示全部输入法列表</string>
<string name="various_unlock_ime_ui_count">解锁输入法列表 UI 数量</string>
<string name="various_unlock_ime_show_all">显示完整输入法列表</string>
<string name="various_unlock_ime_show_all_desc">部分输入法由于没有查看应用列表权限,可能会导致输入法切换列表显示不全\n此功能需要额外勾选系统框架,但可能会有性能影响,请谨慎开启</string>
<string name="various_unlock_ime_style_miui">MIUI 风格</string>
<string name="various_unlock_ime_style_aosp">原生风格</string>
Expand Down
15 changes: 15 additions & 0 deletions library/core/src/main/res/values-zh-rME/strings_app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -637,4 +637,19 @@
<string name="ic_qs_title_bluetooth">蓝色牙齿</string>
<string name="ic_qs_title_hotspot">非常热门的谁都想来蹭的热点</string>
<string name="ic_qs_title_flashlight">烫点</string>

<!--权限管理服务-->
<string name="lbe">阿里郎只有使用权没有所有权</string>
<string name="lbe_auto_start">不许偷关掉我自启动</string>
<string name="lbe_paste_toast">小米又魔改了原生的剪贴板读取提示</string>
<string name="lbe_paste_toast_custom">爆改小米的假 Toast</string>
<string name="lbe_paste_toast_custom_close_button_to_close">点关闭是为了已读的不是为了关掉提示的!</string>
<string name="lbe_paste_toast_custom_close_button_text_custom">要不把关闭按钮叫做确定吧,或者其他文本</string>
<string name="lbe_paste_toast_custom_close_button_text_tip">假 Toast 不穿透,要么挡住要么误触关闭</string>
<string name="lbe_paste_toast_custom_toast_opacity">假装假 Toast 能和真 Toast 一样有不透明度</string>

<string name="various_unlock_ime">凭什么输入法全面屏优化只有你家输入法才能用</string>
<string name="various_unlock_ime_ui_count">你家定制版输入法就占得切换输入法槽位不够用了</string>
<string name="various_unlock_ime_show_all">第三方输入法怎么了你</string>
<string name="various_unlock_ime_show_all_desc">凭什么切换输入法列表只有小米输入法? 过滤了一次就算了还从系统框架再过滤一次</string>
</resources>
19 changes: 16 additions & 3 deletions library/core/src/main/res/values/strings_app.xml
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@
<string name="system_framework_other_speed_install">Speed install</string>
<string name="system_framework_other_speed_install_desc">Install with RAM to speed up installation. System core support is required.</string>
<string name="system_framework_other_rotation_button">Rotation recommendations</string>
<string name="system_framework_other_rotation_button_desc">If forcing it doesn\'t work, you need to ensure that hiding the gesture line is not enabled in the system or module. \nIf you need to hide it, you can set the height of the navigation and navigation frame to 0dp in the custom navigation, and adjust the thickness of the gesture line to 0.00dp in the custom gesture line.</string>
<string name="system_framework_other_thermal_brightness">Disable automatic screen brightness reduction</string>
<string name="system_framework_other_thermal_brightness_more">Only automatically reduce screen brightness that isn\'t caused by thermal control</string>
<string name="system_framework_other_disable_cleaner">Disable kill background apps</string>
Expand Down Expand Up @@ -512,6 +513,8 @@
<string name="system_framework_market_use_detailmini_desc">Remove the restriction that prevents an app from redirecting to another app\'s details page in GetApps without using the appClientId.</string>
<string name="system_framework_bypass_force_downloadui">Fix download redirection</string>
<string name="system_framework_bypass_force_downloadui_desc">Fixes the incorrect redirection issue when clicking \"View downloads\" in Quick Share</string>
<string name="system_framework_bypass_wake_path_checker">Bypass wake path checker</string>
<string name="system_framework_bypass_wake_path_checker_desc">Always allow chained start requests</string>
<string name="system_framework_native_file_picker">Use Android file picker</string>
<string name="system_framework_native_file_picker_desc">No longer use HyperOS File Manager</string>
<!--Package Manager Service-->
Expand Down Expand Up @@ -1034,6 +1037,15 @@
<!--Permissions-->
<string name="lbe">Permissions</string>
<string name="lbe_auto_start">Disable auto-shutdown of auto start</string>
<string name="lbe_paste_toast">Paste toast</string>
<string name="lbe_paste_toast_custom">Custom paste toast</string>
<string name="lbe_paste_toast_custom_close_button_to_close">Hook close button into close toast</string>
<string name="lbe_paste_toast_custom_close_button_text_custom">Custom close button text</string>
<string name="lbe_paste_toast_custom_close_button_text_tip">Text that is too small will affect clicking</string>
<string name="lbe_paste_toast_custom_toast_opacity">Toast opacity</string>



<!--Cast-->
<string name="milink_hyperos">Interconnectivity services</string>
<string name="milink_unlock_mishare">Unlock Device interconnection</string>
Expand Down Expand Up @@ -1661,12 +1673,13 @@
<string name="various_nobrightness">Reject forced brightness</string>
<string name="various_no_overscroll">Disable out-of-bounds bounce</string>
<string name="various_disable_access_device_logs">Dismiss access device logs request dialog</string>
<string name="various_phrase_clipboardlist">Remove the clipboard and time limits for phrases</string>
<string name="various_phrase_clipboardlist">Remove the clipboard and time limits for Enhance keyboard</string>
<string name="various_phrase_clipboardlist_more">After it\'s enabled, select the input method scope and restart it.</string>
<string name="various_unlock_ime">Unlock IME fullscreen optimization</string>
<string name="various_unlock_ime_desc">Enable full-screen optimization for the selected style on the target input method\nThe "Native" style requires an additional check of the "System Framework" scope\nSelecting the "Native" style only applies to non-Xiaomi custom versions; checking it for Xiaomi custom versions will add the keyboard to the switchable list</string>
<string name="various_unlock_ime">Unlock Enhance keyboard limitation</string>
<string name="various_unlock_ime_desc">Enable Enhance keyboard for the selected style on the target input method\nThe "Native" style requires an additional check of the "System Framework" scope\nSelecting the "Native" style only applies to non-Xiaomi custom versions; checking it for Xiaomi custom versions will add the keyboard to the switchable list</string>
<string name="various_unlock_ime_apps">Target input methods</string>
<string name="various_unlock_ime_apps_desc">If a selected input method is not in scope, its scope will be requested as well.</string>
<string name="various_unlock_ime_ui_count">Unlock input methods counts in UI</string>
<string name="various_unlock_ime_show_all">Show all input methods</string>
<string name="various_unlock_ime_show_all_desc">Some input methods may appear incomplete in the switcher because they cannot query the installed app list.\nThis also requires System Framework scope and may affect performance. Enable with caution.</string>
<string name="various_unlock_ime_style_miui">MIUI style</string>
Expand Down
4 changes: 4 additions & 0 deletions library/core/src/main/res/xml/framework_other.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
android:summary="@string/system_framework_bypass_force_downloadui_desc"
android:title="@string/system_framework_bypass_force_downloadui" />

<SwitchPreference
android:defaultValue="false"
android:key="prefs_key_system_framework_bypass_wake_path_checker"
android:title="@string/system_framework_bypass_wake_path_checker" />
</PreferenceCategory>

<PreferenceCategory android:title="@string/system_framework_shortcut_title">
Expand Down
30 changes: 30 additions & 0 deletions library/core/src/main/res/xml/lbe_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,34 @@
android:title="@string/lbe_auto_start" />

</PreferenceCategory>
<PreferenceCategory android:title="@string/lbe_paste_toast">
<SwitchPreference
android:defaultValue="false"
android:key="prefs_key_lbe_paste_toast_custom"
android:title="@string/lbe_paste_toast_custom" />

<SeekBarPreferenceCompat
android:defaultValue="100"
android:dependency="prefs_key_lbe_paste_toast_custom"
android:key="prefs_key_lbe_paste_toast_custom_toast_opacity"
android:title="@string/lbe_paste_toast_custom_toast_opacity"
app:format="%%%"
app:maxValue="100"
app:minValue="0"
app:showSeekBarValue="true"
app:stepValue="1" />
<SwitchPreference
android:defaultValue="false"
android:dependency="prefs_key_lbe_paste_toast_custom"
android:key="prefs_key_lbe_paste_toast_custom_close_button_to_close"
android:title="@string/lbe_paste_toast_custom_close_button_to_close" />

<EditTextPreference
android:dependency="prefs_key_lbe_paste_toast_custom"
android:summary="@string/lbe_paste_toast_custom_close_button_text_tip"
android:defaultValue=""
android:key="prefs_key_lbe_paste_toast_custom_close_button_text_custom"
android:title="@string/lbe_paste_toast_custom_close_button_text_custom" />
</PreferenceCategory>

</PreferenceScreen>
11 changes: 6 additions & 5 deletions library/core/src/main/res/xml/system_ui_navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
android:defaultValue="0"
android:key="prefs_key_system_framework_other_rotation_button_int"
android:title="@string/system_framework_other_rotation_button"
android:summary="@string/system_framework_other_rotation_button_desc"
app:entries="@array/system_framework_other_rotation_button_mode"
app:entryValues="@array/status_bar_icon_mode_value" />

Expand All @@ -42,7 +43,7 @@
app:dividerValue="10"
app:format="%.1f dp"
app:maxValue="1000"
app:minValue="1"
app:minValue="0"
app:showSeekBarValue="true"
app:stepValue="1" />

Expand All @@ -52,9 +53,9 @@
android:key="prefs_key_system_ui_navigation_custom_height_land"
android:title="@string/system_ui_navigation_custom_height_land"
app:dividerValue="10"
app:format=".1f dp"
app:format="%.1f dp"
app:maxValue="1000"
app:minValue="1"
app:minValue="0"
app:showSeekBarValue="true"
app:stepValue="1" />

Expand All @@ -66,7 +67,7 @@
app:dividerValue="10"
app:format="%.1f dp"
app:maxValue="1000"
app:minValue="1"
app:minValue="0"
app:showSeekBarValue="true"
app:stepValue="1" />

Expand All @@ -78,7 +79,7 @@
app:dividerValue="10"
app:format="%.1f dp"
app:maxValue="1000"
app:minValue="1"
app:minValue="0"
app:showSeekBarValue="true"
app:stepValue="1" />

Expand Down
6 changes: 6 additions & 0 deletions library/core/src/main/res/xml/various.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
android:summary="@string/various_unlock_ime_show_all_desc"
android:title="@string/various_unlock_ime_show_all" />

<SwitchPreference
android:key="prefs_key_various_unlock_ime_ui_count"
android:title="@string/various_unlock_ime_ui_count"
android:defaultValue="false"
/>

</PreferenceCategory>

<PreferenceCategory android:title="@string/various">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,23 @@
package com.sevtinge.hyperceiler.libhook.app;

import com.hchen.database.HookBase;
import com.sevtinge.hyperceiler.common.log.XposedLog;
import com.sevtinge.hyperceiler.common.utils.PrefsBridge;
import com.sevtinge.hyperceiler.libhook.base.BaseLoad;
import com.sevtinge.hyperceiler.libhook.rules.lbe.AutoStart;
import com.sevtinge.hyperceiler.libhook.rules.lbe.PasteToast;


@HookBase(targetPackage = "com.lbe.security.miui")
public class Lbe extends BaseLoad {

@Override
public void onPackageLoaded() {
initHook(new AutoStart(), PrefsBridge.getBoolean("lbe_auto_start"));

// paste toast
initHook(new PasteToast(), PrefsBridge.getBoolean("lbe_paste_toast_custom"));


}
}
Loading
Loading