Skip to content

Update SharedPreferences Access to go Through CoreLibrary Instance #227

@qiarie

Description

@qiarie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions