Commit Graph

891 Commits

Author SHA1 Message Date
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
1197400ad0 Let PausingDispatcher handle cancellation 2020-05-24 04:45:50 +08:00
Mygod
faf0b2c179 v2.9.1 2020-05-23 09:20:47 +08:00
Mygod
b833d94002 Refine error message 2020-05-23 09:04:58 +08:00
Mygod
731a654ed4 Reset group using best effort 2020-05-23 09:01:01 +08:00
Mygod
a55a2a8886 Fix a crash caused by race 2020-05-23 08:55:14 +08:00
Mygod
7374d89f0e Log Android preview codename if available 2020-05-23 08:44:20 +08:00
Mygod
5a7ecb3245 Add BLUETOOTH_PRIVILEGED permission
Required for reading bluetooth tethering state since May, 2020 security patch.

Related: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1253150
2020-05-23 08:36:48 +08:00
Mygod
6f94e31f51 Ensure rescheduleUpdate is ran on bg thread 2020-05-23 06:13:12 +08:00
Mygod
4336632508 Prevent deadlocks by avoiding calling callbacks in locked blocks 2020-05-23 05:52:32 +08:00
Mygod
c827474dce Fix hasP2pValidateName warning 2020-04-23 05:20:02 +08:00
Mygod
05ae75e2bf v2.9.0 2020-04-23 04:44:26 +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
2b3f0fed4d Refine params 2020-04-21 05:24:16 +08:00
Mygod
4461c1fd58 Update beta dependencies 2020-04-20 03:56:27 +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
caa7b28b5c Fix lint 2020-03-02 11:14:30 +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
cae191b991 v2.8.0 2020-02-08 04:12:45 +08:00
Mygod
1507050eea Fix #142 2020-01-26 13:39:56 +08:00
Mygod
3372d8bcbd Add OSS licenses 2020-01-26 12:09:12 +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
09238462d1 Update dependencies 2020-01-23 09:26:33 +08:00
Mygod
7e8deb120f Prevent crash by buggy OS 2020-01-21 06:29:43 +08:00