Commit Graph

88 Commits

Author SHA1 Message Date
Mygod
15c3c5a6d7 Bump to minapi 28 2023-02-08 21:37:16 -05:00
Mygod
d7ff8770a7 Fix a race condition 2022-05-15 17:08:01 -04:00
Mygod
1cf961b23c Stop using thread pools 2021-11-26 23:05:25 -05:00
Mygod
1b329558dc Only restore services when permitted 2021-10-29 23:13:52 -04:00
Mygod
aee1a45eba Support auto start services
Fixes #96.
2021-10-10 17:08:16 -04:00
Mygod
1029728f22 Refine code style 2020-08-18 05:43:30 +08:00
Mygod
ad218d7ec6 librootkotlinx
Fixes #14, #27, #114, #117.
2020-06-21 05:33:39 +08:00
Mygod
069b32a7d9 Correctly handle TetherType changing 2020-05-29 21:20:53 -04:00
Mygod
547815ffaf Warn when offload is verified to be started 2020-05-28 15:13:45 -04:00
Mygod
4447dfd86e Use TetheringEventCallback when appropriate 2020-05-28 15:08:47 -04:00
Mygod
1f5c2ec9cb Fix a subtle race 2020-01-15 20:32:30 +08:00
Mygod
4689c9a975 Fix wifi lock not released when monitoring 2019-11-06 08:35:41 +08:00
Mygod
ceef7f3062 Fix incorrect shutdown order 2019-09-19 11:37:51 +08:00
Mygod
95ddd5c2d5 2nd attempt to fix double unregistering receivers 2019-09-19 11:33:50 +08:00
Mygod
4aece2204a Revert "Ensure receiver unregistered synchronously in onDestroy"
This reverts commit e55aa17399.
2019-08-19 23:49:09 +08:00
Mygod
e55aa17399 Ensure receiver unregistered synchronously in onDestroy 2019-07-31 10:03:27 +08:00
Mygod
1f2ccf83b0 Fix dispatcher not closed 2019-07-31 08:53:45 +08:00
Mygod
f61f694d5f Prevent initiailizing su in main thread
This should hopefully fix #113.
2019-07-16 10:23:21 +08:00
Mygod
b82ed72555 Merge branch 'v2.4' into q-beta 2019-04-28 14:34:53 +08:00
Mygod
243d103ca7 Refine code style 2019-04-14 13:35:36 +08:00
Mygod
bb41536eb1 Update to Android Q beta 2 APIs 2019-04-04 11:31:27 +08:00
Mygod
005b5189f4 Handle API changes 2019-03-20 11:53:08 +08:00
Mygod
e112b10c55 Add Bluetooth on/off into consideration when using Bluetooth tethering 2019-03-18 19:02:50 +08:00
Mygod
aedba90196 Lift double routing detection out of Routing 2019-03-09 01:46:01 -05: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
6920843a63 Only remove manager when first start failed 2019-02-05 17:51:27 +08:00
Mygod
89a4e9f071 Simplify WifiDoubleLock invocations 2019-02-05 17:42:49 +08:00
Mygod
8132b2766d Remove fallback DNS 2019-02-04 23:30:29 +08:00
Mygod
2773c17327 Use MutableEntry correctly 2019-02-03 13:47:22 +08:00
Mygod
43bb8af522 Wtf more debug 2019-02-01 21:49:09 +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
05012783a3 Always clean routings on exit 2019-01-06 02:04:17 +08:00
Mygod
504190950f Disable IPv6 tethering by default
Refine #56, #6.
2019-01-06 00:15:53 +08:00
Mygod
426b93226d Add a lot more QS tiles
Fix #53. Also fix Bluetooth connection leaks.
2018-12-25 11:37:36 +08:00
Mygod
55443902be Support Wi-Fi keep alives 2018-12-23 23:35:55 +08:00
Mygod
d8ccd47bac Refine cleaning routing rules 2018-12-19 15:32:16 +08:00
Mygod
e347115908 Add back root unavailable prompt 2018-10-08 15:23:57 +08:00
Mygod
8e09e8cd8a Replace strict mode with fallback upstream interface
Fixes #40. Apparently we can no longer take advantage of default network rules set by Android system since Android 9.0 thanks to this commit: 758627c4d9
2018-10-03 13:02:28 +08:00
Mygod
4de93c5c02 Move monitors to a separate package 2018-10-02 23:44:06 +08:00
dwuku
d131d5d46b Make compatible with F-Droid (#42)
* Make compatible with F-Droid
* Fix title bar empty
2018-10-02 23:13:12 +08:00
Mygod
38f95a382e VPN Hotspot 2.0: Client+ (#39)
Fix #13, #38. I don't have a lot of confidence that this would work very well for every device.

Also here's an SQL command that hopefully somebody could make into the app for me: `SELECT TrafficRecord.mac, SUM(TrafficRecord.sentPackets), SUM(TrafficRecord.sentBytes), SUM(TrafficRecord.receivedPackets), SUM(TrafficRecord.receivedBytes) FROM TrafficRecord LEFT JOIN TrafficRecord AS Next ON TrafficRecord.id = Next.previousId WHERE Next.id IS NULL GROUP BY TrafficRecord.mac;`
2018-10-02 21:12:19 +08:00
Mygod
f72a3272cc Check if routings is empty after update 2018-09-06 15:48:46 +08:00
Mygod
823ae9633b Migrate from NoisySu to RootSession
Fix #24. Note that just like before, IpMonitor doesn't use RootSession.
2018-09-06 15:39:00 +08:00
Mygod
e3f1abbb22 Fully support strict mode for system tethering 2018-09-04 17:49:59 +08:00
Mygod
89c26fe384 Support strict mode for system tethering
TODO: Set up rules when upstream interface not found.
2018-09-03 16:37:54 +08:00
Mygod
0342d97fb0 Fix ConcurrentModificationException 2018-09-03 14:21:29 +08:00
Mygod
a9e483f3ff Add DHCP workaround
Thanks to petergunn666 for debugging this with me.
2018-08-13 01:41:45 +08:00
Mygod
15d838893c SmartSnackbars 2018-08-08 16:03:30 +08:00