Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 o.java 源代码,内容仅作参考
package com.yandex.mobile.ads.exo.drm;
import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.yandex.mobile.ads.embedded.guava.collect.q;
import com.yandex.mobile.ads.exo.drm.m;
import com.yandex.mobile.ads.impl.ao;
import com.yandex.mobile.ads.impl.cg;
import com.yandex.mobile.ads.impl.da1;
import com.yandex.mobile.ads.impl.lm;
import com.yandex.mobile.ads.impl.nm;
import com.yandex.mobile.ads.impl.o41;
import com.yandex.mobile.ads.impl.pa;
import com.yandex.mobile.ads.impl.pm;
import com.yandex.mobile.ads.impl.r00;
import com.yandex.mobile.ads.impl.tb0;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public final class o implements p {
private final lm.a a;
@Nullable
private final String f5804b;
private final boolean c;
private final HashMap d;
public o(@Nullable String str, boolean z, ao.a aVar) {
pa.a((z && TextUtils.isEmpty(str)) ? false : true);
this.a = aVar;
this.f5804b = str;
this.c = z;
this.d = new HashMap();
}
public final byte[] a(m.d dVar) throws tb0 {
return a(this.a, dVar.b() + "&signedRequest=" + da1.a(dVar.a()), null, Collections.emptyMap());
}
public final byte[] a(UUID uuid, m.a aVar) throws tb0 {
String str;
String b2 = aVar.b();
if (this.c || TextUtils.isEmpty(b2)) {
b2 = this.f5804b;
}
if (!TextUtils.isEmpty(b2)) {
HashMap hashMap = new HashMap();
UUID uuid2 = cg.e;
if (uuid2.equals(uuid)) {
str = "text/xml";
} else {
str = cg.c.equals(uuid) ? "application/json" : "application/octet-stream";
}
hashMap.put("Content-Type", str);
if (uuid2.equals(uuid)) {
hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense");
}
synchronized (this.d) {
hashMap.putAll(this.d);
}
return a(this.a, b2, aVar.a(), hashMap);
}
throw new tb0(new pm.a().a(Uri.EMPTY).a(), Uri.EMPTY, q.h(), 0L, new IllegalStateException("No license URL"));
}
public final void a(String str, String str2) {
str.getClass();
str2.getClass();
synchronized (this.d) {
this.d.put(str, str2);
}
}
private static byte[] a(lm.a aVar, String str, @Nullable byte[] bArr, Map<String, String> map) throws tb0 {
Map<String, List<String>> map2;
List<String> list;
String str2;
o41 o41Var = new o41(aVar.a());
pm a = new pm.a().b(str).a(map).b().a(bArr).a(1).a();
int i = 0;
int i2 = 0;
pm pmVar = a;
while (true) {
try {
nm nmVar = new nm(o41Var, pmVar);
try {
int i3 = da1.a;
byte[] bArr2 = new byte[4096];
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
while (true) {
int read = nmVar.read(bArr2);
if (read != -1) {
byteArrayOutputStream.write(bArr2, i, read);
} else {
byte[] byteArray = byteArrayOutputStream.toByteArray();
da1.a((Closeable) nmVar);
return byteArray;
}
}
} catch (r00 e) {
int i4 = e.d;
if ((((i4 == 307 || i4 == 308) && i2 < 5) ? 1 : i) != 0 && (map2 = e.e) != null && (list = map2.get("Location")) != null && !list.isEmpty()) {
str2 = list.get(i);
if (str2 == null) {
i2++;
pmVar = pmVar.a().b(str2).a();
da1.a((Closeable) nmVar);
} else {
throw e;
}
}
str2 = null;
if (str2 == null) {
}
}
} catch (Exception e2) {
Uri g = o41Var.g();
g.getClass();
throw new tb0(a, g, o41Var.b(), o41Var.f(), e2);
}
}
}
}