Commit Graph

64 Commits

Author SHA1 Message Date
Mygod
0c36bcbade Prevent Binder stub swallowing Exceptions 2021-07-24 23:29:50 -04:00
Mygod
bb80359efb Refactor LOHService based on AOSP CarProjectionService 2021-06-11 02:20:55 -04:00
Mygod
d2f8de24b4 Fix lint 2021-05-27 13:59:17 -04:00
Mygod
87a1b8b08d Refine code style 2021-05-27 13:33:26 -04:00
Mygod
0ac5b25f85 Migrate from using deprecated getLastTetherError 2021-05-26 16:30:11 -04:00
Mygod
cd2fdba3cd Refine code style 2021-05-05 19:25:10 -04:00
Mygod
791e41fb74 Use ExecutorCompat 2021-03-14 20:42:20 -04:00
Mygod
c276642161 Suppress more CancellationException 2020-10-02 07:05:20 +08:00
Mygod
7f793e0760 Prefer in process tethering module
To be consistent with AOSP.
2020-08-14 11:02:14 -04:00
Mygod
27e93b2a78 Suppport in-process tethering module 2020-08-10 23:01:05 +08:00
Mygod
a23b519a53 Revert "Suppress not registered error for now"
This reverts commit f7ed0c2387.
2020-07-17 05:57:25 +08:00
Mygod
f7ed0c2387 Suppress not registered error for now
See also: b/160765229
2020-07-11 06:39:58 +08:00
Mygod
78f32cde3c Revert "Use the same cacheDir to reuse cache"
This reverts commit d2f9f592a5.

Fixes error like: Optimized data directory <dir> is not owned by the current user. Shared storage cannot protect your application from code injection attacks.
2020-07-09 12:16:09 -04:00
Mygod
8674369b5b Refine TetheringEventCallback 2020-07-09 07:34:16 +08:00
Mygod
e27d4c4068 Handle TETHER_ERROR_NO_CHANGE_TETHERING_PERMISSION correctly 2020-07-09 02:32:35 +08:00
Mygod
d2f9f592a5 Use the same cacheDir to reuse cache 2020-07-07 06:45:52 +08:00
Mygod
05c4ba5b81 Fix crashes 2020-07-03 10:55:21 +08:00
Mygod
4f97f9bf74 Implement ConstantLookup 2020-07-03 08:11:37 +08:00
Mygod
798275e9c9 Initial support for registerSoftApCallback 2020-07-03 07:38:51 +08:00
Mygod
71e0ab6ed1 Support reading default shut down timeout mills from wifi resources apex 2020-07-02 08:26:07 +08:00
Mygod
5e4cebc346 Support WiGig tethering
As per: https://android-review.googlesource.com/c/platform/frameworks/base/+/1177323
2020-07-01 13:15:47 -04:00
Mygod
e114bb306a Fix race in ofInterface 2020-06-23 07:57:34 +08:00
Mygod
2ebe0e4962 Refine code style 2020-06-21 06:06:06 +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
b20e3ab4a7 Fix lint and incorrect lifecycle owner 2020-06-11 04:57:47 +08:00
Mygod
b9994bda9e Deprecate usage of BuildCompat 2020-06-11 03:17:42 +08:00
Mygod
e3da408e27 Remove address from startTethering for now 2020-05-31 15:42:00 -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
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
069b32a7d9 Correctly handle TetherType changing 2020-05-29 21:20:53 -04:00
Mygod
35b7404d87 Suppress WrongConstant for TETHERING_SERVICE 2020-05-29 02:10:27 -04: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
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
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