Commit Graph
6 Commits
Author SHA1 Message Date
topjohnwu 7e4eeb4f8d app: harden security and clean up build & R8 rules
Harden external intent handling in MainActivity: only accept module
installation, and drop any other action, including uninstallation.
Require explicit user confirmation before flashing, unless the intent
carries the per-process token attached to our own one-shot module
download intents, which the user already chose to install. Hide
overlay windows while the confirmation is shown. Look up the file name
from the external provider with a timeout, and sanitize it and the
provider authority shown in the confirmation. Avoid external intent
indirection in HomeScreen when triggering uninstallation.

Restore callback-based confirm dialogs together with their content
after configuration changes. Dialogs awaited by a coroutine are not
restored, as nothing would receive their result.

Register dynamic USB receivers in InstallDialog as not exported via
registerRuntimeReceiver (RECEIVER_NOT_EXPORTED, enforced on API 33+).

Enable android:enableOnBackInvokedCallback in core manifest to support
predictive back gestures. Fix MagiskDialog modifier parameter ordering
to adhere to Compose lint rules.

Remove the obsolete release manifest and redundant R8 configuration in
core and apk modules: the Parcelable CREATOR and Continuation keep
rules and -allowaccessmodification are covered by
proguard-android-optimize.txt and library consumer rules, and
-shrinkunusedprotofields has no effect with Wire.

Assisted-by: Gemini 4 Argon
Assisted-by: Claude Opus 5.5
2026-10-24 13:01:45 -07:00
topjohnwu e4f4239f5c Re-integrate old app implementation into project 2026-03-16 03:36:43 -07:00
topjohnwu 7008c563e8 Rename apk to preserve history after future merge 2026-03-16 03:34:32 -07:00
topjohnwu 18c1347bd3 Update to AGP 9.0 2026-01-19 23:29:02 +08:00
topjohnwu 024da05888 Move several stuff into buildSrc 2024-11-09 20:08:12 -08:00
topjohnwu fcbbe9a22e Move :app to :app:apk 2024-07-04 02:27:20 -07:00