* 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>
99 lines
3.4 KiB
Java
99 lines
3.4 KiB
Java
package androidx.work;
|
|
|
|
import android.os.Build;
|
|
import androidx.work.WorkInfo;
|
|
import androidx.work.impl.model.WorkSpec;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
import java.util.UUID;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class WorkRequest {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final UUID f1851a;
|
|
public final WorkSpec b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final Set f1852c;
|
|
|
|
/* loaded from: classes.dex */
|
|
public static abstract class Builder<B extends Builder<?, ?>, W extends WorkRequest> {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public UUID f1853a;
|
|
public WorkSpec b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public HashSet f1854c;
|
|
|
|
/* JADX WARN: Type inference failed for: r1v6, types: [java.lang.Object, androidx.work.impl.model.WorkSpec] */
|
|
/* JADX WARN: Type inference failed for: r5v10, types: [androidx.work.Constraints, java.lang.Object] */
|
|
public final WorkRequest a() {
|
|
boolean z;
|
|
WorkRequest b = b();
|
|
Constraints constraints = this.b.j;
|
|
if ((Build.VERSION.SDK_INT < 24 || constraints.h.f1831a.size() <= 0) && !constraints.d && !constraints.b && !constraints.f1829c) {
|
|
z = false;
|
|
} else {
|
|
z = true;
|
|
}
|
|
if (this.b.q && z) {
|
|
throw new IllegalArgumentException("Expedited jobs only support network and storage constraints");
|
|
}
|
|
this.f1853a = UUID.randomUUID();
|
|
WorkSpec workSpec = this.b;
|
|
?? obj = new Object();
|
|
obj.b = WorkInfo.State.f1849c;
|
|
Data data = Data.f1833c;
|
|
obj.e = data;
|
|
obj.f = data;
|
|
obj.j = Constraints.i;
|
|
obj.l = BackoffPolicy.f1824c;
|
|
obj.m = 30000L;
|
|
obj.p = -1L;
|
|
obj.r = OutOfQuotaPolicy.f1848c;
|
|
obj.f1936a = workSpec.f1936a;
|
|
obj.f1937c = workSpec.f1937c;
|
|
obj.b = workSpec.b;
|
|
obj.d = workSpec.d;
|
|
obj.e = new Data(workSpec.e);
|
|
obj.f = new Data(workSpec.f);
|
|
obj.g = workSpec.g;
|
|
obj.h = workSpec.h;
|
|
obj.i = workSpec.i;
|
|
Constraints constraints2 = workSpec.j;
|
|
?? obj2 = new Object();
|
|
obj2.f1828a = NetworkType.f1845c;
|
|
obj2.f = -1L;
|
|
obj2.g = -1L;
|
|
obj2.h = new ContentUriTriggers();
|
|
obj2.b = constraints2.b;
|
|
obj2.f1829c = constraints2.f1829c;
|
|
obj2.f1828a = constraints2.f1828a;
|
|
obj2.d = constraints2.d;
|
|
obj2.e = constraints2.e;
|
|
obj2.h = constraints2.h;
|
|
obj.j = obj2;
|
|
obj.k = workSpec.k;
|
|
obj.l = workSpec.l;
|
|
obj.m = workSpec.m;
|
|
obj.n = workSpec.n;
|
|
obj.o = workSpec.o;
|
|
obj.p = workSpec.p;
|
|
obj.q = workSpec.q;
|
|
obj.r = workSpec.r;
|
|
this.b = obj;
|
|
obj.f1936a = this.f1853a.toString();
|
|
return b;
|
|
}
|
|
|
|
public abstract WorkRequest b();
|
|
}
|
|
|
|
public WorkRequest(UUID uuid, WorkSpec workSpec, HashSet hashSet) {
|
|
this.f1851a = uuid;
|
|
this.b = workSpec;
|
|
this.f1852c = hashSet;
|
|
}
|
|
}
|