Commit 9d18526c authored by akwizgran's avatar akwizgran

Make log file world-readable for easier extraction.

parent bfc1aa2c
package org.briarproject.snooze;
import android.annotation.SuppressLint;
import android.util.Log;
import org.jetbrains.annotations.Nullable;
......@@ -32,6 +33,7 @@ class FileLogger extends Thread {
public void run() {
InputStream in = null;
......@@ -40,6 +42,8 @@ class FileLogger extends Thread {
// Load any existing messages and pass them to the callback
//noinspection ResultOfMethodCallIgnored
if (!logFile.setReadable(true, false))
Log.i(TAG, "Failed to make log file world-readable");
in = new FileInputStream(logFile);
Scanner scanner = new Scanner(in);
List<String> messagesLoaded = new ArrayList<>();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment