- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
192 lines
4.9 KiB
Smali
192 lines
4.9 KiB
Smali
.class public final Lcom/google/android/gms/common/internal/zal;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private final zaa:Landroid/util/SparseIntArray;
|
|
|
|
.field private zab:Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailability;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailability;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/gms/common/internal/zal;-><init>(Lcom/google/android/gms/common/GoogleApiAvailabilityLight;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/google/android/gms/common/GoogleApiAvailabilityLight;)V
|
|
.locals 1
|
|
.param p1 # Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance v0, Landroid/util/SparseIntArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseIntArray;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 3
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lcom/google/android/gms/common/internal/zal;->zab:Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zaa(Landroid/content/Context;I)I
|
|
.locals 1
|
|
|
|
iget-object p1, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 1
|
|
invoke-virtual {p1, p2, v0}, Landroid/util/SparseIntArray;->get(II)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final zab(Landroid/content/Context;Lcom/google/android/gms/common/api/Api$Client;)I
|
|
.locals 5
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lcom/google/android/gms/common/api/Api$Client;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lcom/google/errorprone/annotations/ResultIgnorabilityUnspecified;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-static {p2}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 3
|
|
invoke-interface {p2}, Lcom/google/android/gms/common/api/Api$Client;->requiresGooglePlayServices()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-interface {p2}, Lcom/google/android/gms/common/api/Api$Client;->getMinApkVersion()I
|
|
|
|
move-result p2
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/gms/common/internal/zal;->zaa(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v0, v2, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
iget-object v3, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 6
|
|
invoke-virtual {v3}, Landroid/util/SparseIntArray;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v0, v3, :cond_3
|
|
|
|
iget-object v3, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 7
|
|
invoke-virtual {v3, v0}, Landroid/util/SparseIntArray;->keyAt(I)I
|
|
|
|
move-result v3
|
|
|
|
if-le v3, p2, :cond_2
|
|
|
|
iget-object v4, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 8
|
|
invoke-virtual {v4, v3}, Landroid/util/SparseIntArray;->get(I)I
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
if-ne v1, v2, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/common/internal/zal;->zab:Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
.line 9
|
|
invoke-virtual {v0, p1, p2}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
move v0, p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move v0, v1
|
|
|
|
:goto_2
|
|
iget-object p1, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 10
|
|
invoke-virtual {p1, p2, v0}, Landroid/util/SparseIntArray;->put(II)V
|
|
|
|
:goto_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final zac()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/android/gms/common/internal/zal;->zaa:Landroid/util/SparseIntArray;
|
|
|
|
.line 1
|
|
invoke-virtual {v0}, Landroid/util/SparseIntArray;->clear()V
|
|
|
|
return-void
|
|
.end method
|