Set file mode explicitly

Change-Id: I6e45db9c85a16bb3e1a2d2fd99f0a652a0455736
Merge "Set file mode explicitly"