mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-13 14:17:45 +01:00
Extend ServiceBroker
This commit is contained in:
parent
704199355e
commit
9dea25dca4
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.common.internal;
|
||||||
|
|
||||||
|
parcelable GetServiceRequest;
|
@ -3,30 +3,35 @@ package com.google.android.gms.common.internal;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import com.google.android.gms.common.internal.IGmsCallbacks;
|
import com.google.android.gms.common.internal.IGmsCallbacks;
|
||||||
|
import com.google.android.gms.common.internal.GetServiceRequest;
|
||||||
|
import com.google.android.gms.common.internal.ValidateAccountRequest;
|
||||||
|
|
||||||
interface IGmsServiceBroker {
|
interface IGmsServiceBroker {
|
||||||
void getPlusService(IGmsCallbacks callback, int code, String str1, String str2, in String[] paramArrayOfString, String str3, in Bundle params);
|
void getPlusService(IGmsCallbacks callback, int code, String str1, String str2, in String[] paramArrayOfString, String str3, in Bundle params) = 0;
|
||||||
void getPanoramaService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getPanoramaService(IGmsCallbacks callback, int code, String str, in Bundle params) = 1;
|
||||||
void getAppDataSearchService(IGmsCallbacks callback, int code, String str);
|
void getAppDataSearchService(IGmsCallbacks callback, int code, String str) = 2;
|
||||||
void getWalletService(IGmsCallbacks callback, int code);
|
void getWalletService(IGmsCallbacks callback, int code) = 3;
|
||||||
void getPeopleService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getPeopleService(IGmsCallbacks callback, int code, String str, in Bundle params) = 4;
|
||||||
void getReportingService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getReportingService(IGmsCallbacks callback, int code, String str, in Bundle params) = 5;
|
||||||
void getLocationService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getLocationService(IGmsCallbacks callback, int code, String str, in Bundle params) = 6;
|
||||||
void getGoogleLocationManagerService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getGoogleLocationManagerService(IGmsCallbacks callback, int code, String str, in Bundle params) = 7;
|
||||||
void getGamesService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args, String str3, IBinder binder, String str4, in Bundle params);
|
void getGamesService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args, String str3, IBinder binder, String str4, in Bundle params) = 8;
|
||||||
void getAppStateService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args);
|
void getAppStateService(IGmsCallbacks callback, int code, String str1, String str2, in String[] args) = 9;
|
||||||
void getPlayLogService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getPlayLogService(IGmsCallbacks callback, int code, String str, in Bundle params) = 10;
|
||||||
void getAdMobService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getAdMobService(IGmsCallbacks callback, int code, String str, in Bundle params) = 11;
|
||||||
void getDroidGuardService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getDroidGuardService(IGmsCallbacks callback, int code, String str, in Bundle params) = 12;
|
||||||
void getLockboxService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getLockboxService(IGmsCallbacks callback, int code, String str, in Bundle params) = 13;
|
||||||
void getCastMirroringService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getCastMirroringService(IGmsCallbacks callback, int code, String str, in Bundle params) = 14;
|
||||||
void getNetworkQualityService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getNetworkQualityService(IGmsCallbacks callback, int code, String str, in Bundle params) = 15;
|
||||||
void getGoogleIdentityService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getGoogleIdentityService(IGmsCallbacks callback, int code, String str, in Bundle params) = 16;
|
||||||
void getGoogleFeedbackService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getGoogleFeedbackService(IGmsCallbacks callback, int code, String str, in Bundle params) = 17;
|
||||||
void getCastService(IGmsCallbacks callback, int code, String str, IBinder binder, in Bundle params);
|
void getCastService(IGmsCallbacks callback, int code, String str, IBinder binder, in Bundle params) = 18;
|
||||||
void getDriveService(IGmsCallbacks callback, int code, String str1, in String[] args, String str2, in Bundle params);
|
void getDriveService(IGmsCallbacks callback, int code, String str1, in String[] args, String str2, in Bundle params) = 19;
|
||||||
void getLightweightAppDataSearchService(IGmsCallbacks callback, int code, String str);
|
void getLightweightAppDataSearchService(IGmsCallbacks callback, int code, String str) = 20;
|
||||||
void getSearchAdministrationService(IGmsCallbacks callback, int code, String str);
|
void getSearchAdministrationService(IGmsCallbacks callback, int code, String str) = 21;
|
||||||
void getAutoBackupService(IGmsCallbacks callback, int code, String str, in Bundle params);
|
void getAutoBackupService(IGmsCallbacks callback, int code, String str, in Bundle params) = 22;
|
||||||
void getAddressService(IGmsCallbacks callback, int code, String str);
|
void getAddressService(IGmsCallbacks callback, int code, String str) = 23;
|
||||||
|
|
||||||
|
void getService(IGmsCallbacks callback, in GetServiceRequest request) = 45;
|
||||||
|
void validateAccount(IGmsCallbacks callback, in ValidateAccountRequest request) = 46;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.common.internal;
|
||||||
|
|
||||||
|
parcelable ValidateAccountRequest;
|
@ -0,0 +1,63 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.common.internal;
|
||||||
|
|
||||||
|
import android.accounts.Account;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.os.IBinder;
|
||||||
|
|
||||||
|
import com.google.android.gms.common.api.Scope;
|
||||||
|
|
||||||
|
import org.microg.gms.common.Constants;
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class GetServiceRequest extends AutoSafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private final int versionCode = 2;
|
||||||
|
|
||||||
|
@SafeParceled(2)
|
||||||
|
public final int serviceId;
|
||||||
|
|
||||||
|
@SafeParceled(3)
|
||||||
|
public int gmsVersion = Constants.MAX_REFERENCE_VERSION;
|
||||||
|
|
||||||
|
@SafeParceled(4)
|
||||||
|
public String packageName;
|
||||||
|
|
||||||
|
@SafeParceled(5)
|
||||||
|
public IBinder accountAccessor;
|
||||||
|
|
||||||
|
@SafeParceled(6)
|
||||||
|
public Scope[] scopes;
|
||||||
|
|
||||||
|
@SafeParceled(7)
|
||||||
|
public Bundle extras;
|
||||||
|
|
||||||
|
@SafeParceled(8)
|
||||||
|
public Account account;
|
||||||
|
|
||||||
|
private GetServiceRequest() {
|
||||||
|
serviceId = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetServiceRequest(int serviceId) {
|
||||||
|
this.serviceId = serviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<GetServiceRequest> CREATOR = new AutoCreator<>(GetServiceRequest.class);
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg 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.common.internal;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
|
||||||
|
public class ValidateAccountRequest extends AutoSafeParcelable {
|
||||||
|
public static Creator<ValidateAccountRequest> CREATOR = new AutoCreator<>(ValidateAccountRequest.class);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user