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,56 @@
package com.amazonaws.util;
/* loaded from: classes.dex */
public enum CodecUtils {
;
public static int sanitize(String str, byte[] bArr) {
int length = bArr.length;
char[] charArray = str.toCharArray();
int i = 0;
for (int i2 = 0; i2 < length; i2++) {
char c = charArray[i2];
if (c != '\r' && c != '\n' && c != ' ') {
if (c > 127) {
throw new IllegalArgumentException("Invalid character found at position " + i2 + " for " + str);
}
bArr[i] = (byte) c;
i++;
}
}
return i;
}
public static byte[] toBytesDirect(String str) {
char[] charArray = str.toCharArray();
int length = charArray.length;
byte[] bArr = new byte[length];
for (int i = 0; i < length; i++) {
char c = charArray[i];
if (c > 127) {
throw new IllegalArgumentException("Invalid character found at position " + i + " for " + str);
}
bArr[i] = (byte) c;
}
return bArr;
}
public static String toStringDirect(byte[] bArr) {
char[] cArr = new char[bArr.length];
int length = bArr.length;
int i = 0;
int i2 = 0;
while (i < length) {
cArr[i2] = (char) bArr[i];
i++;
i2++;
}
return new String(cArr);
}
public static void sanityCheckLastPos(int i, int i2) {
if ((i & i2) != 0) {
throw new IllegalArgumentException("Invalid last non-pad character detected");
}
}
}