We've got many reports about our application crashing - the top crash in 
android developer console for us.
The problem is that method context.getFilesDir() returns null.
It is hard to reproduce (never have been able to do it locally).
After investigation I have noticed that /data/data/<pkg> directory has 
wrong Linux permissions.
The ApplicationInfo.uid and dir permissions do not match.
I got uid = 10071 and dir with owner set to app_78.
Usually there is no application installed corresponding to  app_78, but
I have found cases when my /data/data/<pkg> directory has permission 
corresponding to other installed application.
Due to that my application is not able to write into its private directory,
files and shared_prefs directories can not be created.

It looks like that uninstalling and installing application again fixes 
problem - but it was not confirmed by users.

I have found this: http://code.google.com/p/android/issues/detail?id=8886

Does anybody encounter the same issue ?
Is there any application level workaround ? 


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