From 15b257720ebeb2d667dcd205ed1de2498c5ead99 Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Tue, 3 Jan 2023 13:32:18 -0500 Subject: [PATCH] Rework module validation and setup Signed-off-by: androidacy-user --- app/src/main/java/com/fox2code/mmm/utils/ZipFileOpener.java | 2 +- app/src/main/res/values/strings.xml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/fox2code/mmm/utils/ZipFileOpener.java b/app/src/main/java/com/fox2code/mmm/utils/ZipFileOpener.java index 9e74b53..a25a26b 100644 --- a/app/src/main/java/com/fox2code/mmm/utils/ZipFileOpener.java +++ b/app/src/main/java/com/fox2code/mmm/utils/ZipFileOpener.java @@ -150,7 +150,7 @@ public class ZipFileOpener extends FoxActivity { } runOnUiThread(() -> { new MaterialAlertDialogBuilder(this) - .setTitle(R.string.zip_security_warning) + .setTitle(getString(R.string.zip_security_warning, moduleInfo)) .setMessage(getString(R.string.zip_intent_module_install, moduleInfo, Files.getFileName(this, uri))) .setCancelable(false) .setNegativeButton(R.string.no, (d, i) -> { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a6c08c1..24444df 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -271,10 +271,12 @@ No file was provided when trying to open zip. Could not load the zip file Could not load the module properties - Security warning + Install %s? Do you really want to install the module \"%s\" from the ZIP file \"%s\"? Installing untrusted modules can lead to security risks. Developed in part by Androidacy Huge shoutout to Androidacy for their integration and contributions to the app. And of course, thanks to all of our contributors, whether it\'s translations, code, or just being fun to hang out with! We love you all. - Inspecting module…Warning!This module has indicators it may have been installed without your knowledge, or may be attempting to hide itself. Uninstall is strongly recommended.I understandChoose theme + Inspecting module… + Warning! This module has indicators it may have been installed without your knowledge, or may be attempting to hide itself. Uninstall is strongly recommended. + I understandChoose theme