Commit Graph
12 Commits
Author SHA1 Message Date
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 797b3fda12 Revert "Refine #530"
This reverts commit 292f22cc86.
2016-06-17 17:58:58 +08:00
Max Lv 292f22cc86 Refine #530 2016-06-17 17:37:52 +08:00
Mygod 86f32ea67c Add app.isNatEnabled for performance and readability
Warning: This is a boring commit.
2016-05-24 11:52:06 +08:00
Mygod 461a0bda3f Remove unnecessary app.settings param in ConfigUtils.load 2016-05-24 11:46:31 +08:00
Mygod 28ea9dd807 Use app.* instead of ShadowsocksApplication.*
Because typing ShadowsocksApplication is quite troublesome.
2016-05-24 11:37:33 +08:00
Mygod 2c2e5790f5 Fix typo: deattach => detach
I can't believe I've been so blind.
2016-05-05 20:04:03 +08:00
Mygod ee48c0773c Automatic service restart 2016-03-12 13:40:13 +08:00
Mygod 407ba8beaa Add realtime traffic in profiles selector 2015-11-21 16:04:55 +08:00
Mygod b505ff3705 Move NAT/VPN switch to a more user-friendly place 2015-11-09 02:48:48 +08:00
Mygod 4906ce8af5 Support switching to NAT/VPN without restarting the app 2015-11-08 18:46:42 +08:00
Max Lv 58c613b365 use runner service to start the background service on Lolipop or above 2015-10-16 15:52:12 +08:00