diff --git a/app/src/main/java/deltazero/amarok/ui/SwitchFileHiderActivity.java b/app/src/main/java/deltazero/amarok/ui/SwitchFileHiderActivity.java index 04fa1442..77f47630 100644 --- a/app/src/main/java/deltazero/amarok/ui/SwitchFileHiderActivity.java +++ b/app/src/main/java/deltazero/amarok/ui/SwitchFileHiderActivity.java @@ -64,7 +64,14 @@ public void onCheckFileHiderRadioButton(View view) { } else if (buttonID == R.id.switch_filehider_radio_obfuscate) { new ObfuscateFileHider(this).tryToActive(this::onActivationCallback); } else if (buttonID == R.id.switch_filehider_radio_chmod) { - new ChmodFileHider(this).tryToActive(this::onActivationCallback); + // FIXME: Samsung devices may failed to boot with chmod mode + new MaterialAlertDialogBuilder(this) + .setTitle(R.string.warning) + .setMessage(R.string.chmod_samsung_warning) + .setPositiveButton(R.string.ok, (dialog, which) -> new ChmodFileHider(this).tryToActive(this::onActivationCallback)) + .setNegativeButton(R.string.cancel, (dialog, which) -> new NoneFileHider(this).tryToActive(this::onActivationCallback)) + .show(); + // new ChmodFileHider(this).tryToActive(this::onActivationCallback); } else if (buttonID == R.id.switch_filehider_radio_nomedia) { new NoMediaFileHider(this).tryToActive(this::onActivationCallback); } diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 84b501ac..976262f6 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -158,4 +158,6 @@ 仅仅在需隐藏的文件夹中加入 .nomedia 文件。不需要 Root。 欢迎 Amarok 是一款轻量级隐私保护工具,一键隐藏你的隐私文件和应用。本程序完全免费开源。\n\n请注意 Amarok 并非加密程序,而只是隐藏程序。请勿使用 Amarok 保护机密文件与应用。\n\n免责声明:切勿将 Amaork 用于重要文件或应用的隐藏。您使用 Amaork 导致的一切损失和后果均由您自行承担。 + 有报告称三星用户使用此模式可能导致设备无法启动。 详见 GitHub #105。请谨慎使用。 + 警告 \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 03767df3..760c3a37 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -163,4 +163,6 @@ Only add .nomedia to folders. No root access is required. Welcome Amarok is a free and freedom tool for hiding private files & applications.\n\nPlease note that Amarok is not an encryption software, but rather a tool for hiding things. We strongly advise against using Amarok to protect confidential files and applications.\n\nDisclaimers: Amarok is provided without any warranties or conditions. The user is fully responsible for any harm or consequences that may arise from using Amarok. + WARNING + Some Samsung users have reported that using ChmodFileHider caused their devices to fail to boot. Refer to GitHub issue #105 for more information. Use at your own risk. \ No newline at end of file