Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manager: hides navbar on action screen, disable back gesture and save… #2321

Closed
wants to merge 9 commits into from

Conversation

rifsxd
Copy link
Contributor

@rifsxd rifsxd commented Dec 26, 2024

… logs until action is completed

… logs until action is completed

- This is to avoid this issue #2315 of irresponsive behaviour of runModuleAction() in ui.util.KsuCli which executes shell commands, in that process if a transition is made to a different Destination i.e HomeScreen it will get stuck until the action is completed or app crashes.
@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 26, 2024

screen-20241226-234953.mp4

@backslashxx
Copy link
Contributor

backslashxx commented Dec 27, 2024

I like this change
this restores MMRL's and magisk-like behavior when action is finished.

this will also remove the need for modules to add that nasty sleep pause at exit
refrences:
https://github.com/chiteroman/PlayIntegrityFix/blob/main/module/action.sh#L17
https://github.com/osm0sis/PlayIntegrityFork/blob/main/module/action.sh#L12

screen-20241227-090543.webm
Tested by: backslashxx <[email protected]>

@armv7a
Copy link

armv7a commented Dec 27, 2024

I like this change too

but, there seems to be a small problem. I think it should exit automatically after execution instead of being closed manually.

Screenrecorder-2024-12-27-10-23-18-651.mp4

@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 27, 2024

I like this change too

but, there seems to be a small problem. I think it should exit automatically after execution instead of being closed manually.
Screenrecorder-2024-12-27-10-23-18-651.mp4

literally defeats the purpose of getting rid of sleep in scripts

backslashxx added a commit to bindhosts/bindhosts that referenced this pull request Dec 27, 2024
@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 29, 2024

Hold this PR, there is a minor issues with navigation bar
Will fix it after new years

Screenshot_20241229-063800

@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 29, 2024

Sike! Already fixed...

screen-20241229-131039.webm

val date = format.format(Date())
val file = File(
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
"KernelSU_Next_module_action_log_${date}.log"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the Next here?

Copy link
Contributor Author

@rifsxd rifsxd Dec 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lmao I forgot to get rid of it, it's from my branch xD

}
},
modifier = Modifier
.navigationBarsPadding()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think change the contentWindowInsets (line 131 for now ) to WindowInsets.safeDrawing without only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal) will be better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the system to decide? Sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_20241230-093043
Screenshot_20241230-093030

But the positioning for vertical is a bit off for my personal taste, are you okay with it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove modifier = Modifier.navigationBarsPadding() pls
We needn't that because Scaffold has already added the navigation bar insets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove modifier = Modifier.navigationBarsPadding() pls We needn't that because Scaffold has already added the navigation bar insets

It was for when WindowInsets.safeDrawing without only(WindowInsetsSides.Top + WindowInsetsSides.Horizontal) was there and the button would be behind the nav bar, so since it's removed I can just get rid of the modifier = Modifier.navigationBarsPadding() sure

@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 29, 2024

Good to go

@rifsxd
Copy link
Contributor Author

rifsxd commented Dec 31, 2024

Merge before 2025??

armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition
(tiann#2321).
armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition (tiann#2321)
armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition (tiann#2321)
armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition (tiann#2321)
armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition (tiann#2321)
armv7a pushed a commit to armv7a/KernelSU that referenced this pull request Jan 2, 2025
… logs until action is completed

Fix irresponsive behaviour of runModuleAction() in ui.util.KsuCli to avoid app crash or hang during transition (tiann#2321)
@rifsxd rifsxd closed this Jan 8, 2025
@rifsxd rifsxd deleted the upstream branch January 8, 2025 05:59
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.

4 participants