Commit Graph

79 Commits

Author SHA1 Message Date
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
2ffe21a9aa LOL 2019-02-17 13:01:15 +08:00
Mygod
0be1116121 Refine code style 2019-02-17 12:51:20 +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
50911bd31f Fix #74 2019-02-04 14:23:12 +08:00
Mygod
6a7a16a0c7 Move away KEY_OPERATING_CHANNEL 2019-02-01 16:46:00 +08:00
Mygod
13e4819511 Fix Parcelable 2019-02-01 15:18:49 +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
0aa77ef82d Use AppCompatDialogFragment 2019-01-23 15:23:26 +08:00
Mygod
ab89e9391a Enhanced AlertDialogFragment 2019-01-23 15:02:15 +08:00
Mygod
a936b4e058 Allow usage of legacy Wi-Fi switch in-app only on 7.1 2019-01-23 12:10:56 +08:00
Mygod
1048fa830a Remove legacy Wi-Fi switch for Android 7.1
Fixes #64.
2019-01-22 23:38:56 +08:00
Mygod
8b7b0b0b3e Fix flashing icons 2019-01-06 01:43:19 +08:00
Mygod
ea9145c2bd Mute SocketException 2019-01-06 00:47:53 +08:00
Mygod
d3d066e037 Mute InvocationTargetException on 7.0 as well 2019-01-06 00:29:27 +08:00
Mygod
719e8245a7 Mute more SocketException 2019-01-03 23:55:29 +08:00
Mygod
615e7256d0 Mute Android 7.1 bug 2019-01-03 23:50:47 +08:00
Mygod
b00791d644 Update dependencies 2019-01-03 23:22:28 +08:00
Mygod
32c5973cdc Fix possible race condition caused crash 2019-01-03 17:00:31 +08:00
Mygod
7be7af36c9 Handle nullable fragmentManager 2019-01-01 12:46:07 +08:00
Mygod
24c1d810d5 Fix AlertDialogFragment 2019-01-01 12:44:02 +08:00
Mygod
5abd3661c3 Log less 2018-12-30 17:57:53 +08:00
Mygod
f0a89d5498 Do not request data onDismiss 2018-12-30 17:44:18 +08:00
Mygod
d26c4587f2 Reduce log levels 2018-12-30 16:55:06 +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
7eec6f7a06 Add starting state to temp hotspot 2018-12-28 14:42:45 +08:00
Mygod
0ef55133bb Remove unused field 2018-12-27 12:59:55 +08:00
Mygod
71011847c4 Remove tracking SocketException
This could happen normally after repeater is shutdown and the interface was also torn down by the system.
2018-12-26 00:29:57 +08:00
Mygod
2b982dd349 Do not store redundant copy of bluetooth adapter 2018-12-25 16:26:18 +08:00
Mygod
ec08802fbd Refine code style 2018-12-25 13:02:53 +08:00
Mygod
b2534eb2c0 Do not update tile state when unsure 2018-12-25 12:57:25 +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
426b93226d Add a lot more QS tiles
Fix #53. Also fix Bluetooth connection leaks.
2018-12-25 11:37:36 +08:00
Mygod
365287202e Fix crash on fast dismissal 2018-12-25 08:50:04 +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
83aba3418b Do not show warning if manage fails 2018-12-21 12:04:52 +08:00
Mygod
f65ff47bac Show warning if startAlternative fails 2018-12-14 17:22:21 +08:00
Mygod
b2346dca9a Do not report expected SecurityException 2018-12-14 01:50:36 +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
e347115908 Add back root unavailable prompt 2018-10-08 15:23:57 +08:00
Mygod
395e5da871 Fix InvalidConfigurationError 2018-10-04 15:50:07 +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
268376a7d5 Use DialogFragments everywhere 2018-09-18 17:09:50 +08:00
Mygod
204145ef4f Move edit configuration logic out of WifiP2pDialogFragment 2018-09-17 23:35:59 +08:00
Mygod
f27fdb5ce7 Catch BLUETOOTH permission missing exception 2018-09-17 22:08:31 +08:00