summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-09-03 17:41:40 +0200
committerArne Schwabe <arne@rfc2549.org>2012-09-03 17:41:40 +0200
commit477e8afbc003326e07d9b9c1936d027591e4f31f (patch)
tree086aaf63ec7f956c700e1af32f49c16dec01de2e
parente602d23e83f56028ca669b509e417238564192e8 (diff)
Replace /mnt/sdcard with real location of external storage, add read sdcard permission to manifest
-rw-r--r--AndroidManifest.xml3
-rw-r--r--src/de/blinkt/openvpn/FileSelect.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 16988bb1..dfa01a6a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -23,6 +23,9 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+
+
<!-- <uses-permission android:name="com.android.vending.BILLING" /> -->
diff --git a/src/de/blinkt/openvpn/FileSelect.java b/src/de/blinkt/openvpn/FileSelect.java
index 30d6628e..b76dbc93 100644
--- a/src/de/blinkt/openvpn/FileSelect.java
+++ b/src/de/blinkt/openvpn/FileSelect.java
@@ -152,7 +152,7 @@ public class FileSelect extends Activity {
if(!mData.startsWith(VpnProfile.INLINE_TAG))
return mData;
else
- return "/mnt/sdcard";
+ return Environment.getExternalStorageDirectory().getPath();
}
public CharSequence getInlineData() {