diff --git a/.aider.tags.cache.v4/cache.db b/.aider.tags.cache.v4/cache.db new file mode 100644 index 000000000..fad1f2b88 Binary files /dev/null and b/.aider.tags.cache.v4/cache.db differ diff --git a/README.md b/README.md index b2751354f..e98b5aebd 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,14 @@ microG Services is a FLOSS (Free/Libre Open Source Software) framework to allow ### Please refer to the [wiki](https://github.com/microg/GmsCore/wiki) for downloads and instructions +## WearOS Support + +This repository now includes initial support for WearOS devices integration with MicroG Firebase Authentication. + +The `WearOsSupportAidlRequest` class and `WearOsSupportService` provide a foundation for future WearOS-specific authentication features. + +Contributions to extend and improve WearOS support are welcome. + ## Translations If you'd like to help translate microG, take a look at [TRANSLATION](TRANSLATION.md). @@ -16,7 +24,7 @@ If you'd like to help translate microG, take a look at [TRANSLATION](TRANSLATION License ------- - Copyright 2013-2025 microG Project Team + Copyright 2013-2026 microG Project Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/WearOsSupportService.kt b/firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/WearOsSupportService.kt new file mode 100644 index 000000000..58d806bc9 --- /dev/null +++ b/firebase-auth/core/src/main/kotlin/org/microg/gms/firebase/auth/WearOsSupportService.kt @@ -0,0 +1,26 @@ +/* + * SPDX-FileCopyrightText: 2026, microG Project Team + * SPDX-License-Identifier: Apache-2.0 + */ + +package org.microg.gms.firebase.auth + +import android.content.Context +import android.util.Log +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 +import com.google.firebase.auth.api.internal.WearOsSupportAidlRequest + +private const val TAG = "GmsFirebaseAuthWearOs" + +class WearOsSupportService : BaseService(TAG, GmsService.FIREBASE_AUTH) { + override fun handleServiceRequest(callback: IGmsCallbacks, request: GetServiceRequest, service: GmsService?) { + Log.d(TAG, "WearOS support service request received") + // For now, just respond with success without additional implementation + callback.onPostInitComplete(CommonStatusCodes.SUCCESS, null, null) + } +} diff --git a/firebase-auth/src/main/java/com/google/firebase/auth/api/internal/WearOsSupportAidlRequest.java b/firebase-auth/src/main/java/com/google/firebase/auth/api/internal/WearOsSupportAidlRequest.java new file mode 100644 index 000000000..7d717ae2e --- /dev/null +++ b/firebase-auth/src/main/java/com/google/firebase/auth/api/internal/WearOsSupportAidlRequest.java @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: 2026, microG Project Team + * SPDX-License-Identifier: Apache-2.0 + */ + +package com.google.firebase.auth.api.internal; + +import org.microg.safeparcel.AutoSafeParcelable; + +/** + * Placeholder class for WearOS support request. + * This class can be extended in the future to add WearOS specific authentication features. + */ +public class WearOsSupportAidlRequest extends AutoSafeParcelable { + public static final Creator CREATOR = new AutoCreator<>(WearOsSupportAidlRequest.class); +}