Commit Graph

351 Commits

Author SHA1 Message Date
ShirkNeko
408c3be675 优化Kpm模块相关函数的返回类型,改为Boolean或Int以提高可读性和准确性 2025-04-01 02:40:58 +08:00
ShirkNeko
f67f16733f 优化KPM模块加载逻辑,更新相关字符串资源,调整KPM版本显示条件 2025-03-31 23:22:03 +08:00
ShirkNeko
e9c5ffb430 优化HomeScreen,移除KPM状态检查,调整ContributionCard显示逻辑 2025-03-31 22:33:20 +08:00
ShirkNeko
cb2cdaed12 删除KernelConfigUtils.kt文件 2025-03-31 22:32:57 +08:00
ShirkNeko
37b00d49c8 添加KPM状态检查功能,并更新相关UI文本 2025-03-31 22:11:52 +08:00
ShirkNeko
b668378e23 重命名函数并更新命令以获取KPM版本信息 2025-03-31 15:52:57 +08:00
ShirkNeko
cb116286ed Manager: Fix the problem that the contrast of key color is too light 2025-03-31 14:50:27 +08:00
ShirkNeko
7f0ae95dfb Improve font color blending and contrast in dark mode.
Fix login issue (#19).

Modify styles for more settings.

Do not show the status of susfs when using lkm mode.

Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
2025-03-31 14:50:20 +08:00
ShirkNeko
57c8d69e83 Manager: simplify and fix SUSFS version display errors
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
2025-03-30 18:30:53 +08:00
ShirkNeko
e27471fa9e 更新下载接口为 SukiSU-Ultra 的最新版本 2025-03-30 02:02:56 +08:00
ShirkNeko
269aea7cfc Add KPM module support, update related strings and view models 2025-03-30 01:54:27 +08:00
WenHao2130
aa53223b02 [wip]manager: allow hide kernelsu version
This is an experimental commit

Signed-off-by: WenHao2130 <WenHao2130@outlook.com>
2025-03-29 18:20:34 +08:00
WenHao2130
ddd0da86cd manager: enhanced device model retrieval with Huawei' market name checking
Signed-off-by: WenHao2130 <WenHao2130@outlook.com>
2025-03-29 16:11:39 +08:00
ShirkNeko
11ec41aadb manager: Add kpmmgr to build workflows and optimize device model retrieval logic 2025-03-29 16:03:56 +08:00
ShirkNeko
ae3c591638 Manager: Enhanced Device Model Retrieval with One Plus' Market Name Checking 2025-03-29 01:35:33 +08:00
ShirkNeko
11ba242acc Update button colors to support dynamic themes 2025-03-27 12:44:26 +08:00
ShirkNeko
9e00e8feb6 Opt the code and add color to the buttons. 2025-03-26 18:59:58 +08:00
ShirkNeko
52514cc5b3 Updated agp version to 8.9.1, added white color theme 2025-03-26 14:53:10 +08:00
ShirkNeko
a33094f45f Opt Flash and Install interface button elements, adjust colors and dialog box styles 2025-03-24 14:31:11 +08:00
ShirkNeko
06cb43b3a1 Opt theme color management
adjust button color to fit dark mode
2025-03-23 18:05:04 +08:00
ShirkNeko
0266115dac Opt theme mode management
Update card color and dark color setting logic
2025-03-23 16:50:00 +08:00
ShirkNeko
cca608954a - Optimizing interface text
- Use string resources instead of hardcoding
2025-03-23 10:36:10 +08:00
ShirkNeko
82edd46e0e - Optimize the logic of obtaining the model number of Xiaomi devices
- Add custom transparency settings, adjust the default transparency in dark color mode
2025-03-23 02:46:26 +08:00
ShirkNeko
04db01cdbc Fix the problem of disappearing background in dark color mode 2025-03-23 00:26:58 +08:00
ShirkNeko
7265d5aacd - Manger: Fix the device model acquisition logic
- Manger: Update card default shadow and transparency settings, optimize theme color scheme

- Manger: Optimize dark color mode style

Signed-off-by:ShirkNeko<ShirkNeko@2773800761@qq.com>
2025-03-23 00:06:03 +08:00
ShirkNeko
ff99ab8e62 Changing the custom background expand more options logic
Co-authored-by:ShirkNeko <ShirkNeko@alone2832165@gmail.com>
2025-03-22 16:37:30 +08:00
ShirkNeko
192f36fb3c Changing the custom background expand more options logic
Co-authored-by:Shirkneko <ShirkNeko@alone2832165@gmail.com>
2025-03-22 16:35:56 +08:00
ShirkNeko
7b7fff91a6 Upload source files to complete submission of history changes
Co-authored-by:Shirkneko <Shirkneko@2773800761@qq.com>
2025-03-22 15:20:51 +08:00
ShirkNeko
3208a916e2 Cherry-pick commit 00ae4f9 2025-03-22 14:12:36 +08:00
ShirkNeko
ba26677cfc Merge some files and rewrite the update history 2025-03-22 14:09:21 +08:00
5ec1cff
ec383ed661 allow restore uninstalled module 2025-03-09 00:05:23 +08:00
5ec1cff
7b39c295aa use module dir name as real id 2025-03-08 23:56:24 +08:00
5ec1cff
35bf2f1dca manager: remove shrink image 2025-03-08 23:56:24 +08:00
5ec1cff
bb8c9ffac5 manager: no need to check overlayfs 2025-03-08 23:56:20 +08:00
Wang Han
fcfe038532 Avoid popping back stack right after navigation (#2477)
This fixes https://github.com/tiann/KernelSU/issues/2462.
2025-02-27 09:47:50 +08:00
Rifat Azad
7a6ec8b284 manager: allow multiple modules to be installed sequentially (#2459)
It's now okay to merge
2025-02-23 12:10:58 +08:00
Js0n
6936520515 fix: crash #2463 (#2465)
my bad
2025-02-22 18:30:13 +08:00
Js0n
1f2f4136e6 feat: properly set OkHttp header (#2463)
properly send `User-Agent` and `Accept-Language` to `updateJson` server,
module developers can check `User-Agent` whether to send update to user
and set user preferred language for changelog.

also added cache to reduce update server load
2025-02-22 15:18:00 +08:00
Wang Han
f33b12cd52 Provide TMPDIR for boot image repacking (#2458)
/data/local/tmp is never writable for normal apps, why previously it
works is that Rust's temp_dir() gets path from env, and since A13,
TMPDIR is set to app's cache dir. This is not the case for A12, so it
breaks. Fix it by set TMPDIR ourselves.
2025-02-21 11:09:02 +08:00
weishu
107a34789e manager: refine flashing module utilities 2025-02-20 20:56:21 +08:00
Wang Han
eeffecbd1b Allow toggling unmount setting for all apps (#2450)
This fixes https://github.com/tiann/KernelSU/issues/2416.
2025-02-18 11:07:52 +08:00
weishu
4593ae81c7 kernel: Allow to re-enable sucompat 2025-02-16 21:33:26 +08:00
weishu
9bb39ff760 manager: Add support to disable sucompat mode. 2025-02-16 19:35:35 +08:00
Wang Han
32f84dcb1f Hide namespace config in app profiles (#2426)
This is never implemented in kernel (and likely never will be), so let's
remove it from UI for now to avoid misleading users.
2025-02-09 21:26:04 +08:00
weishu
de2100e1e9 manager: Create a new root shell for action.sh to avoid blocking the global root shell. 2025-02-06 19:28:01 +08:00
changhuapeng
1728c6dc61 manager: Disable interactions for uninstalled & disabled module (#2380)
Uninstalled module has no enabled interactions (e.g. run action script,
open webui, update).
Disabled module cannot run action script or open webui.
2025-01-25 20:01:18 +08:00
5ec1cff
0a617959f9 manager: support search module list (#2331) 2024-12-31 16:30:58 +08:00
bryanyee33
d3ed55f1eb manager: module: refresh after webui usage (#2317)
- This commit fixes issue tiann#2250


https://github.com/user-attachments/assets/19dcca12-cb34-4e6e-88b4-72c26c2773f3

Tested by: backslashxx <118538522+backslashxx@users.noreply.github.com>
2024-12-26 16:10:16 +08:00
Michelle Rodriguez
2e2d9b9c04 manager: Add sort options on module's appbar (#2308)
module list will be sorted by options when these are enabled:

![83d5cd3d23b8f6c36b52e731f5e21a97](https://github.com/user-attachments/assets/eaadc1a3-21c6-4b73-a55f-206b6faa7d2d)
It will be very friendly and convenient  when manager has many modules.
2024-12-25 19:48:28 +08:00
bryanyee33
18ba8cc719 Imitate terminal clear command in manager (#2307)
The current implementation of KSU manager's output screen simply prints
`[H[J` when the `clear` command is used (in both the flashing module &
action button screen) instead of clearing the screen:
<img
src="https://github.com/user-attachments/assets/c30ceb87-13ac-4ba6-a7c5-045564e83181"
width="300" />

This limits the ability of shell scripts to purely textual & linear
outputs, and prevents more flexible outputs such as a refreshing
progress bar or even a progress circle for long running scripts. The
current implementation moreover limits the output to 65536 bytes for the
String `text`, causing the app to hang once this limit has been reached
for scripts with more verbose outputs.

This PR fixes these issues by allowing for usage of the `clear` command
in shell scripts to clear the screen. It works by checking if the
current output line starts with "", which is the default output of
the `clear` command in KSU's busybox, and clears the previous outputs if
there is a match. This should work universally since the `clear` command
defaults to this implementation when ran in KSU manager.

A working example can be seen below, where the `clear` command is
heavily used (24 times a second) to test for performance & reliability
of the code:


https://github.com/user-attachments/assets/c45fb6f1-1b40-4b67-8837-4d9a00429715

Tested-by: backslashxx
2024-12-25 10:26:34 +08:00