summaryrefslogtreecommitdiffstats
path: root/service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-10-29 09:15:31 -0700
committerRoshan Pius <rpius@google.com>2019-11-14 12:12:58 -0800
commita9ebe48227eb5befd221451a013cbd0a76eac999 (patch)
tree8bb3ec31fbb2e671d51aef48afdc9a1ed6b3fe8a /service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java
parent09621a42f86690346814c48cf1cdb1f123402e12 (diff)
downloadandroid_frameworks_opt_net_wifi-a9ebe48227eb5befd221451a013cbd0a76eac999.tar.gz
android_frameworks_opt_net_wifi-a9ebe48227eb5befd221451a013cbd0a76eac999.tar.bz2
android_frameworks_opt_net_wifi-a9ebe48227eb5befd221451a013cbd0a76eac999.zip
WifiConfigStore: Encrypt credentials for networks (4/4)
Add a setting to turn on/off encryption. This global setting will be turned on for devices which require encrypted credentials. We don't need to support flipping the global settings back n forth. Only needs to support the one way toggle from off to on once for the lifetime of the device. Bug: 140485110 Test: atest com.android.server.wifi Test: Manual verification - Store a PSK network config on older build - Upgrade to build with this CL - adb shell settings put global niap_mode 1 - Ensured that the psk was read correctly on upgrade - Ensured that the psk was encrypted when stored on disk after upgrade Change-Id: Ibabe0814bfc42a7bf610d18e89a7b82bacfdfeed Merged-In: Ibabe0814bfc42a7bf610d18e89a7b82bacfdfeed
Diffstat (limited to 'service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java')
-rw-r--r--service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java b/service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java
index 9abccb94b..7f5a6b408 100644
--- a/service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java
+++ b/service/java/com/android/server/wifi/hotspot2/PasspointConfigSharedStoreData.java
@@ -16,7 +16,7 @@
package com.android.server.wifi.hotspot2;
-import android.annotation.NonNull;
+import android.annotation.Nullable;
import com.android.server.wifi.WifiConfigStore;
import com.android.server.wifi.util.WifiConfigStoreEncryptionUtil;
@@ -76,7 +76,7 @@ public class PasspointConfigSharedStoreData implements WifiConfigStore.StoreData
@Override
public void serializeData(XmlSerializer out,
- @NonNull WifiConfigStoreEncryptionUtil encryptionUtil)
+ @Nullable WifiConfigStoreEncryptionUtil encryptionUtil)
throws XmlPullParserException, IOException {
serializeShareData(out);
}
@@ -84,7 +84,7 @@ public class PasspointConfigSharedStoreData implements WifiConfigStore.StoreData
@Override
public void deserializeData(XmlPullParser in, int outerTagDepth,
@WifiConfigStore.Version int version,
- @NonNull WifiConfigStoreEncryptionUtil encryptionUtil)
+ @Nullable WifiConfigStoreEncryptionUtil encryptionUtil)
throws XmlPullParserException, IOException {
// Ignore empty reads.
if (in == null) {