Skip to content

Shizuku: Improve initialization and start-up behavior - #1345

Merged
d4rken merged 5 commits into
mainfrom
shizuku-init
Aug 1, 2024
Merged

d4rken merged 5 commits into
mainfrom
shizuku-init

Conversation

@d4rken

@d4rken d4rken commented Aug 1, 2024

Copy link
Copy Markdown
Member

No description provided.

@d4rken d4rken added enhancement New feature, request, improvement or optimization ADB ADB/Shizuku related labels Aug 1, 2024
@d4rken
d4rken merged commit ae71b62 into main Aug 1, 2024
@d4rken
d4rken deleted the shizuku-init branch August 1, 2024 12:26
d4rken added a commit that referenced this pull request Aug 8, 2024
Fix services being destroyed before all data has been transferred
Similar to `LocalGateway.read(...): Source` where we need to keep the source alive until consumed, we need to do the same when returning a `Flow`.
It's up to the caller on when it's consumed.

Likely caused by #1345
Previously we had a constant lease on the Shizuku service resource so this never surfaced:
https://github.com/d4rken-org/sdmaid-se/pull/1345/files#diff-3105723dbd44154e23041c05d9496670e61e15cbdcd00ea73c99d1984f577f76R135

Root will have the same issue as that changed in #1346

This fixes #1358
d4rken added a commit that referenced this pull request Aug 8, 2024
Fix services being destroyed before all data has been transferred
Similar to `LocalGateway.read(...): Source` where we need to keep the source alive until consumed, we need to do the same when returning a `Flow`.
It's up to the caller on when it's consumed.

Likely caused by #1345
Previously we had a constant lease on the Shizuku service resource so this never surfaced:
https://github.com/d4rken-org/sdmaid-se/pull/1345/files#diff-3105723dbd44154e23041c05d9496670e61e15cbdcd00ea73c99d1984f577f76R135

Root will have the same issue as that changed in #1346

This fixes #1358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ADB ADB/Shizuku related enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant