Commit Graph
139 Commits
Author SHA1 Message Date
Mygod 536fe92c83 Refine #806 2016-08-16 11:23:21 +08:00
Max Lv dd6cd3977d Fix #806 #804 2016-08-13 17:33:10 +08:00
Max Lv 0a400ef5f9 Trim the KCP parameters 2016-08-09 12:27:32 +08:00
Mygod 984e75ae99 Fix incorrect handling of default values on database upgrade 2016-08-09 04:34:51 +08:00
Max Lv 4817539ca2 Fix UDP forward 2016-08-07 10:43:25 +08:00
Max Lv 66ceed8607 Restart kcptun when switching network 2016-08-06 10:55:33 +08:00
Max Lv b9a33cf1db Add KCP support (#788)
Add KCP support for shadowsocks.

KCPTUN should be setup on a different port to avoid conflicts with Shadowsocks' UDP support.
2016-08-04 23:43:18 -05:00
Mygod 76f7306a93 Use Shell.Interactive interactively and removes iptables submodule
The following action will take only one SU request with this commit:

* Start service in NAT mode;
* Reset in NAT mode;
* Flush DNS.

And stopping service in NAT mode doesn't need SU request any more.
2016-07-13 09:42:18 +08:00
Mygod c480137dec Remove .aidl.Config and persisting SharedPreferences (#742)
Previously a profile can exist in the following forms:

* `.database.Profile` used for everything backend;
* `.ShadowsocksSettings` which uses Preferences to provide UI to tweak settings;
* `.aidl.Config` used for IPC;
* `<data dir>/shared_pref/com.github.shadowsocks_preferences.xml` which exists for no apparent reason.

Thus long code block can be seen whose purpose is simply converting the data from one form to another. This commit intends to remove the latter two by:

1. Using profile ID and take advantage of fs r/w lock SQLite uses for IPC and better extensibility;
2. Stop persisting redundant fields in the preferences file and update database directly.
2016-07-05 01:07:09 -05:00
Max Lv bfd85ecb8e Refine black list 2016-06-30 11:01:41 +08:00
Mygod 28ea9dd807 Use app.* instead of ShadowsocksApplication.*
Because typing ShadowsocksApplication is quite troublesome.
2016-05-24 11:37:33 +08:00
Mygod c695847403 Remove package object 2016-05-24 11:23:46 +08:00
Mygod 0b7fb75b7a Obsolete code cleanup 2016-05-20 21:33:01 +08:00
Max Lv 5328f5851d Fix #658 2016-04-25 20:24:55 +08:00
Max Lv 78e57de833 Refine #602 further 2016-03-13 13:33:36 +08:00
Max Lv 017dd425a0 Refine #602 2016-03-13 13:13:37 +08:00
Mygod ee48c0773c Automatic service restart 2016-03-12 13:40:13 +08:00
Mygod 3bb746254e Refine #594, again 2016-03-11 21:53:18 +08:00
Max Lv 9965a71c93 Refine #594 2016-03-07 17:59:15 +08:00
ayanamist cad6d7b62a Recover unexpected process exit on MIUI 2016-03-07 15:48:37 +08:00
Max Lv 6558f275fe Refine #577 2016-02-26 08:54:53 +08:00
Max Lv ef7701982d Fix #577 2016-02-22 08:59:57 +08:00
Mygod 06deb4bbcb Add option: bypass China only
Fix #569.

It could have worked without upgrading database by using an option called `bypass-china-only`. But I think we will get better readability this way.
2016-02-08 15:44:10 +08:00
Max Lv 2840a75c92 Fix an issue that stat_path is null 2016-01-30 11:00:25 +08:00
Max Lv d337f0e2e4 Bump version 2016-01-24 17:21:03 +08:00
Max Lv 7d44e4fc9f Catch NameNotFoundException 2015-12-27 16:48:46 +08:00
Mygod 0018a7ca9e Fix NAT mode not working after task removed from recent 2015-12-26 23:27:21 +08:00
Mygod 51ceb3dac5 Refine callback handling 2015-12-26 23:10:54 +08:00
Mygod ad831aa1f4 Persist package names in individual/proxied 2015-12-06 21:20:30 +08:00
Mygod 93084f0ed0 Ask for ROOT only when it's needed 2015-12-06 20:04:41 +08:00
Mygod c6a7560bae Cache proxied apps for even better performance 2015-12-05 22:07:25 +08:00
Mygod 37d05236be Improve performance when fetching app list 2015-12-05 20:41:55 +08:00
Max Lv 0ca3d2c8dc fix #463 2015-12-02 12:05:48 +08:00
Mygod 5e0d52324b Add traffic to notification 2015-11-24 19:25:41 +08:00
Mygod 99a6c4ff3e Extract notification logic 2015-11-24 18:11:14 +08:00
Mygod ffdde981fb Fix realtime traffic in profile selector 2015-11-23 20:06:11 +08:00
Max Lv 656bb28a11 Stop the timer when all callbacks removed 2015-11-21 18:26:14 +08:00
Max Lv e636b9f78e Disable log of pdnsd 2015-11-21 10:15:11 +08:00
Max Lv f2292fb86b use ProcessBuilder instead of fork/exec 2015-11-20 13:00:59 +08:00
Mygod 946affb219 Fix #437 2015-11-20 08:58:13 +08:00
Mygod 408e74384e Debugging an HTC device 2015-11-20 00:39:47 +08:00
Mygod 24c1497a6d Fix flashing 2015-11-19 13:49:31 +08:00
Max Lv c63d17350c fix #434 2015-11-19 12:34:24 +08:00
Max Lv f0abbb7304 add TrafficMonitor to the main activity 2015-11-18 14:02:29 +08:00
Max Lv e50a26f341 fix #388 2015-11-15 18:48:22 +08:00
Mygod b05adbdd43 Remove redundant Global Proxy 2015-11-09 20:32:22 +08:00
Mygod 51e155c940 Add more material design (3) 2015-11-09 01:58:36 +08:00
Mygod 136a153546 Add notification color 2015-11-08 00:17:25 +08:00
Max Lv 4ff77701be update the default timeout 2015-10-13 15:40:16 +08:00
Max Lv bb81fe1339 fix close receiver 2015-10-05 20:47:48 +08:00