Add Firebase Service Stub

This commit is contained in:
Marvin W 2016-09-16 23:09:11 +02:00
parent 6b9fc62bac
commit 190a031662
No known key found for this signature in database
GPG Key ID: 072E9235DB996F2A
4 changed files with 72 additions and 3 deletions

2
extern/GmsApi vendored

@ -1 +1 @@
Subproject commit c6f5d25850d86a78119c0175678c81178b0500e1
Subproject commit 18da23b48289427f060af75adde627dcc1401f00

View File

@ -0,0 +1,29 @@
/*
* Copyright 2013-2016 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.gms.auth;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import org.microg.gms.auth.firebase.FirebaseAuthServiceImpl;
public class FirebaseAuthService extends Service {
public IBinder onBind(Intent intent) {
return new FirebaseAuthServiceImpl(this);
}
}

View File

@ -18,9 +18,8 @@ package com.google.android.gms.auth;
import android.app.Service;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.util.Log;
import org.microg.gms.auth.AuthManagerServiceImpl;
public class GetToken extends Service {

View File

@ -0,0 +1,41 @@
/*
* Copyright 2013-2016 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.microg.gms.auth.firebase;
import android.content.Context;
import android.os.Parcel;
import android.os.RemoteException;
import android.util.Log;
import com.google.firebase.auth.api.internal.IFirebaseAuthService;
public class FirebaseAuthServiceImpl extends IFirebaseAuthService.Stub {
private static final String TAG = "GmsFirebaseAuthImpl";
private Context context;
public FirebaseAuthServiceImpl(Context context) {
this.context = context;
}
@Override
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
if (super.onTransact(code, data, reply, flags)) return true;
Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags);
return false;
}
}