CrackMe.apk
Download file
package com.google.android.exoplayer2.upstream;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Util;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
public final class ByteArrayDataSink implements DataSink {
private ByteArrayOutputStream stream;
public void open(DataSpec dataSpec) {
if (dataSpec.length == -1) {
this.stream = new ByteArrayOutputStream();
return;
}
Assertions.checkArgument(dataSpec.length <= 2147483647L);
this.stream = new ByteArrayOutputStream((int) dataSpec.length);
}
public void close() throws IOException {
((ByteArrayOutputStream) Util.castNonNull(this.stream)).close();
}
public void write(byte[] bArr, int i, int i2) {
((ByteArrayOutputStream) Util.castNonNull(this.stream)).write(bArr, i, i2);
}
public byte[] getData() {
ByteArrayOutputStream byteArrayOutputStream = this.stream;
if (byteArrayOutputStream == null) {
return null;
}
return byteArrayOutputStream.toByteArray();
}
}
Download file