Refactor PolicyCard to use Material 3 ListItem within a Card container,
removing the artificial VerticalDivider and bespoke click bounds.
In SuperuserDetailScreen:
- Standardize Card corner radiuses to 20.dp
- Add subtle HorizontalDivider between switch items
- Modernize RevokeButton to use filledTonalButtonColors with standard
ButtonDefaults.shape and ButtonWithIconContentPadding
Assisted-by: Gemini 3.8 Flash
Compose Material 3 TopAppBar already applies standard insets internally
for navigation and action icons. Remove redundant manual start/end
paddings across detail and main screens to ensure icons align flush with
the standard 16dp content margin.
Assisted-by: Gemini 3.8 Flash
- Replace Material 3 NavigationBar with ShortNavigationBar and
ShortNavigationBarItem for a more compact bottom bar.
- Set contentWindowInsets to zero on the root Scaffold so status bar
insets are passed down to child screens' TopAppBars.
- Consume innerPadding on HorizontalPager to prevent nested Scaffolds
from duplicating bottom system navigation insets.
Assisted-by: Gemini 3.8 Flash
- Remove android:windowIsFloating so SuRequestActivity is a full-screen
translucent activity rather than a floating window that dismisses on
touches outside during asynchronous initialization.
- Set setFinishOnTouchOutside(false) to prevent unwanted dismissals.
- Decouple the 1-second grant button delay from the countdown timer so
interacting with the timeout slider immediately does not leave the
grant button permanently disabled.
- Ensure an immediate DENY response is sent if the activity or
view model is destroyed before responding.
Assisted-by: Gemini 3.8 Flash
Replace the static, hardcoded light and dark ColorScheme tables with a
helper that dynamically generates Material 3 color schemes using
SchemeTonalSpot from Google Material Color Utilities.
The default light and dark themes are now generated from the Magisk
launcher icon accent color (#00AF9C) as seed.
Assisted-by: Gemini 3.8 Flash
Because the base post-splash theme is a dark theme, the window
defaults to light (white) status bar icons. When the app is in light
theme, the icons blend into the light background and become invisible.
Synchronize WindowInsetsControllerCompat's appearance flags with the
active theme so dark icons are used in light theme and light icons in
dark theme.
Assisted-by: Gemini 3.8 Flash
- Track initiallyChecked state in DenyAppState
- Use initiallyChecked in sort comparator to keep list position stable
- Keep initially checked items visible in filter when unselected
Assisted-by: Gemini 3.7 Flash
- Wrap TopAppBar and PrimaryTabRow in topBar Column with animated container
- Set TopAppBar and PrimaryTabRow containers to transparent to share surface
Assisted-by: Gemini 3.7 Flash
- Replace custom dividers with VerticalDivider / HorizontalDivider
- Use standard Material 3 search styling for DenyList
- Remove redundant button / FAB shape overrides and card clip modifiers
- Convert custom warning and notice boxes to Material 3 Card
- Align PrimaryTabRow to full width in LogScreen
Assisted-by: Gemini 3.7 Flash
Replace the custom floating navigation bar with official Material 3
NavigationBar and NavigationBarItem components, and remove unnecessary
bottom padding workarounds across all screens.
Assisted-by: Gemini 3.7 Flash
Override active fling inertia on touch down using
MutatePriority.UserInput and handle scroll events sequentially via a
conflated channel.
Assisted-by: Gemini 3.7 Flash
Replace the install bottom sheet with a full-screen Dialog to provide
more vertical space for release notes and installation methods.
- Remove the legacy multi-step wizard logic from InstallViewModel.
- Use styled Cards with SettingsSwitch for install options and
SettingsArrow for installation methods.
- Remove max height constraint on MarkdownText to allow release notes
to expand naturally with full-screen scrolling.
Assisted-by: Gemini 3.7 Flash
Disable platform default width on dialogs and apply standard horizontal
padding and max-width constraints for better readability.
Assisted-by: Gemini 3.7 Flash
Add a shared MagiskDialog component to unify styling, typography,
shape, and button layouts across all dialogs in the app module.
Assisted-by: Gemini 3.7 Flash
Add a HorizontalPager in LogScreen to support swiping horizontally
between the Superuser and Magisk log tabs instead of paging the outer
main navigation tabs.
Assisted-by: Gemini 3.7 Flash
When launching a flash intent using FLAG_ACTIVITY_CLEAR_TOP, Android
recreates MainActivity if singleTop or singleTask is not set, causing
the app to briefly display the home screen before showing the flash
screen.
Set MainActivity to singleTask, add FLAG_ACTIVITY_SINGLE_TOP to flash
intents, and default cold-start flash zip intents to the modules tab.
Assisted-by: Gemini 3.7 Flash
When Magisk is not installed:
- Display "Not Installed" in error color instead of "N/A"
- Use a prominent filled primary button for the Install action
- Dim the Magisk icon tint to outline color
Assisted-by: Gemini 3.7 Flash
Adjust the App card icon size to 48dp and the following spacer to 16dp
to match the Magisk card and align their titles horizontally.
Assisted-by: Gemini 3.7 Flash
Remove the oversized uninstall button from the home screen content and
place an uninstall action icon in the top app bar next to the reboot
button.
Assisted-by: Gemini 3.7 Flash
Widen the su request dialog card to fit screen width on phones while
capping at 560dp on larger screens. Move the package name to its own
row below the app icon and title to avoid clipping and allow it to
wrap onto multiple lines when necessary. Make the dialog content
vertically scrollable to ensure all actions are visible in landscape.
Assisted-by: Gemini 3.7 Flash
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
Download updated multi-arch prebuilt bootctl binaries built from
Android 14 (android-14.0.0_r1) and package them into jniLibs alongside
busybox instead of bundling a single binary in assets.
The new bootctl binaries support AIDL Boot HAL implementations on
Android 14+ (API 31+), fixing OTA slot switching issues on newer
devices like Pixels.
Update post-OTA install logic in the app and shell scripts to use the
native bootctl executable from MAGISKBIN.
Fixes#8824
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