udokanec
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору [more] Добрый день всем.Мне нужно захватить выделенный текст. Применяю регулярку .method public static(.+)\(Landroid/content/Context;\)I\n.+[\s\S]*?Google Play services missing.+[\s\S]*?end methodно не получается. Помогите пожалуйста Есть текст .class public Lcom/google/android/gms/common/GooglePlayServicesUtilLight; .super Ljava/lang/Object; # 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 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 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 .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 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 build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private static zzah:Z .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private static zzai:Z .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private static zzaj:Z .field private static zzak:Z .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private static final zzal:Ljava/util/concurrent/atomic/AtomicBoolean; # direct methods .method static constructor <clinit>()V .locals 2 .prologue const/4 v1, 0x0 .line 168 const v0, 0xbdfcb8 sput v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I .line 169 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzah:Z .line 170 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzai:Z .line 171 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzaj:Z .line 172 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzak:Z .line 173 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean; .line 174 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V sput-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzal:Ljava/util/concurrent/atomic/AtomicBoolean; return-void .end method .method constructor <init>()V .locals 0 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .prologue .line 3 invoke-direct {p0}, Ljava/lang/Object;-><init>()V .line 4 return-void .end method .method public static cancelAvailabilityErrorNotifications(Landroid/content/Context;)V .locals 2 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 103 sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->sCanceledAvailabilityNotification:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x1 invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z move-result v0 if-eqz v0, :cond_1 .line 111 :cond_0 :goto_0 return-void .line 105 :cond_1 :try_start_0 const-string v0, "notification" .line 106 invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/app/NotificationManager; .line 107 if-eqz v0, :cond_0 .line 108 const/16 v1, 0x28c4 invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->cancel(I)V :try_end_0 .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 .line 111 :catch_0 move-exception v0 goto :goto_0 .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 .prologue .line 1 sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzal:Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x1 invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V .line 2 return-void .end method .method public static ensurePlayServicesAvailable(Landroid/content/Context;I)V .locals 5 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation system Ldalvik/annotation/Throws; value = { Lcom/google/android/gms/common/GooglePlayServicesRepairableException;, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 63 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 .line 64 invoke-virtual {v0, p0, p1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->isGooglePlayServicesAvailable(Landroid/content/Context;I)I move-result v0 .line 65 if-eqz v0, :cond_1 .line 66 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v1 const-string v2, "e" .line 67 invoke-virtual {v1, p0, v0, v2}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent; move-result-object v1 .line 68 const-string v2, "GooglePlayServicesUtil" const/16 v3, 0x39 new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V const-string v3, "GooglePlayServices not available due to error " invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I .line 69 if-nez v1, :cond_0 .line 70 new-instance v1, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; invoke-direct {v1, v0}, Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException;-><init>(I)V throw v1 .line 71 :cond_0 new-instance v2, Lcom/google/android/gms/common/GooglePlayServicesRepairableException; const-string v3, "Google Play Services not available" invoke-direct {v2, v0, v3, v1}, Lcom/google/android/gms/common/GooglePlayServicesRepairableException;-><init>(ILjava/lang/String;Landroid/content/Intent;)V throw v2 .line 72 :cond_1 return-void .end method .method public static getApkVersion(Landroid/content/Context;)I .locals 4 .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 .prologue const/4 v0, 0x0 .line 126 .line 127 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v1 const-string v2, "com.google.android.gms" const/4 v3, 0x0 invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 move-result-object v0 .line 132 iget v0, v0, Landroid/content/pm/PackageInfo;->versionCode:I :goto_0 return v0 .line 130 :catch_0 move-exception v1 const-string v1, "GooglePlayServicesUtil" const-string v2, "Google Play services is missing." invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_0 .end method .method public static getClientVersion(Landroid/content/Context;)I .locals 1 .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 .prologue .line 124 const/4 v0, 0x1 invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkState(Z)V .line 125 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v0 invoke-static {p0, v0}, Lcom/google/android/gms/common/util/ClientLibraryUtils;->getClientVersion(Landroid/content/Context;Ljava/lang/String;)I move-result v0 return v0 .end method .method public static getErrorPendingIntent(ILandroid/content/Context;I)Landroid/app/PendingIntent; .locals 1 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 100 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 .line 101 invoke-virtual {v0, p1, p0, p2}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionPendingIntent(Landroid/content/Context;II)Landroid/app/PendingIntent; move-result-object v0 .line 102 return-object v0 .end method .method public static getErrorString(I)Ljava/lang/String; .locals 1 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 5 invoke-static {p0}, Lcom/google/android/gms/common/ConnectionResult;->zza(I)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public static getGooglePlayServicesAvailabilityRecoveryIntent(I)Landroid/content/Intent; .locals 2 .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 .prologue const/4 v1, 0x0 .line 75 invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailabilityLight; move-result-object v0 invoke-virtual {v0, v1, p0, v1}, Lcom/google/android/gms/common/GoogleApiAvailabilityLight;->getErrorResolutionIntent(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent; move-result-object v0 return-object v0 .end method .method public static getRemoteContext(Landroid/content/Context;)Landroid/content/Context; .locals 2 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .prologue .line 121 :try_start_0 const-string v0, "com.google.android.gms" const/4 v1, 0x3 invoke-virtual {p0, v0, v1}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context; :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 move-result-object v0 .line 123 :goto_0 return-object v0 :catch_0 move-exception v0 const/4 v0, 0x0 goto :goto_0 .end method .method public static getRemoteResource(Landroid/content/Context;)Landroid/content/res/Resources; .locals 2 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .prologue .line 115 .line 116 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 const-string v1, "com.google.android.gms" .line 117 invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getResourcesForApplication(Ljava/lang/String;)Landroid/content/res/Resources; :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 move-result-object v0 .line 120 :goto_0 return-object v0 :catch_0 move-exception v0 const/4 v0, 0x0 goto :goto_0 .end method .method public static honorsDebugCertificates(Landroid/content/Context;)Z .locals 5 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .prologue const/4 v0, 0x0 const/4 v1, 0x1 .line 76 .line 78 sget-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzak:Z if-nez v2, :cond_0 .line 80 :try_start_0 invoke-static {p0}, Lcom/google/android/gms/common/wrappers/Wrappers;->packageManager(Landroid/content/Context;)Lcom/google/android/gms/common/wrappers/PackageManagerWrapper; move-result-object v2 .line 81 const-string v3, "com.google.android.gms" const/16 v4, 0x40 .line 82 invoke-virtual {v2, v3, v4}, Lcom/google/android/gms/common/wrappers/PackageManagerWrapper;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; move-result-object v2 .line 83 invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier; .line 84 if-eqz v2, :cond_3 const/4 v3, 0x0 .line 85 invoke-static {v2, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z move-result v3 if-nez v3, :cond_3 const/4 v3, 0x1 .line 86 invoke-static {v2, v3}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z move-result v2 if-eqz v2, :cond_3 .line 87 const/4 v2, 0x1 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzaj: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 89 :goto_0 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzak:Z .line 96 :cond_0 :goto_1 sget-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzaj:Z .line 97 if-nez v2, :cond_1 .line 98 invoke-static {}, Lcom/google/android/gms/common/util/DeviceProperties;->isUserBuild()Z move-result v2 .line 99 if-nez v2, :cond_2 :cond_1 move v0, v1 :cond_2 return v0 .line 88 :cond_3 const/4 v2, 0x0 :try_start_1 sput-boolean v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzaj:Z :try_end_1 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 goto :goto_0 .line 91 :catch_0 move-exception v2 .line 92 :try_start_2 const-string v3, "GooglePlayServicesUtil" const-string v4, "Cannot find Google Play services package name." invoke-static {v3, v4, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 .line 93 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzak:Z goto :goto_1 .line 95 :catchall_0 move-exception v0 sput-boolean v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzak:Z throw v0 .end method .method public static isGooglePlayServicesAvailable(Landroid/content/Context;)I .locals 1 .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 .prologue .line 6 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 v0 return v0 .end method .method public static isGooglePlayServicesAvailable(Landroid/content/Context;I)I .locals 5 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 7 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object v0 .line 8 sget v1, Lcom/google/android/gms/common/R$string;->common_google_play_services_unknown_issue:I invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String; :try_end_0 .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0 .line 12 :goto_0 const-string v0, "com.google.android.gms" invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_1 .line 14 sget-object v0, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zzal:Ljava/util/concurrent/atomic/AtomicBoolean; invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z move-result v0 if-nez v0, :cond_1 .line 15 invoke-static {p0}, Lcom/google/android/gms/common/internal/zzp;->zzd(Landroid/content/Context;)I move-result v0 .line 16 if-nez v0, :cond_0 .line 17 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "A required meta-data tag in your app\'s AndroidManifest.xml does not exist. You must have the following declaration within the <application> element: <meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />" invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V throw v0 .line 11 :catch_0 move-exception v0 const-string v0, "GooglePlayServicesUtil" const-string v1, "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I goto :goto_0 .line 18 :cond_0 sget v1, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I if-eq v0, v1, :cond_1 .line 19 new-instance v1, Ljava/lang/IllegalStateException; sget v2, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->GOOGLE_PLAY_SERVICES_VERSION_CODE:I const/16 v3, 0x140 new-instance v4, Ljava/lang/StringBuilder; invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V const-string v3, "The meta-data tag in your app\'s AndroidManifest.xml does not have the right value. Expected " invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 const-string v3, " but found " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, ". You must have the following declaration within the <application> element: <meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V throw v1 .line 21 :cond_1 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearableWithoutPlayStore(Landroid/content/Context;)Z move-result v0 if-nez v0, :cond_2 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->zzf(Landroid/content/Context;)Z move-result v0 if-nez v0, :cond_2 const/4 v0, 0x1 .line 22 :goto_1 invoke-static {p0, v0, p1}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->zza(Landroid/content/Context;ZI)I move-result v0 return v0 .line 21 :cond_2 const/4 v0, 0x0 goto :goto_1 .end method .method public static isGooglePlayServicesUid(Landroid/content/Context;I)Z .locals 1 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 73 invoke-static {p0, p1}, Lcom/google/android/gms/common/util/UidVerifier;->isGooglePlayServicesUid(Landroid/content/Context;I)Z move-result v0 return v0 .end method .method public static isPlayServicesPossiblyUpdating(Landroid/content/Context;I)Z .locals 2 .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 .prologue const/4 v0, 0x1 .line 134 const/16 v1, 0x12 if-ne p1, v1, :cond_0 .line 138 :goto_0 return v0 .line 136 :cond_0 if-ne p1, v0, :cond_1 .line 137 const-string v0, "com.google.android.gms" invoke-static {p0, v0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isUninstalledAppPossiblyUpdating(Landroid/content/Context;Ljava/lang/String;)Z move-result v0 goto :goto_0 .line 138 :cond_1 const/4 v0, 0x0 goto :goto_0 .end method .method public static isPlayStorePossiblyUpdating(Landroid/content/Context;I)Z .locals 1 .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 .prologue .line 139 const/16 v0, 0x9 if-ne p1, v0, :cond_0 .line 140 const-string v0, "com.android.vending" invoke-static {p0, v0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isUninstalledAppPossiblyUpdating(Landroid/content/Context;Ljava/lang/String;)Z move-result v0 .line 141 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public static isRestrictedUserProfile(Landroid/content/Context;)Z .locals 3 .annotation build Landroid/annotation/TargetApi; value = 0x12 .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .prologue .line 160 invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastJellyBeanMR2()Z move-result v0 if-eqz v0, :cond_0 .line 161 const-string v0, "user" .line 162 invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/os/UserManager; .line 163 invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Landroid/os/UserManager;->getApplicationRestrictions(Ljava/lang/String;)Landroid/os/Bundle; move-result-object v0 .line 164 if-eqz v0, :cond_0 const-string v1, "true" const-string v2, "restricted_profile" .line 165 invoke-virtual {v0, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 .line 166 const/4 v0, 0x1 .line 167 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public static isSidewinderDevice(Landroid/content/Context;)Z .locals 1 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation build Lcom/google/android/gms/common/internal/ShowFirstParty; .end annotation .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 133 invoke-static {p0}, Lcom/google/android/gms/common/util/DeviceProperties;->isSidewinder(Landroid/content/Context;)Z move-result v0 return v0 .end method .method static isUninstalledAppPossiblyUpdating(Landroid/content/Context;Ljava/lang/String;)Z .locals 5 .annotation build Landroid/annotation/TargetApi; value = 0x15 .end annotation .prologue const/4 v1, 0x1 const/4 v2, 0x0 .line 142 const-string v0, "com.google.android.gms" invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v3 .line 143 invoke-static {}, Lcom/google/android/gms/common/util/PlatformVersion;->isAtLeastLollipop()Z move-result v0 if-eqz v0, :cond_1 .line 144 :try_start_0 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 invoke-virtual {v0}, Landroid/content/pm/PackageManager;->getPackageInstaller()Landroid/content/pm/PackageInstaller; move-result-object v0 invoke-virtual {v0}, Landroid/content/pm/PackageInstaller;->getAllSessions()Ljava/util/List; :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 move-result-object v0 .line 148 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v4 :cond_0 invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/content/pm/PackageInstaller$SessionInfo; .line 149 invoke-virtual {v0}, Landroid/content/pm/PackageInstaller$SessionInfo;->getAppPackageName()Ljava/lang/String; move-result-object v0 invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 move v0, v1 .line 159 :goto_0 return v0 .line 147 :catch_0 move-exception v0 move v0, v2 goto :goto_0 .line 152 :cond_1 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v0 .line 153 const/16 v4, 0x2000 .line 154 :try_start_1 invoke-virtual {v0, p1, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo; move-result-object v0 .line 155 if-eqz v3, :cond_2 .line 156 iget-boolean v0, v0, Landroid/content/pm/ApplicationInfo;->enabled:Z goto :goto_0 .line 157 :cond_2 iget-boolean v0, v0, Landroid/content/pm/ApplicationInfo;->enabled:Z if-eqz v0, :cond_3 invoke-static {p0}, Lcom/google/android/gms/common/GooglePlayServicesUtilLight;->isRestrictedUserProfile(Landroid/content/Context;)Z :try_end_1 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_1 move-result v0 if-nez v0, :cond_3 move v0, v1 goto :goto_0 :cond_3 move v0, v2 goto :goto_0 .line 159 :catch_1 move-exception v0 move v0, v2 goto :goto_0 .end method .method public static isUserRecoverableError(I)Z .locals 1 .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 112 packed-switch p0, :pswitch_data_0 .line 114 :pswitch_0 const/4 v0, 0x0 :goto_0 return v0 .line 113 :pswitch_1 const/4 v0, 0x1 goto :goto_0 .line 112 nop :pswitch_data_0 .packed-switch 0x1 :pswitch_1 :pswitch_1 :pswitch_1 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_0 :pswitch_1 .end packed-switch .end method .method public static uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z .locals 1 .annotation build Landroid/annotation/TargetApi; value = 0x13 .end annotation .annotation build Lcom/google/android/gms/common/annotation/KeepForSdk; .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .prologue .line 74 invoke-static {p0, p1, p2}, Lcom/google/android/gms/common/util/UidVerifier;->uidHasPackageName(Landroid/content/Context;ILjava/lang/String;)Z move-result v0 return v0 .end method .method private static zza(Landroid/content/Context;ZI)I .locals 7 .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .prologue const/16 v3, 0x9 const/4 v1, 0x1 const/4 v2, 0x0 .line 23 if-ltz p2, :cond_1 move v0, v1 :goto_0 invoke-static {v0}, Lcom/google/android/gms/common/internal/Preconditions;->checkArgument(Z)V .line 24 invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v4 .line 25 const/4 v0, 0x0 .line 26 if-eqz p1, :cond_0 .line 27 :try_start_0 const-string v0, "com.android.vending" const/16 v5, 0x2040 .line 28 invoke-virtual {v4, v0, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; :try_end_0 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 move-result-object v0 .line 33 :cond_0 :try_start_1 const-string v5, "com.google.android.gms" const/16 v6, 0x40 .line 34 invoke-virtual {v4, v5, v6}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; :try_end_1 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_1 move-result-object v5 .line 39 invoke-static {p0}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->getInstance(Landroid/content/Context;)Lcom/google/android/gms/common/GoogleSignatureVerifier; .line 40 invoke-static {v5, v1}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z move-result v6 if-nez v6, :cond_2 .line 41 const-string v0, "GooglePlayServicesUtil" const-string v1, "Google Play services signature invalid." invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I move v1, v3 .line 62 :goto_1 return v1 :cond_1 move v0, v2 .line 23 goto :goto_0 .line 31 :catch_0 move-exception v0 const-string v0, "GooglePlayServicesUtil" const-string v1, "Google Play Store is missing." invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I move v1, v3 .line 32 goto :goto_1 .line 37 :catch_1 move-exception v0 const-string v0, "GooglePlayServicesUtil" const-string v2, "Google Play services is missing." invoke-static {v0, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I goto :goto_1 .line 43 :cond_2 if-eqz p1, :cond_4 .line 44 invoke-static {v0, v1}, Lcom/google/android/gms/common/GoogleSignatureVerifier;->zza(Landroid/content/pm/PackageInfo;Z)Z move-result v6 if-eqz v6, :cond_3 iget-object v0, v0, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature; aget-object v0, v0, v2 iget-object v6, v5, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature; aget-object v6, v6, v2 .line 45 invoke-virtual {v0, v6}, Landroid/content/pm/Signature;->equals(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_4 .line 46 :cond_3 const-string v0, "GooglePlayServicesUtil" const-string v1, "Google Play Store signature invalid." invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I move v1, v3 .line 47 goto :goto_1 .line 48 :cond_4 iget v0, v5, Landroid/content/pm/PackageInfo;->versionCode:I invoke-static {v0}, Lcom/google/android/gms/common/util/zzb;->zzc(I)I move-result v0 .line 49 invoke-static {p2}, Lcom/google/android/gms/common/util/zzb;->zzc(I)I move-result v3 .line 50 if-ge v0, v3, :cond_5 .line 51 const-string v0, "GooglePlayServicesUtil" iget v1, v5, Landroid/content/pm/PackageInfo;->versionCode:I const/16 v2, 0x4d new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V const-string v2, "Google Play services out of date. Requires " invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 const-string v3, " but found " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I .line 52 const/4 v1, 0x2 goto :goto_1 .line 53 :cond_5 iget-object v0, v5, Landroid/content/pm/PackageInfo;->applicationInfo:Landroid/content/pm/ApplicationInfo; .line 54 if-nez v0, :cond_6 .line 55 :try_start_2 const-string v0, "com.google.android.gms" const/4 v3, 0x0 invoke-virtual {v4, v0, v3}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo; :try_end_2 .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_2} :catch_2 move-result-object v0 .line 60 :cond_6 iget-boolean v0, v0, Landroid/content/pm/ApplicationInfo;->enabled:Z if-nez v0, :cond_7 .line 61 const/4 v1, 0x3 goto :goto_1 .line 57 :catch_2 move-exception v0 .line 58 const-string v2, "GooglePlayServicesUtil" const-string v3, "Google Play services missing when getting application info." invoke-static {v2, v3, v0}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I goto/16 :goto_1 :cond_7 move v1, v2 .line 62 goto/16 :goto_1 .end method | Всего записей: 3 | Зарегистр. 02-04-2023 | Отправлено: 06:08 02-04-2023 | Исправлено: udokanec, 06:58 02-04-2023 |
|