Commit Graph

112 Commits

Author SHA1 Message Date
Mygod
8bfbe8ce53 Refine code style 2019-04-14 13:36:59 +08:00
Mygod
219d868089 Handle new nullability issues 2019-04-14 13:00:55 +08:00
Mygod
722a8e616e Add missing import removed by merge 2019-04-05 12:15:21 +08:00
Mygod
e02febd7ca Merge branch 'v2.4' into q-beta 2019-04-05 12:11:34 +08:00
Mygod
b940d2ad5f Merge branch 'master' into v2.4 2019-04-05 12:02:10 +08:00
Mygod
c922a94453 Remove fixed debug 2019-04-05 11:21:43 +08:00
Mygod
3f0d1407be Add missing deprecation 2019-04-05 11:19:12 +08:00
Mygod
ddd9ae1470 Remove redundant unregister 2019-04-05 10:29:45 +08:00
Mygod
bb4bf783f2 Prevent calling private API to set channel on Q 2019-04-05 10:12:37 +08:00
Mygod
e73d89b5b8 Support showing repeater frequency in Android Q 2019-04-05 10:03:51 +08:00
Mygod
11d5b77861 Handle deprecation changes 2019-04-05 09:49:25 +08:00
Mygod
e799fcf9ff Prevent tempering with persistent groups in Android Q
This seems to cause improper persistent group deletions, but either way, I cannot seem to find where persistent groups are persisted now on Android Q.
2019-04-05 09:42:50 +08:00
Mygod
617a2dda95 Change networkName without resorting to blacklisted API 2019-04-05 09:25:11 +08:00
Mygod
e91abe0738 Support custom repeater SSID without root 2019-04-04 21:10:38 +08:00
Mygod
6b951519fe Merge branch 'v3' into q-beta 2019-04-04 19:37:27 +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
834498b1ff Deprecate reset credentials
Due to persistent groups no longer useful in Android Q, this feature will be removed. Users on older releases can remove remembered groups from Wi-Fi Direct settings manually.
2019-04-04 18:06:18 +08:00
Mygod
673ff9800a Refine code style 2019-03-20 12:21:22 +08:00
Mygod
005b5189f4 Handle API changes 2019-03-20 11:53:08 +08:00
Mygod
f1cf44c628 Improve error logs on Android Q beta 2019-03-18 21:58:30 +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
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
43bb8af522 Wtf more debug 2019-02-01 21:49:09 +08:00
Mygod
6a7a16a0c7 Move away KEY_OPERATING_CHANNEL 2019-02-01 16:46:00 +08:00
Mygod
8682c9dd43 RIP WPS 2019-02-01 15:44:07 +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
6a8dbd7775 Add default p2p group if nothing is found
Fixes #61.
2019-01-18 11:26:19 +08:00
Mygod
dfbb534461 Refine logging persistent group 2019-01-15 01:54:02 +08:00
Mygod
c1e948dbbf Log persistent groups 2019-01-14 19:35:03 +08:00
Mygod
fe33c88047 Improve debug logging mechanisms 2018-12-30 16:03:24 +08:00
Mygod
5fc67d4249 Refine code style 2018-12-29 01:38:50 +08:00
Mygod
67d3e8a52d Show invisible foreground notification on television to avoid being killed 2018-12-28 14:52:46 +08:00
Mygod
55443902be Support Wi-Fi keep alives 2018-12-23 23:35:55 +08:00
Mygod
690b923a43 Fix parser forgetting all non-owned groups 2018-12-21 18:03:33 +08:00
Mygod
5281f14e0f Listen for persistent group changes 2018-12-21 16:04:23 +08:00
Mygod
7b8c3f5b73 Use thisDevice to make sure the group is owned by us 2018-12-21 15:45:18 +08:00
Mygod
dae07f79ce Remove redundant P2P groups if found
If more than one group is found owned by the device, Android system will cycle through these groups using an LRU cache which is undesirable.

The reason for causing >1 groups is unknown.
2018-12-21 15:34:54 +08:00
Mygod
f478edb9af Fix missing methods on Android 8- 2018-12-19 23:14:49 +08:00
Mygod
51a19a3c55 Stop tracking p2p failures 2018-12-14 02:04:47 +08:00
Mygod
ca1fc946ca Remove repeater from UI if it's not supported
This could happen on devices like Chrome OS and Android emulators.
2018-12-13 15:04:21 +08:00
Mygod
3c81fcd95a Handle p2p service disconnection 2018-10-25 10:51:00 +08:00
Mygod
423c6074f9 Add comment 2018-10-08 15:40:25 +08:00
Mygod
86c3ebd78e Always clean repeater on remove group 2018-10-08 15:29:16 +08:00
Mygod
e347115908 Add back root unavailable prompt 2018-10-08 15:23:57 +08:00
Mygod
e4e716ab83 Allow creating repeater w/o root 2018-10-08 15:17:48 +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