Proxy Master v3.4.9版本的 MD5 值为:14d0aa2468d13530c8f6e96bcc114bf5
以下内容为反编译后的 da.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.URLUtil;
import com.unity3d.services.core.network.model.HttpRequest;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
public class da {
public static final String[] f9346c = {"http://play.google.com", "https://play.google.com", "http://market.android.com", "https://market.android.com", "https://appgallery.huawei.com/", "https://appgallery.cloud.huawei.com/", "market://", "samsungapps://", "appmarket://", "hiapplink://", "https://apps.rustore.ru", "https://backapi.rustore.ru"};
public final String f9347a;
public a f9348b;
public interface a {
void a(String str);
}
public da(String str) {
this.f9347a = str;
}
public static String a(String str) {
try {
return URLDecoder.decode(str, "UTF-8");
} catch (Throwable th) {
a.a.y(th, new StringBuilder("UrlResolver: Unable to decode url - "));
return str;
}
}
public void a(Context context) {
String c10 = c2.a().a(this.f9347a, null, context).c();
if (this.f9348b == null) {
return;
}
c0.d(new x.g(14, this, c10));
}
public static void a(da daVar, Context context) {
daVar.a(context);
}
public static String b(String str) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (Throwable th) {
a.a.y(th, new StringBuilder("UrlResolver: Unable to encode url - "));
return "";
}
}
public static void b(da daVar, String str) {
daVar.f(str);
}
public static boolean c(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return str.startsWith(HttpRequest.DEFAULT_SCHEME);
}
public static boolean d(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
for (String str2 : f9346c) {
if (str.startsWith(str2)) {
return true;
}
}
return false;
}
public static boolean e(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
try {
if (URLUtil.isHttpsUrl(str)) {
return !TextUtils.isEmpty(new URL(str).getHost());
}
} catch (Throwable unused) {
}
return false;
}
public void f(String str) {
a aVar = this.f9348b;
if (aVar != null) {
aVar.a(str);
this.f9348b = null;
}
}
public static da g(String str) {
return new da(str);
}
public da a(a aVar) {
this.f9348b = aVar;
return this;
}
public void b(Context context) {
c0.c(new t0.b(17, this, context.getApplicationContext()));
}
}