On Sun, Apr 19, 2009 at 3:37 AM, Ask <[email protected]> wrote:

> >I am writing the file in the /sdcard using the application
> programmatically and the same file I am deleting when its work has been
> done. Same thing I had tried in the /data/app-private file but I could not
> write the file prgrammatically.. Is there any way to write in the private
> dir programmatically using changing permissions??


I am having a lot of trouble visualizing what you are trying to do, but if
you are getting in to situations where you are trying to write to an app
directory with a different UID, you really need to step back and rethink
what you are doing.

Also, executing code from the SD card is a security hole for your app, no
matter how short a time you have the code there.

-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to