CrackMe.apk
Download file
package com.google.android.gms.common;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import com.google.android.exoplayer2.C;
import com.google.android.gms.common.internal.zzt;
import com.google.android.gms.common.util.DeviceProperties;
import com.google.android.gms.common.wrappers.Wrappers;
import com.google.android.gms.internal.common.zzd;
/* compiled from: com.google.android.gms:play-services-basement@@18.1.0 */
public class GoogleApiAvailabilityLight {
public static final String GOOGLE_PLAY_SERVICES_PACKAGE = "com.google.android.gms";
public static final int GOOGLE_PLAY_SERVICES_VERSION_CODE = GooglePlayServicesUtilLight.GOOGLE_PLAY_SERVICES_VERSION_CODE;
public static final String GOOGLE_PLAY_STORE_PACKAGE = "com.android.vending";
static final String TRACKING_SOURCE_DIALOG = "d";
static final String TRACKING_SOURCE_NOTIFICATION = "n";
private static final GoogleApiAvailabilityLight zza = new GoogleApiAvailabilityLight();
GoogleApiAvailabilityLight() {
}
public static GoogleApiAvailabilityLight getInstance() {
return zza;
}
public void cancelAvailabilityErrorNotifications(Context context) {
GooglePlayServicesUtilLight.cancelAvailabilityErrorNotifications(context);
}
public int getApkVersion(Context context) {
return GooglePlayServicesUtilLight.getApkVersion(context);
}
public int getClientVersion(Context context) {
return GooglePlayServicesUtilLight.getClientVersion(context);
}
@Deprecated
public Intent getErrorResolutionIntent(int i) {
return getErrorResolutionIntent((Context) null, i, (String) null);
}
public PendingIntent getErrorResolutionPendingIntent(Context context, int i, int i2) {
return getErrorResolutionPendingIntent(context, i, i2, (String) null);
}
public String getErrorString(int i) {
return GooglePlayServicesUtilLight.getErrorString(i);
}
public int isGooglePlayServicesAvailable(Context context) {
return isGooglePlayServicesAvailable(context, GOOGLE_PLAY_SERVICES_VERSION_CODE);
}
public boolean isPlayServicesPossiblyUpdating(Context context, int i) {
return GooglePlayServicesUtilLight.isPlayServicesPossiblyUpdating(context, i);
}
public boolean isPlayStorePossiblyUpdating(Context context, int i) {
return GooglePlayServicesUtilLight.isPlayStorePossiblyUpdating(context, i);
}
public boolean isUninstalledAppPossiblyUpdating(Context context, String str) {
return GooglePlayServicesUtilLight.zza(context, str);
}
public boolean isUserResolvableError(int i) {
return GooglePlayServicesUtilLight.isUserRecoverableError(i);
}
public void verifyGooglePlayServicesIsAvailable(Context context, int i) throws GooglePlayServicesRepairableException, GooglePlayServicesNotAvailableException {
GooglePlayServicesUtilLight.ensurePlayServicesAvailable(context, i);
}
public Intent getErrorResolutionIntent(Context context, int i, String str) {
if (i == 1 || i == 2) {
if (context != null && DeviceProperties.isWearableWithoutPlayStore(context)) {
return zzt.zza();
}
StringBuilder sb = new StringBuilder();
sb.append("gcore_");
sb.append(GOOGLE_PLAY_SERVICES_VERSION_CODE);
sb.append("-");
if (!TextUtils.isEmpty(str)) {
sb.append(str);
}
sb.append("-");
if (context != null) {
sb.append(context.getPackageName());
}
sb.append("-");
if (context != null) {
try {
sb.append(Wrappers.packageManager(context).getPackageInfo(context.getPackageName(), 0).versionCode);
} catch (PackageManager.NameNotFoundException unused) {
}
}
return zzt.zzb("com.google.android.gms", sb.toString());
} else if (i != 3) {
return null;
} else {
return zzt.zzc("com.google.android.gms");
}
}
public PendingIntent getErrorResolutionPendingIntent(Context context, int i, int i2, String str) {
Intent errorResolutionIntent = getErrorResolutionIntent(context, i, str);
if (errorResolutionIntent == null) {
return null;
}
return PendingIntent.getActivity(context, i2, errorResolutionIntent, zzd.zza | C.BUFFER_FLAG_FIRST_SAMPLE);
}
public int isGooglePlayServicesAvailable(Context context, int i) {
int isGooglePlayServicesAvailable = GooglePlayServicesUtilLight.isGooglePlayServicesAvailable(context, i);
if (GooglePlayServicesUtilLight.isPlayServicesPossiblyUpdating(context, isGooglePlayServicesAvailable)) {
return 18;
}
return isGooglePlayServicesAvailable;
}
}
Download file