From 1ea0411bbf976cf75a12d02ec7ed878d104b2e4e Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Tue, 28 Nov 2023 18:09:45 +0000 Subject: Introduce CDM device presence base on UUID 1. Introduce a new API startObservingDevicePresence` that able to observing the devices base on association id or uuid. 2. Introduce a new request called DevicePresenceRequest allows app to be able setUuid or setAssociationId. Not that, caller can only use one setter. And only system app is able to use setUuid. 2. Introduce a new callback that that system app will be recieve when device is connected / disconnected. 3. Introduce a new Permission REQUEST_OBSERVE_DEVICE_UUID_PRESENCE that with signature protection level. 4. Introduce a new ObservingDevicePresenceResult with a new callback onDeviceEvent(ObservingDevicePresenceResult) 5. Deprecate the startObservingDevicePresence(MacAddress). Test: cts Bug: 316015619 Change-Id: I4e311866d7640218ed6dd9937911f984e88355ef --- packages/Shell/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/Shell') diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 507d9c467d68..fa6346fe394e 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -343,6 +343,7 @@ + -- cgit v1.2.3-59-g8ed1b