正在查看: Perplexity v2.48.1 应用的 C7169b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 C7169b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package x0;
import Ck.C0082h;
import android.net.Uri;
import android.util.Log;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.zip.GZIPInputStream;
import kotlin.Result;
import kotlin.coroutines.SafeContinuation;
public final class C7169b extends WebViewClient {
public final C9.c f70190a;
public final SafeContinuation f70191b;
public final WebView f70192c;
public C7169b(C9.c cVar, SafeContinuation safeContinuation, WebView webView) {
this.f70190a = cVar;
this.f70191b = safeContinuation;
this.f70192c = webView;
}
@Override
public final void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
if ("https://appassets.androidplatform.net/assets/highlight.html".equals(str)) {
int i10 = Result.f52682x;
this.f70191b.resumeWith(this.f70192c);
}
}
@Override
public final WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
Uri url;
if (webResourceRequest != null && (url = webResourceRequest.getUrl()) != null) {
Iterator it = this.f70190a.f1850b.iterator();
while (it.hasNext()) {
C9.b bVar = (C9.b) it.next();
bVar.getClass();
boolean equals = url.getScheme().equals("http");
String str = bVar.f1847b;
C9.a aVar = (!equals && (url.getScheme().equals("http") || url.getScheme().equals("https")) && url.getAuthority().equals(bVar.f1846a) && url.getPath().startsWith(str)) ? bVar.f1848c : null;
if (aVar != null) {
String replaceFirst = url.getPath().replaceFirst(str, "");
try {
C0082h c0082h = aVar.f1845a;
String substring = (replaceFirst.length() <= 1 || replaceFirst.charAt(0) != '/') ? replaceFirst : replaceFirst.substring(1);
InputStream open = c0082h.f2291x.getAssets().open(substring, 2);
if (substring.endsWith(".svgz")) {
open = new GZIPInputStream(open);
}
return new WebResourceResponse(C0082h.h(replaceFirst), null, open);
} catch (IOException e10) {
Log.e("WebViewAssetLoader", "Error opening asset path: " + replaceFirst, e10);
return new WebResourceResponse(null, null, null);
}
}
}
}
return null;
}
}