From d2c382ed0f9df90e0f6414a3f62cd6374f3ac657 Mon Sep 17 00:00:00 2001 From: Jason parks Date: Wed, 12 Jan 2011 09:47:26 -0600 Subject: [PATCH] Remove the APIs for the old encryption scheme. Change-Id: I55116a5b29b10dfd50015805ec019b485257f68b --- vpn/java/android/net/vpn/VpnManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vpn/java/android/net/vpn/VpnManager.java b/vpn/java/android/net/vpn/VpnManager.java index ce40b5d0c..60fecc22e 100644 --- a/vpn/java/android/net/vpn/VpnManager.java +++ b/vpn/java/android/net/vpn/VpnManager.java @@ -16,15 +16,12 @@ package android.net.vpn; -import java.io.File; - import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; import android.os.Environment; -import android.os.SystemProperties; import android.util.Log; /** @@ -86,7 +83,7 @@ public class VpnManager { // TODO(oam): Test VPN when EFS is enabled (will do later)... public static String getProfilePath() { // This call will return the correct path if Encrypted FS is enabled or not. - return Environment.getSecureDataDirectory().getPath() + PROFILES_PATH; + return Environment.getDataDirectory().getPath() + PROFILES_PATH; } /** @@ -124,7 +121,7 @@ public class VpnManager { */ public VpnProfile createVpnProfile(VpnType type, boolean customized) { try { - VpnProfile p = (VpnProfile) type.getProfileClass().newInstance(); + VpnProfile p = type.getProfileClass().newInstance(); p.setCustomized(customized); return p; } catch (InstantiationException e) {