Commit Graph

84 Commits

Author SHA1 Message Date
Mygod
4d3e05ac6b Add stopped check in Routing 2020-06-12 01:16:57 -04:00
Mygod
8d6d4a6c6e Add synchronization for RoutingManager 2020-06-12 00:26:43 -04:00
Mygod
b833d94002 Refine error message 2020-05-23 09:04:58 +08:00
Mygod
3ba9a322c2 Allow user to turn off safe mode on Android 10 (Mar 2020 or newer)
Fixes #153.

Basically, this "forward"-ports a workaround for Android 9- thanks to Jimmy Chen.
As a consequence, #31 might reoccur if you turn off safe mode.
2020-04-22 12:28:38 +08:00
Mygod
1507050eea Fix #142 2020-01-26 13:39:56 +08:00
Mygod
22d81bb0b4 Fix lint 2020-01-20 19:08:48 +08:00
Mygod
59b4a464b0 Notify all LinkProperties for onAvailable 2020-01-20 10:05:01 +08:00
Mygod
006e4e47c0 Update dependencies 2020-01-20 10:05:01 +08:00
Mygod
13c43f9b0e Update dependencies 2019-10-24 11:10:55 +08:00
Mygod
c483c5ad06 Use a less invasive method for disabling IPv6 tethering
Fixes #33.
2019-08-27 23:38:53 +08:00
Mygod
df9cb6180a Friendly reject blocked clients 2019-08-27 23:24:23 +08:00
Mygod
3770acf561 Avoid runBlocking 2019-08-12 13:13:29 +08:00
Mygod
05a79acf78 Refine aggregator 2019-08-12 13:01:37 +08:00
Mygod
7a4264e2df Fix ConcurrentModification 2019-07-17 16:21:37 +08:00
Mygod
5583e742ca Revert "Remove fallback upstream monitor"
This commit reverts 99e721bf7e.

Fixes #119.
2019-07-15 23:28:48 +08:00
Mygod
654c1fc48f Refine code style 2019-07-15 22:58:16 +08:00
Mygod
2d70595358 Do not disable nat to prevent conflicts with system 2019-07-15 19:21:52 +08:00
Mygod
c86639db43 Disable netd for Android 8.1 and lower 2019-07-15 19:08:47 +08:00
Mygod
5c32c46970 Fix build 2019-06-10 23:18:49 +08:00
Mygod
c780fed7ff Avoid failing when multiple interface address was found 2019-06-10 22:53:24 +08:00
Mygod
965bd13eac Fix nullability issues 2019-05-13 18:41:58 +08:00
Mygod
d641af5d40 Handle VPNs without addDnsServer calls
Test case: HTTP Injector
2019-03-18 21:43:45 +08:00
Mygod
aedba90196 Lift double routing detection out of Routing 2019-03-09 01:46:01 -05:00
Mygod
3933e9bf64 Fix netd mode on Android 6 with repeater 2019-02-17 12:58:34 +08:00
Mygod
97811928a7 More informative unexpected output exception 2019-02-17 12:26:42 +08:00
Mygod
30075efa81 Refine error msg 2019-02-17 11:55:37 +08:00
Mygod
eb8b5ff1de Refine error message 2019-02-08 18:23:27 +08:00
Mygod
cbc65f989c Support monitoring tethered interface
This would be useful to be used in together with Instant Tethering + Turn off hotspot automatically.

Refine #26, #53.
2019-02-06 01:27:21 +08:00
Mygod
89559103bf Fix DNS route not cleaned 2019-02-04 23:31:26 +08:00
Mygod
8132b2766d Remove fallback DNS 2019-02-04 23:30:29 +08:00
Mygod
09a1834cb5 Make things private 2019-02-04 14:38:15 +08:00
Mygod
fadf72b28a Fix NoSuchElementException 2019-02-04 13:17:56 +08:00
Mygod
788604838f Refine ndc commands 2019-02-03 13:40:35 +08:00
Mygod
5c1e84703a Refine InterfaceNotFoundException 2019-02-01 22:07:31 +08:00
Mygod
43bb8af522 Wtf more debug 2019-02-01 21:49:09 +08:00
Mygod
99e721bf7e Remove fallback upstream monitor
This option has been deprecated. As a replacement, if one wants to forbid fallback communication, a global routed VPN can be used instead.
2019-02-01 21:11:49 +08:00
Mygod
f1973116ca Add netd masquerade mode 2019-02-01 21:06:22 +08:00
Mygod
a71a3b3bb0 Make DHCP workaround global 2019-02-01 16:55:38 +08:00
Mygod
d4208affbb Implement MAC lookup (#68)
* Implement MAC lookup

* Refine error processing

* Use long to store MAC consistently

* Link back to macvendors.co

* Undo some havoc

* Do not show mac spans for TV

* Show MAC and IP in a consistent order

* Add IP spans by ipinfo.io

* Add SpanFormatter

* Fix IPv6 ipinfo.io link

* Refine SpanFormatter

* Fix pressing the link
2019-01-26 21:20:40 +08:00
Mygod
94114f7a4b Migrate to LiveData
Benefit includes: no more flush after changing nickname. Yep.
2019-01-26 14:48:27 +08:00
Mygod
469a0cd669 Fix IP forward shutdown by system tethering on Android 6+ 2019-01-24 21:37:08 +08:00
Mygod
0da1943a68 Refine RootSession.Transaction.iptables 2019-01-24 21:15:44 +08:00
Mygod
37337fd2ef Add more log 2019-01-18 11:59:11 +08:00
Mygod
b00791d644 Update dependencies 2019-01-03 23:22:28 +08:00
Mygod
7c72b9a235 Caller already has an active LocalOnlyHotspot request is now unexpected 2019-01-01 12:38:25 +08:00
Mygod
68fface4b9 Allow clients on different tethered interfaces to communicate
Previously, the routing rules were too strict. We should probably also deprecate TrafficRecord.upstream sometime.
2019-01-01 12:21:48 +08:00
Mygod
04f111c1a4 Ensure DNS is never empty 2018-12-30 16:10:39 +08:00
Mygod
cfada8d0c2 Fix DNS update not propagated 2018-12-29 00:08:55 +08:00
Mygod
e5b3e7e5d0 Fix file exists error when enabling multiple interfaces with DHCP workaround 2018-12-28 14:03:37 +08:00
Mygod
f26716051c Allow iptables -w to output busy spin message 2018-12-14 02:00:31 +08:00