Wang Han
a052af4180
Fix fallback option for createRootShell() ( #2593 )
2025-05-18 11:30:47 +06:00
rifsxd
8835c37536
ksud_magic: Update zip-extensions and set needed features for zip
...
zip-extensions does not export time and deflate64 features now.
2025-05-18 11:29:58 +06:00
Wang Han
69f3c9f6ab
Update zip-extensions and set needed features for zip ( #2592 )
...
zip-extensions does not export time and deflate64 features now.
2025-05-18 11:25:38 +06:00
Rifat Azad
af3e0bd6a5
ci: fux ksud armv7a artifact download
2025-05-18 10:40:31 +06:00
Rifat Azad
5b14512323
ci: fux susfsd artifact download
2025-05-18 10:32:41 +06:00
Rifat Azad
6f176ad1c4
ksud_magic: removed loopdev
2025-05-18 10:24:39 +06:00
Rifat Azad
bc9d720a3c
ksud_overlayfs: use upstream loopdev
2025-05-18 10:18:35 +06:00
Rifat Azad
93c5013251
ksud_overlayfs: use upstream hole-punch
2025-05-18 10:01:05 +06:00
Rifat Azad
bc5c993093
manager: added armv7a abi
2025-05-18 09:14:14 +06:00
Rifat Azad
759b3c5baf
ci: fix workflow
2025-05-18 04:10:23 +06:00
Rifat Azad
e1303d13a3
ci: fix duplicate susfsd artifact upload error
2025-05-18 04:05:50 +06:00
Rifat Azad
8824115697
ci: upload armv7a susfsd artifact
2025-05-18 03:57:09 +06:00
Rifat Azad
a78a1e7d2e
ci: fixed syntax error
2025-05-18 03:49:41 +06:00
backslashxx
9e150b2c44
ksud/installer: /odm handling
...
we move the folder out of system if it exists in real filesystem and it
is not a symlink.
this is already supported on init_event.rs so only handle_partition
logic was needed to make it happen
since KernelSU is using overlayfs, we need to move these out.
Signed-off-by: backslashxx
<118538522+backslashxx@users.noreply.github.com >
---------
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-05-18 03:42:32 +06:00
backslashxx
217d230b61
kernel: expose KSU_LSM_SECURITY_HOOKS on Kconfig
...
disabling this removes the need for LSM_HOOK_INIT, security_add_hooks and such,.
furthermore, this will also allow easier integration on pre-4.1 kernels.
Expose this and make it a configurable option.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-05-18 03:23:12 +06:00
backslashxx
ba1b3c4fc7
kernel/throne_tracker: we just uninstalled the manager, stop looking for it
...
When the manager UID disappears from packages.list, we correctly
invalidate it — good. But, in the very next breath, we start scanning
/data/app hoping to find it again?
This event is just unnecessary I/O, exactly when we should be doing less.
Apparently this causes hangups and stuckups which is REALLY noticeable
on Ultra-Legacy devices.
Skip the scan — we’ll catch the reinstall next time packages.list updates.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-05-18 03:23:12 +06:00
backslashxx
5f871cd713
kernel/selinux: fix pointer mismatch with 32-bit ksud on 64-bit kernels
...
Since KernelSU Manager can now be built for 32-bit, theres this problematic
setup where userspace is 32-bit (armeabi-v7a) and kernel is 64bit (aarch64).
On 64-bit kernels with CONFIG_COMPAT=y, 32-bit userspace passes 32-bit pointers.
These values are interpreted as 64-bit pointers without proper casting and that
results in invalid or near-null memory access.
This patch adds proper compat-mode handling with the ff changes:
- introduce a dedicated struct (`sepol_compat_data`) using u32 fields
- use `compat_ptr()` to safely convert 32-bit user pointers to kernel pointers
- adding a runtime `ksu_is_compat` flag to dynamically select between struct layouts
This prevents a near-null pointer dereference when handling SELinux
policy updates from 32-bit ksud in a 64-bit kernel.
Truth table:
kernel 32 + ksud 32, struct is u32, no compat_ptr
kernel 64 + ksud 32, struct is u32, yes compat_ptr
kernel 64 + ksud 64, struct is u64, no compat_ptr
Preprocessor check
64BIT=y COMPAT=y: define both structs, select dynamically
64BIT=y COMPAT=n: struct u64
64BIT=n: struct u32
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-05-18 03:23:12 +06:00
backslashxx
4a37422af5
kernel/sucompat: sync to KSU pr #2506
...
kernel: sucompat: sucompat toggle support for non-kp
This is done like how vfs_read_hook, input_hook and execve_hook is disabled.
While this is not exactly the same thing, this CAN achieve the same results.
The complete disabling of all KernelSU hooks.
While this is likely unneeded, It keeps feature parity to non-kprobe builds.
adapted from upstream:
kernel: Allow to re-enable sucompat - 4593ae81c7
Rejected: https://github.com/tiann/KernelSU/pull/2506
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
kernel: sucompat: fix compile issue on kprobe builds, unused variable
2025-05-18 03:23:12 +06:00
Rifat Azad
a081fc87c9
manager/userspace: added 32bit (armv7a) support
2025-05-18 03:19:50 +06:00
Rifat Azad
0e8286e195
manager: refactor working mode designation
2025-05-18 01:56:47 +06:00
Rifat Azad
e9d53c4084
manager: removed overlayfs check for modules screen
...
since magic_mount is the default mount system which most UL (ultra legacy) devices will depend on
2025-05-17 10:41:22 +06:00
Rifat Azad
697a0ac9fc
issue_template: we don't accept features requests anymore
2025-05-13 10:14:34 +06:00
dependabot[bot]
7f12e1c19a
build(deps): bump the crates group across 1 directory with 4 updates ( #365 )
...
Bumps the crates group with 4 updates in the /userspace/ksud_magic directory: rust-embed, [cc](https://github.com/rust-lang/cc-rs ), [libm](https://github.com/rust-lang/compiler-builtins ) and [tokio](https://github.com/tokio-rs/tokio ).
Updates `rust-embed` from 8.7.0 to 8.7.1
Updates `cc` from 1.2.20 to 1.2.21
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.20...cc-v1.2.21 )
Updates `libm` from 0.2.13 to 0.2.14
- [Release notes](https://github.com/rust-lang/compiler-builtins/releases )
- [Changelog](https://github.com/rust-lang/compiler-builtins/blob/master/.release-plz.toml )
- [Commits](https://github.com/rust-lang/compiler-builtins/compare/libm-v0.2.13...libm-v0.2.14 )
Updates `tokio` from 1.44.2 to 1.45.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.2...tokio-1.45.0 )
---
updated-dependencies:
- dependency-name: rust-embed
dependency-version: 8.7.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: cc
dependency-version: 1.2.21
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: libm
dependency-version: 0.2.14
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: tokio
dependency-version: 1.45.0
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: crates
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 02:36:03 +06:00
dependabot[bot]
bf99cb50fd
build(deps): bump the crates group across 1 directory with 4 updates ( #364 )
...
Bumps the crates group with 4 updates in the /userspace/ksud_overlayfs directory: rust-embed, [cc](https://github.com/rust-lang/cc-rs ), [libm](https://github.com/rust-lang/compiler-builtins ) and [tokio](https://github.com/tokio-rs/tokio ).
Updates `rust-embed` from 8.7.0 to 8.7.1
Updates `cc` from 1.2.20 to 1.2.21
- [Release notes](https://github.com/rust-lang/cc-rs/releases )
- [Changelog](https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.20...cc-v1.2.21 )
Updates `libm` from 0.2.13 to 0.2.14
- [Release notes](https://github.com/rust-lang/compiler-builtins/releases )
- [Changelog](https://github.com/rust-lang/compiler-builtins/blob/master/.release-plz.toml )
- [Commits](https://github.com/rust-lang/compiler-builtins/compare/libm-v0.2.13...libm-v0.2.14 )
Updates `tokio` from 1.44.2 to 1.45.0
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.2...tokio-1.45.0 )
---
updated-dependencies:
- dependency-name: rust-embed
dependency-version: 8.7.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: cc
dependency-version: 1.2.21
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: libm
dependency-version: 0.2.14
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: tokio
dependency-version: 1.45.0
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: crates
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 02:35:26 +06:00
dependabot[bot]
1333f0113f
build(deps): bump the maven group in /manager with 2 updates ( #349 )
...
Bumps the maven group in /manager with 2 updates: [io.github.raamcosta.compose-destinations:core](https://github.com/raamcosta/compose-destinations ) and [io.github.raamcosta.compose-destinations:ksp](https://github.com/raamcosta/compose-destinations ).
Updates `io.github.raamcosta.compose-destinations:core` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/raamcosta/compose-destinations/releases )
- [Commits](https://github.com/raamcosta/compose-destinations/compare/2.1.0...2.1.1 )
Updates `io.github.raamcosta.compose-destinations:ksp` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/raamcosta/compose-destinations/releases )
- [Commits](https://github.com/raamcosta/compose-destinations/compare/2.1.0...2.1.1 )
Updates `io.github.raamcosta.compose-destinations:ksp` from 2.1.0 to 2.1.1
- [Release notes](https://github.com/raamcosta/compose-destinations/releases )
- [Commits](https://github.com/raamcosta/compose-destinations/compare/2.1.0...2.1.1 )
---
updated-dependencies:
- dependency-name: io.github.raamcosta.compose-destinations:core
dependency-version: 2.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: io.github.raamcosta.compose-destinations:ksp
dependency-version: 2.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: io.github.raamcosta.compose-destinations:ksp
dependency-version: 2.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-07 02:35:03 +06:00
igor
1b544bd22d
Update Portuguese translation ( #361 )
2025-05-07 02:33:03 +06:00
mr_vokintos
24f514c949
Fixes for Russian translation ( #358 )
...
* Update README_RU.md
Donations added
* Update strings.xml
fix
* Update strings.xml
again
* Update README_RU.md
* Update Ru strings.xml
Fixes and additions
* Update README_RU.md
I didn't like the way it looked
2025-05-07 02:32:31 +06:00
Bachpooh
8eed26e0a1
manager: Update values-vi/strings.xml ( #357 )
...
* Corrects mistranslation
* Fix issues #335
2025-05-07 02:32:17 +06:00
luigimak
3c5b3f0a49
Update Italian translation ( #355 )
2025-05-07 02:32:03 +06:00
Caner Karaca
1d23b4bb67
ksud: fix rustfmt errors ( #359 )
2025-05-06 22:48:58 +06:00
Rifat Azad
48e533f660
ksud_overlayfs: removed custom_sparse_size text file extension
2025-05-04 19:39:06 +06:00
Der_Googler
86fbed60eb
Add Eruda Support for WebUI X ( #354 )
...
* manager: Improvements
- Bump MMRL version
- Improved SwitchItem when it is not enabled
- Added option to enable eruda
* manager: Use custom user agent for WebUI X
2025-05-04 01:08:34 +06:00
dependabot[bot]
164341b543
build(deps): bump the crates group across 1 directory with 2 updates ( #344 )
...
Bumps the crates group with 2 updates in the /userspace/ksud_magic directory: [chrono](https://github.com/chronotope/chrono ) and [sha2](https://github.com/RustCrypto/hashes ).
Updates `chrono` from 0.4.40 to 0.4.41
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.40...v0.4.41 )
Updates `sha2` from 0.10.8 to 0.10.9
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.8...sha2-v0.10.9 )
---
updated-dependencies:
- dependency-name: chrono
dependency-version: 0.4.41
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: sha2
dependency-version: 0.10.9
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 00:06:52 +06:00
dependabot[bot]
94942fe488
build(deps): bump the crates group across 1 directory with 2 updates ( #343 )
...
Bumps the crates group with 2 updates in the /userspace/ksud_overlayfs directory: [chrono](https://github.com/chronotope/chrono ) and [sha2](https://github.com/RustCrypto/hashes ).
Updates `chrono` from 0.4.40 to 0.4.41
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.40...v0.4.41 )
Updates `sha2` from 0.10.8 to 0.10.9
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.8...sha2-v0.10.9 )
---
updated-dependencies:
- dependency-name: chrono
dependency-version: 0.4.41
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: crates
- dependency-name: sha2
dependency-version: 0.10.9
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: crates
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 00:06:28 +06:00
dependabot[bot]
ca64f6c8ac
build(deps): bump the maven group across 1 directory with 5 updates ( #322 )
...
Bumps the maven group with 5 updates in the /manager directory:
| Package | From | To |
| --- | --- | --- |
| androidx.compose:compose-bom | `2025.03.01` | `2025.04.00` |
| [org.jetbrains.kotlinx:kotlinx-coroutines-core](https://github.com/Kotlin/kotlinx.coroutines ) | `1.10.1` | `1.10.2` |
| com.android.application | `8.9.1` | `8.9.2` |
| com.android.library | `8.9.1` | `8.9.2` |
| [com.google.devtools.ksp](https://github.com/google/ksp ) | `2.1.20-1.0.32` | `2.1.20-2.0.0` |
Updates `androidx.compose:compose-bom` from 2025.03.01 to 2025.04.00
Updates `org.jetbrains.kotlinx:kotlinx-coroutines-core` from 1.10.1 to 1.10.2
- [Release notes](https://github.com/Kotlin/kotlinx.coroutines/releases )
- [Changelog](https://github.com/Kotlin/kotlinx.coroutines/blob/master/CHANGES.md )
- [Commits](https://github.com/Kotlin/kotlinx.coroutines/compare/1.10.1...1.10.2 )
Updates `com.android.application` from 8.9.1 to 8.9.2
Updates `com.android.library` from 8.9.1 to 8.9.2
Updates `com.android.library` from 8.9.1 to 8.9.2
Updates `com.google.devtools.ksp` from 2.1.20-1.0.32 to 2.1.20-2.0.0
- [Release notes](https://github.com/google/ksp/releases )
- [Commits](https://github.com/google/ksp/compare/2.1.20-1.0.32...2.1.20-2.0.0 )
---
updated-dependencies:
- dependency-name: androidx.compose:compose-bom
dependency-version: 2025.04.00
dependency-type: direct:production
dependency-group: maven
- dependency-name: org.jetbrains.kotlinx:kotlinx-coroutines-core
dependency-version: 1.10.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: com.android.application
dependency-version: 8.9.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: com.android.library
dependency-version: 8.9.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: com.android.library
dependency-version: 8.9.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
- dependency-name: com.google.devtools.ksp
dependency-version: 2.1.20-2.0.0
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: maven
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-02 00:06:11 +06:00
luigimak
e8ef483098
Update italian translation ( #342 )
...
* Update values-it/strings.xml
Update Italian Translation
* Update italian translation
2025-05-02 00:05:16 +06:00
cvnertnc
85faf43fdd
manager: Update values-tr/strings.xml ( #334 )
2025-05-02 00:04:14 +06:00
igor
09620c269e
Update portuguese & english ( #333 )
2025-05-02 00:03:29 +06:00
itsaschoolbus
0c05a4c375
manager: Update WebUI X translation string for Vietnamese ( #332 )
2025-05-02 00:03:10 +06:00
Der_Googler
298aa7960e
Improve Platform ( #345 )
...
* Add option to use WebUI X
- Added WebUI X from MMRL to KernelSU Next
* Some improvements
* Again some improvements
* Fix NPE
* Still not fixed
Use mappings from the action to decode the stacktrace
* bump mmrl
does still not work
* Works
* WORKS
* small fixes
* manager: only launch webui x when Platform.isAlive is `true`
* manager: disable "Use WebUI X" option when Platform.isAlive is `false`
* manager: improve app list loading
* manager: use system packageManager api
* ci: add spoofed manager workflow
* ci: add spoofed manager workflow
---------
Co-authored-by: rifsxd <rifat.44.azad.rifs@gmail.com >
Co-authored-by: Rifat Azad <33044977+rifsxd@users.noreply.github.com >
2025-05-01 20:24:00 +06:00
rifsxd
b112513df0
ci: add spoofed manager workflow
2025-05-01 19:52:36 +06:00
rifsxd
f19b5a453a
ksud: changed deps repo to fetch from KernelSU-Next org
2025-05-01 17:29:08 +06:00
rifsxd
72e54653a2
ksud: disabled BootRestore command
2025-05-01 16:54:09 +06:00
rifsxd
5696d72a3f
ksud: fix rustfmt errors
2025-05-01 16:47:20 +06:00
rifsxd
757d20166a
manager: clean lkm remnants
...
ksud: clean clippy warnings
2025-05-01 16:30:09 +06:00
rifsxd
1336996129
manager: disabled KMI/LKM installation
...
manager: check if overlayfs is available to allow mount system switching
ksud: disabled KMI/LKM commands
ci: disabled LKM build workflow
ksud: removed ksuinit
2025-05-01 15:58:18 +06:00
Rifat Azad
4f35240203
ci/gki-kernel: run the sed command for BAZEL only if BUILD.bazel exists to avoid file not found error on non BAZEL kernel common tree
2025-05-01 11:48:41 +06:00
Rifat Azad
5565a6b3f8
ci: fix BAZEL build while remove protected module exports
2025-05-01 01:02:25 +06:00
Der_Googler
9dbe135e66
Fix Shortcuts in WebUI X ( #339 )
...
* manager: fix webui x shortcuts
2025-04-30 11:08:25 +06:00
rifsxd
fe5c031701
ci/gki-kernel: keep abi_gki_protected_exports to avoid BAZEL build errors
2025-04-29 01:30:48 +06:00