Commit Graph

43 Commits

Author SHA1 Message Date
Mygod
1dd8a9dcb6 Remove unused method 2019-02-01 20:14:33 +08:00
Mygod
a71a3b3bb0 Make DHCP workaround global 2019-02-01 16:55:38 +08:00
Mygod
73d29cba20 Revert "Refrain from using reflection to parse numerical address"
This reverts commit 72851d4417.

See also: https://issuetracker.google.com/issues/123456213
2019-01-27 16:07:38 +08:00
Mygod
4918dfc856 Suppress links for bogon IPs
ipinfo.io does not tell a lot of information about bogon IP addresses, so let us just not show any links at all.
2019-01-26 21:57:58 +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
72851d4417 Refrain from using reflection to parse numerical address 2019-01-26 01:35:59 +08:00
Mygod
074252ad1c Deprecate thread helper 2019-01-26 01:34:41 +08:00
Mygod
0da1943a68 Refine RootSession.Transaction.iptables 2019-01-24 21:15:44 +08:00
Mygod
e6943c69dd Try both p2p_supplicant.conf paths for Project Treble 2019-01-06 01:10:40 +08:00
Mygod
0374b93a64 Allow waiting in updating records 2019-01-06 00:58:30 +08:00
Mygod
719e8245a7 Mute more SocketException 2019-01-03 23:55:29 +08:00
Mygod
36b0284573 Improve quick settings tiles reliability
Android apparently can decide to kill TileService when there are too many. Therefore, let's check if our service is connected before doing anything.

Source: https://android.googlesource.com/platform/frameworks/base/+/e1d13c9/packages/SystemUI/src/com/android/systemui/qs/external/TileServices.java#52
2018-12-25 12:17:43 +08:00
Mygod
f26716051c Allow iptables -w to output busy spin message 2018-12-14 02:00:31 +08:00
Mygod
e85d792218 Refine IpNeighbour parsing 2018-10-04 16:34:40 +08:00
Mygod
913e21328e Misc refinements 2018-10-03 15:02:07 +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
8e3567954e Remove unused imports 2018-10-02 23:49:46 +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
c772d82145 Remove duplicated sanity check 2018-09-13 19:10:33 +08:00
Mygod
ce286ccd01 Update dependencies 2018-09-11 18:17:39 +08:00
Mygod
22b4dd6438 Kill RootSession on low memory 2018-09-07 10:43:40 +08:00
Mygod
9bc59ac270 Add 60 seconds timeout to RootSession 2018-09-07 10:36:01 +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
15d838893c SmartSnackbars 2018-08-08 16:03:30 +08:00
Mygod
6939efed0d Refine styling 2018-07-29 01:42:06 +08:00
Mygod
df03665816 Refinements 2018-07-28 20:12:04 +08:00
Mygod
2578c1c6ec Fix direct boot 2018-07-22 00:25:42 +08:00
Mygod
af20a084cb Use Android KTX 2018-07-15 20:58:39 +08:00
Mygod
d0e92b2505 Initial draft for porting to AndroidX 2018-07-15 14:28:42 +08:00
Mygod
2e912bf767 Implement displaying tethering errors 2018-07-13 00:53:06 +08:00
Mygod
ca6df74c3c Redirect error stream 2018-06-23 17:56:11 +08:00
Mygod
202c4f87a8 Remove unnecessary redirect error stream 2018-06-13 08:20:12 +08:00
Mygod
6b24697f12 Suppress stop/clean error reporting 2018-06-11 20:27:20 +08:00
Mygod
814f42311b Update support lib to 28.0.0-alpha3 2018-06-10 22:28:09 +08:00
Mygod
e2cbe18ea9 Add more logging 2018-06-10 20:59:50 +08:00
Mygod
f6d98d0e88 Add back auto complete interface names from 0.1.0 2018-06-02 07:38:03 +08:00
Mygod
8aa7d6d8c7 Huge refactor for better maintainability 2018-06-01 20:21:05 +08:00
Mygod
efa387fd7a Fix onServiceDisconnected not called 2018-05-09 18:10:22 -07:00
Mygod
377025371d Add ServiceForegroundConnector 2018-05-09 16:26:01 -07:00
Mygod
a5fa9d8801 Separate NoisySu.kt 2018-05-09 15:59:17 -07:00
Mygod
90c1951645 Move Utils.kt 2018-05-09 15:57:41 -07:00
Mygod
e72dad8790 Stop using LocalBroadcastManager 2018-05-09 15:56:37 -07:00