QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 AppstoreGuideUtils.java 源代码,内容仅作参考
package com.tencent.mtt.browser.appstoreguide;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import com.huawei.hms.common.PackageConstants;
import com.tencent.mtt.R;
import com.tencent.mtt.base.stat.StatManager;
import com.tencent.mtt.base.utils.DeviceUtilsF;
import com.tencent.mtt.browser.file.facade.IFileStatService;
import com.tencent.mtt.view.toast.MttToaster;
import java.util.HashMap;
class AppstoreGuideUtils {
AppstoreGuideUtils() {
}
private static Intent a(Uri uri, String str, String str2) {
Intent intent = new Intent("android.intent.action.VIEW", uri);
intent.addFlags(268435456);
if (!TextUtils.isEmpty(str2)) {
intent.setPackage(str2);
if (!TextUtils.isEmpty(str)) {
intent.setClassName(str2, str);
}
}
return intent;
}
public static void a(Context context) {
Uri parse;
String str;
String str2;
String str3;
String str4;
Uri uri = null;
try {
if (!DeviceUtilsF.i()) {
if (!a() && !DeviceUtilsF.aR) {
if (DeviceUtilsF.A()) {
parse = Uri.parse("market://details?id=com.tencent.mtt");
str = "com.bbk.appstore";
} else if (DeviceUtilsF.q()) {
parse = Uri.parse("market://details?id=com.tencent.mtt");
str = PackageConstants.SERVICES_PACKAGE_APPMARKET;
} else {
if (DeviceUtilsF.g()) {
uri = Uri.parse("https://www.samsungapps.com/appquery/appDetail.as?appId=com.tencent.mtt");
str3 = "com.sec.android.app.samsungapps";
str2 = "com.sec.android.app.samsungapps.Main";
context.startActivity(a(uri, str2, str3));
}
str4 = "market://details?id=com.tencent.mtt";
}
String str5 = str;
str2 = null;
uri = parse;
str3 = str5;
context.startActivity(a(uri, str2, str3));
}
parse = Uri.parse("market://details?id=com.tencent.mtt");
str = "com.oppo.market";
String str52 = str;
str2 = null;
uri = parse;
str3 = str52;
context.startActivity(a(uri, str2, str3));
}
str4 = "mimarket://comments?packageName=com.tencent.mtt";
str2 = null;
uri = Uri.parse(str4);
str3 = null;
context.startActivity(a(uri, str2, str3));
} catch (Exception unused) {
Intent intent = new Intent("android.intent.action.VIEW", uri);
intent.addFlags(268435456);
try {
context.startActivity(intent);
} catch (Exception unused2) {
MttToaster.show(R.string.j6, 0);
}
}
}
public static void a(String str, String str2) {
HashMap hashMap = new HashMap();
hashMap.put("scene", str);
hashMap.put(IFileStatService.EVENT_REPORT_NAME, str2);
StatManager.b().b("mtt_guide_pop_ups_event", hashMap);
}
private static boolean a() {
return "OPPO".equalsIgnoreCase(Build.MANUFACTURER);
}
}