in java/com/facebook/soloader/SysUtil.java [75:85]
public static void deleteOrThrow(File file) throws IOException {
final File folder = file.getParentFile();
// We need write permission on parent folder to delete the file
if (folder != null && !folder.canWrite() && !folder.setWritable(true)) {
Log.e(TAG, "Enable write permission failed: " + folder);
}
if (!file.delete() && file.exists()) {
throw new IOException("Could not delete file " + file);
}
}