- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
75 lines
2.8 KiB
Java
75 lines
2.8 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.content.pm.ActivityInfo;
|
|
import android.content.pm.PackageManager;
|
|
import android.content.pm.ResolveInfo;
|
|
import android.net.Uri;
|
|
import android.view.View;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.VisibleForTesting;
|
|
import com.google.android.gms.drive.DriveFile;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
@VisibleForTesting
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbka {
|
|
@Nullable
|
|
public static final Intent zza(Uri uri, Context context, zzava zzavaVar, View view, zzfcn zzfcnVar) {
|
|
if (uri == null) {
|
|
return null;
|
|
}
|
|
Intent intent = new Intent("android.intent.action.VIEW");
|
|
intent.addFlags(DriveFile.MODE_READ_ONLY);
|
|
intent.setData(uri);
|
|
intent.setAction("android.intent.action.VIEW");
|
|
return intent;
|
|
}
|
|
|
|
public static final Intent zzb(Intent intent, ResolveInfo resolveInfo, Context context, zzava zzavaVar, View view, zzfcn zzfcnVar) {
|
|
Intent intent2 = new Intent(intent);
|
|
ActivityInfo activityInfo = resolveInfo.activityInfo;
|
|
intent2.setClassName(activityInfo.packageName, activityInfo.name);
|
|
return intent2;
|
|
}
|
|
|
|
@VisibleForTesting
|
|
public static final ResolveInfo zzc(Intent intent, Context context, zzava zzavaVar, View view, zzfcn zzfcnVar) {
|
|
return zzd(intent, new ArrayList(), context, zzavaVar, view, zzfcnVar);
|
|
}
|
|
|
|
@Nullable
|
|
@VisibleForTesting
|
|
public static final ResolveInfo zzd(Intent intent, ArrayList arrayList, Context context, zzava zzavaVar, View view, zzfcn zzfcnVar) {
|
|
PackageManager packageManager;
|
|
ResolveInfo resolveInfo = null;
|
|
try {
|
|
packageManager = context.getPackageManager();
|
|
} catch (Throwable th) {
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzw(th, "OpenSystemBrowserHandler.getDefaultBrowserResolverForIntent");
|
|
}
|
|
if (packageManager == null) {
|
|
return null;
|
|
}
|
|
List<ResolveInfo> queryIntentActivities = packageManager.queryIntentActivities(intent, 65536);
|
|
ResolveInfo resolveActivity = packageManager.resolveActivity(intent, 65536);
|
|
if (queryIntentActivities != null && resolveActivity != null) {
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= queryIntentActivities.size()) {
|
|
break;
|
|
}
|
|
if (resolveActivity.activityInfo.name.equals(queryIntentActivities.get(i).activityInfo.name)) {
|
|
resolveInfo = resolveActivity;
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
}
|
|
arrayList.addAll(queryIntentActivities);
|
|
return resolveInfo;
|
|
}
|
|
}
|