Idle Tower v2.48版本的 MD5 值为:56f20496f6a85726b376356ed2ecee23
以下内容为反编译后的 l9.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.URLUtil;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
public class l9 {
public static final String[] c = {"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 f7028a;
public a b;
public interface a {
void a(String str);
}
public l9(String str) {
this.f7028a = str;
}
public static String a(String str) {
try {
return URLDecoder.decode(str, "UTF-8");
} catch (Throwable th) {
j9.a("UrlResolver: Unable to decode url - " + th.getMessage());
return str;
}
}
public void a(Context context) {
final String a2 = u1.d().a(this.f7028a, null, context);
if (this.b == null) {
return;
}
z.c(new Runnable() {
@Override
public final void run() {
l9.this.f(a2);
}
});
}
public static String b(String str) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (Throwable th) {
j9.a("UrlResolver: Unable to encode url - " + th.getMessage());
return "";
}
}
public static boolean c(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return str.startsWith("https");
}
public static boolean d(String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
for (String str2 : c) {
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.b;
if (aVar != null) {
aVar.a(str);
this.b = null;
}
}
public static l9 g(String str) {
return new l9(str);
}
public l9 a(a aVar) {
this.b = aVar;
return this;
}
public void b(Context context) {
final Context applicationContext = context.getApplicationContext();
z.b(new Runnable() {
@Override
public final void run() {
l9.this.a(applicationContext);
}
});
}
}