2012/5/29 Mark Murphy <mmur...@commonsware.com>

> On Tue, May 29, 2012 at 11:19 AM, Latimerius <l4t1m3r...@googlemail.com>
> wrote:
> > I don't know...I thought of this but I wasn't able to confirm it.  A
> > can access files after B's uninstallation that were never read or even
> > opened before B's uninstallation.  Unlike the test, in the actual app
> > where I bumped into this, B is an APK of almost a megabyte, I mean
> > it's not small, and still A was able to read in files (tens or
> > hundreds kB in size) after uninstallation that had never been accessed
> > before uninstallation.
>
> Did you acquire the package context before or after the uninstall?
>
> If before, it's eminently possible that Android is indeed keeping a
> record of processes holding package contexts and is only deleting the
> data once those processes have terminated.


It's possible that there is reference counting somewhere inside Context...

... but also keep in mind that Linux (and other Unixes, AFAIK) allows for
currently open files to be deleted, deferring the deallocation of actual
backing bits in the file system until all references have been closed.

-- K

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

Reply via email to