soul-browser/app/smali/com/google/android/gms/common/Feature.smali
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

606 lines
14 KiB
Smali

.class public Lcom/google/android/gms/common/Feature;
.super Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;
.source "SourceFile"
# annotations
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Class;
creator = "FeatureCreator"
.end annotation
# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/os/Parcelable$Creator<",
"Lcom/google/android/gms/common/Feature;",
">;"
}
.end annotation
.end field
# instance fields
.field private final zza:Ljava/lang/String;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
getter = "getName"
id = 0x1
.end annotation
.end field
.field private final zzb:I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
getter = "getOldVersion"
id = 0x2
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field
.field private final zzc:J
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValue = "-1"
getter = "getVersion"
id = 0x3
.end annotation
.end field
.field private final zzd:Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValue = "false"
getter = "getIsFullyRolledOut"
id = 0x4
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/android/gms/common/zzb;
invoke-direct {v0}, Lcom/google/android/gms/common/zzb;-><init>()V
sput-object v0, Lcom/google/android/gms/common/Feature;->CREATOR:Landroid/os/Parcelable$Creator;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;IJ)V
.locals 6
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
move v2, p2
move-wide v3, p3
.line 2
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/common/Feature;-><init>(Ljava/lang/String;IJZ)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;IJZ)V
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x1
.end annotation
.end param
.param p2 # I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x2
.end annotation
.end param
.param p3 # J
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x3
.end annotation
.end param
.param p5 # Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x4
.end annotation
.end param
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Constructor;
.end annotation
.line 1
invoke-direct {p0}, Lcom/google/android/gms/common/internal/safeparcel/AbstractSafeParcelable;-><init>()V
iput-object p1, p0, Lcom/google/android/gms/common/Feature;->zza:Ljava/lang/String;
iput p2, p0, Lcom/google/android/gms/common/Feature;->zzb:I
iput-wide p3, p0, Lcom/google/android/gms/common/Feature;->zzc:J
iput-boolean p5, p0, Lcom/google/android/gms/common/Feature;->zzd:Z
return-void
.end method
.method public constructor <init>(Ljava/lang/String;J)V
.locals 6
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v2, -0x1
const/4 v5, 0x0
move-object v0, p0
move-object v1, p1
move-wide v3, p2
.line 3
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/common/Feature;-><init>(Ljava/lang/String;IJZ)V
return-void
.end method
.method public constructor <init>(Ljava/lang/String;JZ)V
.locals 6
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
const/4 v2, -0x1
move-object v0, p0
move-object v1, p1
move-wide v3, p2
move v5, p4
.line 4
invoke-direct/range {v0 .. v5}, Lcom/google/android/gms/common/Feature;-><init>(Ljava/lang/String;IJZ)V
return-void
.end method
# virtual methods
.method public final equals(Ljava/lang/Object;)Z
.locals 6
.param p1 # Ljava/lang/Object;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 1
instance-of v0, p1, Lcom/google/android/gms/common/Feature;
.line 2
.line 3
const/4 v1, 0x0
.line 4
if-eqz v0, :cond_0
.line 5
.line 6
check-cast p1, Lcom/google/android/gms/common/Feature;
.line 7
.line 8
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getName()Ljava/lang/String;
.line 9
.line 10
.line 11
move-result-object v0
.line 12
invoke-virtual {p1}, Lcom/google/android/gms/common/Feature;->getName()Ljava/lang/String;
.line 13
.line 14
.line 15
move-result-object v2
.line 16
invoke-static {v0, v2}, Lcom/google/android/gms/common/internal/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
.line 17
.line 18
.line 19
move-result v0
.line 20
if-eqz v0, :cond_0
.line 21
.line 22
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getVersion()J
.line 23
.line 24
.line 25
move-result-wide v2
.line 26
invoke-virtual {p1}, Lcom/google/android/gms/common/Feature;->getVersion()J
.line 27
.line 28
.line 29
move-result-wide v4
.line 30
cmp-long v0, v2, v4
.line 31
.line 32
if-nez v0, :cond_0
.line 33
.line 34
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getIsFullyRolledOut()Z
.line 35
.line 36
.line 37
move-result v0
.line 38
invoke-virtual {p1}, Lcom/google/android/gms/common/Feature;->getIsFullyRolledOut()Z
.line 39
.line 40
.line 41
move-result p1
.line 42
if-ne v0, p1, :cond_0
.line 43
.line 44
const/4 p1, 0x1
.line 45
return p1
.line 46
:cond_0
return v1
.end method
.method public getIsFullyRolledOut()Z
.locals 1
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
iget-boolean v0, p0, Lcom/google/android/gms/common/Feature;->zzd:Z
return v0
.end method
.method public getName()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
iget-object v0, p0, Lcom/google/android/gms/common/Feature;->zza:Ljava/lang/String;
return-object v0
.end method
.method public getVersion()J
.locals 4
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
iget-wide v0, p0, Lcom/google/android/gms/common/Feature;->zzc:J
const-wide/16 v2, -0x1
cmp-long v2, v0, v2
if-nez v2, :cond_0
iget v0, p0, Lcom/google/android/gms/common/Feature;->zzb:I
int-to-long v0, v0
:cond_0
return-wide v0
.end method
.method public final hashCode()I
.locals 5
.line 1
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getName()Ljava/lang/String;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getVersion()J
.line 6
.line 7
.line 8
move-result-wide v1
.line 9
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
.line 10
.line 11
.line 12
move-result-object v1
.line 13
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getIsFullyRolledOut()Z
.line 14
.line 15
.line 16
move-result v2
.line 17
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
.line 18
.line 19
.line 20
move-result-object v2
.line 21
const/4 v3, 0x3
.line 22
new-array v3, v3, [Ljava/lang/Object;
.line 23
.line 24
const/4 v4, 0x0
.line 25
aput-object v0, v3, v4
.line 26
.line 27
const/4 v0, 0x1
.line 28
aput-object v1, v3, v0
.line 29
.line 30
const/4 v0, 0x2
.line 31
aput-object v2, v3, v0
.line 32
.line 33
invoke-static {v3}, Lcom/google/android/gms/common/internal/Objects;->hashCode([Ljava/lang/Object;)I
.line 34
.line 35
.line 36
move-result v0
.line 37
return v0
.end method
.method public final toString()Ljava/lang/String;
.locals 3
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p0}, Lcom/google/android/gms/common/internal/Objects;->toStringHelper(Ljava/lang/Object;)Lcom/google/android/gms/common/internal/Objects$ToStringHelper;
.line 2
.line 3
.line 4
move-result-object v0
.line 5
const-string v1, "name"
.line 6
.line 7
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getName()Ljava/lang/String;
.line 8
.line 9
.line 10
move-result-object v2
.line 11
invoke-virtual {v0, v1, v2}, Lcom/google/android/gms/common/internal/Objects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/Objects$ToStringHelper;
.line 12
.line 13
.line 14
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getVersion()J
.line 15
.line 16
.line 17
move-result-wide v1
.line 18
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
.line 19
.line 20
.line 21
move-result-object v1
.line 22
const-string v2, "version"
.line 23
.line 24
invoke-virtual {v0, v2, v1}, Lcom/google/android/gms/common/internal/Objects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/Objects$ToStringHelper;
.line 25
.line 26
.line 27
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getIsFullyRolledOut()Z
.line 28
.line 29
.line 30
move-result v1
.line 31
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
.line 32
.line 33
.line 34
move-result-object v1
.line 35
const-string v2, "is_fully_rolled_out"
.line 36
.line 37
invoke-virtual {v0, v2, v1}, Lcom/google/android/gms/common/internal/Objects$ToStringHelper;->add(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/android/gms/common/internal/Objects$ToStringHelper;
.line 38
.line 39
.line 40
invoke-virtual {v0}, Lcom/google/android/gms/common/internal/Objects$ToStringHelper;->toString()Ljava/lang/String;
.line 41
.line 42
.line 43
move-result-object v0
.line 44
return-object v0
.end method
.method public final writeToParcel(Landroid/os/Parcel;I)V
.locals 3
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-static {p1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->beginObjectHeader(Landroid/os/Parcel;)I
.line 2
.line 3
.line 4
move-result p2
.line 5
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getName()Ljava/lang/String;
.line 6
.line 7
.line 8
move-result-object v0
.line 9
const/4 v1, 0x0
.line 10
const/4 v2, 0x1
.line 11
invoke-static {p1, v2, v0, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeString(Landroid/os/Parcel;ILjava/lang/String;Z)V
.line 12
.line 13
.line 14
const/4 v0, 0x2
.line 15
iget v1, p0, Lcom/google/android/gms/common/Feature;->zzb:I
.line 16
.line 17
invoke-static {p1, v0, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeInt(Landroid/os/Parcel;II)V
.line 18
.line 19
.line 20
const/4 v0, 0x3
.line 21
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getVersion()J
.line 22
.line 23
.line 24
move-result-wide v1
.line 25
invoke-static {p1, v0, v1, v2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeLong(Landroid/os/Parcel;IJ)V
.line 26
.line 27
.line 28
const/4 v0, 0x4
.line 29
invoke-virtual {p0}, Lcom/google/android/gms/common/Feature;->getIsFullyRolledOut()Z
.line 30
.line 31
.line 32
move-result v1
.line 33
invoke-static {p1, v0, v1}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->writeBoolean(Landroid/os/Parcel;IZ)V
.line 34
.line 35
.line 36
invoke-static {p1, p2}, Lcom/google/android/gms/common/internal/safeparcel/SafeParcelWriter;->finishObjectHeader(Landroid/os/Parcel;I)V
.line 37
.line 38
.line 39
return-void
.end method