Skip to content

manager: hide root related features if kernelsu not available#2555

Merged
tiann merged 3 commits into
tiann:mainfrom
rsuntk-oss:main
May 3, 2025
Merged

manager: hide root related features if kernelsu not available#2555
tiann merged 3 commits into
tiann:mainfrom
rsuntk-oss:main

Conversation

@rsuntk

@rsuntk rsuntk commented Apr 26, 2025

Copy link
Copy Markdown
Contributor

Without KernelSU installed, root-related features did not take any effect. So, better to hide it.

Improving this pr:
#2483

Also attempt to address this:
#2483 (comment)

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

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

@tiann

tiann commented Apr 27, 2025

Copy link
Copy Markdown
Owner

You can create a Composable component that accepts another component. If the ksu is valid, the component will be displayed; if it is invalid, nothing will happen. This way, you can wrap any component without needing to write if statements everywhere.

@rsuntk

rsuntk commented Apr 27, 2025

Copy link
Copy Markdown
Contributor Author

You can create a Composable component that accepts another component. If the ksu is valid, the component will be displayed; if it is invalid, nothing will happen. This way, you can wrap any component without needing to write if statements everywhere.

Okay, let me try

@rsuntk rsuntk marked this pull request as draft April 27, 2025 05:24
rsuntk added a commit to rsuntk/KernelSU that referenced this pull request Apr 28, 2025
tiann#2555 (comment)

Signed-off-by: Faris <90097027+rsuntk@users.noreply.github.com>
@rsuntk rsuntk marked this pull request as ready for review April 28, 2025 17:51
@rsuntk

rsuntk commented Apr 28, 2025

Copy link
Copy Markdown
Contributor Author

You can create a Composable component that accepts another component. If the ksu is valid, the component will be displayed; if it is invalid, nothing will happen. This way, you can wrap any component without needing to write if statements everywhere.

Can you review the changes?

@rsuntk

rsuntk commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

Result

ksu

luyanci pushed a commit to luyanci/KernelSU that referenced this pull request Apr 30, 2025
tiann#2555 (comment)

Signed-off-by: Faris <90097027+rsuntk@users.noreply.github.com>
rsuntk and others added 3 commits May 3, 2025 01:31
Without KernelSU installed, root-related features did not take any effect.
So, better to hide it.

Improving this pr:
#2483

Also attempt to address this:
#2483 (comment)

Tested-by: Faris <90097027+rsuntk@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>
Addressing this:
#2555 (comment)

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

rsuntk commented May 2, 2025

Copy link
Copy Markdown
Contributor Author

Ready to merge.

@tiann tiann merged commit 2d6890c into tiann:main May 3, 2025
14 checks passed
rsuntk added a commit to rsuntk/KernelSU that referenced this pull request May 9, 2025
tiann#2555 (comment)

Signed-off-by: Faris <90097027+rsuntk@users.noreply.github.com>
rsuntk added a commit to rsuntk/KernelSU that referenced this pull request May 9, 2025
tiann#2555 (comment)

Signed-off-by: Faris <90097027+rsuntk@users.noreply.github.com>
fadlyas07 added a commit to bengal-upstream/KernelSU that referenced this pull request May 13, 2025
* 'main' of https://github.com/tiann/KernelSU:
  manager: hide root related features if kernelsu not available (tiann#2555)

Change-Id: Iad1d443a2482e1b5bdb52e5accdef695bb840e7d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants