* 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>
364 lines
11 KiB
Java
364 lines
11 KiB
Java
package androidx.core.view;
|
|
|
|
import android.os.Build;
|
|
import android.view.View;
|
|
import android.view.Window;
|
|
import android.view.WindowInsetsAnimationControlListener;
|
|
import android.view.WindowInsetsAnimationController;
|
|
import android.view.WindowInsetsController;
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.collection.SimpleArrayMap;
|
|
import kotlin.io.ConstantsKt;
|
|
import kotlin.jvm.internal.IntCompanionObject;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class WindowInsetsControllerCompat {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Impl f828a;
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl20 extends Impl {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final Window f829a;
|
|
public final SoftwareKeyboardControllerCompat b;
|
|
|
|
public Impl20(Window window, SoftwareKeyboardControllerCompat softwareKeyboardControllerCompat) {
|
|
this.f829a = window;
|
|
this.b = softwareKeyboardControllerCompat;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void a(int i) {
|
|
for (int i2 = 1; i2 <= 256; i2 <<= 1) {
|
|
if ((i & i2) != 0) {
|
|
if (i2 != 1) {
|
|
if (i2 != 2) {
|
|
if (i2 == 8) {
|
|
this.b.f786a.a();
|
|
}
|
|
} else {
|
|
h(2);
|
|
}
|
|
} else {
|
|
h(4);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void f() {
|
|
this.f829a.getDecorView().setTag(356039078, 2);
|
|
i(2048);
|
|
h(ConstantsKt.DEFAULT_BLOCK_SIZE);
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void g(int i) {
|
|
for (int i2 = 1; i2 <= 256; i2 <<= 1) {
|
|
if ((i & i2) != 0) {
|
|
if (i2 != 1) {
|
|
if (i2 != 2) {
|
|
if (i2 == 8) {
|
|
this.b.f786a.b();
|
|
}
|
|
} else {
|
|
i(2);
|
|
}
|
|
} else {
|
|
i(4);
|
|
this.f829a.clearFlags(1024);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final void h(int i) {
|
|
View decorView = this.f829a.getDecorView();
|
|
decorView.setSystemUiVisibility(i | decorView.getSystemUiVisibility());
|
|
}
|
|
|
|
public final void i(int i) {
|
|
View decorView = this.f829a.getDecorView();
|
|
decorView.setSystemUiVisibility((~i) & decorView.getSystemUiVisibility());
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl23 extends Impl20 {
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final boolean c() {
|
|
if ((this.f829a.getDecorView().getSystemUiVisibility() & 8192) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void e(boolean z) {
|
|
if (z) {
|
|
Window window = this.f829a;
|
|
window.clearFlags(67108864);
|
|
window.addFlags(IntCompanionObject.MIN_VALUE);
|
|
h(8192);
|
|
return;
|
|
}
|
|
i(8192);
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl26 extends Impl23 {
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final boolean b() {
|
|
if ((this.f829a.getDecorView().getSystemUiVisibility() & 16) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void d(boolean z) {
|
|
if (z) {
|
|
Window window = this.f829a;
|
|
window.clearFlags(134217728);
|
|
window.addFlags(IntCompanionObject.MIN_VALUE);
|
|
h(16);
|
|
return;
|
|
}
|
|
i(16);
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl30 extends Impl {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final WindowInsetsController f830a;
|
|
public final SoftwareKeyboardControllerCompat b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final Window f831c;
|
|
|
|
/* renamed from: androidx.core.view.WindowInsetsControllerCompat$Impl30$1, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
class AnonymousClass1 implements WindowInsetsAnimationControlListener {
|
|
public final void onCancelled(WindowInsetsAnimationController windowInsetsAnimationController) {
|
|
throw null;
|
|
}
|
|
|
|
public final void onFinished(WindowInsetsAnimationController windowInsetsAnimationController) {
|
|
throw null;
|
|
}
|
|
|
|
public final void onReady(WindowInsetsAnimationController windowInsetsAnimationController, int i) {
|
|
throw null;
|
|
}
|
|
}
|
|
|
|
public Impl30(Window window, SoftwareKeyboardControllerCompat softwareKeyboardControllerCompat) {
|
|
WindowInsetsController insetsController = window.getInsetsController();
|
|
new SimpleArrayMap(0);
|
|
this.f830a = insetsController;
|
|
this.b = softwareKeyboardControllerCompat;
|
|
this.f831c = window;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void a(int i) {
|
|
if ((i & 8) != 0) {
|
|
this.b.f786a.a();
|
|
}
|
|
this.f830a.hide(i & (-9));
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public boolean b() {
|
|
this.f830a.setSystemBarsAppearance(0, 0);
|
|
if ((this.f830a.getSystemBarsAppearance() & 16) == 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public boolean c() {
|
|
this.f830a.setSystemBarsAppearance(0, 0);
|
|
if ((this.f830a.getSystemBarsAppearance() & 8) == 0) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void d(boolean z) {
|
|
Window window = this.f831c;
|
|
if (z) {
|
|
if (window != null) {
|
|
h(16);
|
|
}
|
|
this.f830a.setSystemBarsAppearance(16, 16);
|
|
} else {
|
|
if (window != null) {
|
|
i(16);
|
|
}
|
|
this.f830a.setSystemBarsAppearance(0, 16);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void e(boolean z) {
|
|
Window window = this.f831c;
|
|
if (z) {
|
|
if (window != null) {
|
|
h(8192);
|
|
}
|
|
this.f830a.setSystemBarsAppearance(8, 8);
|
|
} else {
|
|
if (window != null) {
|
|
i(8192);
|
|
}
|
|
this.f830a.setSystemBarsAppearance(0, 8);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public void f() {
|
|
Window window = this.f831c;
|
|
if (window != null) {
|
|
window.getDecorView().setTag(356039078, 2);
|
|
i(2048);
|
|
h(ConstantsKt.DEFAULT_BLOCK_SIZE);
|
|
return;
|
|
}
|
|
this.f830a.setSystemBarsBehavior(2);
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void g(int i) {
|
|
if ((i & 8) != 0) {
|
|
this.b.f786a.b();
|
|
}
|
|
this.f830a.show(i & (-9));
|
|
}
|
|
|
|
public final void h(int i) {
|
|
View decorView = this.f831c.getDecorView();
|
|
decorView.setSystemUiVisibility(i | decorView.getSystemUiVisibility());
|
|
}
|
|
|
|
public final void i(int i) {
|
|
View decorView = this.f831c.getDecorView();
|
|
decorView.setSystemUiVisibility((~i) & decorView.getSystemUiVisibility());
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl31 extends Impl30 {
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl30, androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final void f() {
|
|
this.f830a.setSystemBarsBehavior(2);
|
|
}
|
|
}
|
|
|
|
@RequiresApi
|
|
/* loaded from: classes.dex */
|
|
public static class Impl35 extends Impl31 {
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl30, androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final boolean b() {
|
|
if ((this.f830a.getSystemBarsAppearance() & 16) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.core.view.WindowInsetsControllerCompat.Impl30, androidx.core.view.WindowInsetsControllerCompat.Impl
|
|
public final boolean c() {
|
|
if ((this.f830a.getSystemBarsAppearance() & 8) != 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface OnControllableInsetsChangedListener {
|
|
}
|
|
|
|
public WindowInsetsControllerCompat(Window window, View view) {
|
|
SoftwareKeyboardControllerCompat softwareKeyboardControllerCompat = new SoftwareKeyboardControllerCompat(view);
|
|
int i = Build.VERSION.SDK_INT;
|
|
if (i >= 35) {
|
|
this.f828a = new Impl30(window, softwareKeyboardControllerCompat);
|
|
return;
|
|
}
|
|
if (i >= 30) {
|
|
this.f828a = new Impl30(window, softwareKeyboardControllerCompat);
|
|
} else if (i >= 26) {
|
|
this.f828a = new Impl20(window, softwareKeyboardControllerCompat);
|
|
} else {
|
|
this.f828a = new Impl20(window, softwareKeyboardControllerCompat);
|
|
}
|
|
}
|
|
|
|
public final void a(int i) {
|
|
this.f828a.a(i);
|
|
}
|
|
|
|
public final boolean b() {
|
|
return this.f828a.b();
|
|
}
|
|
|
|
public final boolean c() {
|
|
return this.f828a.c();
|
|
}
|
|
|
|
public final void d(boolean z) {
|
|
this.f828a.d(z);
|
|
}
|
|
|
|
public final void e(boolean z) {
|
|
this.f828a.e(z);
|
|
}
|
|
|
|
public final void f() {
|
|
this.f828a.f();
|
|
}
|
|
|
|
public final void g(int i) {
|
|
this.f828a.g(i);
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Impl {
|
|
public void a(int i) {
|
|
}
|
|
|
|
public boolean b() {
|
|
return false;
|
|
}
|
|
|
|
public boolean c() {
|
|
return false;
|
|
}
|
|
|
|
public void d(boolean z) {
|
|
}
|
|
|
|
public void e(boolean z) {
|
|
}
|
|
|
|
public void g(int i) {
|
|
}
|
|
|
|
public void f() {
|
|
}
|
|
}
|
|
}
|