MD5 校验值:6bdafb1d58f3fe7a55bbf3e7446795c3
u0.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.peace.SilentCamera; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.Intent; import android.graphics.drawable.ColorDrawable; import android.net.Uri; import android.os.Build; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import com.facebook.ads.R; import java.util.Locale; class u0 { App f23943a; Context f23944b; private AlertDialog f23945c; class a implements View.OnClickListener { a() { } @Override public void onClick(View view) { App.g("rate_dialog", "action", "rate"); u0.this.f23945c.dismiss(); u0.this.b(); } } class b implements View.OnClickListener { b() { } @Override public void onClick(View view) { App.g("rate_dialog", "action", "deny"); App.K.f("isEvaluate", true); u0.this.f23945c.dismiss(); } } class c implements View.OnClickListener { c() { } @Override public void onClick(View view) { App.g("rate_dialog", "action", "report"); App.K.f("isEvaluate", true); u0.this.f23945c.dismiss(); u0.this.c(); } } class d implements View.OnClickListener { d() { } @Override public void onClick(View view) { App.g("rate_dialog", "action", "later"); App.K.g("count", 0); App.K.h("lastEvaluateDate", System.currentTimeMillis()); u0.this.f23945c.dismiss(); } } public u0(Context context, AlertDialog alertDialog) { this.f23944b = context; this.f23945c = alertDialog; this.f23943a = (App) ((Activity) context).getApplication(); } public void b() { try { App.K.f("isEvaluate", true); Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + this.f23944b.getPackageName())); intent.setPackage("com.android.vending"); this.f23944b.startActivity(intent); } catch (Throwable th) { App.h(th); } } public void c() { Intent intent; try { if (this.f23944b.getPackageManager().getLaunchIntentForPackage("com.google.android.gm") == null) { intent = new Intent("android.intent.action.SENDTO", Uri.fromParts("mailto", "support@peace-app.com", null)); } else { Intent intent2 = new Intent(); intent2.setAction("android.intent.action.SEND"); intent2.setType("text/Gmail"); intent2.putExtra("android.intent.extra.EMAIL", new String[]{"support@peace-app.com"}); intent2.setPackage("com.google.android.gm"); intent = intent2; } intent.putExtra("android.intent.extra.SUBJECT", "[" + this.f23944b.getString(R.string.app_name) + "] " + this.f23944b.getString(R.string.evaluate_subject)); intent.putExtra("android.intent.extra.TEXT", this.f23944b.getString(R.string.evaluate_text) + "\n\n\n\n\n[Device]\nVendor: " + Build.MANUFACTURER + "\nModel: " + Build.DEVICE + " (" + Build.MODEL + ")\nAndroid: " + Build.VERSION.RELEASE + "\nVersion: 318 "); this.f23944b.startActivity(intent); } catch (Throwable th) { App.h(th); } } public boolean d() { if (App.K.a("isEvaluate", false)) { return false; } int b10 = App.K.b("count", 0); int currentTimeMillis = (int) ((System.currentTimeMillis() - App.K.c("lastEvaluateDate", 0L).longValue()) / 86400000); int b11 = App.K.b("uncaughtException", 0); int i10 = 20; try { if (Locale.getDefault().getLanguage().equals("in")) { i10 = 40; } } catch (Throwable th) { App.h(th); } return b10 >= i10 && currentTimeMillis >= 0 && b11 <= 0; } public void e() { AlertDialog alertDialog = this.f23945c; if (alertDialog == null || !alertDialog.isShowing()) { View inflate = ((LayoutInflater) this.f23944b.getSystemService("layout_inflater")).inflate(R.layout.dialog_rate, (ViewGroup) ((Activity) this.f23944b).findViewById(R.id.linearLayoutRateDialog)); AlertDialog.Builder builder = new AlertDialog.Builder(this.f23944b); builder.setView(inflate); builder.setCancelable(false); AlertDialog create = builder.create(); this.f23945c = create; try { create.getWindow().setBackgroundDrawable(new ColorDrawable(0)); } catch (Throwable th) { App.h(th); } ((Button) inflate.findViewById(R.id.PositiveButton)).setOnClickListener(new a()); ((Button) inflate.findViewById(R.id.NegativeButton)).setOnClickListener(new b()); ((Button) inflate.findViewById(R.id.ReportButton)).setOnClickListener(new c()); ((Button) inflate.findViewById(R.id.NeutralButton)).setOnClickListener(new d()); if (((Activity) this.f23944b).isFinishing()) { return; } this.f23945c.show(); } } }