* 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>
1852 lines
43 KiB
Smali
1852 lines
43 KiB
Smali
.class public Lcom/google/android/gms/common/GooglePlayServicesUtilLight;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final GMS_AVAILABILITY_NOTIFICATION_ID:I = 0x28c4
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field static final GMS_GENERAL_ERROR_NOTIFICATION_ID:I = 0x9b6d
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GOOGLE_PLAY_GAMES_PACKAGE:Ljava/lang/String; = "com.google.android.play.games"
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GOOGLE_PLAY_SERVICES_PACKAGE:Ljava/lang/String; = "com.google.android.gms"
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GOOGLE_PLAY_SERVICES_VERSION_CODE:I = 0xbdfcb8
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GOOGLE_PLAY_STORE_PACKAGE:Ljava/lang/String; = "com.android.vending"
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final GOOGLE_SERVICES_FRAMEWORK_PACKAGE:Ljava/lang/String; = "com.google.android.gsf"
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field static final sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static zza:Z = false
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static zzb:Z = false
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final zzc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 14
|
|
.line 15
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static cancelAvailabilityErrorNotifications(Landroid/content/Context;)V
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_0
|
|
:try_start_0
|
|
const-string v0, "notification"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p0
|
|
|
|
.line 17
|
|
check-cast p0, Landroid/app/NotificationManager;
|
|
|
|
.line 18
|
|
.line 19
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
const/16 v0, 0x28c4
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0, v0}, Landroid/app/NotificationManager;->cancel(I)V
|
|
:try_end_0
|
|
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 27
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 28
|
|
const-string v0, "GooglePlayServicesUtil"
|
|
|
|
.line 29
|
|
.line 30
|
|
const-string v1, "Suppressing Security Exception %s in cancelAvailabilityErrorNotifications."
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v0, v1, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return-void
|
|
.end method
|
|
|
|
.method public static enableUsingApkIndependentContext()V
|
|
.locals 2
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public static ensurePlayServicesAvailable(Landroid/content/Context;I)V
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p0, p1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result p1
|
|
|
|
.line 9
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v0, "e"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v1
|
|
|
|
.line 17
|
|
invoke-virtual {v1, p0, p1, v0}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p0
|
|
|
|
.line 21
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v0
|
|
|
|
.line 29
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
.line 30
|
|
.line 31
|
|
add-int/lit8 v0, v0, 0x2e
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
const-string v0, "GooglePlayServices not available due to error "
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object v0
|
|
|
|
.line 48
|
|
const-string v1, "GooglePlayServicesUtil"
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
if-nez p0, :cond_0
|
|
|
|
.line 54
|
|
.line 55
|
|
new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-direct {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;-><init>(I)V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
throw p0
|
|
|
|
.line 61
|
|
:cond_0
|
|
new-instance v0, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;
|
|
|
|
.line 62
|
|
.line 63
|
|
const-string v1, "Google Play Services not available"
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-direct {v0, p1, v1, p0}, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;-><init>(ILjava/lang/String;Landroid/content/Intent;)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
throw v0
|
|
|
|
.line 69
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getApkVersion(Landroid/content/Context;)I
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
move-result-object p0
|
|
|
|
.line 6
|
|
const-string v1, "com.google.android.gms"
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0, v1, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 12
|
|
iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
.line 13
|
|
.line 14
|
|
return p0
|
|
|
|
.line 15
|
|
:catch_0
|
|
const-string p0, "GooglePlayServicesUtil"
|
|
|
|
.line 16
|
|
.line 17
|
|
const-string v1, "Google Play services is missing."
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-static {p0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
return v0
|
|
.end method
|
|
|
|
.method public static getClientVersion(Landroid/content/Context;)I
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V
|
|
|
|
.line 3
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/common/util/ClientLibraryUtils;->getClientVersion(Landroid/content/Context;Ljava/lang/String;)I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p0
|
|
|
|
.line 13
|
|
return p0
|
|
.end method
|
|
|
|
.method public static getErrorPendingIntent(ILandroid/content/Context;I)Landroid/app/PendingIntent;
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0, p1, p0, p2}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionPendingIntent(Landroid/content/Context;II)Landroid/app/PendingIntent;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p0
|
|
|
|
.line 9
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getErrorString(I)Ljava/lang/String;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lcom/google/android/gms/common/ConnectionResult;->zza(I)Ljava/lang/String;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getGooglePlayServicesAvailabilityRecoveryIntent(I)Landroid/content/Intent;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1, p0, v1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p0
|
|
|
|
.line 10
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getRemoteContext(Landroid/content/Context;)Landroid/content/Context;
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
const-string v0, "com.google.android.gms"
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x3
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 8
|
|
return-object p0
|
|
|
|
.line 9
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 10
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getRemoteResource(Landroid/content/Context;)Landroid/content/res/Resources;
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
const-string v0, "com.google.android.gms"
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0, v0}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 11
|
|
return-object p0
|
|
|
|
.line 12
|
|
:catch_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 13
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static honorsDebugCertificates(Landroid/content/Context;)Z
|
|
.locals 5
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-boolean v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
const/4 v2, 0x1
|
|
|
|
.line 5
|
|
if-nez v0, :cond_2
|
|
|
|
.line 6
|
|
.line 7
|
|
:try_start_0
|
|
invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 12
|
|
.line 13
|
|
const/16 v4, 0x1c
|
|
|
|
.line 14
|
|
.line 15
|
|
if-lt v3, v4, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
const v3, 0x8000040
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:cond_0
|
|
const/16 v3, 0x40
|
|
|
|
.line 22
|
|
.line 23
|
|
:goto_0
|
|
const-string v4, "com.google.android.gms"
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, v4, v3}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-static {v0, v1}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result p0
|
|
|
|
.line 38
|
|
if-nez p0, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-static {v0, v2}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result p0
|
|
|
|
.line 44
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 45
|
|
.line 46
|
|
sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z
|
|
|
|
.line 47
|
|
.line 48
|
|
goto :goto_1
|
|
|
|
.line 49
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 50
|
|
goto :goto_3
|
|
|
|
.line 51
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 52
|
|
goto :goto_2
|
|
|
|
.line 53
|
|
:cond_1
|
|
sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 54
|
|
.line 55
|
|
:goto_1
|
|
sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z
|
|
|
|
.line 56
|
|
.line 57
|
|
goto :goto_4
|
|
|
|
.line 58
|
|
:goto_2
|
|
:try_start_1
|
|
const-string v0, "GooglePlayServicesUtil"
|
|
|
|
.line 59
|
|
.line 60
|
|
const-string v3, "Cannot find Google Play services package name."
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-static {v0, v3, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z
|
|
|
|
.line 66
|
|
.line 67
|
|
goto :goto_4
|
|
|
|
.line 68
|
|
:goto_3
|
|
sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzb:Z
|
|
|
|
.line 69
|
|
.line 70
|
|
throw p0
|
|
|
|
.line 71
|
|
:cond_2
|
|
:goto_4
|
|
sget-boolean p0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza:Z
|
|
|
|
.line 72
|
|
.line 73
|
|
if-nez p0, :cond_4
|
|
|
|
.line 74
|
|
.line 75
|
|
invoke-static {}, Lcom/google/android/gms/common/util/DeviceProperties;->isUserBuild()Z
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
move-result p0
|
|
|
|
.line 79
|
|
if-nez p0, :cond_3
|
|
|
|
.line 80
|
|
.line 81
|
|
goto :goto_5
|
|
|
|
.line 82
|
|
:cond_3
|
|
return v1
|
|
|
|
.line 83
|
|
:cond_4
|
|
:goto_5
|
|
return v2
|
|
.end method
|
|
|
|
.method public static isGooglePlayServicesAvailable(Landroid/content/Context;)I
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/HideFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I
|
|
|
|
invoke-static {p0, v0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isGooglePlayServicesAvailable(Landroid/content/Context;I)I
|
|
.locals 11
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 2
|
|
const-string v0, "GooglePlayServicesUtil"
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
.line 3
|
|
sget v2, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:catchall_0
|
|
const-string v1, "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."
|
|
|
|
.line 5
|
|
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
.line 6
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "com.google.android.gms"
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
sget-object v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzc:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 7
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/google/android/gms/common/internal/zzae;->zzb(Landroid/content/Context;)I
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 9
|
|
sget v3, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I
|
|
|
|
if-ne v1, v3, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException;
|
|
|
|
.line 10
|
|
invoke-direct {p0, v1}, Lcom/google/android/gms/common/GooglePlayServicesIncorrectManifestValueException;-><init>(I)V
|
|
|
|
throw p0
|
|
|
|
.line 11
|
|
:cond_2
|
|
new-instance p0, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException;
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Lcom/google/android/gms/common/GooglePlayServicesMissingManifestValueException;-><init>()V
|
|
|
|
throw p0
|
|
|
|
.line 13
|
|
:cond_3
|
|
:goto_1
|
|
invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearableWithoutPlayStore(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzd(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
move v1, v3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
move v1, v4
|
|
|
|
:goto_2
|
|
if-ltz p1, :cond_5
|
|
|
|
move v5, v3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
move v5, v4
|
|
|
|
.line 14
|
|
:goto_3
|
|
invoke-static {v5}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(Z)V
|
|
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object v6
|
|
|
|
const/16 v7, 0x1c
|
|
|
|
const/16 v8, 0x9
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
:try_start_1
|
|
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt v9, v7, :cond_6
|
|
|
|
const v9, 0x8002040
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
const/16 v9, 0x2040
|
|
|
|
:goto_4
|
|
const-string v10, "com.android.vending"
|
|
|
|
.line 17
|
|
invoke-virtual {v6, v10, v9}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
move-result-object v9
|
|
:try_end_1
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
goto :goto_6
|
|
|
|
.line 18
|
|
:catch_0
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " requires the Google Play Store, but it is missing."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:goto_5
|
|
move v3, v8
|
|
|
|
goto/16 :goto_9
|
|
|
|
:cond_7
|
|
const/4 v9, 0x0
|
|
|
|
.line 19
|
|
:goto_6
|
|
:try_start_2
|
|
sget v10, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt v10, v7, :cond_8
|
|
|
|
const v7, 0x8000040
|
|
|
|
goto :goto_7
|
|
|
|
:cond_8
|
|
const/16 v7, 0x40
|
|
|
|
.line 20
|
|
:goto_7
|
|
invoke-virtual {v6, v2, v7}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
|
|
|
|
move-result-object v7
|
|
:try_end_2
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.line 21
|
|
invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier;
|
|
|
|
.line 22
|
|
invoke-static {v7, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_9
|
|
|
|
.line 23
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " requires Google Play services, but their signature is invalid."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_5
|
|
|
|
:cond_9
|
|
if-eqz v1, :cond_a
|
|
|
|
.line 24
|
|
invoke-static {v9}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 25
|
|
invoke-static {v9, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_a
|
|
|
|
.line 26
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " requires Google Play Store, but its signature is invalid."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_5
|
|
|
|
:cond_a
|
|
if-eqz v1, :cond_b
|
|
|
|
if-eqz v9, :cond_b
|
|
|
|
.line 27
|
|
iget-object p0, v9, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
|
|
|
|
aget-object p0, p0, v4
|
|
|
|
iget-object v1, v7, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature;
|
|
|
|
aget-object v1, v1, v4
|
|
|
|
.line 28
|
|
invoke-virtual {p0, v1}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_b
|
|
|
|
.line 29
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " requires Google Play Store, but its signature doesn\'t match that of Google Play services."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
goto :goto_5
|
|
|
|
.line 30
|
|
:cond_b
|
|
iget p0, v7, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
invoke-static {p0}, Lcom/google/android/gms/common/util/zzb;->zza(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p1}, Lcom/google/android/gms/common/util/zzb;->zza(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ge p0, v1, :cond_c
|
|
|
|
.line 31
|
|
iget p0, v7, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
add-int/lit8 v1, v1, 0x31
|
|
|
|
invoke-virtual {v2}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/lit8 v1, v1, 0xb
|
|
|
|
invoke-virtual {v3}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-direct {v3, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const-string v1, "Google Play services out of date for "
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ". Requires "
|
|
|
|
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, " but found "
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
const/4 v3, 0x2
|
|
|
|
goto :goto_9
|
|
|
|
.line 32
|
|
:cond_c
|
|
iget-object p0, v7, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo;
|
|
|
|
if-nez p0, :cond_d
|
|
|
|
.line 33
|
|
:try_start_3
|
|
invoke-virtual {v6, v2, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object p0
|
|
:try_end_3
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_3 .. :try_end_3} :catch_1
|
|
|
|
goto :goto_8
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
.line 34
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, " requires Google Play services, but they\'re missing when getting application info."
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1, p0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
goto :goto_9
|
|
|
|
.line 35
|
|
:cond_d
|
|
:goto_8
|
|
iget-boolean p0, p0, Landroid/content/pm/ApplicationInfo;->enabled:Z
|
|
|
|
if-nez p0, :cond_e
|
|
|
|
const/4 v3, 0x3
|
|
|
|
goto :goto_9
|
|
|
|
:cond_e
|
|
return v4
|
|
|
|
.line 36
|
|
:catch_2
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " requires Google Play services, but they are missing."
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {v0, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:goto_9
|
|
return v3
|
|
.end method
|
|
|
|
.method public static isGooglePlayServicesUid(Landroid/content/Context;I)Z
|
|
.locals 0
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Lcom/google/android/gms/common/util/UidVerifier;->isGooglePlayServicesUid(Landroid/content/Context;I)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isPlayServicesPossiblyUpdating(Landroid/content/Context;I)Z
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/16 v0, 0x12
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
return v1
|
|
|
|
.line 7
|
|
:cond_0
|
|
if-ne p1, v1, :cond_1
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string p1, "com.google.android.gms"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-static {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p0
|
|
|
|
.line 15
|
|
return p0
|
|
|
|
.line 16
|
|
:cond_1
|
|
const/4 p0, 0x0
|
|
|
|
.line 17
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isPlayStorePossiblyUpdating(Landroid/content/Context;I)Z
|
|
.locals 1
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const/16 v0, 0x9
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string p1, "com.android.vending"
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {p0, p1}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result p0
|
|
|
|
.line 11
|
|
return p0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 13
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isRestrictedUserProfile(Landroid/content/Context;)Z
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.line 1
|
|
const-string v0, "user"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
check-cast v0, Landroid/os/UserManager;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object p0
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p0}, Landroid/os/UserManager;->getApplicationRestrictions(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p0
|
|
|
|
.line 20
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
const-string v0, "true"
|
|
|
|
.line 23
|
|
.line 24
|
|
const-string v1, "restricted_profile"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {p0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p0
|
|
|
|
.line 30
|
|
invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result p0
|
|
|
|
.line 34
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 35
|
|
.line 36
|
|
const/4 p0, 0x1
|
|
|
|
.line 37
|
|
return p0
|
|
|
|
.line 38
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
.line 39
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isSidewinderDevice(Landroid/content/Context;)Z
|
|
.locals 0
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation build Lcom/google/android/gms/common/internal/ShowFirstParty;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isSidewinder(Landroid/content/Context;)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static isUserRecoverableError(I)Z
|
|
.locals 2
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eq p0, v0, :cond_0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq p0, v1, :cond_0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-eq p0, v1, :cond_0
|
|
|
|
const/16 v1, 0x9
|
|
|
|
if-eq p0, v1, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public static uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z
|
|
.locals 0
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lcom/google/android/gms/common/annotation/KeepForSdk;
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2}, Lcom/google/android/gms/common/util/UidVerifier;->uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result p0
|
|
|
|
.line 5
|
|
return p0
|
|
.end method
|
|
|
|
.method public static zza(Landroid/content/Context;Ljava/lang/String;)Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "com.google.android.gms"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
const/4 v1, 0x0
|
|
|
|
.line 8
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v2
|
|
|
|
.line 12
|
|
invoke-virtual {v2}, Landroid/content/pm/PackageManager;->getPackageInstaller()Landroid/content/pm/PackageInstaller;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v2
|
|
|
|
.line 16
|
|
invoke-virtual {v2}, Landroid/content/pm/PackageInstaller;->getAllSessions()Ljava/util/List;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object v2
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 20
|
|
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v2
|
|
|
|
.line 24
|
|
:cond_0
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result v3
|
|
|
|
.line 28
|
|
const/4 v4, 0x1
|
|
|
|
.line 29
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v3
|
|
|
|
.line 35
|
|
check-cast v3, Landroid/content/pm/PackageInstaller$SessionInfo;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v3}, Landroid/content/pm/PackageInstaller$SessionInfo;->getAppPackageName()Ljava/lang/String;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v3
|
|
|
|
.line 41
|
|
invoke-virtual {p1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v3
|
|
|
|
.line 45
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 46
|
|
.line 47
|
|
return v4
|
|
|
|
.line 48
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object v2
|
|
|
|
.line 52
|
|
const/16 v3, 0x2000
|
|
|
|
.line 53
|
|
.line 54
|
|
:try_start_1
|
|
invoke-virtual {v2, p1, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
move-result-object p1
|
|
|
|
.line 58
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 59
|
|
.line 60
|
|
iget-boolean p0, p1, Landroid/content/pm/ApplicationInfo;->enabled:Z
|
|
|
|
.line 61
|
|
.line 62
|
|
return p0
|
|
|
|
.line 63
|
|
:cond_2
|
|
iget-boolean p1, p1, Landroid/content/pm/ApplicationInfo;->enabled:Z
|
|
|
|
.line 64
|
|
.line 65
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-static {p0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isRestrictedUserProfile(Landroid/content/Context;)Z
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result p0
|
|
:try_end_1
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.line 71
|
|
if-nez p0, :cond_3
|
|
|
|
.line 72
|
|
.line 73
|
|
return v4
|
|
|
|
.line 74
|
|
:catch_0
|
|
:cond_3
|
|
return v1
|
|
.end method
|