From 4d2dbf4a9b60f9a5030953bd6a3f0613c7a78cd9 Mon Sep 17 00:00:00 2001 From: igorzas Date: Fri, 28 Jul 2023 20:24:59 +0000 Subject: Add RemoteAuthService Add RemoteAuthService that implements a logic of D2DA Design doc: go/remote-auth-manager-fishfood-design Test: loaded on device. Bug: 290092977 Change-Id: I2fdc8b87241439c051c4706e9970639c7c83c763 --- core/api/module-lib-current.txt | 1 + core/java/android/content/Context.java | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 13a48993f68f..6a4c67b71250 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -90,6 +90,7 @@ package android.content { public abstract class Context { method @NonNull public android.os.UserHandle getUser(); field public static final String PAC_PROXY_SERVICE = "pac_proxy"; + field public static final String REMOTE_AUTH_SERVICE = "remote_auth"; field public static final String TEST_NETWORK_SERVICE = "test_network"; } diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 7de7c676706b..21d4b6461214 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -6057,6 +6057,18 @@ public abstract class Context { @SystemApi public static final String NEARBY_SERVICE = "nearby"; + /** + * Use with {@link #getSystemService(String)} to retrieve a + * {@link android.remoteauth.RemoteAuthManager} to discover, + * register and authenticate via remote authenticator devices. + * + * @see #getSystemService(String) + * @see android.remoteauth.RemoteAuthManager + * @hide + */ + @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) + public static final String REMOTE_AUTH_SERVICE = "remote_auth"; + /** * Use with {@link #getSystemService(String)} to retrieve a * {@link android.app.ambientcontext.AmbientContextManager}. -- cgit v1.2.3-59-g8ed1b