Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SharedPreferences Access to go Through CoreLibrary Instance #54

Open
qiarie opened this issue Feb 10, 2021 · 0 comments
Open

Update SharedPreferences Access to go Through CoreLibrary Instance #54

qiarie opened this issue Feb 10, 2021 · 0 comments

Comments

@qiarie
Copy link

qiarie commented Feb 10, 2021

A configuration option to encrypt shared preferences was added to opensrp-client-core version 4.2.3-SNAPSHOT.

If access to shared prefs is done by calling PreferenceManager.getDefaultSharedPreferences when the option to encrypt is set to true, Android creates parallel unencrypted shared preferences.

To control this, all access to shared prefs should go through CoreLibrary instance.
Utils.getAllSharedPreferences()

CoreLibrary checks the property setting and returns the correct preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant