Files
rr3-apk/decompiled/sources/com/applovin/impl/wp.java
Daniel Elliott f9d20bb3fc 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>
2026-02-18 14:52:23 -08:00

79 lines
2.1 KiB
Java

package com.applovin.impl;
import android.text.TextUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import java.util.Locale;
import java.util.UUID;
/* loaded from: classes.dex */
public final class wp {
private final com.applovin.impl.sdk.j a;
private String b;
private final String c = a(uj.i, (String) vj.a(uj.h, (Object) null, com.applovin.impl.sdk.j.l()));
private final String d;
public String a() {
return this.d;
}
public String b() {
return this.c;
}
public String c() {
return this.b;
}
public wp(com.applovin.impl.sdk.j jVar) {
this.a = jVar;
this.d = a(uj.j, (String) jVar.a(sj.g));
a(d());
}
private String d() {
if (!((Boolean) this.a.a(sj.Z3)).booleanValue()) {
this.a.c(uj.g);
}
String str = (String) this.a.a(uj.g);
if (!StringUtils.isValidString(str)) {
return null;
}
this.a.J();
if (com.applovin.impl.sdk.n.a()) {
this.a.J().a("AppLovinSdk", "Using identifier (" + str + ") from previous session");
}
return str;
}
public static String a(com.applovin.impl.sdk.j jVar) {
uj ujVar = uj.k;
String str = (String) jVar.a(ujVar);
if (!TextUtils.isEmpty(str)) {
return str;
}
String valueOf = String.valueOf(((int) (Math.random() * 100.0d)) + 1);
jVar.b(ujVar, valueOf);
return valueOf;
}
private String a(uj ujVar, String str) {
String str2 = (String) vj.a(ujVar, (Object) null, com.applovin.impl.sdk.j.l());
if (StringUtils.isValidString(str2)) {
return str2;
}
if (!StringUtils.isValidString(str)) {
str = UUID.randomUUID().toString().toLowerCase(Locale.US);
}
vj.b(ujVar, str, com.applovin.impl.sdk.j.l());
return str;
}
public void a(String str) {
if (((Boolean) this.a.a(sj.Z3)).booleanValue()) {
this.a.b(uj.g, str);
}
this.b = str;
this.a.p().b(str, a());
}
}