EDIT: The problem described below was due to a very peculiar device issue not caused by any coding-related problem.
I have a preferenceActi
It is possible to work around the issue of permissions by using sharedUserId which should be the same for any of your signed apps.
http://developer.android.com/reference/android/R.attr.html#sharedUserId