Re: [android-developers] Re: How to change device file permission from Java app.

2011-08-09 Thread Mark Murphy
On Tue, Aug 9, 2011 at 11:53 AM, Chris Stratton wrote: > Unlikely, as it can be done with the ndk, and we are repeatedly told that > the ndk does not have special permissions.  Most likely they just didn't > bother implementing support in javaj for something that wasn't envisioned as > needed. Po

Re: [android-developers] Re: How to change device file permission from Java app.

2011-08-09 Thread Chris Stratton
On Tuesday, August 9, 2011 7:17:30 AM UTC-4, Mark Murphy (a Commons Guy) wrote: > > > Has this been done for security reasons ? > > Probably. > Unlikely, as it can be done with the ndk, and we are repeatedly told that the ndk does not have special permissions. Most likely they just didn't bothe

Re: [android-developers] Re: How to change device file permission from Java app.

2011-08-09 Thread Mark Murphy
On Tue, Aug 9, 2011 at 2:38 AM, uday kiran jandhyala wrote: > Has this been done for security reasons ? Probably. > Which means if an application downloads some bytes and writes to > a file created through the below code > > File destination = new File ("/sdcard/myfile.txt"); > > there is no way

[android-developers] Re: How to change device file permission from Java app.

2011-08-08 Thread uday kiran jandhyala
Hello Mark, In java.io, the File API is supposed to provide APIs like setExecutable (boolean) setWritable (boolean) setReadable (boolean) However, in the android.jar which includes all the needed classes, the java.io package doesn't provide the above APIs in the File class. Has this been done f