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


Well, the path is right. It's


Where <datadir> is usually /data/data

  • okay but in device where do i find this .xml?
    – Juned
    Jun 1 '12 at 9:07
  • 1
    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
  • 1
    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
  • 1
    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 developer.android.com/guide/developing/tools/adb.html
    – Flow
    Jun 1 '12 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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