I found a similar question here and lots of other articles about securing shared preferences but they all come with a warning that-
The certificate you use as the password or “secret” in your code is deleted if the lock screen method or PIN/Pattern is changed.
This is the library people suggesting to use but it has a lot of unresolved issues like if updating to Android Q they are not able to access data.
And EncryptedSharedPreferences can only be used if Min API is 23 (6.0+).
Can someone please suggest if they've found any reliable way to implement encrypt shared preferences?