Repository navigation
Conversation
Exclude the session database and log files from Android backups and device transfers, keep debug lines out of logcat in release builds, and make the desktop log directory private to its owner.
|
Some notes:
|
AppPaths now creates the data directory owner-only (rwx------) on macOS and Linux, which covers the logs, history, settings and credentials kept inside it. Windows keeps the data under %LOCALAPPDATA%, which already admits only the user, SYSTEM and Administrators. FileLogger no longer sets permissions itself.
moved the permission handling into AppPaths. it now makes the whole data dir owner-only (rwx------) on macOS and Linux, which covers logs, the db, settings and creds in one place, and FileLogger is back to just logging. on Windows the data is under %LOCALAPPDATA%, which already only allows the user, SYSTEM and admins, so there’s nothing extra to set there. happy to enforce an explicit ACL too if you want that android logs aren’t disabled, only Log.d in release builds. warnings and errors still go to logcat. the debug lines include the wifi name, gateway ip, portal urls and session usage records, and release logcat can be read over adb and ends up in shared bug reports. debug builds still log everything |
Behaviour change: usage history no longer comes back after a reinstall or device transfer.
Platforms:Android, Linux, macOS.