Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2dc53c56 authored by Kenny Guy's avatar Kenny Guy Committed by Android Git Automerger
Browse files

am 4be433dc: am 10dd6eef: am fd846dfb: Merge "Sync file before using...

am 4be433dc: am 10dd6eef: am fd846dfb: Merge "Sync file before using JournaledFile commit." into lmp-mr1-dev

* commit '4be433dc':
  Sync file before using JournaledFile commit.
parents d3ef970c 4be433dc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ import android.os.AsyncTask;
import android.os.Binder;
import android.os.Bundle;
import android.os.Environment;
import android.os.FileUtils;
import android.os.Handler;
import android.os.IBinder;
import android.os.PersistableBundle;
@@ -1349,6 +1350,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            out.endTag(null, "policies");

            out.endDocument();
            stream.flush();
            FileUtils.sync(stream);
            stream.close();
            journal.commit();
            sendChangedNotification(userHandle);