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,46 @@
package com.applovin.impl.privacy.cmp;
import com.applovin.sdk.AppLovinCmpError;
/* loaded from: classes2.dex */
public class CmpErrorImpl implements AppLovinCmpError {
private final AppLovinCmpError.Code a;
private final String b;
private final int c;
private final String d;
public CmpErrorImpl(AppLovinCmpError.Code code, String str) {
this(code, str, -1, "");
}
@Override // com.applovin.sdk.AppLovinCmpError
public int getCmpCode() {
return this.c;
}
@Override // com.applovin.sdk.AppLovinCmpError
public String getCmpMessage() {
return this.d;
}
@Override // com.applovin.sdk.AppLovinCmpError
public AppLovinCmpError.Code getCode() {
return this.a;
}
@Override // com.applovin.sdk.AppLovinCmpError
public String getMessage() {
return this.b;
}
public String toString() {
return "CmpErrorImpl(code=" + getCode() + ", message=" + getMessage() + ", cmpCode=" + getCmpCode() + ", cmpMessage=" + getCmpMessage() + ")";
}
public CmpErrorImpl(AppLovinCmpError.Code code, String str, int i, String str2) {
this.a = code;
this.b = str;
this.c = i;
this.d = str2;
}
}

View File

@@ -0,0 +1,206 @@
package com.applovin.impl.privacy.cmp;
import android.app.Activity;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.applovin.impl.i4;
import com.applovin.impl.m3;
import com.applovin.impl.privacy.cmp.a;
import com.applovin.impl.sdk.j;
import com.applovin.impl.sdk.n;
import com.applovin.impl.yp;
import com.applovin.sdk.AppLovinCmpError;
import com.applovin.sdk.AppLovinCmpService;
import com.applovin.sdk.AppLovinSdkUtils;
/* loaded from: classes2.dex */
public class CmpServiceImpl implements AppLovinCmpService, a.d {
private final j a;
private final m3 b;
private com.applovin.impl.privacy.cmp.a c = b();
private d d;
private e e;
public class a implements d {
final /* synthetic */ AppLovinCmpService.OnCompletedListener a;
final /* synthetic */ Activity b;
/* renamed from: com.applovin.impl.privacy.cmp.CmpServiceImpl$a$a, reason: collision with other inner class name */
public class C0032a implements e {
public C0032a() {
}
@Override // com.applovin.impl.privacy.cmp.CmpServiceImpl.e
public void a(AppLovinCmpError appLovinCmpError) {
a.this.a.onCompleted(appLovinCmpError);
}
}
public a(AppLovinCmpService.OnCompletedListener onCompletedListener, Activity activity) {
this.a = onCompletedListener;
this.b = activity;
}
@Override // com.applovin.impl.privacy.cmp.CmpServiceImpl.d
public void a(AppLovinCmpError appLovinCmpError) {
if (appLovinCmpError != null) {
this.a.onCompleted(appLovinCmpError);
} else {
CmpServiceImpl.this.showCmp(this.b, new C0032a());
}
}
}
public class b implements Runnable {
final /* synthetic */ Activity a;
public b(Activity activity) {
this.a = activity;
}
@Override // java.lang.Runnable
public void run() {
CmpServiceImpl.this.c.a(this.a, CmpServiceImpl.this.b, CmpServiceImpl.this);
}
}
public class c implements Runnable {
final /* synthetic */ Activity a;
public c(Activity activity) {
this.a = activity;
}
@Override // java.lang.Runnable
public void run() {
CmpServiceImpl.this.c.b(this.a, CmpServiceImpl.this.b, CmpServiceImpl.this);
}
}
public interface d {
void a(AppLovinCmpError appLovinCmpError);
}
public interface e {
void a(AppLovinCmpError appLovinCmpError);
}
public CmpServiceImpl(j jVar) {
this.a = jVar;
this.b = new m3(jVar.u().f());
}
private void c() {
if (hasSupportedCmp()) {
this.c.c();
}
}
@Override // com.applovin.sdk.AppLovinCmpService
public boolean hasSupportedCmp() {
return this.c != null;
}
public void loadCmp(Activity activity, d dVar) {
if (!hasSupportedCmp()) {
dVar.a(new CmpErrorImpl(AppLovinCmpError.Code.INTEGRATION_ERROR, "A supported CMP is not integrated"));
return;
}
this.d = dVar;
b bVar = new b(activity);
if (this.c.d()) {
AppLovinSdkUtils.runOnUiThread(bVar);
} else {
bVar.run();
}
}
@Override // com.applovin.impl.privacy.cmp.a.d
public void onFlowHidden(Bundle bundle) {
b((AppLovinCmpError) null);
a();
}
@Override // com.applovin.impl.privacy.cmp.a.d
public void onFlowLoadFailed(CmpErrorImpl cmpErrorImpl) {
a(cmpErrorImpl);
a();
}
@Override // com.applovin.impl.privacy.cmp.a.d
public void onFlowLoaded(Bundle bundle) {
a((AppLovinCmpError) null);
}
@Override // com.applovin.impl.privacy.cmp.a.d
public void onFlowShowFailed(CmpErrorImpl cmpErrorImpl) {
b(cmpErrorImpl);
a();
}
public void showCmp(Activity activity, e eVar) {
c cVar = new c(activity);
this.e = eVar;
if (this.c.e()) {
AppLovinSdkUtils.runOnUiThread(cVar);
} else {
cVar.run();
}
}
@Override // com.applovin.sdk.AppLovinCmpService
public void showCmpForExistingUser(@NonNull Activity activity, @NonNull AppLovinCmpService.OnCompletedListener onCompletedListener) {
this.a.J();
if (n.a()) {
this.a.J().a("AppLovinCmpService", "showCmpForExistingUser(activity=" + activity + ", completedListener=" + onCompletedListener + ")");
}
if (!hasSupportedCmp()) {
onCompletedListener.onCompleted(new CmpErrorImpl(AppLovinCmpError.Code.INTEGRATION_ERROR, "A supported CMP is not integrated"));
} else {
c();
loadCmp(activity, new a(onCompletedListener, activity));
}
}
@NonNull
public String toString() {
return "[CmpService]";
}
private void b(AppLovinCmpError appLovinCmpError) {
e eVar = this.e;
if (eVar == null) {
return;
}
eVar.a(appLovinCmpError);
this.e = null;
}
private com.applovin.impl.privacy.cmp.a b() {
if (yp.a("com.google.android.ump.ConsentForm")) {
return new com.applovin.impl.privacy.cmp.a(this.a);
}
if (!this.a.u().k() || this.a.u().e() != i4.a.UNIFIED) {
return null;
}
n.h("AppLovinSdk", "Could not load Google UMP. Please add the Google User Messaging Platform SDK into your application. Instructions can be found here: https://developers.applovin.com/en/android/overview/terms-and-privacy-policy-flow#enabling-google-ump");
return null;
}
private void a(AppLovinCmpError appLovinCmpError) {
d dVar = this.d;
if (dVar == null) {
return;
}
dVar.a(appLovinCmpError);
this.d = null;
}
private void a() {
com.applovin.impl.privacy.cmp.a aVar = this.c;
if (aVar == null) {
return;
}
aVar.a();
}
}

View File

@@ -0,0 +1,225 @@
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);
}
}
}