diff options
author | zachh <zachh@google.com> | 2017-10-31 12:35:00 -0700 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-01 22:00:54 +0000 |
commit | 73bc4703739639d823abb743515836d4f55799c1 (patch) | |
tree | f9f58f18d4e83c64c11447ec617ee3201b308cfc /java/com/android/dialer/storage/StorageComponent.java | |
parent | 0cd36a6e3bfda1c8b78c0375225929f50ee408a5 (diff) |
Use unencrypted storage for shared prefs in new call log.
We need to be able to write the shared prefs when the device is in direct boot mode, and this data is not sensitive so can be unencrypted.
Bug: 68350256
Test: existing unit, manual
PiperOrigin-RevId: 174075154
Change-Id: Ib52e11c6abba0812d1dc07c642691359089c3e6e
Diffstat (limited to 'java/com/android/dialer/storage/StorageComponent.java')
-rw-r--r-- | java/com/android/dialer/storage/StorageComponent.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/dialer/storage/StorageComponent.java b/java/com/android/dialer/storage/StorageComponent.java index 067b99424..cb5c4a879 100644 --- a/java/com/android/dialer/storage/StorageComponent.java +++ b/java/com/android/dialer/storage/StorageComponent.java @@ -28,7 +28,11 @@ public abstract class StorageComponent { /** * Returns unencrypted default shared preferences. This method should not be used for private * data. + * + * <p>These shared prefs are available even when the device is in FBE mode and are generally the + * ones that should be used, because Dialer needs to function while in FBE mode. */ + @Unencrypted public abstract SharedPreferences unencryptedSharedPrefs(); public static StorageComponent get(Context context) { |