Commit Graph
145 Commits
Author SHA1 Message Date
Mygod 5c75148813 Add support for downgrading the database for whatever reason
And it simply kills all the data.
2017-11-30 21:49:41 -08:00
Mygod 722ca5b4f4 Handle malformed requests in TaskerActivity 2017-11-30 21:27:14 -08:00
Mygod 0171261465 Fix a crash on Android 4.4 2017-11-30 21:27:14 -08:00
Mygod 4e5c67e814 Move port default value to OrmLitePreferenceDataStore 2017-11-30 20:15:32 -08:00
Mygod 8c33345a1f Use Gericop's preference library (#1471)
* New SimpleMenuPreference;
* More Oreo-like preference style;
* I'm tired of fixing all those bugs;
* Remove NumberPickerPreference which nobody likes.
2017-11-30 20:10:47 -08:00
Max Lv a16aa35d3c Refine remote config 2017-11-28 20:47:41 -08:00
Mygod f5036bbde5 Refrain from using SMART_BANNER to prevent its weirdness 2017-11-19 01:22:36 -08:00
Mygod 3cb6bb73b3 Add a workaround for a support library bug 2017-11-18 13:04:26 -08:00
Max Lv 7b4cae2794 Refine AdView 2017-11-18 18:19:56 +08:00
Mygod dc2a5ca19c Use SIGKILL to kill old processes
Fix #1455.

Note that in later Android versions, only processes under same uid will be listed and this will be quite efficient.
2017-11-18 02:10:34 -08:00
Mygod 5505c78fdc Refine 'Replace CardView with normal list view' 2017-11-18 00:53:17 -08:00
Max Lv f59f7137f1 Replace CardView with normal list view 2017-11-18 16:06:37 +08:00
Mygod f4eeab0548 Remove apps VPN mode option for Android 4.4 2017-11-17 19:20:05 -08:00
Mygod 7154f9fdba Fix a null dereferencing exception 2017-11-16 22:05:53 -08:00
Max Lv b510e0ab58 Fix #1452 2017-11-16 21:56:47 -08:00
Mygod 42e930391f Output more information on failure of preparing VpnService
Fix #1424.
2017-11-15 21:02:20 -08:00
Mygod e0bf727bf4 Add missing parentheses 2017-11-15 00:40:14 -08:00
Mygod b1c8d3c617 Fix proxy notification not displaying on screen on in Android 4.4 2017-11-15 00:37:24 -08:00
Mygod 59a6eaac56 Remove ACTION_USER_PRESENT listener on API 26+
This is removed since we can't change notification priority dynamically since API 26 and this also prevents an extraneous system notification.

NB: After this change, `visible` doesn't have any observable effect on API 26+.
2017-11-15 00:10:53 -08:00
Mygod c6bb913ba2 Lift default notification priority for VPN service
Priority has been lifted from IMPORTANCE_MIN to IMPORTANCE_LOW. This change only impacts Android 8.0 and higher.

Fixes #1431. Also fixes https://github.com/shadowsocks/shadowsocks-android/issues/1037#issuecomment-338367917.
2017-11-14 23:50:06 -08:00
Max Lv 265ecc0406 Merge pull request #1446 from shadowsocks/transproxy
Implement Proxy-Only Mode and Transproxy Mode
2017-11-13 09:11:53 +08:00
Mygod 79f40b8812 Implement connection test for proxy modes 2017-11-12 14:50:19 -08:00
Mygod 13ef297a03 Change default DNS port to 5450 to avoid conflicts with Orbot 2017-11-12 14:22:11 -08:00
Mygod 967f198131 Always initialize previousPosition 2017-11-11 01:42:51 -08:00
Mygod b72fb267e3 Prevent fragment recreations 2017-11-11 01:36:34 -08:00
miyon 86ebbd0db5 fix fragment called onstart twice on click back
Removed irrelevant changes.
2017-11-11 01:08:56 -08:00
Mygod 725fb04f3f Implement proxy mode and transproxy mode
* NAT mode is replaced by transproxy mode;
* BaseService classes are moved into bg package and refactored in order to minimize duplicate code;
* Local port is moved out of per-profile settings, along with hardcoded DNS port and transproxy (redsocks) port;
* Reset is removed since the only possible clean-up needed can be performed by using force stop in app info;
* Comparing version code before extracting assets is replaced with a more robust approach: comparing update time.

NB: the only code that involves su now is for toggling TFO.
2017-11-11 00:06:58 -08:00
Mygod 6678fd9541 Revert "Replace NAT mode with local SOCKS5 mode. #1441"
This reverts commit 7fb19c40af.
2017-11-10 19:31:55 -08:00
Max Lv 7fb19c40af Replace NAT mode with local SOCKS5 mode. #1441 2017-11-09 19:02:38 -08:00
Mygod 9075d079d2 Remove support for external scanners
I decided to remove this feature because I saw that Google Authenticator is doing the same: https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2

Also fix #1407.
2017-10-20 21:03:51 -07:00
Mygod bc0b503098 Fix DNS leakage
Fix #1397. Tested via dnsleaktest.com.
2017-10-20 20:57:05 -07:00
Max Lv 918eec4394 Revert to previous AdView 2017-10-03 07:01:18 -07:00
Max Lv 2cae9384ee Fix #1387 2017-09-24 21:23:08 -07:00
Mygod b8d7ade44d Rewrite network ACLs
* A cleaner format;
* Provides better behavior when importing a non-compatible ACL;
* Supports importing URL from a imported file with up to 10 layers.
2017-09-03 17:32:32 -07:00
Max Lv 3d069b10ee Fix #1349 2017-08-29 02:06:35 -07:00
Max Lv 390cb522d5 Fix #1351 2017-08-22 03:10:27 -07:00
Max Lv b14fdcaed9 Fix the missing selected rules 2017-08-20 18:14:07 +08:00
Max Lv b6adeda924 Add local DNS to CHINALIST routing. #1348 2017-08-20 17:41:30 +08:00
Max Lv f25406b86c Protect table creation with transaction 2017-08-10 08:39:49 +08:00
Max Lv 2c8718163a Add new lines for remote ACL 2017-08-08 07:45:56 +08:00
Max Lv d51bf46413 Refine Custom Rules 2017-08-03 22:47:55 +08:00
Max Lv a69183cc0f Move all network rules to new block 2017-08-03 22:15:49 +08:00
Max Lv 62a0bb59c7 Refine URL based ACL 2017-08-03 21:35:25 +08:00
Max Lv 839765b724 Fix #1325 2017-08-03 20:24:22 +08:00
Max Lv f19f8d8ffa Fix a crash when no profile selected 2017-07-30 15:32:48 +08:00
Mygod 010fd6158f Fix profile name display in notification 2017-07-29 14:43:42 +08:00
Mygod 8b57b53788 Misc refinements 2017-07-29 14:36:51 +08:00
Mygod 1db2d81aca Update dependencies 2017-07-29 14:36:37 +08:00
Max Lv 52499f5c2d Add local DNS to dns list. #1281 2017-07-19 16:22:03 +08:00
Max Lv 230a018326 Allow adding URLs to custom rules. #1276 2017-07-19 16:21:53 +08:00