Files
rr3-apk/decompiled-community/sources/com/applovin/impl/ji.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

109 lines
2.9 KiB
Java

package com.applovin.impl;
import csdk.gluads.Consts;
import java.nio.ByteBuffer;
import java.util.UUID;
/* loaded from: classes.dex */
public abstract class ji {
private static a b(byte[] bArr) {
bh bhVar = new bh(bArr);
if (bhVar.e() < 32) {
return null;
}
bhVar.f(0);
if (bhVar.j() != bhVar.a() + 4 || bhVar.j() != 1886614376) {
return null;
}
int c = j1.c(bhVar.j());
if (c > 1) {
pc.d("PsshAtomUtil", "Unsupported pssh version: " + c);
return null;
}
UUID uuid = new UUID(bhVar.s(), bhVar.s());
if (c == 1) {
bhVar.g(bhVar.A() * 16);
}
int A = bhVar.A();
if (A != bhVar.a()) {
return null;
}
byte[] bArr2 = new byte[A];
bhVar.a(bArr2, 0, A);
return new a(uuid, c, bArr2);
}
public static byte[] a(UUID uuid, byte[] bArr) {
return a(uuid, null, bArr);
}
public static byte[] a(UUID uuid, UUID[] uuidArr, byte[] bArr) {
int length = (bArr != null ? bArr.length : 0) + 32;
if (uuidArr != null) {
length += (uuidArr.length * 16) + 4;
}
ByteBuffer allocate = ByteBuffer.allocate(length);
allocate.putInt(length);
allocate.putInt(1886614376);
allocate.putInt(uuidArr != null ? 16777216 : 0);
allocate.putLong(uuid.getMostSignificantBits());
allocate.putLong(uuid.getLeastSignificantBits());
if (uuidArr != null) {
allocate.putInt(uuidArr.length);
for (UUID uuid2 : uuidArr) {
allocate.putLong(uuid2.getMostSignificantBits());
allocate.putLong(uuid2.getLeastSignificantBits());
}
}
if (bArr != null && bArr.length != 0) {
allocate.putInt(bArr.length);
allocate.put(bArr);
}
return allocate.array();
}
public static UUID c(byte[] bArr) {
a b = b(bArr);
if (b == null) {
return null;
}
return b.a;
}
public static int d(byte[] bArr) {
a b = b(bArr);
if (b == null) {
return -1;
}
return b.b;
}
public static class a {
private final UUID a;
private final int b;
private final byte[] c;
public a(UUID uuid, int i, byte[] bArr) {
this.a = uuid;
this.b = i;
this.c = bArr;
}
}
public static boolean a(byte[] bArr) {
return b(bArr) != null;
}
public static byte[] a(byte[] bArr, UUID uuid) {
a b = b(bArr);
if (b == null) {
return null;
}
if (uuid.equals(b.a)) {
return b.c;
}
pc.d("PsshAtomUtil", "UUID mismatch. Expected: " + uuid + ", got: " + b.a + Consts.STRING_PERIOD);
return null;
}
}