MyRecorder v1.01.90.0219版本的 MD5 值为:c361f51174a0bf833abfa72929caf8d3
以下内容为反编译后的 p.java 源代码,内容仅作参考
package com.applovin.exoplayer2.d;
import android.net.Uri;
import android.text.TextUtils;
import com.applovin.exoplayer2.d.m;
import com.applovin.exoplayer2.k.l;
import com.applovin.exoplayer2.k.t;
import com.applovin.exoplayer2.l.ai;
import com.google.common.net.HttpHeaders;
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 ts;
private final String tt;
private final boolean tu;
private final Map<String, String> tv;
public p(String str, boolean z7, t.b bVar) {
com.applovin.exoplayer2.l.a.checkArgument((z7 && TextUtils.isEmpty(str)) ? false : true);
this.ts = bVar;
this.tt = str;
this.tu = z7;
this.tv = new HashMap();
}
private static String a(t.e eVar, int i10) {
Map<String, List<String>> map;
List<String> list;
int i11 = eVar.aaC;
if (!((i11 == 307 || i11 == 308) && i10 < 5) || (map = eVar.aaM) == null || (list = map.get(HttpHeaders.LOCATION)) == null || list.isEmpty()) {
return null;
}
return list.get(0);
}
private static byte[] a(t.b bVar, String str, byte[] bArr, Map<String, String> map) throws s {
com.applovin.exoplayer2.k.z zVar = new com.applovin.exoplayer2.k.z(bVar.ox());
com.applovin.exoplayer2.k.l oj2 = new l.a().aK(str).d(map).fh(2).G(bArr).fi(1).oj();
int i10 = 0;
com.applovin.exoplayer2.k.l lVar = oj2;
while (true) {
try {
com.applovin.exoplayer2.k.k kVar = new com.applovin.exoplayer2.k.k(zVar, lVar);
try {
byte[] a10 = ai.a((InputStream) kVar);
ai.a((Closeable) kVar);
return a10;
} catch (t.e e10) {
String a11 = a(e10, i10);
if (a11 == null) {
throw e10;
}
i10++;
lVar = lVar.oi().aK(a11).oj();
ai.a((Closeable) kVar);
}
} catch (Exception e11) {
throw new s(oj2, (Uri) com.applovin.exoplayer2.l.a.checkNotNull(zVar.oI()), zVar.kT(), zVar.oH(), e11);
}
}
}
@Override
public byte[] a(UUID uuid, m.a aVar) throws s {
String hP = aVar.hP();
if (this.tu || TextUtils.isEmpty(hP)) {
hP = this.tt;
}
if (TextUtils.isEmpty(hP)) {
throw new s(new l.a().e(Uri.EMPTY).oj(), Uri.EMPTY, com.applovin.exoplayer2.common.a.u.gi(), 0L, new IllegalStateException("No license URL"));
}
HashMap hashMap = new HashMap();
UUID uuid2 = com.applovin.exoplayer2.h.f8052an;
hashMap.put("Content-Type", uuid2.equals(uuid) ? "text/xml" : com.applovin.exoplayer2.h.f8050al.equals(uuid) ? "application/json" : "application/octet-stream");
if (uuid2.equals(uuid)) {
hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense");
}
synchronized (this.tv) {
hashMap.putAll(this.tv);
}
return a(this.ts, hP, aVar.hO(), hashMap);
}
@Override
public byte[] a(UUID uuid, m.d dVar) throws s {
return a(this.ts, dVar.hQ() + "&signedRequest=" + ai.J(dVar.hO()), null, Collections.emptyMap());
}
public void c(String str, String str2) {
com.applovin.exoplayer2.l.a.checkNotNull(str);
com.applovin.exoplayer2.l.a.checkNotNull(str2);
synchronized (this.tv) {
this.tv.put(str, str2);
}
}
}