Commit Graph

29 Commits

Author SHA1 Message Date
Mygod
440b22faa1 Properly handle missing bluetooth permissions 2021-06-11 02:15:49 +08:00
Mygod
6f81f8a6ff Reset pendingCallback on failure 2021-06-11 01:54:36 +08:00
Mygod
54c9ae0cec Fix turning off bluetooth tethering 2021-06-11 01:46:51 +08:00
Mygod
282fc71814 Clear error when permission is granted 2021-06-11 01:34:53 +08:00
Mygod
5d39ace3f0 Use recommended API for getting bluetooth adapter 2021-06-10 14:26:56 +08:00
Mygod
8918ff2377 Fix new BluetoothPan constructor 2021-06-10 14:20:38 +08:00
Mygod
fac1451e95 Fix pan initialization failure crash 2021-06-10 14:09:17 +08:00
Mygod
f55b42b6a1 Suppress SecurityExceptions on S 2021-05-20 09:45:49 -04:00
Mygod
71f466913a Support BLUETOOTH_CONNECT permission on Android 12 beta 2021-05-19 14:55:34 -04:00
Mygod
a1b076cee9 Check bluetooth supported before registering pan 2020-07-07 05:02:36 +08:00
Mygod
4b1101f41e Suppress useless logcat 2020-07-03 09:12:12 +08:00
Mygod
659c1a34e0 Make BluetoothPan accessible 2020-06-24 06:56:17 +08:00
Mygod
ad218d7ec6 librootkotlinx
Fixes #14, #27, #114, #117.
2020-06-21 05:33:39 +08:00
Mygod
0430e76143 Fix doc 2020-06-16 09:34:29 +08:00
Mygod
b656b71577 Handle bluetooth error message correctly 2020-06-11 06:30:27 +08:00
Mygod
b9994bda9e Deprecate usage of BuildCompat 2020-06-11 03:17:42 +08:00
Mygod
9e820e888f Use invoke operators 2020-05-30 21:01:22 -04:00
Mygod
a3027812f0 Misc refinements 2020-05-31 07:42:23 +08:00
Mygod
9686645c03 Propagate Bluetooth error message out to UI 2020-05-29 18:24:12 -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
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
cf2beb8aac Update dependencies 2020-04-20 03:17:41 +08:00
Mygod
e81e66b84f Handle permission issues in BluetoothTethering 2019-03-19 10:14:55 +08:00
Mygod
16688ebe7d Fix missing unregister 2019-03-18 22:03:20 +08:00
Mygod
e112b10c55 Add Bluetooth on/off into consideration when using Bluetooth tethering 2019-03-18 19:02:50 +08:00
Mygod
2b982dd349 Do not store redundant copy of bluetooth adapter 2018-12-25 16:26:18 +08:00
Mygod
b2534eb2c0 Do not update tile state when unsure 2018-12-25 12:57:25 +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