java - Access permissions during android file sharing -


why sufficient openfileoutput() file mode mode_world_readable (as manual says) make file readable other apps (via share intent)?

even if file readable, doesn't directory remain private (rwx------ rather rwxrwxrwx)?

even if file readable, doesn't directory remain private (rwx------ rather rwxrwxrwx)?

having directory deny-all prevent third parties listing contents of directory or creating new files there. has no impact on being able read file given fully-qualified path file.

that being said, please not use mode_world_readable. use fileprovider instead, have finer-grained control on has access content. way, example, can have file inaccessible except specific share operation.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -