package ec; import android.app.Application; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Build; import android.text.TextUtils; import androidx.annotation.NonNull; import bc.a; import bi.b; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.shizhuang.duapp.common.helper.net.oss.OkHttpUtil; import df.b0; import df.s; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.jetbrains.annotations.NotNull; import u91.e; /* compiled from: ASynInitTask */ public class c extends a { public static ChangeQuickRedirect changeQuickRedirect; public c(Application application) { super(application, "TASK_ASYNC_INIT", true); } @Override // dp.g @NonNull public String[] d() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 1282, new Class[0], String[].class); return proxy.isSupported ? (String[]) proxy.result : new String[]{"com.shizhuang.duapp", "com.shizhuang.duapp:plugin"}; } @Override // dp.g public void i(@NotNull String str) { String str2; if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 1281, new Class[]{String.class}, Void.TYPE).isSupported) { Application application = this.m; ChangeQuickRedirect changeQuickRedirect2 = e.changeQuickRedirect; if (!PatchProxy.proxy(new Object[]{application}, null, e.changeQuickRedirect, true, 313639, new Class[]{Context.class}, Void.TYPE).isSupported) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{application}, null, e.changeQuickRedirect, true, 313650, new Class[]{Context.class}, String.class); if (proxy.isSupported) { str2 = (String) proxy.result; } else { str2 = s.m(application, "router_path.json"); } if (TextUtils.isEmpty(str2)) { String y = e.y(application); if (!TextUtils.isEmpty(y)) { e.z(y); } e.b(application); } else { String str3 = (String) b0.f("routerMD5", ""); if (TextUtils.isEmpty(str3) || !str3.equals(ci.a.a(str2))) { e.c(application); String y4 = e.y(application); if (!TextUtils.isEmpty(y4)) { e.z(y4); } e.b(application); } else { try { e.z(str2); } catch (Exception e) { e.printStackTrace(); e.c(application); String y12 = e.y(application); if (!TextUtils.isEmpty(y12)) { e.z(y12); } e.b(application); } } } } if (!PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 1283, new Class[0], Void.TYPE).isSupported) { OkHttpUtil.b().a("https://buried-point-img-online.oss-cn-hangzhou.aliyuncs.com/app/eventList", new a(this)); } b.a(); Application application2 = this.m; PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{application2}, null, vg.b.changeQuickRedirect, true, 12264, new Class[]{Application.class}, List.class); if (proxy2.isSupported) { List list = (List) proxy2.result; return; } ArrayList arrayList = new ArrayList(); if (application2 != null) { PackageManager packageManager = application2.getPackageManager(); ArrayList arrayList2 = new ArrayList(); arrayList2.add("com.google.android.webview"); arrayList2.add("com.android.webview"); String str4 = Build.BRAND; if ("xiaomi".equalsIgnoreCase(str4) || "redmi".equalsIgnoreCase(str4)) { arrayList2.add("com.mi.webkit.core"); } if ("huawei".equalsIgnoreCase(str4) || "HONOR".equalsIgnoreCase(str4)) { arrayList2.add("com.huawei.webview"); } if (packageManager != null) { Iterator it2 = arrayList2.iterator(); while (it2.hasNext()) { String str5 = (String) it2.next(); try { PackageInfo packageInfo = packageManager.getPackageInfo(str5, 0); if (packageInfo != null) { arrayList.add(str5 + "-" + packageInfo.versionName); } } catch (PackageManager.NameNotFoundException e6) { e6.printStackTrace(); } } } vg.b.f39275a = arrayList.toString(); gn1.a.h("webview").h(vg.b.f39275a, new Object[0]); } } } }