Where do I find logs like login and password stored in the xml that Sharedpreference does?

Asked

Viewed 96 times

0

I wanted to find the file path because I want to confirm if my function encrypted this data.

1 answer

1


It is usually located in /data/data/com.pacote.do.seu.app/shared_prefs/nome_da_pref.xml.

You need root to access this file or use a function to read and display the content directly from your application, as only it and the superuser are allowed to do so.

  • This date is an invisible path on the desktop?

  • I would like to view by Desktop...

  • 1

    It is on Android, you need to look right at it. But if you use an Android emulator, you can try the following command inside folder Platform-tools from your Android SDK: adb shell cat /data/data/com.pacote.do.seu.app/shared_prefs/nome_da_pref.xml

  • Is on my android? Where is this way then on android? pf help me...

  • Is that I need to confirm if he wrote the login and password typed by the user...

  • 1

    If you’re using an Android smartphone, you need access root and a file explorer with support for root to access the folder. Its location is above, in the main answer.

  • Understood. Tomorrow I’ll try it. I’ll download this file explorer. Thank you

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.