Rifat Azad
71eba5df8b
manager: disable module and superuser navigation if sucompat is disabled and also show an indicator in status card
2025-06-15 22:07:15 +06:00
Rifat Azad
f1ef0afc20
manager: finish activity after flashing module intent is completed
2025-06-15 21:09:31 +06:00
Rifat Azad
844c9f94e9
manager: fix flashing lkm duplication
2025-06-15 20:13:32 +06:00
Rifat Azad
07a4d3457c
manager: add separate developer menu
2025-06-15 13:00:30 +06:00
Rifat Azad
8c9728df95
manager: fix zip not flashing from content:// uri
2025-06-15 12:09:32 +06:00
Rifat Azad
14ec1194e4
manager: add support for opening zip file and directly flash module
2025-06-15 07:09:13 +06:00
Rifat Azad
a37f398cc7
kernel/Makefile: check kernelsu driver version from online git repo first, if fails then check local .git and if that also fails then use hardcoded fallback
2025-06-14 22:52:10 +06:00
backslashxx
80bd797737
kernel: ksud: remove remove read_iter requirement
...
nothing uses this on old kernels, so even backporting this to file_operations
is not really needed
https://elixir.bootlin.com/linux/v3.16.85/source/include/linux/fs.h#L1487
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:14:12 +06:00
backslashxx
600d9ce5d2
kernel: throne_tracker: resolve s_magic for < 3.9
...
throne_tracker, cross-fs avoidance:
f_inode is f_path.dentry->d_inode
so file->f_inode->i_sb->s_magic is file->f_path.dentry->d_inode->i_sb->s_magic
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:14:03 +06:00
backslashxx
f15d9b18e9
kernel: ksud: d_is_reg to IS_REG
...
d_is_reg requires 4.0
- https://github.com/torvalds/linux/commit/e36cb0b89ce20b4f8786a57e8a6bc8476f577650
IS_REG is still there on 6.15 so I do NOT see any issues forcing it for all.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:13:13 +06:00
backslashxx
aa19e8c609
kernel: throne_tracker: add strscpy/strlcpy compat
...
strscpy requires 4.3
strscpy on this usage can be replaced with strncpy + null term.
kernel gives us an option though.
strlcpy is fast af, hotrod fast. It’s just memcpy + null term, so lets go with that.
it got dropped in 6.8 due to risk concerns, so for those, lets use og strscpy.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:13:06 +06:00
backslashxx
2b2320000c
kernel: throne_tracker: remove unneeded check here
...
come to think of it, this part is only about folders
2025-06-14 20:12:51 +06:00
backslashxx
06135cc827
kernel: apk_sign: loop file open on is_manager_apk
...
lets loop on this and wait for installation to finish
this is the third race.
2025-06-14 20:12:14 +06:00
backslashxx
fc58bdf0e2
kernel: throne_tracker: harden packages.list checker further
2025-06-14 20:08:53 +06:00
backslashxx
9b5e60912d
kernel: throne_tracker, apk_sign: functionify d_lock spinlock check
2025-06-14 20:08:23 +06:00
backslashxx
c108a8ed32
kernel: throne_tracker: harden track_throne_function file read
...
this probably wont happen, but just to make sure, we dont block the rename now
so there is really a chance that this does not exist yet when the kthread runs.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:07:24 +06:00
F-19-F
adce657583
kernel: ksud: provide is_ksu_transition check v2
...
context: this is known by many as `selinux hook`, `4.9 hook`
add is_ksu_transition check which allows ksud execution under nosuid.
it also eases up integration on 3.X kernels that does not have check_nnp_nosuid.
Usage:
if (is_ksu_transition(old_tsec, new_tsec))
return 0;
on either check_nnp_nosuid or selinux_bprm_set_creds (after execve sid reset)
reference: https://github.com/backslashxx/msm8953-kernel/commits/dfe003c9fdfa394a2bffe74668987a19a0d2f546
taken from:
`allow init exec ksud under nosuid`
- https://github.com/LineageOS/android_kernel_oneplus_msm8998/commit/3df9df42a659f489091445d813b8c0477215ae3a
- https://github.com/tiann/KernelSU/pull/166#issue-1565872173
250611-edit:
- remove ksu_execveat_hook entry check
- turns out some devices needs the transition for multiple times
Reported-by: edenadversary <143865198+edenadversary@users.noreply.github.com >
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:07:16 +06:00
rsuntk
d6601e1e54
kernel: core_hook: fix refcount leaks on try_umount ( #2635 )
...
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
Signed-off-by: rsuntk <rsuntk@yukiprjkt.my.id >
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:03:30 +06:00
backslashxx
0d4efa649f
kernel: throne_tracker: avoid cross-fs traversal using s_magic check ( #2633 )
...
Skip directories that does NOT have the same magic as /data/app.
This is to avoid scanning incfs and any other stacked filesystems.
While this is way dumber, it's way cheaper.
no kern_path(), no missable path_put(), no ref handling.
This supercedes
`throne_tracker: avoid cross fs access
(https://github.com/tiann/KernelSU/pull/2626 )`
- upstream
https://github.com/tiann/KernelSU/commit/0b6998b474ed00610bbf2d6679f853cef07af3b8
Signed-off-by: backslashxx
<118538522+backslashxx@users.noreply.github.com >
2025-06-14 20:03:04 +06:00
Wang Han
85f4e6ac27
Switch to prepare_creds/commit_creds ( #2631 )
...
Update API as per kernel doc recommends, also fix setup_groups refcount
leak while at it.
2025-06-14 20:01:36 +06:00
Rifat Azad
c91f9c18ec
Revert "kernel: ksud, throne_tracker: small changes for UL"
...
This reverts commit c4deee1e49 .
2025-06-14 19:54:59 +06:00
Rifat Azad
bf35f73430
Revert "kernel: throne_tracker: move throne_tracker to kthread"
...
This reverts commit 6a6fc07cd4 .
2025-06-14 19:54:36 +06:00
Rifat Azad
ad290a51a0
manager: fully polish and refactor module card ui
2025-06-12 23:40:14 +06:00
Rifat Azad
d218346613
manager: keep mount system preference persistent without breaking rootAvailable() checks
2025-06-12 21:50:16 +06:00
Rifat Azad
502e5599fe
manager: improve module card ui
2025-06-12 21:05:40 +06:00
Rifat Azad
11fb52b929
manager: merge legacy and revamped module card ui, also tapping the card open webui when available and actions when available but if both are available then prefer webui
2025-06-12 13:03:41 +06:00
Rifat Azad
057388ccef
manager: do not go at the start of the superuser list and stay where you were after app profile changes ( resolves #491 )
2025-06-12 10:42:53 +06:00
Rifat Azad
67759ad723
manager: update app state upon app profile changes
...
properly update the superuser app list state after changes have been made to app profile
2025-06-12 10:18:51 +06:00
Rifat Azad
f231cbdba7
Revert "manager: refresh superuser applist on appprofile exit"
...
This reverts commit fcbb02a115 .
2025-06-12 08:46:38 +06:00
Suraj J Pai
7abc9bc821
[BUGFIX] manager: Fix Module Flashing fails when orientation changes ( #503 )
...
The issue is caused by re-rendering of Activity when orientation changes.
All states are reset when it is re-rendered. Using ViewModel to manage zipUri fixes the issue.
Fixes issue: https://github.com/KernelSU-Next/KernelSU-Next/issues/488
2025-06-12 04:44:45 +06:00
GMárton
e7697d86fe
Update hungarian translation ( #489 )
...
* Update hungarian translation
* Fix typo
---------
Co-authored-by: Marty <marton.garamszegi@mptrdev.com >
2025-06-11 04:30:29 +06:00
1alessandro1
68394fddd5
Update doc ( #485 )
2025-06-11 04:30:14 +06:00
cvnertnc
90d34bf511
Manager: update values-tr/strings.xml ( #469 )
2025-06-11 04:29:47 +06:00
luigimak
236fbc7615
Update Italian Translation ( #461 )
...
* Update Italian Translation
values-it/strings.xml
* fix use_webuix_summary
Update values-it/strings.xml
* Update values-it/strings.xml
* Add module_size values-it/strings.xml
* Add settings_banner values-it/strings.xml
* fix settings_banner
2025-06-11 04:29:31 +06:00
mr_vokintos
6871cbdba7
Update Russian ( #466 )
...
* Update strings.xml
Update Russian
* Update strings.xml
* Update strings.xml
2025-06-11 04:29:15 +06:00
AxelPLN(Axel Yinjia Huang)
38a9949211
Update manager translations for zh-rCN & zh-rTW ( #456 )
...
* Update translations for zh-rCN &zh-rTW to 0a42dbf
* Add zh-rCN & zh-rTW translations for functions as legacyUI & module banner and so on.
Improve translations.
2025-06-11 04:27:58 +06:00
igor
9fba0faa43
Update portuguese translation ( #453 )
...
* Update portuguese translation
* Update strings.xml
* Update strings.xml
* Update README.md
* Update README_PT-BR.md
* Update strings.xml
* Update strings.xml
2025-06-11 04:26:43 +06:00
Caner Karaca
b1250b002e
Workflow Updates ( #481 )
...
* Update
* Use ubuntu-22.04
* Revert some renamings
* Create renovate.json
* oops
2025-06-11 04:23:22 +06:00
Rifat Azad
10f7d5cf50
Revert "manager: keep mount system preference persistent"
...
This reverts commit 609926bff1 .
2025-06-10 02:31:14 +06:00
rifsxd
0c883ddfd6
manager: let module banner be set locally from module dir
...
ex: banner=banner.png , banner=example.webp banner=temp/hello.jpg
if banner string value starts with http, https then it will try to fetch from online.
Co-authored-by: fatalcoder524 <11532648+fatalcoder524@users.noreply.github.com >
2025-06-06 04:09:16 +06:00
Paul
3921175e4c
kernel: core_hook: intercept devpts via security_inode_permission LSM ( #480 )
...
`ksu handles devpts with selinux lsm hook` - aviraxp
- no, not yet, but yes we can, thats a good idea.
This change tries to do that, so instead of hooking pts_unix98_lookup or
devpts_get_priv, we just watch security_inode_permission, if its devpts,
pass it along to the original handler.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-05 06:20:53 +06:00
5ec1cff
84fdcf8bf5
throne_tracker: avoid cross fs access
2025-06-03 03:30:54 +06:00
rifsxd
886cfd5a33
manager: adjusted module banner fade opacity
2025-06-03 03:28:42 +06:00
rifsxd
aea384bdd4
manager: do dynamic fade for banner based on monet when available
2025-06-03 01:49:57 +06:00
rifsxd
84695cea71
manager: do white fade for banner when on light mode
2025-06-03 00:58:58 +06:00
rifsxd
f91afe6c46
manager: add module background banners"
...
module devs can add banners for their modules through module.prop config
Example:
banner=https://something.com/banner.png
2025-06-03 00:34:37 +06:00
rifsxd
3f7e731df6
manager: fix update tag attached to wrong module after using sort options ( fix #473 )
2025-06-02 15:34:30 +06:00
rifsxd
582662dce9
manager: fix back gestures conflicting with LKM warning window ( fix #474 )
2025-06-02 15:12:59 +06:00
rifsxd
f3b49723e8
manager: add sorting by size for module list
2025-06-01 21:03:04 +06:00
backslashxx
c4deee1e49
kernel: ksud, throne_tracker: small changes for UL
...
Safe Ultra-Legacy changes that don't deserve their own commit
d_is_reg requires 4.0
- https://github.com/torvalds/linux/commit/e36cb0b89ce20b4f8786a57e8a6bc8476f577650
IS_REG is still there on 6.15 so I do NOT see any issues forcing it for all.
strscpy requires 4.3
strscpy on this usage can be replaced with strncpy + null term.
kernel gives us an option though.
strlcpy is fast af, hotrod fast. It’s just memcpy + null term, so lets go with that.
it got dropped in 6.8 due to risk concerns, so for those, lets use og strscpy.
ref: openwrt/packages #26453
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-06-01 20:09:20 +06:00