Where does Android Account Manager support custom account settings?

I managed to create different account authenticators / services, each of which has its own preference.xml. These preferences are saved, but I do not know where they are stored on the phone. I browsed the phone using adb, but I can not find the * .db or "shared_prefs" files matching the preferences for my accounts.

Does anyone have any experience?

+4
source share
3 answers

I wondered the same thing as I was looking for where the android stores the β€œextra” bundles with the account.

This is in the SQLite database (you need to shorten your phone to extract and view it):

/data/system/users/0/accounts.db 

You will need to find your account for your application:

 sqlite> select * from accounts; 24|john.doe|com.evernote| 

Then use the identifier to find additional features:

 sqlite> select * from extras where accounts_id = 24; 70|24|userId|8305749 
+9
source

Most likely not, because usually you do not need to worry about where the android stores the general settings.

0
source

If you are using user account PreferenceManager.getDefaultSharedPreferences() , PreferenceManager.getDefaultSharedPreferences() indicates that the default settings are stored in the preferences folder for the application package. For example, if you have

  <manifest package="com.my.app.account" ... > 

Settings are saved in

  /data/data/com.my.app.account/shared_prefs/com.my.package.account_preferences.xml 

These results are taken from Android 2.3 emulator.

0
source

All Articles