S_IREAD and S_IWRITE are replaced with S_IRUSR and S_IWUSR.
They are no more available on Android.