diff --git a/play-services-api/src/main/java/com/google/android/gms/auth/api/credentials/CredentialRequest.java b/play-services-api/src/main/java/com/google/android/gms/auth/api/credentials/CredentialRequest.java
index 9a5fa917..a1679445 100644
--- a/play-services-api/src/main/java/com/google/android/gms/auth/api/credentials/CredentialRequest.java
+++ b/play-services-api/src/main/java/com/google/android/gms/auth/api/credentials/CredentialRequest.java
@@ -29,6 +29,8 @@ public class CredentialRequest extends AutoSafeParcelable {
@Field(4)
private CredentialPickerConfig credentialHintPickerConfig;
+ private CredentialRequest() { }
+
public CredentialRequest(boolean passwordLoginSupported, String[] accountTypes, CredentialPickerConfig credentialPickerConfig, CredentialPickerConfig credentialHintPickerConfig) {
this.passwordLoginSupported = passwordLoginSupported;
this.accountTypes = accountTypes;
diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml
index f20594bd..73ca617d 100644
--- a/play-services-core/src/main/AndroidManifest.xml
+++ b/play-services-core/src/main/AndroidManifest.xml
@@ -423,7 +423,7 @@
android:exported="true" />
@@ -431,6 +431,12 @@
+
+
+
+
+
+
@@ -740,7 +746,6 @@
-
diff --git a/play-services-core/src/main/kotlin/org/microg/gms/ui/CredentialPickerActivity.kt b/play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialPickerActivity.kt
similarity index 98%
rename from play-services-core/src/main/kotlin/org/microg/gms/ui/CredentialPickerActivity.kt
rename to play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialPickerActivity.kt
index c5f3849c..e8e3fac3 100644
--- a/play-services-core/src/main/kotlin/org/microg/gms/ui/CredentialPickerActivity.kt
+++ b/play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialPickerActivity.kt
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-package org.microg.gms.ui
+package org.microg.gms.auth
import android.app.Activity
import android.os.Bundle
diff --git a/play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialsService.kt b/play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialsService.kt
new file mode 100644
index 00000000..6f571df3
--- /dev/null
+++ b/play-services-core/src/main/kotlin/org/microg/gms/auth/CredentialsService.kt
@@ -0,0 +1,53 @@
+/*
+ * SPDX-FileCopyrightText: 2021, microG Project Team
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+package org.microg.gms.auth
+
+import android.os.Bundle
+import android.util.Log
+import com.google.android.gms.auth.api.credentials.CredentialRequest
+import com.google.android.gms.auth.api.credentials.internal.*
+import com.google.android.gms.common.api.CommonStatusCodes
+import com.google.android.gms.common.api.Status
+import com.google.android.gms.common.internal.GetServiceRequest
+import com.google.android.gms.common.internal.IGmsCallbacks
+import org.microg.gms.BaseService
+import org.microg.gms.common.GmsService
+
+const val TAG = "GmsCredentials"
+
+class CredentialsService : BaseService(TAG, GmsService.CREDENTIALS) {
+ override fun handleServiceRequest(callback: IGmsCallbacks, request: GetServiceRequest, service: GmsService) {
+ callback.onPostInitComplete(CommonStatusCodes.SUCCESS, CredentialsServiceImpl(), Bundle())
+ }
+}
+
+class CredentialsServiceImpl : ICredentialsService.Stub() {
+ override fun request(callbacks: ICredentialsCallbacks, request: CredentialRequest) {
+ Log.d(TAG, "request($request)")
+ callbacks.onStatus(Status.CANCELED)
+ }
+
+ override fun save(callbacks: ICredentialsCallbacks, request: SaveRequest) {
+ Log.d(TAG, "save($request)")
+ callbacks.onStatus(Status.CANCELED)
+ }
+
+ override fun delete(callbacks: ICredentialsCallbacks, request: DeleteRequest) {
+ Log.d(TAG, "delete($request)")
+ callbacks.onStatus(Status.CANCELED)
+ }
+
+ override fun disableAutoSignIn(callbacks: ICredentialsCallbacks) {
+ Log.d(TAG, "disableAutoSignIn()")
+ callbacks.onStatus(Status.SUCCESS)
+ }
+
+ override fun generatePassword(callbacks: ICredentialsCallbacks, request: GeneratePasswordRequest) {
+ Log.d(TAG, "generatePassword($request)")
+ callbacks.onStatus(Status.SUCCESS)
+ }
+
+}