* 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>
83 lines
3 KiB
Java
83 lines
3 KiB
Java
package com.google.android.gms.internal.auth;
|
|
|
|
import j$.util.DesugarCollections;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzfh extends zzfl {
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public static final Class f9541c = DesugarCollections.unmodifiableList(Collections.EMPTY_LIST).getClass();
|
|
|
|
@Override // com.google.android.gms.internal.auth.zzfl
|
|
public final void a(long j, Object obj) {
|
|
Object unmodifiableList;
|
|
List list = (List) zzhj.d(j, obj);
|
|
if (list instanceof zzff) {
|
|
unmodifiableList = ((zzff) list).zze();
|
|
} else if (!f9541c.isAssignableFrom(list.getClass())) {
|
|
if ((list instanceof zzge) && (list instanceof zzez)) {
|
|
zzez zzezVar = (zzez) list;
|
|
if (zzezVar.zzc()) {
|
|
zzezVar.zzb();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
unmodifiableList = DesugarCollections.unmodifiableList(list);
|
|
} else {
|
|
return;
|
|
}
|
|
zzhj.j(j, obj, unmodifiableList);
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.google.android.gms.internal.auth.zzfl
|
|
public final void b(long j, Object obj, Object obj2) {
|
|
zzfe zzfeVar;
|
|
List list = (List) zzhj.d(j, obj2);
|
|
int size = list.size();
|
|
List list2 = (List) zzhj.d(j, obj);
|
|
if (list2.isEmpty()) {
|
|
if (list2 instanceof zzff) {
|
|
list2 = new zzfe(size);
|
|
} else if ((list2 instanceof zzge) && (list2 instanceof zzez)) {
|
|
list2 = ((zzez) list2).f(size);
|
|
} else {
|
|
list2 = new ArrayList(size);
|
|
}
|
|
zzhj.j(j, obj, list2);
|
|
} else {
|
|
if (f9541c.isAssignableFrom(list2.getClass())) {
|
|
ArrayList arrayList = new ArrayList(list2.size() + size);
|
|
arrayList.addAll(list2);
|
|
zzhj.j(j, obj, arrayList);
|
|
zzfeVar = arrayList;
|
|
} else if (list2 instanceof zzhe) {
|
|
zzfe zzfeVar2 = new zzfe(list2.size() + size);
|
|
zzfeVar2.addAll(zzfeVar2.f.size(), (zzhe) list2);
|
|
zzhj.j(j, obj, zzfeVar2);
|
|
zzfeVar = zzfeVar2;
|
|
} else if ((list2 instanceof zzge) && (list2 instanceof zzez)) {
|
|
zzez zzezVar = (zzez) list2;
|
|
if (!zzezVar.zzc()) {
|
|
list2 = zzezVar.f(list2.size() + size);
|
|
zzhj.j(j, obj, list2);
|
|
}
|
|
}
|
|
list2 = zzfeVar;
|
|
}
|
|
int size2 = list2.size();
|
|
int size3 = list.size();
|
|
if (size2 > 0 && size3 > 0) {
|
|
list2.addAll(list);
|
|
}
|
|
if (size2 > 0) {
|
|
list = list2;
|
|
}
|
|
zzhj.j(j, obj, list);
|
|
}
|
|
}
|