Files
Magisk/app/core
topjohnwu 18112c7366 app: don't crash on broken module metadata
Modules are third-party, but some of their metadata could crash the
app:

- A malformed updateJson URL (e.g. ftp://) made Retrofit throw
  IllegalArgumentException, which LocalModule.fetch() didn't catch, so
  the app exited every time the module list loaded, even offline. A
  malformed changelog URL did the same when opening the update dialog.
- Two module directories with the same id in module.prop crashed the
  module list, which used the id as the item key.

Catch every non-cancellation exception when fetching update info and
changelogs, and identify modules by their directory name, which is
unique.

Assisted-by: Claude Opus 5.5
2026-10-24 13:01:45 -07:00
..