Skip to content

manager: implement foreground service for module downloads#3326

Merged
YuKongA merged 2 commits into
mainfrom
dewnload
Mar 24, 2026
Merged

manager: implement foreground service for module downloads#3326
YuKongA merged 2 commits into
mainfrom
dewnload

Conversation

@YuKongA

@YuKongA YuKongA commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

YuKongA added 2 commits March 23, 2026 22:02
Introduces `DownloadManager` and `DownloadService` to handle module
downloads as foreground services. This ensures downloads are not
interrupted by the system and provides real-time progress updates via
system notifications.

Key changes:
- Added `DownloadManager` to track download states and callbacks.
- Added `DownloadService` with support for progress notifications,
  cancellation, and post-download installation actions.
- Integrated download progress and status into `ModuleScreen`,
  `ModuleRepoMaterial`, and `ModuleRepoMiuix`.
- Added deep link resolution for the "Install" action in notifications.
- Added necessary permissions (`FOREGROUND_SERVICE`, `POST_NOTIFICATIONS`)
  and service declaration to `AndroidManifest.xml`.
- Updated UI to distinguish between "Download" and "Install" states.

* Made with Claude
In both Miuix and Material module repository screens, check if the downloaded module file still exists on disk before attempting installation. If the file is missing, the download state is reset to allow re-downloading.

* Made with Claude
@YuKongA YuKongA requested a review from KOWX712 March 23, 2026 14:05
@YuKongA YuKongA merged commit d7bd5f8 into main Mar 24, 2026
16 checks passed
@YuKongA YuKongA deleted the dewnload branch March 24, 2026 03:19
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Mar 24, 2026
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