Commit Graph

486 Commits

Author SHA1 Message Date
dabao1955 fb15777ae4 Translated using Weblate (Dutch)
Currently translated at 99.2% (139 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/nl/
2025-07-18 09:10:49 +00:00
Hosted Weblate 8654f85670 Merge remote-tracking branch 'origin/main' 2025-07-14 10:04:39 +02:00
wxxsfxyzm ee72b8e106 feat(ui): improve predictive back animations (#2675)
## Summary
This pull request introduces custom screen transition animations to
enhance the overall user experience during navigation.

The key change is the implementation of a custom slide/fade effect for
navigating from main screens (i.e., screens hosted in the bottom
navigation bar) to detail screens. Transitions between the bottom
navigation bar tabs themselves retain a simple, clean cross-fade effect
to ensure a fast and smooth user interaction.

This PR also addresses the root cause of an issue where custom
animations were being overridden by the navigation library's defaults.

## Root Cause
During implementation, it was discovered that custom transition
animations defined in the `defaultTransitions` parameter of the
`DestinationsNavHost` in `MainActivity` were not being applied. Instead,
a default fade-in/fade-out animation was always present.

The root cause was traced to the `compose-destinations` KSP (Kotlin
Symbol Processing) code generator. By default, the generator creates a
`NavGraphSpec` (e.g., `RootNavGraph.kt`) that includes its own
`defaultTransitions` property. This property, defined at compile-time
within the generated graph object, has a higher precedence than the
`defaultTransitions` parameter supplied to the `DestinationsNavHost`
composable at runtime.

As a result, our intended custom animations were being ignored and
overridden by the generated default.

## Solution
To resolve this precedence issue permanently, this PR adopts the
official configuration method recommended by the `compose-destinations`
library.

- The following KSP argument has been added to the
`app/build.gradle.kts` file:

```kotlin
ksp {
    arg("compose-destinations.defaultTransitions", "none")
}
```

- This argument instructs the code generator to omit the
`defaultTransitions` property from the generated `NavGraphSpec`.

- By removing the higher-priority, generated default, the
`defaultTransitions` parameter on `DestinationsNavHost` now functions as
the effective default, allowing our custom animation logic to execute as
intended.

## Animation Logic Details
The new animation logic is conditional and defined within
`MainActivity`. It distinguishes between two primary navigation types:

- Main Screen → Detail Screen:

   - Enter: The new detail screen slides in from the right.

   - Exit: The old main screen slides out to the left while fading out.

- Detail Screen → Main Screen (on Pop):

- Pop Enter: The main screen slides back in from the left while fading
in.

   - Pop Exit: The detail screen slides out to the right.

- Between Bottom Navigation Tabs:

- A simple cross-fade (`fadeIn`/`fadeOut`) is maintained for these
transitions to provide a quick and non-disruptive experience when
switching between primary sections of the app.
2025-07-14 16:04:31 +08:00
Kazuki Nakashima 7b47a9f19f Translated using Weblate (Thai)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/th/
2025-07-12 15:01:49 +00:00
yuztass bc59ed2d7f Translated using Weblate (Russian)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/ru/
2025-07-06 06:00:38 +02:00
Global Offensive d9c94ac63a Translated using Weblate (Bosnian)
Currently translated at 53.5% (75 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/bs/
2025-07-03 21:01:46 +02:00
Léane GRASSER 9042fb867c Translated using Weblate (French)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/fr/
2025-07-01 11:02:02 +02:00
EESF-2 609fcf8f88 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/zh_Hant/
2025-07-01 11:02:01 +02:00
rehork 415ad13dad Translated using Weblate (Polish)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/pl/
2025-07-01 11:02:00 +02:00
_wais 30bd643086 Translated using Weblate (Indonesian)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/id/
2025-07-01 11:01:58 +02:00
xradens b939415d8d Translated using Weblate (Indonesian)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/id/
2025-07-01 11:01:56 +02:00
_wais 43ed7eedae Translated using Weblate (Indonesian)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/id/
2025-07-01 11:01:54 +02:00
I g o r 306ba62755 Translated using Weblate (Filipino)
Currently translated at 22.1% (31 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/fil/
2025-06-29 15:48:47 +02:00
I g o r 71d2f9638a Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/pt_BR/
2025-06-29 15:48:44 +02:00
I g o r 19e5343c60 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/pt_BR/
2025-06-29 15:48:44 +02:00
I g o r 589616a5ed Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/pt_BR/
2025-06-29 15:48:44 +02:00
I g o r 0c26677594 Translated using Weblate (English)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/en/
2025-06-29 15:48:42 +02:00
Mehrab Poladov 788cf0ed31 Translated using Weblate (Azerbaijani)
Currently translated at 65.0% (91 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/az/
2025-06-28 15:06:19 +02:00
Hosted Weblate ef567a3e9e Merge remote-tracking branch 'origin/main' 2025-06-27 08:17:38 +02:00
NkBe 9a64eaa930 manger: fix lkm detection (#2654)
原因请看
https://github.com/SukiSU-Ultra/SukiSU-Ultra/pull/217#issuecomment-3004461174

文中介绍的是lkm的问题 但实测下来gki也有这样的问题 但修复方法通用
2025-06-27 14:17:31 +08:00
sus 0454510827 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/zh_Hant/
2025-06-25 06:03:10 +00:00
cvnertnc 6b0c8b852f Translated using Weblate (Turkish)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/tr/
2025-06-17 19:01:57 +02:00
Kazuki Nakashima bb0e3de2a9 Translated using Weblate (Thai)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/th/
2025-06-14 18:12:13 +02:00
Weblate (bot) 46101c5b36 Translations update from Hosted Weblate (#2587)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Co-authored-by: ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) <coool@mail.lv>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Potato <ammarmo723@gmail.com>
Co-authored-by: Mehrab Poladov <thepoladov@protonmail.com>
Co-authored-by: Infer <infer.thetpainghtet@outlook.com>
Co-authored-by: elisenlebkuch <mm7shdk2@duck.com>
Co-authored-by: Chou Chamnan <chou.chamnan.kh@gmail.com>
Co-authored-by: Phạm Ngọc Vũ <telekinesis3275@gmail.com>
2025-06-13 12:57:57 +08:00
Phạm Ngọc Vũ 18415cb279 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/vi/
2025-06-10 17:01:46 +00:00
Phạm Ngọc Vũ ff32f89231 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/vi/
2025-05-28 18:06:04 +02:00
Phạm Ngọc Vũ 57a7e01ca4 Translated using Weblate (Vietnamese)
Currently translated at 100.0% (140 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/vi/
2025-05-26 18:03:07 +02:00
Chou Chamnan 7a70fa4080 Translated using Weblate (Khmer (Central))
Currently translated at 3.5% (5 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/km/
2025-05-23 14:01:46 +02:00
Chou Chamnan 55fa98908a Added translation using Weblate (Khmer (Central)) 2025-05-22 13:35:29 +02:00
elisenlebkuch db9ff74811 Translated using Weblate (German)
Currently translated at 93.5% (131 of 140 strings)

Translation: KernelSU/Manager
Translate-URL: https://hosted.weblate.org/projects/kernelsu/manager/de/
2025-05-22 13:35:28 +02:00
Hosted Weblate dcd4acdff0 Merge remote-tracking branch 'origin/main' 2025-05-20 10:10:19 +02:00
ShirkNeko d8ce238c37 Add a formatting string for the update list #2556 (#2597)
Fix module update failures caused by spaces and other non Linux readable
characters


Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
2025-05-20 16:10:12 +08:00
Infer 3e272090dc Added translation using Weblate (Burmese) 2025-05-18 20:21:22 +02:00
Wang Han c5d8c5676d Fix fallback option for createRootShell() (#2593) 2025-05-17 20:24:27 +08:00
Weblate (bot) fb42587387 Translations update from Hosted Weblate (#2558)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Co-authored-by: ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) <coool@mail.lv>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Potato <ammarmo723@gmail.com>
Co-authored-by: Mehrab Poladov <thepoladov@protonmail.com>
2025-05-16 00:50:34 +08:00
Faris 2d6890ce05 manager: hide root related features if kernelsu not available (#2555)
Without KernelSU installed, root-related features did not take any
effect. So, better to hide it.

Improving this pr:
https://github.com/tiann/KernelSU/pull/2483

Also attempt to address this:
https://github.com/tiann/KernelSU/pull/2483#issuecomment-2692048907

Tested-by: Faris <90097027+rsuntk@users.noreply.github.com>

Co-authored-by: Rifat Azad <33044977+rifsxd@users.noreply.github.com>

---------

Signed-off-by: Faris <90097027+rsuntk@users.noreply.github.com>
Co-authored-by: Rifat Azad <33044977+rifsxd@users.noreply.github.com>
2025-05-03 22:07:47 +08:00
Wang Han ad004d48bf Fix opuls -> oplus typo (#2536) 2025-04-09 09:06:56 +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
Weblate (bot) 985cd1f015 Translations update from Hosted Weblate (#2425)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Co-authored-by: weishu tian <twsxtd@gmail.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: I g o r <igormczampola1@gmail.com>
2025-02-24 12:20:40 +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
Weblate (bot) 7b0876d7e8 Translations update from Hosted Weblate (#2376)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for
[KernelSU/Manager](https://hosted.weblate.org/projects/kernelsu/manager/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/kernelsu/manager/horizontal-auto.svg)

---------

Co-authored-by: Astoritin Ambrosius <TakasugiMerlan@outlook.com>
Co-authored-by: yuztass <inkognito0901@gmail.com>
Co-authored-by: Rex_sa <rex.sa@pm.me>
Co-authored-by: 김강민 <bookwormkkm00@gmail.com>
Co-authored-by: 淡い夏 <93428659+lightsummer233@users.noreply.github.com>
Co-authored-by: I g o r <igormczampola1@gmail.com>
Co-authored-by: Kazuki Nakashima <flukfik41@gmail.com>
Co-authored-by: dabao1955 <dabao1955@163.com>
Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Co-authored-by: Pang YS <devbx@proton.me>
Co-authored-by: NEURAX <1603528439@qq.com>
Co-authored-by: rehork <cooky@e.email>
Co-authored-by: Léane GRASSER <leane.grasser@proton.me>
Co-authored-by: weishu tian <twsxtd@gmail.com>
2025-02-05 13:43:13 +08:00