Commit Graph

95 Commits

Author SHA1 Message Date
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
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
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
7a8412407b Use exec whenever possible 2018-08-26 19:24:45 +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
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
35bc2b4a75 Refine 2018-07-14 23:41:58 +08:00
Mygod
2488a528a3 Update dependencies 2018-06-23 18:59:31 +08:00
Mygod
538755f015 Add option to turn off masquerade
It turns out that this option may not be necessary but I've already implemented it so just in case.
2018-06-16 00:20:20 +08:00
Mygod
4c101012ad Refine masquerade rules 2018-06-16 00:20:00 +08:00
Mygod
09690f19c8 Fix crashes on stupid devices 2018-06-13 15:51:10 +08:00
Mygod
9a1a3f7732 Misc fixes 2018-06-11 10:41:01 +08:00
Mygod
814f42311b Update support lib to 28.0.0-alpha3 2018-06-10 22:28:09 +08:00
Mygod
d68932f72b Log general failures 2018-06-10 21:21:02 +08:00
Mygod
e2cbe18ea9 Add more logging 2018-06-10 20:59:50 +08:00
Mygod
da9bf4867e Support specifying network interface
Fix #15.
2018-06-02 07:29:46 +08:00