Keep persistent log messages
It might be useful to have logs that persist across restarts (e.g. to find out why users get signed out). But that would require one of the following solutions:
- write logs to an encrypted file that we can read back after restarting
- write logs to the system log, use the
READ_LOGS
permission to read them back after restarting - this results in a scary permission warning at installation time on API < 23 - write logs to the system log, read them back without the
READ_LOGS
permission - this only works on API >= 16, but that's nearly all our users, so we could just live without this feature on API 15. the bigger issue with using the system log is that the logs are stored in plaintext