Kate Mobile v109.1版本的 MD5 值为:fcd76ded5f363ecbfac46035a4ed2a23
以下内容为反编译后的 z8.java 源代码,内容仅作参考
package com.my.target;
import android.text.TextUtils;
import android.webkit.URLUtil;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
public abstract class z8 {
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 static String a(String str) {
try {
return URLDecoder.decode(str, "UTF-8");
} catch (Throwable th) {
x8.a("UrlResolver: Unable to decode url - " + th.getMessage());
return str;
}
}
public static String b(String str) {
try {
return URLEncoder.encode(str, "UTF-8");
} catch (Throwable th) {
x8.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;
}
}