Re: [android-developers] Re: Attempt to read preferences file without permission
Lior,
Do you know if the application was installed before or after he updated
the firmware?
That would tell if the 2.2.1 firmware messes up the files during the
update process, or during normal use.
-- Kostya
30.01.2011 17:25, Lior пишет:
> My user seem to have had the same symptom.
>
> He e-mailed me that he had to do a factory-reset to his phone due to
> other reasons, he re-installed the app from the market (something that
> didn't help before the reset), and now everything works as expected.
>
> On Jan 27, 8:49 pm, klwinkel<klwin...@gmail.com> wrote:
>> I have exactly the same problem with my own developed app, on my own
>> standard non-rooted Samsung Galaxy S with android 2.2.1.
>>
>> this is my error message, when I do the Editor.commit():
>>
>> E/ApplicationContext(19228): Couldn't rename file /dbdata/databases/
>> klwinkel.huiswerk/shared_prefs/klwinkel.huiswerk_preferences.xml to
>> backup file /dbdata/databases/klwinkel.huiswerk/shared_prefs/
>> klwinkel.huiswerk_preferences.xml.bak
>>
>> I did some investigation, with a "ps" and a "ls -l" on the xml prefs
>> file, with the following result:
>>
>> ps:
>>
>> USER PID PPID VSIZE RSS WCHAN PC NAME
>> app_17 19411 2366 223648 21104 ffffffff 00000000 S klwinkel.huiswerk
>>
>> ls -l -->
>>
>> -rw-rw---- app_107 app_107 292 2011-01-22 20:13
>> klwinkel.huiswerk_preferences.xml
>>
>> So, this is the proof, that the uid of the prefs file(app_107) and the
>> uid of the app(app_17) are different.
>>
>> The prefs file is from a few days ago, probably I was developing at
>> that time, maybe I removed the app from the phone, I don''t remember.
>>
>> It possibly is a bug in the Samsung android 2.2.1, which does not
>> always delete prefs file when de-installing an app.
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home