- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
226 lines
8.8 KiB
Java
226 lines
8.8 KiB
Java
package com.applovin.impl.privacy.cmp;
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import com.applovin.impl.m3;
|
|
import com.applovin.impl.sdk.j;
|
|
import com.applovin.impl.sdk.n;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.applovin.impl.yp;
|
|
import com.applovin.sdk.AppLovinCmpError;
|
|
import com.applovin.sdk.AppLovinSdkConfiguration;
|
|
import com.google.android.ump.ConsentDebugSettings;
|
|
import com.google.android.ump.ConsentForm;
|
|
import com.google.android.ump.ConsentInformation;
|
|
import com.google.android.ump.ConsentRequestParameters;
|
|
import com.google.android.ump.FormError;
|
|
import com.google.android.ump.UserMessagingPlatform;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class a {
|
|
private final j a;
|
|
private final n b;
|
|
private ConsentForm c;
|
|
|
|
/* renamed from: com.applovin.impl.privacy.cmp.a$a, reason: collision with other inner class name */
|
|
public class C0033a implements ConsentInformation.OnConsentInfoUpdateSuccessListener {
|
|
final /* synthetic */ Activity a;
|
|
final /* synthetic */ d b;
|
|
|
|
/* renamed from: com.applovin.impl.privacy.cmp.a$a$a, reason: collision with other inner class name */
|
|
public class C0034a implements UserMessagingPlatform.OnConsentFormLoadSuccessListener {
|
|
public C0034a() {
|
|
}
|
|
|
|
@Override // com.google.android.ump.UserMessagingPlatform.OnConsentFormLoadSuccessListener
|
|
public void onConsentFormLoadSuccess(ConsentForm consentForm) {
|
|
a.this.a("Successfully loaded consent form");
|
|
a.this.c = consentForm;
|
|
C0033a.this.b.onFlowLoaded(null);
|
|
}
|
|
}
|
|
|
|
/* renamed from: com.applovin.impl.privacy.cmp.a$a$b */
|
|
public class b implements UserMessagingPlatform.OnConsentFormLoadFailureListener {
|
|
public b() {
|
|
}
|
|
|
|
@Override // com.google.android.ump.UserMessagingPlatform.OnConsentFormLoadFailureListener
|
|
public void onConsentFormLoadFailure(FormError formError) {
|
|
a.this.b("Failed to load with error: " + formError.getMessage());
|
|
C0033a c0033a = C0033a.this;
|
|
c0033a.b.onFlowLoadFailed(a.this.a(formError, "Consent form load failed"));
|
|
}
|
|
}
|
|
|
|
public C0033a(Activity activity, d dVar) {
|
|
this.a = activity;
|
|
this.b = dVar;
|
|
}
|
|
|
|
@Override // com.google.android.ump.ConsentInformation.OnConsentInfoUpdateSuccessListener
|
|
public void onConsentInfoUpdateSuccess() {
|
|
ConsentInformation consentInformation = UserMessagingPlatform.getConsentInformation(this.a);
|
|
boolean isConsentFormAvailable = consentInformation.isConsentFormAvailable();
|
|
int consentStatus = consentInformation.getConsentStatus();
|
|
a.this.a("Loaded parameters consentStatus: " + consentStatus + ", consentFormAvailable: " + isConsentFormAvailable);
|
|
if (!isConsentFormAvailable) {
|
|
a.this.b("Failed to load form.");
|
|
this.b.onFlowLoadFailed(new CmpErrorImpl(AppLovinCmpError.Code.FORM_UNAVAILABLE, "Consent form unavailable"));
|
|
return;
|
|
}
|
|
if (consentStatus == 2) {
|
|
a.this.a("Successfully requested consent info");
|
|
a.this.a("Loading consent form...");
|
|
UserMessagingPlatform.loadConsentForm(this.a, new C0034a(), new b());
|
|
return;
|
|
}
|
|
a.this.b("Failed to load with consent status: " + consentStatus);
|
|
this.b.onFlowLoadFailed(new CmpErrorImpl(AppLovinCmpError.Code.FORM_NOT_REQUIRED, "Consent form not required for consent status: " + consentStatus));
|
|
}
|
|
}
|
|
|
|
public class b implements ConsentInformation.OnConsentInfoUpdateFailureListener {
|
|
final /* synthetic */ d a;
|
|
|
|
public b(d dVar) {
|
|
this.a = dVar;
|
|
}
|
|
|
|
@Override // com.google.android.ump.ConsentInformation.OnConsentInfoUpdateFailureListener
|
|
public void onConsentInfoUpdateFailure(FormError formError) {
|
|
a.this.b("Failed to request consent info with error: " + formError.getMessage());
|
|
this.a.onFlowLoadFailed(a.this.a(formError, "Consent info update failed"));
|
|
}
|
|
}
|
|
|
|
public class c implements ConsentForm.OnConsentFormDismissedListener {
|
|
final /* synthetic */ d a;
|
|
|
|
public c(d dVar) {
|
|
this.a = dVar;
|
|
}
|
|
|
|
@Override // com.google.android.ump.ConsentForm.OnConsentFormDismissedListener
|
|
public void onConsentFormDismissed(FormError formError) {
|
|
if (formError == null) {
|
|
a.this.a("Consent form finished showing");
|
|
this.a.onFlowHidden(null);
|
|
return;
|
|
}
|
|
a.this.b("Failed to show with error: " + formError.getMessage());
|
|
this.a.onFlowShowFailed(a.this.a(formError, "Consent form show failed"));
|
|
}
|
|
}
|
|
|
|
public interface d {
|
|
void onFlowHidden(Bundle bundle);
|
|
|
|
void onFlowLoadFailed(CmpErrorImpl cmpErrorImpl);
|
|
|
|
void onFlowLoaded(Bundle bundle);
|
|
|
|
void onFlowShowFailed(CmpErrorImpl cmpErrorImpl);
|
|
}
|
|
|
|
public a(j jVar) {
|
|
this.a = jVar;
|
|
this.b = jVar.J();
|
|
ConsentInformation consentInformation = UserMessagingPlatform.getConsentInformation(j.l());
|
|
a("Initializing with SDK Version: " + b() + ", consentStatus: " + consentInformation.getConsentStatus() + ", consentFormAvailable: " + consentInformation.isConsentFormAvailable());
|
|
}
|
|
|
|
public void a() {
|
|
if (this.c != null) {
|
|
this.c = null;
|
|
}
|
|
}
|
|
|
|
public String b() {
|
|
return null;
|
|
}
|
|
|
|
public void c() {
|
|
a("Resetting consent information");
|
|
UserMessagingPlatform.getConsentInformation(j.l()).reset();
|
|
}
|
|
|
|
public boolean d() {
|
|
return true;
|
|
}
|
|
|
|
public boolean e() {
|
|
return true;
|
|
}
|
|
|
|
public void a(Activity activity, m3 m3Var, d dVar) {
|
|
ConsentRequestParameters.Builder builder = new ConsentRequestParameters.Builder();
|
|
if (yp.c(this.a) && m3Var.a() == AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR) {
|
|
builder.setConsentDebugSettings(new ConsentDebugSettings.Builder(activity).setForceTesting(true).setDebugGeography(1).addTestDeviceHashedId(StringUtils.emptyIfNull(this.a.g0().getExtraParameters().get("google_test_device_hashed_id"))).build());
|
|
}
|
|
UserMessagingPlatform.getConsentInformation(activity).requestConsentInfoUpdate(activity, builder.build(), new C0033a(activity, dVar), new b(dVar));
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
/* JADX WARN: Code restructure failed: missing block: B:8:0x0010, code lost:
|
|
|
|
if (r1 != 4) goto L13;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public com.applovin.impl.privacy.cmp.CmpErrorImpl a(com.google.android.ump.FormError r4, java.lang.String r5) {
|
|
/*
|
|
r3 = this;
|
|
com.applovin.sdk.AppLovinCmpError$Code r0 = com.applovin.sdk.AppLovinCmpError.Code.UNSPECIFIED
|
|
int r1 = r4.getErrorCode()
|
|
r2 = 1
|
|
if (r1 == r2) goto L16
|
|
r2 = 2
|
|
if (r1 == r2) goto L16
|
|
r2 = 3
|
|
if (r1 == r2) goto L13
|
|
r2 = 4
|
|
if (r1 == r2) goto L16
|
|
goto L18
|
|
L13:
|
|
com.applovin.sdk.AppLovinCmpError$Code r0 = com.applovin.sdk.AppLovinCmpError.Code.INTEGRATION_ERROR
|
|
goto L18
|
|
L16:
|
|
com.applovin.sdk.AppLovinCmpError$Code r0 = com.applovin.sdk.AppLovinCmpError.Code.FORM_UNAVAILABLE
|
|
L18:
|
|
com.applovin.impl.privacy.cmp.CmpErrorImpl r1 = new com.applovin.impl.privacy.cmp.CmpErrorImpl
|
|
int r2 = r4.getErrorCode()
|
|
java.lang.String r4 = r4.getMessage()
|
|
r1.<init>(r0, r5, r2, r4)
|
|
return r1
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.privacy.cmp.a.a(com.google.android.ump.FormError, java.lang.String):com.applovin.impl.privacy.cmp.CmpErrorImpl");
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(String str) {
|
|
if (n.a()) {
|
|
this.b.a("GoogleCmpAdapter", str);
|
|
}
|
|
}
|
|
|
|
public void b(Activity activity, m3 m3Var, d dVar) {
|
|
if (this.c == null) {
|
|
b("Failed to show - not ready yet");
|
|
dVar.onFlowShowFailed(new CmpErrorImpl(AppLovinCmpError.Code.FORM_UNAVAILABLE, "Consent form not ready"));
|
|
} else {
|
|
a("Showing consent form...");
|
|
this.c.show(activity, new c(dVar));
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void b(String str) {
|
|
if (n.a()) {
|
|
this.b.b("GoogleCmpAdapter", str);
|
|
}
|
|
}
|
|
}
|