Commit Graph
172 Commits
Author SHA1 Message Date
Neebe3289 ba3f07268d app: Update Indonesian translations
Updated informal language usage in strings, added strings missed in a previous commit, also added new strings corresponding to this commits ccad207125 and f093f847bb.

Change-Id: I0505127da4e420a94328cca8fd0fbf71be68ae13
2026-10-05 20:16:47 -07:00
vvb2060 c155d9f0d1 su: add legacy cmd compatibility check 2026-10-05 20:03:11 -07:00
topjohnwu e097945851 su: unify su usage callback to notify action
Consolidate su notification and logging IPC calls into a single notify
action on the native side, passing all logging parameters along with an
explicit "log" boolean key.

On the application side, retain the existing "log" action entry point
for backwards compatibility with older daemons, and update the "notify"
handler to dispatch to either logging or notification based on the
boolean values.

Assisted-by: Gemini 3.8 Flash
2026-10-05 18:20:32 -07:00
topjohnwu 813f9cb9d4 Support Headless System User Mode (HSUM)
On Headless System User Mode (HSUM) devices (e.g. Android Automotive
OS and shared tablets), user 0 is strictly a non-interactive background
system user while human users operate as secondary users (user 10+).

- Check ro.fw.mu.headless_system_user in daemon_entry and store it on
  MagiskD.
- Enforce MultiuserMode::User on HSUM devices and seed the setting in
  magisk.db during post-fs-data, avoiding duplicate override logic.
- For non-app UIDs (< AID_APP_START), scan all discovered users from
  /data/user_de to resolve the manager package/UID and broadcast su
  usage notifications across all users.
- Include system UIDs (< 10000) in PolicyDao.fetchAll() so ADB shell
  (UID 2000) policies can be loaded on secondary users.
- Hide the Multiuser Mode setting in the app on HSUM devices.

Assisted-by: Gemini 3.8 Flash
2026-10-05 18:20:32 -07:00
topjohnwu f093f847bb app: remove interactive su request components
Following the removal of reactive interactive su prompting in magiskd,
remove the corresponding request activity and obsolete settings from
the app.

- Remove SuRequestActivity, SuRequestScreen, SuRequestViewModel, and
  SuRequestHandler.
- Remove tapjack protection, auto response, and request timeout
  settings and resources.
- Update Stub.kt manifest generator to drop the unexported activity
  placeholder.
- Simplify DynLoad activity mapping now that both stub and app declare
  a single activity.
- Bump magisk.stubVersion to 41.

Assisted-by: Gemini 3.8 Flash
2026-10-05 01:38:20 -07:00
topjohnwu 9d79f868f0 test: update su test to explicitly grant access
With interactive su prompting removed, update MagiskAppTest to
explicitly grant su access to the ADB shell UID in the policy database
rather than relying on SuRequestActivity launch and auto-allow config.

Assisted-by: Gemini 3.8 Flash
2026-10-05 01:38:20 -07:00
topjohnwu ccad207125 app: allow explicitly granting superuser access
Add a floating action button on the superuser page that opens a new
app list allowing users to proactively grant superuser privileges to
applications before they request root.

The grant screen adopts the same style and controls as the denylist
screen, including search, sorting, and system/OS filtering, while
always keeping the Shell application accessible. Common card and list
item UI components are shared with the superuser policy list.

Assisted-by: Gemini 3.8 Flash
2026-10-05 01:38:20 -07:00
topjohnwu 5381a1e9b8 Remove legacy apk codebase
Remove the legacy view-based APK module (:apk-legacy), along with its
subcommands, configurations, release packaging steps, and associated
unused dependencies.

Assisted-by: Gemini 3.8 Flash
2026-10-04 03:30:08 -07:00
topjohnwu aed0261c3d Refactor adb patching and emulator setup
Add support for patching boot images directly via adb
with the build.py script.
2026-09-21 01:40:07 -07:00
Wang Han 511a246ca9 Enhance legalFilename function to handle control characters 2026-09-17 22:21:08 -07:00
vvb2060 4e44848a6e app: update zh-rCN translation 2026-09-01 14:56:44 -07:00
Neebe3289 93d2babf66 app: Update Indonesian translations
update and cleanup indentation space.

Change-Id: Ief761e87ae9367323f0ca6c150192817cff83c62
2026-09-01 14:56:22 -07:00
topjohnwu 74df51fd1b app-ng: improve uninstalled state on home screen
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
2026-08-31 10:54:59 -07:00
topjohnwu a6ea7cefea Update links, icons, and developer 2026-08-29 23:34:16 -07:00
topjohnwu 227e3cee0a Update lsposed for testing 2026-08-27 17:19:55 +00:00
topjohnwu 5480fc41c3 app: inject prebuilt bootctl into jniLibs
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
2026-08-27 03:29:31 +00:00
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 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 fa6867b6a7 Remove unused resources 2026-08-18 17:56:10 +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
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
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 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 ee3ce37ae4 Build against API 37 2026-04-19 19:27:47 -07: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 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
topjohnwu 81413b0f10 Remove hardcoded strings in apk-ng 2026-04-14 07:16:59 +00:00
𝗛𝗼𝗹𝗶 4890935866 Update Turkish
Sync Turkish translations with the latest English strings and improve overall terminology.
2026-04-09 09:32:22 +00:00
topjohnwu d95918dc15 Cleanup PreferenceConfig 2026-04-08 05:29:57 +00:00
Neebe3289 9dc9b20292 Update Indonesian translations
Change-Id: I8243d30f8df1fb9c9aabff85c081db3dba9695b1
2026-03-31 20:55:59 +00:00
Arbri çoçka 8a014412c5 Update strings.xml sq 2026-03-31 18:59:05 +00:00
topjohnwu d5476e1321 Switch over to use composite build-logic
Using buildSrc comes with too many caveats, switch over to a composite
build-logic solves a lot of buildSrc's issue.
2026-03-27 08:40:46 +00:00
topjohnwu 6f93f74f80 app-ng: Fix several compile warnings 2026-03-21 06:57:09 +00:00
topjohnwu b9d64bfdf9 Remove all legacy themes and AppCompatActivity 2026-03-20 19:38:34 +00:00
Neebe3289 59eca3fd0a Update Indonesian translations
Change-Id: I5677410a0d767f54f0fe7fe74695d117d33d69c0
2026-03-18 00:11:11 -07:00