Commit Graph
128 Commits
Author SHA1 Message Date
Mygod 07eb4d2a5c Refine utils.Key for readability 2016-07-05 19:31:58 +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 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 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
Mygod 1ddde094e3 Fix a crash in Parser 2016-04-25 13:12:06 +08:00
Mygod e05abd7c24 Support one-time authentication in ss urls for sharing (#644)
This commit implements the new ss protocol proposed here: https://github.com/shadowsocks/shadowsocks-org/issues/16
2016-04-14 16:51:36 -07:00
Mygod 7d9686b5b5 UI fixes
* Refine exceptions handling when parsing per-app config string

* Remove redundant profiles Preference

* Move Network Traffic to title bar

* Add ripple to title text

* Animate using animateLayoutChanges

* Hide connection test in NAT mode

* Refine UI.

* Change notification action button icon for hidpi device

* Fix FAB ripple

* Fix usability problem

* Fix changes not commited when snackbar being swiped

* Show import/export as action

* Drop unused drawables

* Move TaskerSettings

* Fix action icons

* Prevent switching to an invalid profile

* Fix line wrap when screen width is small
2016-04-04 13:41:31 -07:00
Mygod 8453267996 New UI polishment
* Refine exceptions handling when parsing per-app config string

* Remove redundant profiles Preference

* Move Network Traffic to title bar

* Add ripple to title text

* Animate using animateLayoutChanges

* Hide connection test in NAT mode
2016-04-03 09:33:14 -07:00
Mygod 555f4f6854 Refine #609 2016-03-16 22:31:07 +08:00
Mygod 6dede5c067 Import/export one/all ss urls 2016-03-12 15:11:11 +08:00
Mygod fb3f7429b7 Refine parser 2016-03-12 14:39:00 +08:00
Mygod 0e0e65c45d Move profileTip to Key 2016-03-12 14:20:18 +08:00
Mygod ee48c0773c Automatic service restart 2016-03-12 13:40:13 +08:00
Max Lv 14a5324852 Merge pull request #598 from AnyOfYou/master
Add quick switch from notification.
2016-03-12 08:00:42 +08:00
Lucas Liu 7c5efdaa82 Add quick switch from notification. 2016-03-12 01:13:03 +08:00
Mygod da1b404175 Remove redundant IOUtils 2016-03-11 20:19:45 +08:00
Mygod fcdeb5144a Remove ProcessUtils
It's safe to say that Shadowsocks is only instantialized in the main process, so boom, problem solved.
2016-03-11 20:18:22 +08:00
Mygod 270d436017 Refine ShadowsocksDeathRecipient and ServiceBoundContext 2016-03-11 20:17:23 +08:00
chentao 5b9a0d0659 Refine #585 2016-02-26 11:48:05 +08:00
chentao c13cf6f5d2 Fix a issue in ProcessUtils 2016-02-26 08:45:43 +08:00
chentao f6cab9b99c Add IOUtils 2016-02-24 23:58:57 +08:00
chentao a24d29196f Add ProcessUtils 2016-02-24 23:57:38 +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 9cf8c4c483 Drop the broken support of autostart below Lolipop
Close #525
2016-01-11 10:26:22 +08:00
Mygod f9667d767e Fix dynamic traffic stat in profile selector
Fix #495
2015-12-29 20:27:30 +08:00
Mygod 6bff4f1a44 Reduce battery usage - transmit traffic stat with binary 2015-12-26 20:41:23 +08:00
Mygod 8dcfd5a8c5 Reduce battery usage - prevent unnecessary notification updates 2015-12-26 20:00:12 +08:00
Mygod 971ea09077 Reduce battery usage - optimize performance critical block 2015-12-26 17:29:26 +08:00
Mygod 62a572ee3a Implement HTTP client test
Fix #479
2015-12-15 19:39:57 +08:00
Mygod 93084f0ed0 Ask for ROOT only when it's needed 2015-12-06 20:04:41 +08:00
Max Lv 362ec7ebc8 bump version 2015-12-03 11:02:48 +08:00
CzBiX a6c12dfd5e Remove unused consts in Utils 2015-11-30 16:46:57 +08:00
CzBiX 3d998a326c Automation app integration 2015-11-30 16:23:25 +08:00
Mygod 9b2671d565 Refine traffic format 2015-11-26 09:54:02 +08:00
Max Lv 8b0b39cba7 fix #444 2015-11-24 13:23:16 +08:00
Max Lv 4f92c36228 Fix a bug when reseting traffic 2015-11-21 21:20:20 +08:00
Max Lv 656bb28a11 Stop the timer when all callbacks removed 2015-11-21 18:26:14 +08:00
Mygod 407ba8beaa Add realtime traffic in profiles selector 2015-11-21 16:04:55 +08:00
Mygod c08296890a Refine traffic display 2015-11-21 15:11:48 +08:00
Max Lv ff23bae671 fix #424 2015-11-21 11:59:05 +08:00
Max Lv f833808bbc fix an issue that redsocks is blocked by stdout 2015-11-21 09:18:46 +08:00
Mygod 24c1497a6d Fix flashing 2015-11-19 13:49:31 +08:00
Mygod 5e1f5cd4a0 Merge fix #434 2015-11-19 12:57:30 +08:00
Mygod 9921823869 Fix units 2015-11-19 12:55:27 +08:00
Max Lv c63d17350c fix #434 2015-11-19 12:34:24 +08:00