diff options
author | Peter Qiu <zqiu@google.com> | 2017-01-04 18:05:38 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-04 18:05:38 +0000 |
commit | fe09754c17a194e2ac1342b0da9959aafdc6dc32 (patch) | |
tree | a2a988a8f337505c768493720cd609351fefe02a /service | |
parent | 8851f93e19f13516f20eab29ae685911fc9b390d (diff) | |
parent | 39ae399af786656ddb820ecb6a46eaf98042aaf6 (diff) |
configparse: do not delete passpoint configuration file am: de3de10eec am: 8d43428276
am: 39ae399af7
Change-Id: Ice3c49e6f2377f2822cce0fe1138f5c837507d1b
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/configparse/ConfigBuilder.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/service/java/com/android/server/wifi/configparse/ConfigBuilder.java b/service/java/com/android/server/wifi/configparse/ConfigBuilder.java index e8e5e6a18..602b120cf 100644 --- a/service/java/com/android/server/wifi/configparse/ConfigBuilder.java +++ b/service/java/com/android/server/wifi/configparse/ConfigBuilder.java @@ -55,8 +55,6 @@ public class ConfigBuilder { byte[] b64 = Base64.decode(new String(data, StandardCharsets.ISO_8859_1), Base64.DEFAULT); Log.d(TAG, "Decoded: " + b64.length + " bytes."); - dropFile(Uri.parse(uriString), context); - MIMEContainer mimeContainer = new MIMEContainer(new LineNumberReader( new InputStreamReader(new ByteArrayInputStream(b64), StandardCharsets.ISO_8859_1)), @@ -80,10 +78,6 @@ public class ConfigBuilder { return parse(inner, context); } - private static void dropFile(Uri uri, Context context) { - context.getContentResolver().delete(uri, null, null); - } - private static WifiConfiguration parse(MIMEContainer root, Context context) throws IOException, GeneralSecurityException, SAXException { |