Reason copied from F-Droid:
Android 24 and later provides tons of languages, and a way to rank
multiple languages instead of choosing one. The Languages pref is a
big hack and can be problematic, so its better to disable it when its
not needed. This will make it so it is no longer possible to set
F-Droid to a language that the system does not support.
* A fix for issue #953
* Cleanup: Moved parts of the run method to sub-methods
* Moved code to aux methods
* Identation fixed
* Rephrased the comment about using exec
* Avoid using inline if-statements when possible
* Provided fix for issue #812
Check permissions of config.xml before reading or writing from/to it.
If the permissions are wrong, assume root magic is going on, and fix it.
* Various fixes regarding coding guideline
- Fixed whitespaces
- Moved aux method to bottom of file
- Added Javadoc-like comments
* SettingsActivity: Use onClickListener for the useRoot Checkbox
* Moved fixAppDataPermissions() to class Util
* Removed obsolete shell commands
* Implemented Nutomic's changes
* Changed misleading title of sttrace option
The sttrace preference field just takes a list of facilities
as an input (https://docs.syncthing.net/dev/debugging.html).
Calling it 'Debug Options' might be misleading since Syncthing
offers way more debugging options than just sttrace.
Naming it 'STTRACE options' makes it clear for the user what
he or she should enter.
* Reverted german translation for sttrace_title
This removes the ability to set a custom user and password.
The user is always set to "syncthing" and the password to the API key.
This ensure that the web GUI works and makes sure that the web GUI is protected.