Commit Graph

369 Commits

Author SHA1 Message Date
Mygod
32c5973cdc Fix possible race condition caused crash 2019-01-03 17:00:31 +08:00
Mygod
2c28e1afec Refine code style 2019-01-01 14:32:00 +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
7c72b9a235 Caller already has an active LocalOnlyHotspot request is now unexpected 2019-01-01 12:38:25 +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
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
ce0e98c3dc Add missing revert call
Refine #51.
2018-12-30 16:29:31 +08:00
Mygod
04f111c1a4 Ensure DNS is never empty 2018-12-30 16:10:39 +08:00
Mygod
fe33c88047 Improve debug logging mechanisms 2018-12-30 16:03:24 +08:00
Mygod
f59ddb5616 Fix default mode set incorrectly 2018-12-30 14:18:05 +08:00
Mygod
ec907e204d Ensure record is unregistered if registering fails 2018-12-30 14:03:37 +08:00
Mygod
ddd3bfab2f Reduce garbage logs 2018-12-29 23:14:32 +08:00
Mygod
5c935348e7 Remove logging SecurityExceptions 2018-12-29 23:01:46 +08:00
Mygod
5fc67d4249 Refine code style 2018-12-29 01:38:50 +08:00
Mygod
eda1e48ede Ensure Subrouting is closed if register fails 2018-12-29 00:48:39 +08:00
Mygod
1ced7566f5 Fix IOException in direct boot 2018-12-29 00:29:56 +08:00
Mygod
cfada8d0c2 Fix DNS update not propagated 2018-12-29 00:08:55 +08:00
Mygod
67d3e8a52d Show invisible foreground notification on television to avoid being killed 2018-12-28 14:52:46 +08:00
Mygod
7eec6f7a06 Add starting state to temp hotspot 2018-12-28 14:42:45 +08:00
Mygod
e5b3e7e5d0 Fix file exists error when enabling multiple interfaces with DHCP workaround 2018-12-28 14:03:37 +08:00
Mygod
0ef55133bb Remove unused field 2018-12-27 12:59:55 +08:00
Mygod
bc0d6de3f9 Log p2p_supplicant if parsing failed 2018-12-27 12:58:09 +08:00
Mygod
8ea3acb622 Suppress IllegalStateException 2018-12-27 12:33:49 +08:00
Mygod
479d1bdfca Add documentation for settings 2018-12-26 11:46:58 +08:00
Mygod
e8f993944c Use poll as default monitor method
This should improve compatibility on very broken devices.
2018-12-26 10:58:16 +08:00
Mygod
9c2906944f Log a lot more about subroutings 2018-12-26 01:32:38 +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
0ff12b9aa9 Handle NullPointerExceptions 2018-12-25 23:42:52 +08:00
Mygod
1cf9b7378d Support buggy devices without if_indextoname 2018-12-25 23:39:08 +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
ae3aff5132 Do not keep alive by default 2018-12-24 23:22:59 +08:00
Mygod
55443902be Support Wi-Fi keep alives 2018-12-23 23:35:55 +08:00
Mygod
b34f39875f Fix crash when closing stats dialog 2018-12-22 11:11:11 +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
f1db0f2c8f Refactor using ViewModel 2018-12-21 15:06:03 +08:00
Mygod
e9421fd24f Fix crash in SmartSnackbar 2018-12-21 13:44:47 +08:00
Mygod
a48d441a15 Do not launch customTabs if no touchscreen found 2018-12-21 12:35:11 +08:00
Mygod
83aba3418b Do not show warning if manage fails 2018-12-21 12:04:52 +08:00
Mygod
f478edb9af Fix missing methods on Android 8- 2018-12-19 23:14:49 +08:00