* 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>
138 lines
4.3 KiB
Java
138 lines
4.3 KiB
Java
package androidx.appcompat.app;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.activity.ComponentDialog;
|
|
import androidx.appcompat.app.AppCompatDelegate;
|
|
import androidx.core.view.KeyEventDispatcher;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AppCompatDialog extends ComponentDialog implements AppCompatCallback {
|
|
public AppCompatDelegate h;
|
|
public final d i;
|
|
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/* JADX WARN: Type inference failed for: r1v2, types: [androidx.appcompat.app.d] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public AppCompatDialog(android.content.Context r5, int r6) {
|
|
/*
|
|
r4 = this;
|
|
r0 = 1
|
|
if (r6 != 0) goto L14
|
|
android.util.TypedValue r1 = new android.util.TypedValue
|
|
r1.<init>()
|
|
android.content.res.Resources$Theme r2 = r5.getTheme()
|
|
int r3 = androidx.appcompat.R.attr.dialogTheme
|
|
r2.resolveAttribute(r3, r1, r0)
|
|
int r1 = r1.resourceId
|
|
goto L15
|
|
L14:
|
|
r1 = r6
|
|
L15:
|
|
r4.<init>(r5, r1)
|
|
androidx.appcompat.app.d r1 = new androidx.appcompat.app.d
|
|
r1.<init>()
|
|
r4.i = r1
|
|
androidx.appcompat.app.AppCompatDelegate r1 = r4.c()
|
|
if (r6 != 0) goto L35
|
|
android.util.TypedValue r6 = new android.util.TypedValue
|
|
r6.<init>()
|
|
android.content.res.Resources$Theme r5 = r5.getTheme()
|
|
int r2 = androidx.appcompat.R.attr.dialogTheme
|
|
r5.resolveAttribute(r2, r6, r0)
|
|
int r6 = r6.resourceId
|
|
L35:
|
|
r1.E(r6)
|
|
r1.r()
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.app.AppCompatDialog.<init>(android.content.Context, int):void");
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public final void addContentView(View view, ViewGroup.LayoutParams layoutParams) {
|
|
b();
|
|
c().c(view, layoutParams);
|
|
}
|
|
|
|
public final AppCompatDelegate c() {
|
|
if (this.h == null) {
|
|
AppCompatDelegate.SerialExecutor serialExecutor = AppCompatDelegate.f84c;
|
|
this.h = new AppCompatDelegateImpl(getContext(), getWindow(), this, this);
|
|
}
|
|
return this.h;
|
|
}
|
|
|
|
public final boolean d(KeyEvent keyEvent) {
|
|
return super.dispatchKeyEvent(keyEvent);
|
|
}
|
|
|
|
@Override // android.app.Dialog, android.content.DialogInterface
|
|
public void dismiss() {
|
|
super.dismiss();
|
|
c().s();
|
|
}
|
|
|
|
@Override // android.app.Dialog, android.view.Window.Callback
|
|
public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
|
|
return KeyEventDispatcher.b(this.i, getWindow().getDecorView(), this, keyEvent);
|
|
}
|
|
|
|
@Override // android.app.Dialog
|
|
public final View findViewById(int i) {
|
|
return c().g(i);
|
|
}
|
|
|
|
@Override // android.app.Dialog
|
|
public final void invalidateOptionsMenu() {
|
|
c().o();
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public void onCreate(Bundle bundle) {
|
|
c().n();
|
|
super.onCreate(bundle);
|
|
c().r();
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public final void onStop() {
|
|
super.onStop();
|
|
c().w();
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public void setContentView(int i) {
|
|
b();
|
|
c().A(i);
|
|
}
|
|
|
|
@Override // android.app.Dialog
|
|
public void setTitle(CharSequence charSequence) {
|
|
super.setTitle(charSequence);
|
|
c().F(charSequence);
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public void setContentView(View view) {
|
|
b();
|
|
c().B(view);
|
|
}
|
|
|
|
@Override // android.app.Dialog
|
|
public void setTitle(int i) {
|
|
super.setTitle(i);
|
|
c().F(getContext().getString(i));
|
|
}
|
|
|
|
@Override // androidx.activity.ComponentDialog, android.app.Dialog
|
|
public void setContentView(View view, ViewGroup.LayoutParams layoutParams) {
|
|
b();
|
|
c().C(view, layoutParams);
|
|
}
|
|
}
|