The host app exposes a log viewer and a “Share logs” button.
Logger.log("MainActivity", "Manual refresh")val logFile = Logger.getLogFile()
val uri = FileProvider.getUriForFile(this, "${packageName}.fileprovider", logFile)app/src/main/res/xml/file_paths.xml
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<files-path name="logs" path="." />
</paths>Without this file, FileProvider cannot generate a shareable URI and will crash.
Tip
If you do not need log sharing in production, remove the FileProvider and the related permissions.