Reputation: 47
I'm using localStorage to save some datas in my android app, my question is how can user erase those datas?
if (Build.VERSION.SdkInt < Build.VERSION_CODES.Kitkat) {
localWebView.Settings.DatabasePath= "/data/data/" + localWebView.Context.PackageName + "/databases/";
}
using this code I'm trying to save my datas private.
Are those localStorage datas safe?
Upvotes: 0
Views: 1214
Reputation: 94
The user can navigate to the directory where the local storage resides with a file explorer. It's not safe.
The recommended way to store sensitive information in Android is to use the Keystore.
Reference this article for more information and examples about the Keystore in general.
If you want access with Javascript, then take a look at Apache Cordova.
There are several plugins to choose from that provide access to the Keystore in Android and the Keychain in iOS.
Upvotes: 1