diff --git a/java/com/facebook/soloader/UnpackingSoSource.java b/java/com/facebook/soloader/UnpackingSoSource.java index 4c228eb..99e6d08 100644 --- a/java/com/facebook/soloader/UnpackingSoSource.java +++ b/java/com/facebook/soloader/UnpackingSoSource.java @@ -28,6 +28,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; +import java.io.SyncFailedException; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -223,6 +224,8 @@ private static void writeState(File stateFileName, byte state) throws IOExceptio stateFile.write(state); stateFile.setLength(stateFile.getFilePointer()); stateFile.getFD().sync(); + } catch (SyncFailedException e) { + Log.w(TAG, "state file sync failed", e); } }