Skip to content

Commit

Permalink
!chore: Add warning to ChmodFileHider (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
deltazefiro committed Oct 7, 2023
1 parent 76cc347 commit d730fc6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,6 @@
<string name="filehider_nomedia_description">仅仅在需隐藏的文件夹中加入 .nomedia 文件。不需要 Root。</string>
<string name="welcome_title">欢迎</string>
<string name="welcome_msg">Amarok 是一款轻量级隐私保护工具,一键隐藏你的隐私文件和应用。本程序完全免费开源。\n\n请注意 Amarok 并非加密程序,而只是隐藏程序。请勿使用 Amarok 保护机密文件与应用。\n\n<u>免责声明:切勿将 Amaork 用于重要文件或应用的隐藏。您使用 Amaork 导致的一切损失和后果均由您自行承担。</u></string>
<string name="chmod_samsung_warning"><b><font fgcolor="#ff0000">有报告称三星用户使用此模式可能导致设备无法启动。</font> 详见 GitHub #105。请谨慎使用。</b></string>
<string name="warning">警告</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,6 @@
<string name="filehider_nomedia_description">Only add .nomedia to folders. No root access is required.</string>
<string name="welcome_title">Welcome</string>
<string name="welcome_msg">Amarok is a free and freedom tool for hiding private files &amp; 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\n<u>Disclaimers: Amarok is provided without any warranties or conditions. The user is fully responsible for any harm or consequences that may arise from using Amarok.</u></string>
<string name="warning">WARNING</string>
<string name="chmod_samsung_warning"><b><font fgcolor="#ff0000">Some Samsung users have reported that using ChmodFileHider caused their devices to fail to boot.</font> Refer to GitHub issue #105 for more information. Use at your own risk.</b></string>
</resources>

0 comments on commit d730fc6

Please sign in to comment.