On Sep 25, 3:46 pm, "Mark Murphy" <[email protected]> wrote:
> > I have this problem. Two apps: app_a and service_s.
>
> Why two apps?
>
> > Service_S creates file in /tmp.
>
> There is no /tmp in Android.
>
> > After create this file, service_s uses
> > FileUtils.setPermission to change file mode to 666. Then app_a tries
> > to delete this file. But I always failed when deleting. It seems the
> > files are private. One application cannot delete files which another
> > application creates.
>
> > Is there any way to delete this file?
>
> You would need to also set permission on the directory to 666 -- in Linux,
> deleting a file is considered an operation on the directory.
>
> Bear in mind that by doing this, any application on the system can read
> and manipulate files in this directory. There is likely a more secure
> means of data sharing than this that your apps can use. Or, have them both
> be a single app.
>
Great thanks. Your replay is really helpful. :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---