I would like to understand something about Android roles and, in particular, why, if I execute this function of the Context class
openOutputFile(filename, MODE_WORLD_WRITEABLE)
the created file has write permissions for each role (User, Group, Others), but has read permissions only for the user and group. I think this is not os lock, because if I try to change the permissions that execute this code
Runtime.getRuntime().exec("chmod 666 FILE_PATH")
it sets read and write permissions for each role.
This is normal? "Who are the people in the role of others? Why doesn't the first instruction set read permissions for Others?"
Thanks.
source share