fixed file permissions for certain on-device usage scenarios