mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
JNI mkdirs
This commit is contained in:
@@ -245,6 +245,8 @@ public class Log {
|
||||
|
||||
public static native void jni_safe_write(OutputStream os, byte[] data);
|
||||
|
||||
public static native boolean jni_safe_mkdirs(File file);
|
||||
|
||||
public static native long[] jni_safe_runtime_stats();
|
||||
|
||||
public static void setLevel(Context context) {
|
||||
@@ -403,7 +405,6 @@ public class Log {
|
||||
return t.toSafeString() + "\n" + t.getSafeStackTraceString();
|
||||
}
|
||||
|
||||
|
||||
public static void persist(EntityLog.Type type, String message) {
|
||||
if (ctx == null)
|
||||
Log.e(message);
|
||||
@@ -1932,6 +1933,8 @@ public class Log {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
Log.jni_safe_mkdirs(new File(context.getFilesDir(), "testing"));
|
||||
|
||||
ServiceSynchronize.eval(context, "debuginfo");
|
||||
|
||||
return draft;
|
||||
|
||||
Reference in New Issue
Block a user