JavaForAndroid
JavaForAndroid

Reputation: 1179

Is Context.MODE_PRIVATE secure?

Is there a way to change the value for a key-value-pair created with SharedPreferences which uses Context.MODE_PRIVATE? I thought about storing the username after a successful login in SharedPreferences. Could this value be changed (e.g. with root access)?

I know that MODE_PRIVATE makes the file private to my application.

Upvotes: 0

Views: 752

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

Could this value be changed (e.g. with root access)?

Yes. Anything can be changed with root access.

Upvotes: 2

Related Questions