Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.mbridge.msdk.foundation.download.utils;
/* loaded from: classes4.dex */
public interface ILogger {
void log(String str, Exception exc);
void log(String str, String str2);
}

View File

@@ -0,0 +1,97 @@
package com.mbridge.msdk.foundation.download.utils;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.download.resource.stream.DownloadFileOutputStream;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.thrid.okhttp.Response;
import com.mbridge.msdk.thrid.okhttp.ResponseBody;
import java.io.File;
import java.io.FileFilter;
import java.io.InputStream;
import java.util.Arrays;
/* loaded from: classes4.dex */
public class Objects {
public static boolean isNull(Object obj) {
return obj == null;
}
public static void closeInputStream(InputStream inputStream) {
if (inputStream == null) {
return;
}
try {
inputStream.close();
} catch (Exception e) {
af.a("closeStream", e.getLocalizedMessage());
}
}
public static void closeOutputStream(DownloadFileOutputStream downloadFileOutputStream) {
if (downloadFileOutputStream == null) {
return;
}
try {
downloadFileOutputStream.close();
} catch (Exception e) {
af.a("closeStream", e.getLocalizedMessage());
}
}
public static void closeResponse(Response response) {
if (response == null) {
return;
}
try {
if (response.body() != null) {
response.body().close();
}
response.close();
} catch (Exception e) {
af.a("closeStream", e.getLocalizedMessage());
}
}
public static void closeResponseBody(ResponseBody responseBody) {
if (responseBody == null) {
return;
}
try {
responseBody.close();
} catch (Exception e) {
af.a("closeStream", e.getLocalizedMessage());
}
}
public static boolean exists(File file, String str, String str2) {
if (file == null || TextUtils.isEmpty(str)) {
return false;
}
boolean exists = file.exists();
return !exists ? doubleCheckExists(file, str, str2) : exists;
}
private static boolean doubleCheckExists(File file, final String str, final String str2) {
File[] fileArr;
try {
fileArr = file.getParentFile().listFiles(new FileFilter() { // from class: com.mbridge.msdk.foundation.download.utils.Objects.1
@Override // java.io.FileFilter
public boolean accept(File file2) {
return TextUtils.equals(file2.getAbsolutePath(), str + str2);
}
});
} catch (Exception e) {
af.a("doubleCheckExists", e.getLocalizedMessage());
fileArr = null;
}
return fileArr != null && file.length() > 0;
}
public static int hash(Object... objArr) {
return Arrays.hashCode(objArr);
}
public static boolean isNotNull(Object obj) {
return !isNull(obj);
}
}

View File

@@ -0,0 +1,89 @@
package com.mbridge.msdk.foundation.download.utils;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.ZipInputStream;
/* loaded from: classes4.dex */
public class UnzipUtility {
private static final int BUFFER_SIZE = 4096;
private static final String TAG = "UnzipUtility";
private void extractFile(ZipInputStream zipInputStream, String str) throws IOException {
BufferedOutputStream bufferedOutputStream;
File file = new File(str);
if (!file.getParentFile().exists()) {
file.getParentFile().mkdirs();
}
BufferedOutputStream bufferedOutputStream2 = null;
try {
try {
bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file));
} catch (Throwable th) {
th = th;
}
} catch (IOException e) {
e = e;
}
try {
byte[] bArr = new byte[4096];
while (true) {
int read = zipInputStream.read(bArr);
if (read != -1) {
bufferedOutputStream.write(bArr, 0, read);
} else {
bufferedOutputStream.close();
return;
}
}
} catch (IOException e2) {
e = e2;
throw new IOException(e);
} catch (Throwable th2) {
th = th2;
bufferedOutputStream2 = bufferedOutputStream;
if (bufferedOutputStream2 != null) {
bufferedOutputStream2.close();
}
throw th;
}
}
/* JADX WARN: Code restructure failed: missing block: B:105:0x00fe, code lost:
r14.close();
*/
/* JADX WARN: Code restructure failed: missing block: B:107:0x0102, code lost:
r14 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:108:0x0103, code lost:
com.mbridge.msdk.foundation.tools.af.b(com.mbridge.msdk.foundation.download.utils.UnzipUtility.TAG, r14.getMessage());
*/
/* JADX WARN: Code restructure failed: missing block: B:125:0x011b, code lost:
r14.close();
*/
/* JADX WARN: Code restructure failed: missing block: B:127:0x011f, code lost:
r14 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:128:0x0120, code lost:
com.mbridge.msdk.foundation.tools.af.b(com.mbridge.msdk.foundation.download.utils.UnzipUtility.TAG, r14.getMessage());
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public int unzip(java.lang.String r14, java.lang.String r15) throws java.io.IOException {
/*
Method dump skipped, instructions count: 414
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.foundation.download.utils.UnzipUtility.unzip(java.lang.String, java.lang.String):int");
}
}

View File

@@ -0,0 +1,17 @@
package com.mbridge.msdk.foundation.download.utils;
/* loaded from: classes4.dex */
public final class Utils {
public static int getDownloadRate(long j, long j2) {
if (j == 0 || j2 == 0) {
return 0;
}
if (j == j2) {
return 100;
}
return (int) (((j2 * 1.0d) / (j * 1.0d)) * 100.0d);
}
private Utils() {
}
}