Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
package com.google.android.datatransport.runtime.backends;
import com.google.android.datatransport.runtime.backends.BackendRequest;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class AutoValue_BackendRequest extends BackendRequest {
public final Iterable events;
public final byte[] extras;
@Override // com.google.android.datatransport.runtime.backends.BackendRequest
public Iterable getEvents() {
return this.events;
}
@Override // com.google.android.datatransport.runtime.backends.BackendRequest
public byte[] getExtras() {
return this.extras;
}
public AutoValue_BackendRequest(Iterable iterable, byte[] bArr) {
this.events = iterable;
this.extras = bArr;
}
public String toString() {
return "BackendRequest{events=" + this.events + ", extras=" + Arrays.toString(this.extras) + "}";
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof BackendRequest)) {
return false;
}
BackendRequest backendRequest = (BackendRequest) obj;
if (this.events.equals(backendRequest.getEvents())) {
if (Arrays.equals(this.extras, backendRequest instanceof AutoValue_BackendRequest ? ((AutoValue_BackendRequest) backendRequest).extras : backendRequest.getExtras())) {
return true;
}
}
return false;
}
public int hashCode() {
return ((this.events.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.extras);
}
public static final class Builder extends BackendRequest.Builder {
public Iterable events;
public byte[] extras;
@Override // com.google.android.datatransport.runtime.backends.BackendRequest.Builder
public BackendRequest.Builder setExtras(byte[] bArr) {
this.extras = bArr;
return this;
}
@Override // com.google.android.datatransport.runtime.backends.BackendRequest.Builder
public BackendRequest.Builder setEvents(Iterable iterable) {
if (iterable == null) {
throw new NullPointerException("Null events");
}
this.events = iterable;
return this;
}
@Override // com.google.android.datatransport.runtime.backends.BackendRequest.Builder
public BackendRequest build() {
String str = "";
if (this.events == null) {
str = " events";
}
if (!str.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + str);
}
return new AutoValue_BackendRequest(this.events, this.extras);
}
}
}

View File

@@ -0,0 +1,48 @@
package com.google.android.datatransport.runtime.backends;
import com.google.android.datatransport.runtime.backends.BackendResponse;
/* loaded from: classes2.dex */
public final class AutoValue_BackendResponse extends BackendResponse {
public final long nextRequestWaitMillis;
public final BackendResponse.Status status;
@Override // com.google.android.datatransport.runtime.backends.BackendResponse
public long getNextRequestWaitMillis() {
return this.nextRequestWaitMillis;
}
@Override // com.google.android.datatransport.runtime.backends.BackendResponse
public BackendResponse.Status getStatus() {
return this.status;
}
public AutoValue_BackendResponse(BackendResponse.Status status, long j) {
if (status == null) {
throw new NullPointerException("Null status");
}
this.status = status;
this.nextRequestWaitMillis = j;
}
public String toString() {
return "BackendResponse{status=" + this.status + ", nextRequestWaitMillis=" + this.nextRequestWaitMillis + "}";
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof BackendResponse)) {
return false;
}
BackendResponse backendResponse = (BackendResponse) obj;
return this.status.equals(backendResponse.getStatus()) && this.nextRequestWaitMillis == backendResponse.getNextRequestWaitMillis();
}
public int hashCode() {
int hashCode = (this.status.hashCode() ^ 1000003) * 1000003;
long j = this.nextRequestWaitMillis;
return hashCode ^ ((int) (j ^ (j >>> 32)));
}
}

View File

@@ -0,0 +1,70 @@
package com.google.android.datatransport.runtime.backends;
import android.content.Context;
import com.google.android.datatransport.runtime.time.Clock;
/* loaded from: classes2.dex */
public final class AutoValue_CreationContext extends CreationContext {
public final Context applicationContext;
public final String backendName;
public final Clock monotonicClock;
public final Clock wallClock;
@Override // com.google.android.datatransport.runtime.backends.CreationContext
public Context getApplicationContext() {
return this.applicationContext;
}
@Override // com.google.android.datatransport.runtime.backends.CreationContext
public String getBackendName() {
return this.backendName;
}
@Override // com.google.android.datatransport.runtime.backends.CreationContext
public Clock getMonotonicClock() {
return this.monotonicClock;
}
@Override // com.google.android.datatransport.runtime.backends.CreationContext
public Clock getWallClock() {
return this.wallClock;
}
public AutoValue_CreationContext(Context context, Clock clock, Clock clock2, String str) {
if (context == null) {
throw new NullPointerException("Null applicationContext");
}
this.applicationContext = context;
if (clock == null) {
throw new NullPointerException("Null wallClock");
}
this.wallClock = clock;
if (clock2 == null) {
throw new NullPointerException("Null monotonicClock");
}
this.monotonicClock = clock2;
if (str == null) {
throw new NullPointerException("Null backendName");
}
this.backendName = str;
}
public String toString() {
return "CreationContext{applicationContext=" + this.applicationContext + ", wallClock=" + this.wallClock + ", monotonicClock=" + this.monotonicClock + ", backendName=" + this.backendName + "}";
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof CreationContext)) {
return false;
}
CreationContext creationContext = (CreationContext) obj;
return this.applicationContext.equals(creationContext.getApplicationContext()) && this.wallClock.equals(creationContext.getWallClock()) && this.monotonicClock.equals(creationContext.getMonotonicClock()) && this.backendName.equals(creationContext.getBackendName());
}
public int hashCode() {
return ((((((this.applicationContext.hashCode() ^ 1000003) * 1000003) ^ this.wallClock.hashCode()) * 1000003) ^ this.monotonicClock.hashCode()) * 1000003) ^ this.backendName.hashCode();
}
}

View File

@@ -0,0 +1,6 @@
package com.google.android.datatransport.runtime.backends;
/* loaded from: classes2.dex */
public interface BackendFactory {
TransportBackend create(CreationContext creationContext);
}

View File

@@ -0,0 +1,6 @@
package com.google.android.datatransport.runtime.backends;
/* loaded from: classes2.dex */
public interface BackendRegistry {
TransportBackend get(String str);
}

View File

@@ -0,0 +1,23 @@
package com.google.android.datatransport.runtime.backends;
import com.google.android.datatransport.runtime.backends.AutoValue_BackendRequest;
/* loaded from: classes2.dex */
public abstract class BackendRequest {
public static abstract class Builder {
public abstract BackendRequest build();
public abstract Builder setEvents(Iterable iterable);
public abstract Builder setExtras(byte[] bArr);
}
public abstract Iterable getEvents();
public abstract byte[] getExtras();
public static Builder builder() {
return new AutoValue_BackendRequest.Builder();
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.datatransport.runtime.backends;
/* loaded from: classes2.dex */
public abstract class BackendResponse {
public enum Status {
OK,
TRANSIENT_ERROR,
FATAL_ERROR,
INVALID_PAYLOAD
}
public abstract long getNextRequestWaitMillis();
public abstract Status getStatus();
public static BackendResponse transientError() {
return new AutoValue_BackendResponse(Status.TRANSIENT_ERROR, -1L);
}
public static BackendResponse fatalError() {
return new AutoValue_BackendResponse(Status.FATAL_ERROR, -1L);
}
public static BackendResponse invalidPayload() {
return new AutoValue_BackendResponse(Status.INVALID_PAYLOAD, -1L);
}
public static BackendResponse ok(long j) {
return new AutoValue_BackendResponse(Status.OK, j);
}
}

View File

@@ -0,0 +1,19 @@
package com.google.android.datatransport.runtime.backends;
import android.content.Context;
import com.google.android.datatransport.runtime.time.Clock;
/* loaded from: classes2.dex */
public abstract class CreationContext {
public abstract Context getApplicationContext();
public abstract String getBackendName();
public abstract Clock getMonotonicClock();
public abstract Clock getWallClock();
public static CreationContext create(Context context, Clock clock, Clock clock2, String str) {
return new AutoValue_CreationContext(context, clock, clock2, str);
}
}

View File

@@ -0,0 +1,21 @@
package com.google.android.datatransport.runtime.backends;
import android.content.Context;
import com.google.android.datatransport.runtime.time.Clock;
/* loaded from: classes2.dex */
public class CreationContextFactory {
public final Context applicationContext;
public final Clock monotonicClock;
public final Clock wallClock;
public CreationContextFactory(Context context, Clock clock, Clock clock2) {
this.applicationContext = context;
this.wallClock = clock;
this.monotonicClock = clock2;
}
public CreationContext create(String str) {
return CreationContext.create(this.applicationContext, this.wallClock, this.monotonicClock, str);
}
}

View File

@@ -0,0 +1,32 @@
package com.google.android.datatransport.runtime.backends;
import android.content.Context;
import com.google.android.datatransport.runtime.dagger.internal.Factory;
import com.google.android.datatransport.runtime.time.Clock;
import javax.inject.Provider;
/* loaded from: classes2.dex */
public final class CreationContextFactory_Factory implements Factory {
public final Provider applicationContextProvider;
public final Provider monotonicClockProvider;
public final Provider wallClockProvider;
public CreationContextFactory_Factory(Provider provider, Provider provider2, Provider provider3) {
this.applicationContextProvider = provider;
this.wallClockProvider = provider2;
this.monotonicClockProvider = provider3;
}
@Override // javax.inject.Provider
public CreationContextFactory get() {
return newInstance((Context) this.applicationContextProvider.get(), (Clock) this.wallClockProvider.get(), (Clock) this.monotonicClockProvider.get());
}
public static CreationContextFactory_Factory create(Provider provider, Provider provider2, Provider provider3) {
return new CreationContextFactory_Factory(provider, provider2, provider3);
}
public static CreationContextFactory newInstance(Context context, Clock clock, Clock clock2) {
return new CreationContextFactory(context, clock, clock2);
}
}

View File

@@ -0,0 +1,124 @@
package com.google.android.datatransport.runtime.backends;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.ServiceInfo;
import android.os.Bundle;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes2.dex */
public class MetadataBackendRegistry implements BackendRegistry {
public final BackendFactoryProvider backendFactoryProvider;
public final Map backends;
public final CreationContextFactory creationContextFactory;
public MetadataBackendRegistry(Context context, CreationContextFactory creationContextFactory) {
this(new BackendFactoryProvider(context), creationContextFactory);
}
public MetadataBackendRegistry(BackendFactoryProvider backendFactoryProvider, CreationContextFactory creationContextFactory) {
this.backends = new HashMap();
this.backendFactoryProvider = backendFactoryProvider;
this.creationContextFactory = creationContextFactory;
}
@Override // com.google.android.datatransport.runtime.backends.BackendRegistry
public synchronized TransportBackend get(String str) {
if (this.backends.containsKey(str)) {
return (TransportBackend) this.backends.get(str);
}
BackendFactory backendFactory = this.backendFactoryProvider.get(str);
if (backendFactory == null) {
return null;
}
TransportBackend create = backendFactory.create(this.creationContextFactory.create(str));
this.backends.put(str, create);
return create;
}
public static class BackendFactoryProvider {
public final Context applicationContext;
public Map backendProviders = null;
public BackendFactoryProvider(Context context) {
this.applicationContext = context;
}
public BackendFactory get(String str) {
String str2 = (String) getBackendProviders().get(str);
if (str2 == null) {
return null;
}
try {
return (BackendFactory) Class.forName(str2).asSubclass(BackendFactory.class).getDeclaredConstructor(new Class[0]).newInstance(new Object[0]);
} catch (ClassNotFoundException e) {
Log.w("BackendRegistry", String.format("Class %s is not found.", str2), e);
return null;
} catch (IllegalAccessException e2) {
Log.w("BackendRegistry", String.format("Could not instantiate %s.", str2), e2);
return null;
} catch (InstantiationException e3) {
Log.w("BackendRegistry", String.format("Could not instantiate %s.", str2), e3);
return null;
} catch (NoSuchMethodException e4) {
Log.w("BackendRegistry", String.format("Could not instantiate %s", str2), e4);
return null;
} catch (InvocationTargetException e5) {
Log.w("BackendRegistry", String.format("Could not instantiate %s", str2), e5);
return null;
}
}
public final Map getBackendProviders() {
if (this.backendProviders == null) {
this.backendProviders = discover(this.applicationContext);
}
return this.backendProviders;
}
public final Map discover(Context context) {
Bundle metadata = getMetadata(context);
if (metadata == null) {
Log.w("BackendRegistry", "Could not retrieve metadata, returning empty list of transport backends.");
return Collections.emptyMap();
}
HashMap hashMap = new HashMap();
for (String str : metadata.keySet()) {
Object obj = metadata.get(str);
if ((obj instanceof String) && str.startsWith("backend:")) {
for (String str2 : ((String) obj).split(",", -1)) {
String trim = str2.trim();
if (!trim.isEmpty()) {
hashMap.put(trim, str.substring(8));
}
}
}
}
return hashMap;
}
public static Bundle getMetadata(Context context) {
try {
PackageManager packageManager = context.getPackageManager();
if (packageManager == null) {
Log.w("BackendRegistry", "Context has no PackageManager.");
return null;
}
ServiceInfo serviceInfo = packageManager.getServiceInfo(new ComponentName(context, (Class<?>) TransportBackendDiscovery.class), 128);
if (serviceInfo == null) {
Log.w("BackendRegistry", "TransportBackendDiscovery has no service info.");
return null;
}
return serviceInfo.metaData;
} catch (PackageManager.NameNotFoundException unused) {
Log.w("BackendRegistry", "Application info not found.");
return null;
}
}
}
}

View File

@@ -0,0 +1,29 @@
package com.google.android.datatransport.runtime.backends;
import android.content.Context;
import com.google.android.datatransport.runtime.dagger.internal.Factory;
import javax.inject.Provider;
/* loaded from: classes2.dex */
public final class MetadataBackendRegistry_Factory implements Factory {
public final Provider applicationContextProvider;
public final Provider creationContextFactoryProvider;
public MetadataBackendRegistry_Factory(Provider provider, Provider provider2) {
this.applicationContextProvider = provider;
this.creationContextFactoryProvider = provider2;
}
@Override // javax.inject.Provider
public MetadataBackendRegistry get() {
return newInstance((Context) this.applicationContextProvider.get(), this.creationContextFactoryProvider.get());
}
public static MetadataBackendRegistry_Factory create(Provider provider, Provider provider2) {
return new MetadataBackendRegistry_Factory(provider, provider2);
}
public static MetadataBackendRegistry newInstance(Context context, Object obj) {
return new MetadataBackendRegistry(context, (CreationContextFactory) obj);
}
}

View File

@@ -0,0 +1,10 @@
package com.google.android.datatransport.runtime.backends;
import com.google.android.datatransport.runtime.EventInternal;
/* loaded from: classes2.dex */
public interface TransportBackend {
EventInternal decorate(EventInternal eventInternal);
BackendResponse send(BackendRequest backendRequest);
}

View File

@@ -0,0 +1,13 @@
package com.google.android.datatransport.runtime.backends;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
/* loaded from: classes2.dex */
public class TransportBackendDiscovery extends Service {
@Override // android.app.Service
public IBinder onBind(Intent intent) {
return null;
}
}