Commit Graph

364 Commits

Author SHA1 Message Date
Mygod
2a0f899547 unregisterTetheringEventCallback onTetherableInterfaceRegexpsChanged 2020-06-02 16:54:24 -04:00
Mygod
d64c04a9e1 Fix requiresUpdate default value 2020-06-01 19:40:37 -04:00
Mygod
e3da408e27 Remove address from startTethering for now 2020-05-31 15:42:00 -04:00
Mygod
4f4f4ff338 Refine code style 2020-05-30 22:20:30 -04:00
Mygod
cbef64ae55 Incorporate icon into TetherType defn 2020-05-30 21:04:37 -04:00
Mygod
9e820e888f Use invoke operators 2020-05-30 21:01:22 -04:00
Mygod
f094b0361b Update private API documentation 2020-05-30 20:11:21 -04:00
Mygod
a3027812f0 Misc refinements 2020-05-31 07:42:23 +08:00
Mygod
d17cd0bab3 Correctly handle callSuper for Proxy 2020-05-31 07:40:25 +08:00
Mygod
3327242c2e Fix args can be null 2020-05-31 02:57:20 +08:00
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