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,87 @@
package com.helpshift.util;
import android.content.Context;
import android.content.res.Resources;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/* loaded from: classes3.dex */
public abstract class AssetsUtil {
public static boolean resourceExists(Context context, int i) {
if (context == null || i == 0) {
return false;
}
try {
return context.getResources().getResourceName(i) != null;
} catch (Resources.NotFoundException unused) {
return false;
}
}
public static String readAssetFileContents(Context context, String str) {
BufferedReader bufferedReader;
IOException e;
InputStream inputStream;
if (context == null) {
return "";
}
InputStream inputStream2 = null;
try {
StringBuilder sb = new StringBuilder();
inputStream = context.getAssets().open(str);
try {
bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
while (true) {
try {
try {
String readLine = bufferedReader.readLine();
if (readLine != null) {
sb.append(readLine);
} else {
String sb2 = sb.toString();
Utils.closeQuietly(inputStream);
Utils.closeQuietly(bufferedReader);
return sb2;
}
} catch (IOException e2) {
e = e2;
Log.e("astsUtl", "Error in reading the file contents", e);
Utils.closeQuietly(inputStream);
Utils.closeQuietly(bufferedReader);
return "";
}
} catch (Throwable th) {
th = th;
inputStream2 = inputStream;
Utils.closeQuietly(inputStream2);
Utils.closeQuietly(bufferedReader);
throw th;
}
}
} catch (IOException e3) {
e = e3;
bufferedReader = null;
} catch (Throwable th2) {
th = th2;
bufferedReader = null;
inputStream2 = inputStream;
Utils.closeQuietly(inputStream2);
Utils.closeQuietly(bufferedReader);
throw th;
}
} catch (IOException e4) {
bufferedReader = null;
e = e4;
inputStream = null;
} catch (Throwable th3) {
th = th3;
bufferedReader = null;
Utils.closeQuietly(inputStream2);
Utils.closeQuietly(bufferedReader);
throw th;
}
}
}