Step Record v1.1.5版本的 MD5 值为:5797275f89198878d2f00ee92d534382
以下内容为反编译后的 f3.java 源代码,内容仅作参考
package com.inmobi.media;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import com.chartboost.heliumsdk.impl.K1H;
import com.chartboost.heliumsdk.impl.ttHtzKt;
import java.util.ArrayList;
import java.util.List;
public final class f3 {
public static final f3 a = new f3();
public static String b;
public static final String a(Context context) {
if (context != null && b == null) {
try {
PackageManager packageManager = context.getPackageManager();
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("http://www.google.com"));
ResolveInfo resolveActivity = packageManager.resolveActivity(intent, 0);
String str = resolveActivity != null ? resolveActivity.activityInfo.packageName : null;
List<ResolveInfo> queryIntentActivities = packageManager.queryIntentActivities(intent, 0);
ttHtzKt.tz(queryIntentActivities, "pm.queryIntentActivities(activityIntent, 0)");
ArrayList arrayList = new ArrayList();
for (ResolveInfo resolveInfo : queryIntentActivities) {
Intent intent2 = new Intent();
intent2.setAction("android.support.customtabs.action.CustomTabsService");
intent2.setPackage(resolveInfo.activityInfo.packageName);
if (packageManager.resolveService(intent2, 0) != null) {
String str2 = resolveInfo.activityInfo.packageName;
ttHtzKt.tz(str2, "info.activityInfo.packageName");
arrayList.add(str2);
}
}
if (arrayList.isEmpty()) {
b = null;
} else if (arrayList.size() == 1) {
b = (String) arrayList.get(0);
} else if (!TextUtils.isEmpty(str) && !a.a(context, intent) && K1H.Kz1(arrayList, str)) {
b = str;
} else if (arrayList.contains("com.android.chrome")) {
b = "com.android.chrome";
} else if (arrayList.contains("com.chrome.beta")) {
b = "com.chrome.beta";
} else if (arrayList.contains("com.chrome.dev")) {
b = "com.chrome.dev";
} else if (arrayList.contains("com.google.android.apps.chrome")) {
b = "com.google.android.apps.chrome";
}
} catch (Exception unused) {
}
return b;
}
return b;
}
public final boolean a(Context context, Intent intent) {
try {
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 64);
ttHtzKt.tz(queryIntentActivities, "pm.queryIntentActivities…LVED_FILTER\n )");
for (ResolveInfo resolveInfo : queryIntentActivities) {
IntentFilter intentFilter = resolveInfo.filter;
if (intentFilter != null && intentFilter.countDataAuthorities() != 0 && intentFilter.countDataPaths() != 0 && resolveInfo.activityInfo != null) {
return true;
}
}
return false;
} catch (RuntimeException unused) {
Log.e("f3", "Runtime exception while getting specialized handlers");
return false;
}
}
}