I'm developing an android app in which user is authenticated using XAuth token.I don't want to store this token in SharedPreference or SQLite.because it stores data as a plain text.How to store token in android device.
Asked
Active
Viewed 153 times
1
-
Use the AccountManager https://developer.android.com/reference/android/accounts/AccountManager.html – Johann67 Jun 09 '16 at 09:40
-
Is it possible to get/steal token which is stored using account manager from rooted devices? – prashant kashetti Jun 09 '16 at 10:41
-
It's a complex issue.. It depend of the types of sensitive resources. Try to reed this thread for more informations : http://stackoverflow.com/questions/14437096/shouldnt-android-accountmanager-store-oauth-tokens-on-a-per-app-uid-basis – Johann67 Jun 09 '16 at 14:43
1 Answers
0
Use secure SharedPreferences. It's not bullet proof, but vastly increases the security.
Find an explanation here: https://github.com/scottyab/secure-preferences

Thomas Raffelsieper
- 542
- 3
- 19