My app is currently using
sp = PreferenceManager.getDefaultSharedPreferences(ctx);
to get the sharedpreference object. Due to some security requirements, now I need to upgrade this to use EncryptedSharedPreference provided in the android jetpack library.
What happens here is when I use EncryptedSharedPreference object I loose all the data stored in normal shared preference file.
How can I get all my data on the EncryptedSharedPreferences.