Commit Graph

425 Commits

Author SHA1 Message Date
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
Mygod
dd2c171bb3 Suppress reporting interfaceName changes 2018-12-19 15:38:05 +08:00
Mygod
eadc2eb05f Suppress reporting expected SecurityException 2018-12-19 15:35:48 +08:00
Mygod
d8ccd47bac Refine cleaning routing rules 2018-12-19 15:32:16 +08:00
Mygod
97fb67d7fd Refine IpNeighbour parser 2018-12-19 13:05:56 +08:00
Mygod
f65ff47bac Show warning if startAlternative fails 2018-12-14 17:22:21 +08:00
Mygod
b409d26bbc Simplify exporting debug info 2018-12-14 10:09:29 +08:00
Mygod
373d45f668 Generalize ip neigh parser
Now we can rely on fewer assumptions.
2018-12-14 02:30:33 +08:00
Mygod
51a19a3c55 Stop tracking p2p failures 2018-12-14 02:04:47 +08:00
Mygod
f26716051c Allow iptables -w to output busy spin message 2018-12-14 02:00:31 +08:00
Mygod
b2346dca9a Do not report expected SecurityException 2018-12-14 01:50:36 +08:00
Mygod
6ae5aba6bb Suppress reporting interface becoming null 2018-12-14 01:45:54 +08:00
Mygod
cebc807c18 Prevent OOMs when exporting debug information 2018-12-14 01:12:27 +08:00
Mygod
366ae7dab6 Be more careful about checking upstreams were removed 2018-12-14 00:56:28 +08:00
Mygod
c3cb26ce35 Fix inconsistent behavior in onLost 2018-12-14 00:46:46 +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
6002794905 Fix warnings 2018-12-13 14:35:09 +08:00
Mygod
ac9bf38147 Discard return value and keep retrying 2018-10-25 13:44:47 +08:00
Mygod
8ec83f683f Log exit values on monitor failures 2018-10-25 13:32:03 +08:00
Mygod
72276967b4 Add ip neigh to debug information 2018-10-25 13:18:59 +08:00
Mygod
5bc93ab451 Fix read-only file system 2018-10-25 13:16:57 +08:00
Mygod
e6bdbd23a9 Ensure onLost is called 2018-10-25 11:16:07 +08:00
Mygod
04acc9d75e Handle if ifname became non-null 2018-10-25 10:57:15 +08:00
Mygod
3c81fcd95a Handle p2p service disconnection 2018-10-25 10:51:00 +08:00
Mygod
7d861e3ae3 Fix ConcurrentModificationException 2018-10-14 14:51:41 +08:00
Mygod
46f7ae7dd0 Also allow ifname changes I guess?? 2018-10-12 12:34:06 +08:00
Mygod
47366b982e Allow null interfaceName in onLinkPropertiesChanged 2018-10-10 20:15:57 +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
634ac72350 Add more debugLog to investigate check failure 2018-10-08 13:35:29 +08:00
Mygod
d06ec3e4f7 joinToString before releasing RootSession 2018-10-08 13:27:08 +08:00
Mygod
26043bdefc Fix a deadlock in IpNeighbourMonitor 2018-10-08 13:08:48 +08:00
Mygod
a14f324a90 Allow irrelevant info in DefaultNetworkMonitor as well 2018-10-08 12:05:41 +08:00
Mygod
0d83c17b89 Known issue: client features won't work when upgrading from 1.x w/o shutting down service 2018-10-05 00:50:03 +08:00
Mygod
255cfac486 Add more locks 2018-10-05 00:45:53 +08:00
Mygod
c7e79dfb6a Allow unregister to fail
Race condition might occur when cleaning.
2018-10-04 19:45:54 +08:00
Mygod
722855caf7 Refine code 2018-10-04 16:45:44 +08:00
Mygod
89234b37a4 Create a copy before returning 2018-10-04 16:41:19 +08:00
Mygod
e85d792218 Refine IpNeighbour parsing 2018-10-04 16:34:40 +08:00
Mygod
ed1e1a581e Allow records not found in TrafficRecorder 2018-10-04 16:03:59 +08:00
Mygod
b9d5a63c23 Add synchronization in IpNeighbourMonitor 2018-10-04 15:56:24 +08:00
Mygod
e66025c746 Only care about losing one network 2018-10-04 15:50:58 +08:00
Mygod
395e5da871 Fix InvalidConfigurationError 2018-10-04 15:50:07 +08:00