Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 j.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.click;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import androidx.webkit.ProxyConfig;
import com.applovin.impl.sdk.utils.Utils;
import com.fyber.inneractive.sdk.click.l;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.e0;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;
public class j implements com.fyber.inneractive.sdk.click.a {
public static final Comparator<ResolveInfo> a = new a();
public class a implements Comparator<ResolveInfo> {
@Override
public int compare(ResolveInfo resolveInfo, ResolveInfo resolveInfo2) {
ActivityInfo activityInfo;
String str;
ResolveInfo resolveInfo3 = resolveInfo2;
ActivityInfo activityInfo2 = resolveInfo.activityInfo;
if (activityInfo2 == null || (activityInfo = resolveInfo3.activityInfo) == null || (str = activityInfo2.packageName) == null) {
return 1;
}
return str.compareTo(activityInfo.packageName);
}
}
@Override
public b a(Context context, Uri uri, List<i> list) {
Intent intent;
ResolveInfo resolveInfo;
boolean z = true;
if (Build.VERSION.SDK_INT > 29) {
String scheme = uri.getScheme();
if (!(ProxyConfig.MATCH_HTTP.equalsIgnoreCase(scheme) || "https".equalsIgnoreCase(scheme))) {
z = false;
}
}
if (z) {
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(new Intent("android.intent.action.VIEW", uri), 32);
if (queryIntentActivities == null || queryIntentActivities.size() <= 0) {
return null;
}
List<ResolveInfo> queryIntentActivities2 = context.getPackageManager().queryIntentActivities(new Intent("android.intent.action.VIEW", Uri.parse("http://www.fyber.com")), 32);
TreeSet treeSet = new TreeSet(a);
treeSet.addAll(queryIntentActivities2);
queryIntentActivities.removeAll(treeSet);
if (queryIntentActivities.size() <= 0 || (resolveInfo = queryIntentActivities.get(0)) == null) {
intent = null;
} else {
intent = new Intent("android.intent.action.VIEW", uri);
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent.setClassName(activityInfo.packageName, activityInfo.name);
if (!(context instanceof Activity)) {
intent.setFlags(268435456);
}
}
if (intent != null) {
return a(context, intent, uri, list);
}
return null;
}
Intent intent2 = new Intent("android.intent.action.VIEW", uri);
if (!(context instanceof Activity)) {
intent2.setFlags(268435456);
}
return a(context, intent2, uri, list);
}
@Override
public boolean a(Uri uri, l lVar) {
return true;
}
public final b a(Context context, Intent intent, Uri uri, List<i> list) {
try {
context.startActivity(intent);
if (list != null) {
list.add(new i(uri.toString(), true, a(intent), null));
}
return l.a(uri.toString(), a(intent), "Resolver");
} catch (Exception e) {
IAlog.a(e.getLocalizedMessage(), new Object[0]);
if (list != null) {
list.add(new i(uri.toString(), false, l.d.OPEN_IN_EXTERNAL_APPLICATION, null));
}
return l.a(uri.toString(), "Resolver", "failed starting resolved activity - " + e.getMessage());
}
}
public final l.d a(Intent intent) {
boolean z = false;
if (intent.getData() != null) {
String uri = intent.getData().toString();
int i = e0.b;
if (!TextUtils.isEmpty(uri)) {
Uri parse = Uri.parse(uri);
String host = parse.getHost();
String scheme = parse.getScheme();
if (((uri.startsWith("http:") || uri.startsWith("https:")) && ("play.google.com".equalsIgnoreCase(host) || "market.android.com".equalsIgnoreCase(host))) || Utils.PLAY_STORE_SCHEME.equalsIgnoreCase(scheme)) {
z = true;
}
}
}
return z ? l.d.OPEN_GOOGLE_STORE : l.d.OPEN_IN_EXTERNAL_APPLICATION;
}
}