From 8bdf5935c0db4a66ab33a10b43398d2523cfa15d Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 15 Oct 2010 12:54:40 -0700 Subject: Work on issue #3101415: Crespo apps seem to have their UID changed over time. fsync! Change-Id: Ie6c5397202579935ac69bf61d3e7b3081ecf269c --- keystore/java/android/security/SystemKeyStore.java | 1 + 1 file changed, 1 insertion(+) (limited to 'keystore') diff --git a/keystore/java/android/security/SystemKeyStore.java b/keystore/java/android/security/SystemKeyStore.java index 1093219..47718e6 100644 --- a/keystore/java/android/security/SystemKeyStore.java +++ b/keystore/java/android/security/SystemKeyStore.java @@ -94,6 +94,7 @@ public class SystemKeyStore { FileOutputStream fos = new FileOutputStream(keyFile); fos.write(retKey); fos.flush(); + FileUtils.sync(fos); fos.close(); FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR), -1, -1); -- cgit v1.1