Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.applovin.exoplayer2.d;
import android.net.Uri;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.applovin.exoplayer2.d.m;
import com.applovin.exoplayer2.k.l;
import com.applovin.exoplayer2.k.t;
import com.applovin.exoplayer2.k.z;
import com.applovin.exoplayer2.l.ai;
import java.io.Closeable;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
public final class p implements r {
private final t.b a;
@Nullable
private final String f473b;
private final boolean c;
private final Map<String, String> d;
public p(@Nullable String str, boolean z, t.b bVar) {
com.applovin.exoplayer2.l.a.a((z && TextUtils.isEmpty(str)) ? false : true);
this.a = bVar;
this.f473b = str;
this.c = z;
this.d = new HashMap();
}
public void a(String str, String str2) {
com.applovin.exoplayer2.l.a.b(str);
com.applovin.exoplayer2.l.a.b(str2);
synchronized (this.d) {
this.d.put(str, str2);
}
}
@Override
public byte[] a(UUID uuid, m.d dVar) throws s {
return a(this.a, dVar.b() + "&signedRequest=" + ai.a(dVar.a()), null, Collections.emptyMap());
}
@Override
public byte[] a(UUID uuid, m.a aVar) throws s {
String str;
String b2 = aVar.b();
if (this.c || TextUtils.isEmpty(b2)) {
b2 = this.f473b;
}
if (!TextUtils.isEmpty(b2)) {
HashMap hashMap = new HashMap();
UUID uuid2 = com.applovin.exoplayer2.h.e;
if (uuid2.equals(uuid)) {
str = "text/xml";
} else {
str = com.applovin.exoplayer2.h.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 s(new l.a().a(Uri.EMPTY).a(), Uri.EMPTY, com.applovin.exoplayer2.common.a.u.a(), 0L, new IllegalStateException("No license URL"));
}
private static byte[] a(t.b bVar, String str, @Nullable byte[] bArr, Map<String, String> map) throws s {
z zVar = new z(bVar.a());
com.applovin.exoplayer2.k.l a = new l.a().a(str).a(map).a(2).a(bArr).b(1).a();
int i = 0;
com.applovin.exoplayer2.k.l lVar = a;
while (true) {
try {
com.applovin.exoplayer2.k.k kVar = new com.applovin.exoplayer2.k.k(zVar, lVar);
try {
byte[] a2 = ai.a((InputStream) kVar);
ai.a((Closeable) kVar);
return a2;
} catch (t.e e) {
String a3 = a(e, i);
if (a3 != null) {
i++;
lVar = lVar.b().a(a3).a();
ai.a((Closeable) kVar);
} else {
throw e;
}
}
} catch (Exception e2) {
throw new s(a, (Uri) com.applovin.exoplayer2.l.a.b(zVar.e()), zVar.b(), zVar.d(), e2);
}
}
}
@Nullable
private static String a(t.e eVar, int i) {
Map<String, List<String>> map;
List<String> list;
int i2 = eVar.d;
if (!((i2 == 307 || i2 == 308) && i < 5) || (map = eVar.f) == null || (list = map.get("Location")) == null || list.isEmpty()) {
return null;
}
return list.get(0);
}
}