Remote wipe logic

This commit is contained in:
M66B
2022-03-07 08:21:19 +01:00
parent df874106ad
commit 7613ad6bbb
6 changed files with 34 additions and 73 deletions

View File

@@ -2015,8 +2015,12 @@ public class Log {
Map<String, ?> settings = prefs.getAll();
List<String> keys = new ArrayList<>(settings.keySet());
Collections.sort(keys);
for (String key : keys)
size += write(os, key + "=" + settings.get(key) + "\r\n");
for (String key : keys) {
Object value = settings.get(key);
if ("wipe_mnemonic".equals(key) && value != null)
value = "[redacted]";
size += write(os, key + "=" + value + "\r\n");
}
}
db.attachment().setDownloaded(attachment.id, size);