Commit Graph

354 Commits

Author SHA1 Message Date
Mygod
e8fb62a0b3 Move MAC utils to MacAddressCompat 2020-05-30 02:39:33 -04:00
Mygod
a40a07b76e Use in-process listener to ensure callback order 2020-05-29 21:33:09 -04:00
Mygod
069b32a7d9 Correctly handle TetherType changing 2020-05-29 21:20:53 -04:00
Mygod
299085293d Merge branch 'master' into r 2020-05-29 20:54:26 -04:00
Mygod
35b7404d87 Suppress WrongConstant for TETHERING_SERVICE 2020-05-29 02:10:27 -04:00
Mygod
6ee1bf3666 Suppress UNCHECKED_CAST 2020-05-29 01:55:29 -04:00
Mygod
df1ef04d18 Migrate to coroutines instead of Handler 2020-05-29 01:38:02 -04:00
Mygod
8307f9f8d4 Suppress reporting VpnMonitor interfaceName changed 2020-05-29 01:18:07 -04:00
Mygod
44df94dae2 Fix Handler constructor deprecation 2020-05-29 12:15:36 +08:00
Mygod
89a02bde69 Target R 2020-05-29 06:34:20 +08:00
Mygod
86c847d12e Switch to MonitorRoot as default for API 30+ 2020-05-29 06:34:10 +08:00
Mygod
fe15009be6 Fix building on incorrect target 2020-05-29 05:38:50 +08:00
Mygod
382291a74e Correctly handle tethering package in mainline module 2020-05-29 05:36:20 +08:00
Mygod
6e848caa87 Always read ethernet regex 2020-05-29 04:48:04 +08:00
Mygod
84dabae3c8 Merge branch 'master' into r 2020-05-29 04:46:09 +08:00
Mygod
29be356e36 Ensure resource is being read from system 2020-05-29 04:32:41 +08:00
Mygod
547815ffaf Warn when offload is verified to be started 2020-05-28 15:13:45 -04:00
Mygod
4447dfd86e Use TetheringEventCallback when appropriate 2020-05-28 15:08:47 -04:00
Mygod
d56905603d Prevent depending on blacklisted API 2020-05-28 12:39:51 -04:00
Mygod
f4e540e919 Simplify unused onClientsChanged 2020-05-28 12:11:31 -04:00
Mygod
6dac683e70 Log onClientsChanged if it ever gets fired 2020-05-28 02:01:24 -04:00
Mygod
753e09b2d6 Implement (un)registerTetheringEventCallback 2020-05-28 01:43:28 -04:00
Mygod
1ca69cf3a6 Preliminary support for Ethernet and NCM tethering 2020-05-28 00:18:10 -04:00
Mygod
d6503ed787 Add APIs to README 2020-05-28 00:18:10 -04:00
Mygod
a08944db27 Simplify code 2020-05-28 00:18:10 -04:00
Mygod
b4d2b79ae9 Implement new startTethering API 2020-05-28 00:18:10 -04:00
Mygod
991a3466ca Rename start/stopTethering to maintain consistency with framework 2020-05-28 00:18:10 -04:00
Mygod
60ac93e291 Support tether errors in Android 11 preview 2020-05-28 00:18:10 -04:00
Mygod
f16d235cab Add icon for deprecated TetherType.WIMAX
Despite this will never be used, it is good to use a separate icon just to be clear.
2020-05-27 21:54:04 -04:00
Mygod
e953ccc66e Only require BLUETOOTH_PRIVILEGED for higher API 2020-05-27 10:26:16 -04:00
Mygod
746afb69a5 Add missing tether errors in Android 10 2020-05-27 09:37:31 -04:00
Mygod
8ff784ce3d Update EXTRA_ACTIVE_LOCAL_ONLY
Change was implemented since Android R preview 1.
2020-05-27 09:01:10 +08:00
Mygod
b833d94002 Refine error message 2020-05-23 09:04:58 +08:00
Mygod
4336632508 Prevent deadlocks by avoiding calling callbacks in locked blocks 2020-05-23 05:52:32 +08:00
Mygod
48ca2c1623 Prevent calling callback in synchronized 2020-04-23 04:02:12 +08:00
Mygod
099c6b2a73 Fix OEM bugs on Android 6 2020-04-23 03:50:35 +08:00
Mygod
3ba9a322c2 Allow user to turn off safe mode on Android 10 (Mar 2020 or newer)
Fixes #153.

Basically, this "forward"-ports a workaround for Android 9- thanks to Jimmy Chen.
As a consequence, #31 might reoccur if you turn off safe mode.
2020-04-22 12:28:38 +08:00
Mygod
3260783eec Migrate to ktx API 2020-04-20 03:29:05 +08:00
Mygod
cf2beb8aac Update dependencies 2020-04-20 03:17:41 +08:00
Mygod
418618eecb Fix crash on Android R beta 1 2020-03-02 10:00:15 +08:00
Mygod
7edb09ad2c Fix deadlocks 2020-03-02 10:00:15 +08:00
Mygod
1507050eea Fix #142 2020-01-26 13:39:56 +08:00
Mygod
3cee5a4782 Migrate to open source firebase-crashlytics 2020-01-24 22:22:48 +08:00
Mygod
b55ad234ac Misc fixes 2020-01-23 10:02:00 +08:00
Mygod
2298f7858f Prevent DialogFragment.show crash 2020-01-23 09:29:51 +08:00
Mygod
22d81bb0b4 Fix lint 2020-01-20 19:08:48 +08:00
Mygod
59b4a464b0 Notify all LinkProperties for onAvailable 2020-01-20 10:05:01 +08:00
Mygod
006e4e47c0 Update dependencies 2020-01-20 10:05:01 +08:00
Mygod
15ef02143b Fix deprecations 2020-01-09 23:12:23 +08:00
Mygod
def2f971c9 Skip setting button after destroyed 2020-01-09 23:05:45 +08:00