On Tue, May 29, 2012 at 5:25 PM, Mark Murphy <mmur...@commonsware.com> wrote:
> 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 is also possible that
> it's simply a question of time, that the package data is not deleted
> immediately upon uninstall but some moments later, and that requests
> from a package context will succeed in the interim.
>
> If you acquired the package context *after* the uninstall... please
> contact me off-list.

I acquire the package context before the uninstall.  Attempts to
acquire it after the uninstall fail as they should.

If the file removal is deferred upon uninstall it's probably not just
for a few moments, in my tests A was still able to access the
uninstalled B's assets after an hour or two.

Well, from the replies in this thread it appears that the behaviour is
not documented and it wouldn't be such a great idea to rely on it...
shame, it would have made a bunch of things easier for me. :-)

-- 
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