Commit 04d6bbaa authored by Max Lv's avatar Max Lv

fix missing pdnsd.conf in 1.3.3, close #8

parent f4bc0915
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.shadowsocks" package="com.github.shadowsocks"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="15" android:versionCode="16"
android:versionName="1.3.3"> android:versionName="1.3.4">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.github.shadowsocks</groupId> <groupId>com.github.shadowsocks</groupId>
<artifactId>shadowsocks</artifactId> <artifactId>shadowsocks</artifactId>
<version>1.3.3</version> <version>1.3.4</version>
<packaging>apk</packaging> <packaging>apk</packaging>
<name>Shadowsocks</name> <name>Shadowsocks</name>
......
...@@ -117,7 +117,11 @@ public class Shadowsocks extends PreferenceActivity implements ...@@ -117,7 +117,11 @@ public class Shadowsocks extends PreferenceActivity implements
InputStream in = null; InputStream in = null;
OutputStream out = null; OutputStream out = null;
try { try {
in = assetManager.open(path + "/" + file); if (path.length() > 0) {
in = assetManager.open(path + "/" + file);
} else {
in = assetManager.open(file);
}
out = new FileOutputStream("/data/data/com.github.shadowsocks/" out = new FileOutputStream("/data/data/com.github.shadowsocks/"
+ file); + file);
copyFile(in, out); copyFile(in, out);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment