Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 q9.java 源代码,内容仅作参考
package com.my.target;
import android.content.Context;
import android.text.TextUtils;
import android.webkit.URLUtil;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
public class q9 {
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"};
@NonNull
public final String a;
@Nullable
public a f4478b;
public interface a {
void a(@Nullable String str);
}
public q9(@NonNull String str) {
this.a = str;
}
@NonNull
public static String a(@NonNull String str) {
try {
return URLDecoder.decode(str, "UTF-8");
} catch (Throwable th) {
o9.a("UrlResolver: Unable to decode url - " + th.getMessage());
return str;
}
}
public void a(Context context) {
final String c2 = y1.a().a(this.a, null, context).c();
if (this.f4478b == null) {
return;
}
c0.c(new Runnable() {
@Override
public final void run() {
q9.this.f(c2);
}
});
}
@NonNull
public static String b(@NonNull String str) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (Throwable th) {
o9.a("UrlResolver: Unable to encode url - " + th.getMessage());
return "";
}
}
public static boolean c(@Nullable String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
return str.startsWith("https");
}
public static boolean d(@Nullable String str) {
if (TextUtils.isEmpty(str)) {
return false;
}
for (String str2 : c) {
if (str.startsWith(str2)) {
return true;
}
}
return false;
}
public static boolean e(@Nullable 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.f4478b;
if (aVar != null) {
aVar.a(str);
this.f4478b = null;
}
}
@NonNull
public static q9 g(@NonNull String str) {
return new q9(str);
}
@NonNull
public q9 a(@Nullable a aVar) {
this.f4478b = aVar;
return this;
}
public void b(@NonNull Context context) {
final Context applicationContext = context.getApplicationContext();
c0.b(new Runnable() {
@Override
public final void run() {
q9.this.a(applicationContext);
}
});
}
}