Access To Mode_world_readable Files In Application Private Directory On Android Devices
Solution 1:
The file access mode for the application base directory (usually something like /data/data/com.package.app) and the top directories in it (databases, files, cache, ...) is rwxrwx--x. For other users than the application itself the relevant part is --x, which mean the directories can not be read (browsed) but they can be traversed. So you can read MODE_WORLD_READABLE files if you know exactly what you are looking for (the complete path).
Solution 2:
We currently write the data out as a simple character stream in the default application directory (data/data/appname/files) and specify MODE_WORLD_READABLE when we create each of these data files.
AFAIK you cant access files from application sandbox (i.e /data/data/appname/files).If it were possible then you may never have used Content Providers.
The only solution i see here is whatever you want to achieve is only possible on Rooted Devices
Post a Comment for "Access To Mode_world_readable Files In Application Private Directory On Android Devices"