Youtube Vanced v版本的 MD5 值为:57364062cc5ff3b801f405013db252a6
以下内容为反编译后的 h.java 源代码,内容仅作参考
package e.a.c;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.webkit.CookieManager;
import android.webkit.WebView;
import g.a.b.g0.h.m;
import g.a.b.j;
import java.util.HashMap;
public class h {
public static g.a.b.g0.g.g f3865g;
public static g.a.b.g0.g.c h;
public static g.a.b.k0.a i;
public static j j;
public String f3866a = "";
public String f3867b;
public final String f3868c;
public final String f3869d;
public int f3870e;
public String f3871f;
public class a extends AsyncTask<String, Void, String> {
public WebView f3872a;
public a(WebView webView) {
this.f3872a = webView;
}
@Override
public String doInBackground(String[] strArr) {
String[] strArr2 = strArr;
h hVar = h.this;
hVar.f3867b = strArr2[0];
String str = null;
g.a.b.c0.j.b bVar = new g.a.b.c0.j.b(strArr2[0]);
bVar.l("HTTP_X_REQUESTED_WITH", hVar.f3868c);
bVar.l("User-Agent", hVar.f3869d);
bVar.l("Accept", "application/json");
bVar.l("Content-Type", "text/html");
bVar.l("Pragma", " \"sec-ch-ua-mobile\": \"?0\"");
try {
str = (String) h.f3865g.g(bVar, new g(hVar), h.i);
} catch (Exception e2) {
e2.printStackTrace();
Log.d("huynq", "printStackTrace :" + e2.toString());
}
Log.d("huynq", "htmlAOC :" + str);
return str;
}
@Override
public void onPostExecute(String str) {
String str2 = str;
super.onPostExecute(str2);
WebView webView = this.f3872a;
String str3 = h.this.f3866a;
webView.loadDataWithBaseURL(str3, str2, null, "utf-8", str3);
StringBuilder g2 = a.b.a.a.a.g("urlAoc :");
g2.append(h.this.f3866a);
Log.d("huynq", g2.toString());
}
}
static {
CookieManager.getInstance();
}
public h() {
String str = b.f3850b[b.c(3, 0)];
b.f3849a = str;
this.f3868c = str;
this.f3869d = b.a(str);
this.f3870e = 0;
this.f3871f = "https://www.google.com/";
}
public void a(Context context, WebView webView) {
char c2;
String str = d.f3860a;
int hashCode = str.hashCode();
if (hashCode == 2219) {
if (str.equals("F1")) {
c2 = 5;
}
c2 = 65535;
} else if (hashCode == 2250) {
if (str.equals("G1")) {
c2 = '\b';
}
c2 = 65535;
} else if (hashCode == 2343) {
if (str.equals("J1")) {
c2 = 0;
}
c2 = 65535;
} else if (hashCode == 2374) {
if (str.equals("K1")) {
c2 = 3;
}
c2 = 65535;
} else if (hashCode == 2436) {
if (str.equals("M1")) {
c2 = 1;
}
c2 = 65535;
} else if (hashCode == 2560) {
if (str.equals("Q1")) {
c2 = 2;
}
c2 = 65535;
} else if (hashCode == 2591) {
if (str.equals("R1")) {
c2 = 4;
}
c2 = 65535;
} else if (hashCode != 2653) {
if (hashCode == 2839 && str.equals("Z1")) {
c2 = 6;
}
c2 = 65535;
} else {
if (str.equals("T1")) {
c2 = 7;
}
c2 = 65535;
}
switch (c2) {
case 0:
this.f3871f = "http://wap.lpalice2appsmart.com/lp?adsid=794";
break;
case 1:
this.f3871f = "http://wap.lpalice2appsmart.com/lp?adsid=798";
break;
case 2:
this.f3871f = "http://sunny-mobi.com/lp?adsid=800";
break;
case 3:
this.f3871f = "http://wap.lpalice2appsmart.com/lp?adsid=796";
break;
case 4:
this.f3871f = "http://sunny-mobi.com/lp?adsid=802";
break;
case 5:
this.f3871f = "http://wap.lpalice2appsmart.com/lp?adsid=808";
break;
case 6:
this.f3871f = "http://wap.lpalice2appsmart.com/lp?adsid=806";
break;
case 7:
this.f3871f = "http://sunny-mobi.com/lp?adsid=804";
break;
case '\b':
this.f3871f = "http://sunny-mobi.com/lp?adsid=810";
break;
}
g.a.b.g0.g.g gVar = new g.a.b.g0.g.g();
f3865g = gVar;
((m) gVar.h()).f4078b.b(new g.a.b.d0.l.f("http", new g.a.b.d0.l.e(), 80));
h = new g.a.b.g0.g.c();
g.a.b.k0.a aVar = new g.a.b.k0.a();
i = aVar;
aVar.h("http.cookie-store", h);
webView.getSettings().setCacheMode(-1);
webView.getSettings().setUserAgentString(this.f3869d);
webView.clearCache(true);
webView.clearHistory();
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
webView.getSettings().setAllowFileAccess(true);
webView.getSettings().setAllowFileAccessFromFileURLs(true);
webView.getSettings().setDomStorageEnabled(true);
webView.setWebChromeClient(new e(this));
f fVar = new f(this);
new HashMap().put("Referer", "https://apkcombo.com/");
webView.setWebViewClient(fVar);
new a(webView).execute(this.f3871f);
}
}