Commit Graph
3672 Commits
Author SHA1 Message Date
topjohnwu 7600d3664f app: default to Monet theme and filter pre-Android S
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
2026-08-23 15:42:12 +00:00
topjohnwu 8297807b8b apk-ng: refine M3 theme color schemes
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
2026-08-23 15:42:12 +00:00
topjohnwu 99a6e2749f app: modernize architecture and state in apk-ng
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
2026-08-20 21:36:49 +00:00
topjohnwu 3aaf18038a app: improve Compose idiomaticity in apk-ng
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
2026-08-20 21:36:49 +00:00
topjohnwu c578a9632b app: reload tabs when selected in apk-ng
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
2026-08-20 21:36:49 +00:00
topjohnwu 5262ecdf82 Fix default channel shown in UI 2026-08-20 21:36:49 +00:00
Alessandro Sangiorgi a5bca88317 app: reset install method when file picker or download dialog is cancelled 2026-08-18 10:57:09 -07:00
topjohnwu 999bda3bc4 app: adopt Material 3 Expressive UI in apk-ng
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
2026-08-18 17:56:10 +00:00
topjohnwu 6177c7c52b app: improve Material 3 colors in apk-ng
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
2026-08-18 17:56:10 +00:00
topjohnwu fa6867b6a7 Remove unused resources 2026-08-18 17:56:10 +00:00
topjohnwu 47a112edd0 Update gradle dependencies 2026-08-18 17:56:10 +00:00
topjohnwu 599a572d41 app: add scrollbar to screens in apk-ng
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
2026-08-18 17:56:10 +00:00
topjohnwu 8cc4d3a5c1 docs: update AGENTS.md in subdirectories
Update subproject AGENTS.md guidelines to always include the top-level
AGENTS.md.

Assisted-by: Gemini 3.7 Flash
2026-08-18 17:56:10 +00:00
topjohnwu d04ab3fbff app: resize LogLevelBadge using Material 3 Badge
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
2026-08-18 17:56:10 +00:00
topjohnwu a65e492e3d Update build-logic
- Prevent gradle from crashing when flags.prop does not exist
- Fix ndk version

[skip ci]
2026-08-11 01:09:03 +00:00
ZGX089 9bd037ae5d fix(localization): Arabic translation 2026-08-04 21:08:40 -07:00
ZGX089 f31c724e2b feat: improve/sync Arabic translation
sync with latest string changes, alongside some adjustments for previous/old strings.
2026-08-04 21:08:40 -07:00
Edytor-Studio Core 92d88d91e4 Update Ukraine(app/core/src/main/res/values-uk/strings.xml) 2026-08-04 20:29:07 -07:00
Edytor-Studio Core afda36295a Update Ukraine(app/stub-res/src/main/res/values-uk/strings.xml) 2026-08-04 20:29:07 -07:00
Neebe3289 38e83986dd Update Indonesian translations
Update and added new translation as subsequent to commit 81413b0f10, e70e8088ad

Change-Id: I16ad054110d42a3a282d34621d24b965c3dbfaed
2026-08-04 12:12:56 -07:00
I3elphegor a0394bb638 Update Czech translations in strings.xml for improved clarity and consistency 2026-08-04 12:12:23 -07:00
Alessandro Sangiorgi 1f4659357f Update Italian translations (strings.xml) 2026-08-04 12:11:39 -07:00
Alessandro Sangiorgi 8bf342652f Update Italian translations for Magisk core strings.xml 2026-08-04 12:11:39 -07:00
topjohnwu cfd195b514 docs: update AGENTS.md guidelines for AI models
- Expand top-level AGENTS.md with environment execution rules and AI guidelines.
- Add app/AGENTS.md for app subproject architecture and maintenance mode rules.
- Add native/AGENTS.md for native C/C++/Rust build target requirements.

Assisted-by: Gemini 3.6 Flash
2026-07-31 22:57:41 -07:00
Wang Han 0404e0ca34 Fix NG manager storage permission request 2026-07-28 20:12:38 -07:00
vvb2060 3a9374b9c2 faster gradle sync 2026-07-28 20:10:20 -07:00
vvb2060 ff85242a93 clean code 2026-07-28 20:10:20 -07:00
vvb2060 e0a7f41c1c fix DataSourceChannel 2026-07-28 20:10:20 -07:00
vvb2060 dcb15e20bc do not use HEAD 2026-07-28 20:10:20 -07:00
vvb2060 fbcafdf2e2 remove unused code 2026-07-28 20:10:20 -07:00
vvb2060 71d29f36c6 clean strings 2026-07-28 20:10:20 -07:00
vvb2060 7082518c53 fix AI code 2026-07-28 20:10:20 -07:00
topjohnwu 0f59f1f345 Setup userspace Magisk tests
The existing test infrastructure relies on the full Magisk setup before
it can test any functionality. However for most of the time, we just
want to test the core Magisk functionality without the need of involving
MagiskInit.
2026-07-28 17:23:35 -07:00
topjohnwu ffadcfd163 Update gradle dependencies 2026-07-28 10:52:47 -07:00
topjohnwu 9d0b5298af Update to ONDK r30.0 2026-04-20 01:36:36 -07:00
topjohnwu ee3ce37ae4 Build against API 37 2026-04-19 19:27:47 -07:00
topjohnwu 42fa348357 Address several lint issues 2026-04-15 15:54:19 +00:00
topjohnwu 80e2849f3f Move InstallBottomSheet into its own file
Assist-by: Gemini
2026-04-15 15:54:19 +00:00
topjohnwu 859ba80e43 Port new download feature to apk-ng
Assist-by: Gemini
2026-04-15 15:54:19 +00:00
topjohnwu 77ea982963 Update gradle dependencies 2026-04-15 15:54:19 +00:00
Radoš Milićev be7a4b4dcc Update Serbian translations (Cyrillic & Latin) 2026-04-14 23:02:55 +00:00
topjohnwu 7976897ace Switch over to use Wire
Assisted-by: Gemini
2026-04-14 10:24:16 +00:00
vvb2060 bdcd938d74 app: delete unused files 2026-04-14 10:24:16 +00:00
vvb2060 27688120b4 app: update zh-rCN translation 2026-04-14 10:24:16 +00:00
vvb2060 483901f3cd app: use userspace copy 2026-04-14 10:24:16 +00:00
vvb2060 4ee1590cc8 app: add local file supports for HttpFileChannel 2026-04-14 10:24:16 +00:00
vvb2060 b9d21071fc app: support download image and patch 2/2 2026-04-14 10:24:16 +00:00
vvb2060 e70e8088ad app: support download image and patch 1/2 2026-04-14 10:24:16 +00:00
vvb2060 069bbc4837 app: auto measure width 2026-04-14 10:24:16 +00:00
topjohnwu 7d5942a3bc Remove unused code 2026-04-14 07:16:59 +00:00