Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know where Android stores the data of SharedPreferences in actual Android devices?

In PC I found this data under /data/data/pkg_name/shared_prefs/pkg_name.xml

share|improve this question

Well, the path is right. It's


Where <datadir> is usually /data/data

share|improve this answer
okay but in device where do i find this .xml? – juned Jun 1 '12 at 9:07
Have you looked at /data/data/<pkg_name/shared_prefs/? – Flow Jun 1 '12 at 9:13
i have samsung galaxy y in that where do i find this path? – juned Jun 1 '12 at 9:15
Try adb shell to open a shell and cd into the path. You may need root to do so. – Flow Jun 1 '12 at 9:16
Oh sorry, since you mentioned in your profile that you had some Android Development experience I assumed that you are familiar with adb: Check out – Flow Jun 1 '12 at 9:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.