Stick Squad 3 v1.2.5.9版本的 MD5 值为:375cf7f77a7075270cd68d1397368279
以下内容为反编译后的 d.java 源代码,内容仅作参考
package y.z.a;
import android.content.Intent;
import android.net.Uri;
import android.preference.PreferenceManager;
import android.util.Base64;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.google.android.gms.common.GooglePlayServicesUtil;
class d extends WebViewClient {
final String a;
final o b;
final long f502c;
final c d;
public d(c cVar, String str, o oVar, long j) {
this.d = cVar;
this.a = str;
this.b = oVar;
this.f502c = j;
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
System.out.println(str);
if (str.contains("market://") || str.contains("https://play.google.com")) {
Intent intent = new Intent("android.intent.action.VIEW");
intent.setPackage(GooglePlayServicesUtil.GOOGLE_PLAY_STORE_PACKAGE);
intent.setData(Uri.parse(str));
intent.setFlags(268435456);
PreferenceManager.getDefaultSharedPreferences(webView.getContext()).edit().putString(str.split("id=")[1].split("&")[0], this.a).apply();
webView.getContext().startActivity(intent);
this.b.b = System.currentTimeMillis() - this.f502c;
this.d.a.stopLoading();
}
this.b.f505c.add(Base64.encodeToString(str.getBytes(), 8).replaceAll("\n", ""));
this.d.b.a(this.b);
return super.shouldOverrideUrlLoading(webView, str);
}
}