soul-browser/app/smali/com/google/android/gms/common/internal/GetServiceRequest.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

503 lines
15 KiB
Smali

.class public Lcom/google/android/gms/common/internal/GetServiceRequest;
.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 = "GetServiceRequestCreator"
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Reserved;
value = {
0x9,
0x10
}
.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/internal/GetServiceRequest;",
">;"
}
.end annotation
.end field
.field static final zza:[Lcom/google/android/gms/common/api/Scope;
.field static final zzb:[Lcom/google/android/gms/common/Feature;
# instance fields
.field final zzc:I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$VersionField;
id = 0x1
.end annotation
.end field
.field final zzd:I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0x2
.end annotation
.end field
.field final zze:I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0x3
.end annotation
.end field
.field zzf:Ljava/lang/String;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0x4
.end annotation
.end field
.field zzg:Landroid/os/IBinder;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0x5
.end annotation
.end field
.field zzh:[Lcom/google/android/gms/common/api/Scope;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValueUnchecked = "GetServiceRequest.EMPTY_SCOPES"
id = 0x6
.end annotation
.end field
.field zzi:Landroid/os/Bundle;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValueUnchecked = "new android.os.Bundle()"
id = 0x7
.end annotation
.end field
.field zzj:Landroid/accounts/Account;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0x8
.end annotation
.end field
.field zzk:[Lcom/google/android/gms/common/Feature;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES"
id = 0xa
.end annotation
.end field
.field zzl:[Lcom/google/android/gms/common/Feature;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValueUnchecked = "GetServiceRequest.EMPTY_FEATURES"
id = 0xb
.end annotation
.end field
.field final zzm:Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
id = 0xc
.end annotation
.end field
.field final zzn:I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
defaultValue = "0"
id = 0xd
.end annotation
.end field
.field zzo:Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
getter = "isRequestingTelemetryConfiguration"
id = 0xe
.end annotation
.end field
.field private final zzp:Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Field;
getter = "getAttributionTag"
id = 0xf
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lcom/google/android/gms/common/internal/zzm;
invoke-direct {v0}, Lcom/google/android/gms/common/internal/zzm;-><init>()V
sput-object v0, Lcom/google/android/gms/common/internal/GetServiceRequest;->CREATOR:Landroid/os/Parcelable$Creator;
const/4 v0, 0x0
new-array v1, v0, [Lcom/google/android/gms/common/api/Scope;
sput-object v1, Lcom/google/android/gms/common/internal/GetServiceRequest;->zza:[Lcom/google/android/gms/common/api/Scope;
new-array v0, v0, [Lcom/google/android/gms/common/Feature;
sput-object v0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzb:[Lcom/google/android/gms/common/Feature;
return-void
.end method
.method public constructor <init>(IIILjava/lang/String;Landroid/os/IBinder;[Lcom/google/android/gms/common/api/Scope;Landroid/os/Bundle;Landroid/accounts/Account;[Lcom/google/android/gms/common/Feature;[Lcom/google/android/gms/common/Feature;ZIZLjava/lang/String;)V
.locals 0
.param p1 # I
.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 # I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x3
.end annotation
.end param
.param p4 # Ljava/lang/String;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x4
.end annotation
.end param
.param p5 # Landroid/os/IBinder;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x5
.end annotation
.end param
.param p6 # [Lcom/google/android/gms/common/api/Scope;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x6
.end annotation
.end param
.param p7 # Landroid/os/Bundle;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x7
.end annotation
.end param
.param p8 # Landroid/accounts/Account;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0x8
.end annotation
.end param
.param p9 # [Lcom/google/android/gms/common/Feature;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xa
.end annotation
.end param
.param p10 # [Lcom/google/android/gms/common/Feature;
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xb
.end annotation
.end param
.param p11 # Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xc
.end annotation
.end param
.param p12 # I
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xd
.end annotation
.end param
.param p13 # Z
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xe
.end annotation
.end param
.param p14 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/internal/safeparcel/SafeParcelable$Param;
id = 0xf
.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
.line 2
.line 3
.line 4
if-nez p6, :cond_0
.line 5
.line 6
sget-object p6, Lcom/google/android/gms/common/internal/GetServiceRequest;->zza:[Lcom/google/android/gms/common/api/Scope;
.line 7
.line 8
:cond_0
if-nez p7, :cond_1
.line 9
.line 10
new-instance p7, Landroid/os/Bundle;
.line 11
.line 12
invoke-direct {p7}, Landroid/os/Bundle;-><init>()V
.line 13
.line 14
.line 15
:cond_1
if-nez p9, :cond_2
.line 16
.line 17
sget-object p9, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzb:[Lcom/google/android/gms/common/Feature;
.line 18
.line 19
:cond_2
if-nez p10, :cond_3
.line 20
.line 21
sget-object p10, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzb:[Lcom/google/android/gms/common/Feature;
.line 22
.line 23
:cond_3
iput p1, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzc:I
.line 24
.line 25
iput p2, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzd:I
.line 26
.line 27
iput p3, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zze:I
.line 28
.line 29
const-string p2, "com.google.android.gms"
.line 30
.line 31
invoke-virtual {p2, p4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
.line 32
.line 33
.line 34
move-result p3
.line 35
if-eqz p3, :cond_4
.line 36
.line 37
iput-object p2, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzf:Ljava/lang/String;
.line 38
.line 39
goto :goto_0
.line 40
:cond_4
iput-object p4, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzf:Ljava/lang/String;
.line 41
.line 42
:goto_0
const/4 p2, 0x2
.line 43
if-ge p1, p2, :cond_6
.line 44
.line 45
if-eqz p5, :cond_5
.line 46
.line 47
invoke-static {p5}, Lcom/google/android/gms/common/internal/IAccountAccessor$Stub;->asInterface(Landroid/os/IBinder;)Lcom/google/android/gms/common/internal/IAccountAccessor;
.line 48
.line 49
.line 50
move-result-object p1
.line 51
invoke-static {p1}, Lcom/google/android/gms/common/internal/AccountAccessor;->getAccountBinderSafe(Lcom/google/android/gms/common/internal/IAccountAccessor;)Landroid/accounts/Account;
.line 52
.line 53
.line 54
move-result-object p1
.line 55
goto :goto_1
.line 56
:cond_5
const/4 p1, 0x0
.line 57
:goto_1
iput-object p1, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzj:Landroid/accounts/Account;
.line 58
.line 59
goto :goto_2
.line 60
:cond_6
iput-object p5, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzg:Landroid/os/IBinder;
.line 61
.line 62
iput-object p8, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzj:Landroid/accounts/Account;
.line 63
.line 64
:goto_2
iput-object p6, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzh:[Lcom/google/android/gms/common/api/Scope;
.line 65
.line 66
iput-object p7, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzi:Landroid/os/Bundle;
.line 67
.line 68
iput-object p9, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzk:[Lcom/google/android/gms/common/Feature;
.line 69
.line 70
iput-object p10, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzl:[Lcom/google/android/gms/common/Feature;
.line 71
.line 72
iput-boolean p11, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzm:Z
.line 73
.line 74
iput p12, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzn:I
.line 75
.line 76
iput-boolean p13, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzo:Z
.line 77
.line 78
iput-object p14, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzp:Ljava/lang/String;
.line 79
.line 80
return-void
.end method
# virtual methods
.method public getAttributionTag()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
iget-object v0, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zzp:Ljava/lang/String;
return-object v0
.end method
.method public getCallingPackage()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/internal/GetServiceRequest;->zzf:Ljava/lang/String;
return-object v0
.end method
.method public getClientApiFeatures()[Lcom/google/android/gms/common/Feature;
.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/internal/GetServiceRequest;->zzl:[Lcom/google/android/gms/common/Feature;
return-object v0
.end method
.method public getClientLibraryVersion()I
.locals 1
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
.end annotation
iget v0, p0, Lcom/google/android/gms/common/internal/GetServiceRequest;->zze:I
return v0
.end method
.method public getExtraArgs()Landroid/os/Bundle;
.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/internal/GetServiceRequest;->zzi:Landroid/os/Bundle;
return-object v0
.end method
.method public final writeToParcel(Landroid/os/Parcel;I)V
.locals 0
.param p1 # Landroid/os/Parcel;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-static {p0, p1, p2}, Lcom/google/android/gms/common/internal/zzm;->zza(Lcom/google/android/gms/common/internal/GetServiceRequest;Landroid/os/Parcel;I)V
.line 2
.line 3
.line 4
return-void
.end method