mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-24 03:35:50 +01:00
Add more stubs for measurement API
This commit is contained in:
parent
2076970d40
commit
0388917350
@ -0,0 +1,3 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
parcelable AppMetadata;
|
@ -0,0 +1,3 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
parcelable ConditionalUserPropertyParcel;
|
@ -0,0 +1,3 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
parcelable EventParcel;
|
@ -1,5 +1,25 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
interface IMeasurementService {
|
||||
import com.google.android.gms.measurement.internal.AppMetadata;
|
||||
import com.google.android.gms.measurement.internal.ConditionalUserPropertyParcel;
|
||||
import com.google.android.gms.measurement.internal.EventParcel;
|
||||
|
||||
}
|
||||
interface IMeasurementService {
|
||||
void f1(in EventParcel p0, in AppMetadata p1) = 0;
|
||||
// void zza(UserAttributeParcel p0, AppMetadata p1) = 1;
|
||||
void f4(in AppMetadata p0) = 3;
|
||||
// void zza(EventParcel p0, String p1, String p2) = 4;
|
||||
// void zzb(AppMetadata p0) = 5;
|
||||
// List<UserAttributeParcel> zza(AppMetadata p0, boolean p1) = 6;
|
||||
// byte[] zza(EventParcel p0, String p1) = 8;
|
||||
void f10(long p0, String p1, String p2, String p3) = 9;
|
||||
String f11(in AppMetadata p0) = 10;
|
||||
void f12(in ConditionalUserPropertyParcel p0, in AppMetadata p1) = 11;
|
||||
// void zza(ConditionalUserPropertyParcel p0) = 12;
|
||||
// List<UserAttributeParcelzkr> zza(String p0, String p1, boolean p2, AppMetadata p3) = 13;
|
||||
// List<UserAttributeParcel> zza(String p0, String p1, String p2, boolean p3) = 14;
|
||||
// List<ConditionalUserPropertyParcel> zza(String p0, String p1, AppMetadata p2) = 15;
|
||||
// List<ConditionalUserPropertyParcel> zza(String p0, String p1, String p2) = 16;
|
||||
// void zzd(AppMetadata p0) = 17;
|
||||
// void zza(Bundle p0, AppMetadata p1) = 18;
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
parcelable UserAttributeParcel;
|
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class AppMetadata extends AutoSafeParcelable {
|
||||
@Field(2)
|
||||
public String packageName;
|
||||
@Field(4)
|
||||
public String versionName;
|
||||
@Field(11)
|
||||
public long versionCode;
|
||||
|
||||
public static final Creator<AppMetadata> CREATOR = new AutoCreator<>(AppMetadata.class);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ConditionalUserPropertyParcel extends AutoSafeParcelable {
|
||||
public static final Creator<ConditionalUserPropertyParcel> CREATOR = new AutoCreator<>(ConditionalUserPropertyParcel.class);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class EventParcel extends AutoSafeParcelable {
|
||||
public static final Creator<EventParcel> CREATOR = new AutoCreator<>(EventParcel.class);
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020, microG Project Team
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package com.google.android.gms.measurement.internal;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class UserAttributeParcel extends AutoSafeParcelable {
|
||||
public static final Creator<UserAttributeParcel> CREATOR = new AutoCreator<>(UserAttributeParcel.class);
|
||||
}
|
@ -20,6 +20,9 @@ import android.os.Parcel;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.android.gms.measurement.internal.AppMetadata;
|
||||
import com.google.android.gms.measurement.internal.ConditionalUserPropertyParcel;
|
||||
import com.google.android.gms.measurement.internal.EventParcel;
|
||||
import com.google.android.gms.measurement.internal.IMeasurementService;
|
||||
|
||||
public class MeasurementServiceImpl extends IMeasurementService.Stub {
|
||||
@ -31,4 +34,30 @@ public class MeasurementServiceImpl extends IMeasurementService.Stub {
|
||||
Log.d(TAG, "onTransact [unknown]: " + code + ", " + data + ", " + flags);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void f1(EventParcel p0, AppMetadata p1) throws RemoteException {
|
||||
Log.d(TAG, "f1: " + p1.packageName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void f4(AppMetadata p0) throws RemoteException {
|
||||
Log.d(TAG, "f4: " + p0.packageName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void f10(long p0, String p1, String p2, String p3) throws RemoteException {
|
||||
Log.d(TAG, "f10: " + p1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String f11(AppMetadata p0) throws RemoteException {
|
||||
Log.d(TAG, "f11: " + p0.packageName);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void f12(ConditionalUserPropertyParcel p0, AppMetadata p1) throws RemoteException {
|
||||
Log.d(TAG, "f12: " + p1.packageName);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user