* commit '10dd6eeff86a0618fa2984ae14aafde182f9da9d': Sync file before using JournaledFile commit.
This commit is contained in:
@@ -60,6 +60,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;
|
||||
@@ -1348,6 +1349,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
out.endTag(null, "policies");
|
||||
|
||||
out.endDocument();
|
||||
stream.flush();
|
||||
FileUtils.sync(stream);
|
||||
stream.close();
|
||||
journal.commit();
|
||||
sendChangedNotification(userHandle);
|
||||
|
||||
Reference in New Issue
Block a user