Set textAlign = TextAlign.Center on the empty state placeholder text in
SuperuserScreen and ModuleScreen so multi-line messages are centered
horizontally instead of left-aligned.
Assisted-by: Gemini 3.7 Flash
Increase the terminal buffer columns to prevent text lines from wrapping
at the screen boundary, and enable bidirectional scrolling in
TerminalScreen.
Track the maximum used column across terminal lines dynamically to
constrain horizontal scrolling to actual content, and add a horizontal
scrollbar component matching the vertical scrollbar.
Assisted-by: Gemini 3.7 Flash
Magisk daemon internal logs skip the TAG field, outputting directly
after the priority level. Update MagiskLogParser to treat logcat tags
as part of the message and strip leading delimiters for internal logs.
Also adjust the Magisk log card UI layout to format PID/TID clearly and
remove the duplicate key generation in LazyColumn that caused crashes.
Assisted-by: Gemini 3.7 Flash
Default to Monet (dynamic color) theme options on supported API
versions (Android S+) while hiding Monet options on unsupported
versions (< Android S).
Introduce ColorMode enum to encapsulate theme modes and UI index
mapping logic cleanly.
Assisted-by: Gemini 3.6 Flash
Update light and dark color schemes in apk-ng to strictly align with
Material 3 Expressive color guidelines. Explicitly define surface
container tokens for improved contrast and card visibility, and
enhance primary and tertiary accents.
Assisted-by: Gemini 3.6 Flash
Refactor apk-ng to adhere to modern Android and Jetpack Compose best
practices:
- Migrate VMFactory to the type-safe AndroidX viewModelFactory DSL.
- Use collectAsStateWithLifecycle across all screen composables to
pause flow collection when backgrounded.
- Convert PolicyItem, ModuleItem, DenyAppState, and DenyProcessState
to pure immutable data classes, removing Compose MutableState from
ViewModels.
- Extract shell operations from UI model classes into ViewModels.
- Bridge Info.isConnected LiveData to coroutine Flow using callbackFlow
and collect in viewModelScope without modifying :core.
- Consolidate magisk and manager version state into
HomeViewModel.UiState.
- Add contentType to LazyColumn items for optimal list recycling.
- Restore proper localized string resolution in MainActivityDialogs.
Assisted-by: Gemini 3.7 Flash
Refactor apk-ng UI components and screens to follow idiomatic Jetpack
Compose patterns:
- Hoist state across dialogs and bottom sheets, replacing MutableState
parameter passing with standard boolean flags and event callbacks.
- Add modifier parameter to all UI composables and apply proper modifier
chaining.
- Decouple screen composables from MainActivity host casting by
providing explicit authentication and permission callbacks.
- Scope SuperuserViewModel to MainActivity and share across MainScreen
and SuperuserDetailScreen.
- Unify loose mutable states in SuRequestViewModel into an immutable
UiState StateFlow.
- Fix dynamic loop remember allocations in MainActivity dialogs.
- Provide stable item keys for LazyColumn in MagiskLogTab.
Assisted-by: Gemini 3.7 Flash
Because HorizontalPager pre-renders all tab composables, LaunchedEffect
with a Unit key was only executing once on initial creation. As a result,
changes to configuration (e.g. update channel) calling resetUpdate()
did not trigger a reload when returning to the Home tab, causing the
install/reinstall dialog to display an empty changelog.
Trigger startLoading() whenever a tab becomes active (isCurrentPage).
Assisted-by: Gemini 3.7 Flash
Update apk-ng components and screens to adhere to Material 3 Expressive
design guidelines:
- Define expressive Shapes and Typography scales in MagiskTheme.
- Add active pill indicators with spring animations to floating nav bar.
- Update card surfaces to 20dp-24dp rounded containers with tonal depth.
- Modernize action buttons and search bar to expressive pill shapes.
- Enhance dialogs and su request screens with rounded surfaces.
Assisted-by: Gemini 3.7 Flash
Improve Material 3 color system compliance and legibility across apk-ng:
- Add custom Magisk-branded light and dark fallback color schemes.
- Fix button color token pairings and remove custom alpha blending.
- Fix surface/background tokens in dialogs and markdown views.
- Harmonize badges and warnings with semantic M3 color roles.
- Remove redundant TopAppBar icon tint overrides.
Assisted-by: Gemini 3.7 Flash
Add interactive, draggable scrollbars to all scrollable screens and
components in apk-ng so users can fast-scroll through long content.
Assisted-by: Gemini 3.7 Flash
Replace custom padded Box in LogLevelBadge with Material 3's Badge
component to make log level indicators more compact and consistent
with the rest of the application's badge styling.
Assisted-by: Gemini 3.7 Flash