Commit Graph

66 Commits

Author SHA1 Message Date
Mygod
f61f694d5f Prevent initiailizing su in main thread
This should hopefully fix #113.
2019-07-16 10:23:21 +08:00
Mygod
0cb28477e4 Android Q beta 4 support 2019-06-10 21:34:37 +08:00
Mygod
b82ed72555 Merge branch 'v2.4' into q-beta 2019-04-28 14:34:53 +08:00
Mygod
7d2a3e42ea Merge branch 'master' into v2.4 2019-04-28 14:05:52 +08:00
Mygod
6aac712a1b Update dependencies 2019-04-28 14:05:27 +08:00
Mygod
243d103ca7 Refine code style 2019-04-14 13:35:36 +08:00
Mygod
b70abd6ffb Merge branch 'v2.4' into q-beta 2019-04-14 13:06:12 +08:00
Mygod
484e868f1a Merge branch 'master' into v2.4 2019-04-14 10:27:46 +08:00
Mygod
f034abfa07 Deprecate MainScope 2019-04-14 10:26:30 +08:00
Mygod
6b951519fe Merge branch 'v3' into q-beta 2019-04-04 19:37:27 +08:00
Mygod
6225367e42 Support sharing via QR code
Another popular format is barcode but unfortunately I cannot seem to find documentations of that anywhere. Feel free to send me.
2019-04-04 19:17:31 +08:00
Mygod
411f98c36f Copy/paste for Wi-Fi configurations 2019-04-04 18:06:18 +08:00
Mygod
1145b0f23b Support editing native Wi-Fi AP configurations
Support for repeater channel on Android 5 has been dropped because I am lazy.
2019-04-04 18:06:18 +08:00
Mygod
400d4e67a3 Merge branch 'master' into q-beta 2019-04-04 11:09:47 +08:00
Mygod
f97afdf8ae Prevent recreating monitor MenuItem 2019-04-03 16:32:55 +08:00
Mygod
005b5189f4 Handle API changes 2019-03-20 11:53:08 +08:00
Mygod
3a7a400ee8 Update parseNumericAddress on Android Q 2019-03-20 11:53:08 +08:00
Mygod
7b48dd30e4 Fix a build version 2019-03-15 23:31:47 +08:00
Mygod
aedba90196 Lift double routing detection out of Routing 2019-03-09 01:46:01 -05:00
Mygod
fe2e0ef4c8 Remove execOutUnjoined 2019-03-09 00:26:41 -05:00
Mygod
317e2121c2 Refine error messages in general 2019-02-23 23:00:14 +08:00
Mygod
5954029a7c Catch more exceptions for startActivity 2019-02-22 12:10:22 +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
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