Commit Graph

17 Commits

Author SHA1 Message Date
Mygod
2ebe0e4962 Refine code style 2020-06-21 06:06:06 +08:00
Mygod
e8fb62a0b3 Move MAC utils to MacAddressCompat 2020-05-30 02:39:33 -04:00
Mygod
d9c59349f8 Prevent CharSequence unpersisting failure crash 2019-10-25 02:33:24 +08:00
Mygod
3770acf561 Avoid runBlocking 2019-08-12 13:13:29 +08:00
Mygod
0a97ce80bc Use shared thread pool for queries 2019-07-15 17:43:54 +08:00
Mygod
965bd13eac Fix nullability issues 2019-05-13 18:41:58 +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
48024d2dfd Refine code style 2019-03-18 21:43:32 +08:00
Mygod
73137b8dcc Prevent main thread queries 2019-03-18 17:13:31 +08:00
Mygod
194ef92de3 Revert "No more main thread SQL"
This reverts commit 4de891b459.

Async writes are a bad idea.
2019-02-02 02:50:22 +08:00
Mygod
13e4819511 Fix Parcelable 2019-02-01 15:18:49 +08:00
Mygod
4de891b459 No more main thread SQL 2019-01-31 22:11:54 +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
f7673b080d Migrate to versionedparcelable 2019-01-23 14:14:03 +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
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