* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
214 lines
7.9 KiB
Java
214 lines
7.9 KiB
Java
package com.google.android.gms.internal.fido;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes3.dex */
|
|
final class zzgb {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final String f10314a;
|
|
public final char[] b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final int f10315c;
|
|
public final int d;
|
|
public final int e;
|
|
public final int f;
|
|
public final byte[] g;
|
|
public final boolean h;
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public zzgb(java.lang.String r9, char[] r10) {
|
|
/*
|
|
r8 = this;
|
|
r0 = 128(0x80, float:1.8E-43)
|
|
byte[] r1 = new byte[r0]
|
|
r2 = -1
|
|
java.util.Arrays.fill(r1, r2)
|
|
r3 = 0
|
|
r4 = r3
|
|
La:
|
|
int r5 = r10.length
|
|
if (r4 >= r5) goto L4e
|
|
char r5 = r10[r4]
|
|
r6 = 1
|
|
if (r5 >= r0) goto L14
|
|
r7 = r6
|
|
goto L15
|
|
L14:
|
|
r7 = r3
|
|
L15:
|
|
if (r7 == 0) goto L3a
|
|
r7 = r1[r5]
|
|
if (r7 != r2) goto L1d
|
|
r7 = r6
|
|
goto L1e
|
|
L1d:
|
|
r7 = r3
|
|
L1e:
|
|
if (r7 == 0) goto L26
|
|
byte r6 = (byte) r4
|
|
r1[r5] = r6
|
|
int r4 = r4 + 1
|
|
goto La
|
|
L26:
|
|
java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException
|
|
java.lang.Character r10 = java.lang.Character.valueOf(r5)
|
|
java.lang.Object[] r0 = new java.lang.Object[r6]
|
|
r0[r3] = r10
|
|
java.lang.String r10 = "Duplicate character: %s"
|
|
java.lang.String r10 = com.google.android.gms.internal.fido.zzbo.a(r10, r0)
|
|
r9.<init>(r10)
|
|
throw r9
|
|
L3a:
|
|
java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException
|
|
java.lang.Character r10 = java.lang.Character.valueOf(r5)
|
|
java.lang.Object[] r0 = new java.lang.Object[r6]
|
|
r0[r3] = r10
|
|
java.lang.String r10 = "Non-ASCII character: %s"
|
|
java.lang.String r10 = com.google.android.gms.internal.fido.zzbo.a(r10, r0)
|
|
r9.<init>(r10)
|
|
throw r9
|
|
L4e:
|
|
r8.<init>(r9, r10, r1, r3)
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.fido.zzgb.<init>(java.lang.String, char[]):void");
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj instanceof zzgb) {
|
|
zzgb zzgbVar = (zzgb) obj;
|
|
if (this.h == zzgbVar.h && Arrays.equals(this.b, zzgbVar.b)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
int i;
|
|
int hashCode = Arrays.hashCode(this.b);
|
|
if (true != this.h) {
|
|
i = 1237;
|
|
} else {
|
|
i = 1231;
|
|
}
|
|
return hashCode + i;
|
|
}
|
|
|
|
public final String toString() {
|
|
return this.f10314a;
|
|
}
|
|
|
|
/* JADX WARN: Failed to find 'out' block for switch in B:6:0x0017. Please report as an issue. */
|
|
/* JADX WARN: Removed duplicated region for block: B:15:0x0061 A[LOOP:0: B:13:0x005d->B:15:0x0061, LOOP_END] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public zzgb(java.lang.String r4, char[] r5, byte[] r6, boolean r7) {
|
|
/*
|
|
r3 = this;
|
|
r3.<init>()
|
|
r3.f10314a = r4
|
|
r5.getClass()
|
|
r3.b = r5
|
|
int r4 = r5.length // Catch: java.lang.ArithmeticException -> L73
|
|
java.math.RoundingMode r0 = java.math.RoundingMode.UNNECESSARY // Catch: java.lang.ArithmeticException -> L73
|
|
if (r4 <= 0) goto L7d
|
|
int[] r1 = com.google.android.gms.internal.fido.zzgg.f10318a // Catch: java.lang.ArithmeticException -> L73
|
|
int r0 = r0.ordinal() // Catch: java.lang.ArithmeticException -> L73
|
|
r0 = r1[r0] // Catch: java.lang.ArithmeticException -> L73
|
|
switch(r0) {
|
|
case 1: goto L38;
|
|
case 2: goto L3d;
|
|
case 3: goto L3d;
|
|
case 4: goto L2f;
|
|
case 5: goto L2f;
|
|
case 6: goto L20;
|
|
case 7: goto L20;
|
|
case 8: goto L20;
|
|
default: goto L1a;
|
|
} // Catch: java.lang.ArithmeticException -> L73
|
|
L1a:
|
|
java.lang.AssertionError r4 = new java.lang.AssertionError // Catch: java.lang.ArithmeticException -> L73
|
|
r4.<init>() // Catch: java.lang.ArithmeticException -> L73
|
|
throw r4 // Catch: java.lang.ArithmeticException -> L73
|
|
L20:
|
|
int r0 = java.lang.Integer.numberOfLeadingZeros(r4) // Catch: java.lang.ArithmeticException -> L73
|
|
r1 = -1257966797(0xffffffffb504f333, float:-4.9527733E-7)
|
|
int r1 = r1 >>> r0
|
|
int r0 = 31 - r0
|
|
int r1 = r1 - r4
|
|
int r1 = r1 >>> 31
|
|
int r0 = r0 + r1
|
|
goto L43
|
|
L2f:
|
|
int r0 = r4 + (-1)
|
|
int r0 = java.lang.Integer.numberOfLeadingZeros(r0) // Catch: java.lang.ArithmeticException -> L73
|
|
int r0 = 32 - r0
|
|
goto L43
|
|
L38:
|
|
int r0 = r4 + (-1)
|
|
r0 = r0 & r4
|
|
if (r0 != 0) goto L75
|
|
L3d:
|
|
int r0 = java.lang.Integer.numberOfLeadingZeros(r4) // Catch: java.lang.ArithmeticException -> L73
|
|
int r0 = 31 - r0
|
|
L43:
|
|
r3.d = r0 // Catch: java.lang.ArithmeticException -> L73
|
|
int r5 = java.lang.Integer.numberOfTrailingZeros(r0)
|
|
int r1 = 3 - r5
|
|
r2 = 1
|
|
int r1 = r2 << r1
|
|
r3.e = r1
|
|
int r5 = r0 >> r5
|
|
r3.f = r5
|
|
int r4 = r4 + (-1)
|
|
r3.f10315c = r4
|
|
r3.g = r6
|
|
boolean[] r4 = new boolean[r1]
|
|
r5 = 0
|
|
L5d:
|
|
int r6 = r3.f
|
|
if (r5 >= r6) goto L70
|
|
int r6 = r5 * 8
|
|
int r0 = r3.d
|
|
java.math.RoundingMode r1 = java.math.RoundingMode.CEILING
|
|
int r6 = com.google.android.gms.internal.fido.zzgh.a(r6, r0)
|
|
r4[r6] = r2
|
|
int r5 = r5 + 1
|
|
goto L5d
|
|
L70:
|
|
r3.h = r7
|
|
return
|
|
L73:
|
|
r4 = move-exception
|
|
goto L85
|
|
L75:
|
|
java.lang.ArithmeticException r4 = new java.lang.ArithmeticException // Catch: java.lang.ArithmeticException -> L73
|
|
java.lang.String r6 = "mode was UNNECESSARY, but rounding was necessary"
|
|
r4.<init>(r6) // Catch: java.lang.ArithmeticException -> L73
|
|
throw r4 // Catch: java.lang.ArithmeticException -> L73
|
|
L7d:
|
|
java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException // Catch: java.lang.ArithmeticException -> L73
|
|
java.lang.String r6 = "x (0) must be > 0"
|
|
r4.<init>(r6) // Catch: java.lang.ArithmeticException -> L73
|
|
throw r4 // Catch: java.lang.ArithmeticException -> L73
|
|
L85:
|
|
int r5 = r5.length
|
|
java.lang.IllegalArgumentException r6 = new java.lang.IllegalArgumentException
|
|
java.lang.String r7 = "Illegal alphabet length "
|
|
java.lang.String r5 = android.support.v4.media.a.e(r5, r7)
|
|
r6.<init>(r5, r4)
|
|
throw r6
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.fido.zzgb.<init>(java.lang.String, char[], byte[], boolean):void");
|
|
}
|
|
}
|