odrefresh: fixes for launching from init

When launched from init, the umask() of odrefresh is 0077 which means
only the owner can read files and directories created by
odrefresh. This prevents loading system_server compilation artifacts.

This change unsets the umask when creating installation directories
and files. It also ensures they have the expected permissions.

Fix: 181397437
Test: trigger recompilation, observe system_server odexes mapped
Change-Id: I7086421d4a2281c563dc1fdb3ec74e31da9da978
1 file changed