Luсky+Рatcher v11.3.3版本的 MD5 值为:fcc08dfa98a57a21951c5463e292fdaf
以下内容为反编译后的 C3538.java 源代码,内容仅作参考
package p086;
import android.app.Dialog;
import android.content.ActivityNotFoundException;
import android.content.ClipboardManager;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.net.Uri;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.android.apksig.apk.ApkFormatException;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.cert.CertificateFactory;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import javaroot.utils.C1644;
import net.lingala.zip4j.util.InternalZipConstants;
import org.jf.dexlib2.dexbacked.raw.ItemType;
import p037.C2500;
import p040.C2635;
import p085.C2913;
import p085.C2975;
import p085.C3478;
import ru.aaaaabbt.installer.R;
import ru.sxbuIDfx.pFSOyagrF.MainActivity;
public class C3538 {
Dialog f10182 = null;
public class ViewOnClickListenerC3539 implements View.OnClickListener {
ViewOnClickListenerC3539() {
}
@Override
public void onClick(View view) {
try {
MainActivity mainActivity = C2975.f9259;
if (mainActivity != null) {
mainActivity.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + C2975.f9253.f10046)));
}
} catch (ActivityNotFoundException unused) {
MainActivity mainActivity2 = C2975.f9259;
if (mainActivity2 != null) {
mainActivity2.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + C2975.f9253.f10046)));
}
}
}
}
public class ViewOnClickListenerC3540 implements View.OnClickListener {
final TextView f10184;
ViewOnClickListenerC3540(TextView textView) {
this.f10184 = textView;
}
@Override
public void onClick(View view) {
try {
((ClipboardManager) C2975.m7929().getSystemService("clipboard")).setText(this.f10184.getText());
Toast.makeText(C2975.m7929(), C2500.m7007(R.string.clipboard_message_for_app_dilaog_app_additional_info), 0).show();
} catch (NoClassDefFoundError unused) {
}
}
}
public class ViewOnClickListenerC3541 implements View.OnClickListener {
final TextView f10186;
ViewOnClickListenerC3541(TextView textView) {
this.f10186 = textView;
}
@Override
public void onClick(View view) {
try {
((ClipboardManager) C2975.m7929().getSystemService("clipboard")).setText(this.f10186.getText());
Toast.makeText(C2975.m7929(), C2500.m7007(R.string.clipboard_message_for_app_dilaog_app_info), 0).show();
} catch (NoClassDefFoundError unused) {
}
}
}
public class ViewOnClickListenerC3542 implements View.OnClickListener {
final TextView f10188;
ViewOnClickListenerC3542(TextView textView) {
this.f10188 = textView;
}
@Override
public void onClick(View view) {
try {
((ClipboardManager) C2975.m7929().getSystemService("clipboard")).setText(this.f10188.getText());
Toast.makeText(C2975.m7929(), C2500.m7007(R.string.clipboard_message_for_app_dilaog_app_permissions), 0).show();
} catch (NoClassDefFoundError unused) {
}
}
}
public class RunnableC3543 implements Runnable {
final TextView f10190;
final TextView f10191;
final SpannableStringBuilder f10192;
final SpannableStringBuilder f10193;
final TextView f10194;
final SpannableStringBuilder f10195;
final TextView f10196;
final ProgressBar f10197;
class RunnableC3544 implements Runnable {
final SpannableString f10199;
RunnableC3544(SpannableString spannableString) {
this.f10199 = spannableString;
}
@Override
public void run() {
RunnableC3543.this.f10190.setText(this.f10199);
RunnableC3543.this.f10191.setText("");
}
}
class RunnableC3545 implements Runnable {
RunnableC3545() {
}
@Override
public void run() {
RunnableC3543 runnableC3543 = RunnableC3543.this;
runnableC3543.f10191.setText(runnableC3543.f10192, TextView.BufferType.SPANNABLE);
}
}
class RunnableC3546 implements Runnable {
RunnableC3546() {
}
@Override
public void run() {
RunnableC3543 runnableC3543 = RunnableC3543.this;
runnableC3543.f10194.setText(runnableC3543.f10193, TextView.BufferType.SPANNABLE);
}
}
class RunnableC3547 implements Runnable {
RunnableC3547() {
}
@Override
public void run() {
RunnableC3543 runnableC3543 = RunnableC3543.this;
runnableC3543.f10196.setText(runnableC3543.f10195, TextView.BufferType.SPANNABLE);
RunnableC3543.this.f10197.setVisibility(8);
}
}
RunnableC3543(TextView textView, TextView textView2, SpannableStringBuilder spannableStringBuilder, SpannableStringBuilder spannableStringBuilder2, TextView textView3, SpannableStringBuilder spannableStringBuilder3, TextView textView4, ProgressBar progressBar) {
this.f10190 = textView;
this.f10191 = textView2;
this.f10192 = spannableStringBuilder;
this.f10193 = spannableStringBuilder2;
this.f10194 = textView3;
this.f10195 = spannableStringBuilder3;
this.f10196 = textView4;
this.f10197 = progressBar;
}
@Override
public void run() {
Exception exc;
String str;
long j;
int i;
int i2;
String str2;
String str3;
try {
C2975.f9312.post(new RunnableC3544(C2500.m6934(C2975.f9253.f10047, "#be6e17", "bold")));
if (C2500.m7047(C2975.f9253.f10046)) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.app_info_apk_is_splitted) + "\n", -16728876, ""));
}
if (C2975.f9253.f10064) {
this.f10192.append((CharSequence) C2500.m6934(C2500.m7007(R.string.enabled_package) + "\n", "#AAAAAA", ""));
} else {
this.f10192.append((CharSequence) C2500.m6934(C2500.m7007(R.string.disabled_package) + "\n", "#AAAAAA", ""));
}
if (C2975.f9253.f10056) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statcustom) + "\n", -990142, ""));
}
if (C2975.f9253.f10057) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statlvl) + "\n", -16711821, ""));
}
if (C2975.f9253.f10058) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statads) + "\n", -990142, ""));
}
C3478 c3478 = C2975.f9253;
if (!c3478.f10058 && !c3478.f10057 && !c3478.f10056) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statnull) + "\n", -65451, ""));
}
if (C2975.f9253.f10060) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statmodified) + "\n", -16711821, ""));
} else {
this.f10192.append((CharSequence) C2500.m6934(C2500.m7007(R.string.statnotmodified) + "\n", "#AAAAAA", ""));
}
C3478 c34782 = C2975.f9253;
if (C2500.m7156(c34782.f10062, c34782.f10061)) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statfix) + "\n", -990142, ""));
} else {
this.f10192.append((CharSequence) C2500.m6934(C2500.m7007(R.string.statnotfix) + "\n", "#AAAAAA", ""));
}
if (C2975.f9253.f10061) {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statsys), -162281, ""));
} else {
this.f10192.append((CharSequence) C2500.m6933(C2500.m7007(R.string.statnotsys), -16711821, ""));
}
if (C2975.f9253.f10069) {
this.f10192.append((CharSequence) C2500.m6933("\n" + C2500.m7007(R.string.uninstalled_package_for_user), -65451, ""));
}
C2975.f9312.post(new RunnableC3545());
PackageManager m7932 = C2975.m7932();
this.f10193.clear();
try {
String[] strArr = m7932.getPackageInfo(C2975.f9253.f10046, 12288).requestedPermissions;
if (strArr != null && strArr.length > 0) {
String[] strArr2 = new String[strArr.length];
for (int i3 = 0; i3 < strArr.length; i3++) {
this.f10193.append((CharSequence) C2500.m6934(strArr[i3] + "\n", "#6699cc", "bold"));
try {
str2 = m7932.getPermissionInfo(strArr[i3], 0).loadDescription(m7932).toString();
} catch (PackageManager.NameNotFoundException | Exception unused) {
str2 = null;
}
if (str2 == null) {
str3 = C2500.m7007(R.string.permission_not_descr) + "\n\n";
} else {
str3 = str2 + "\n\n";
}
this.f10193.append((CharSequence) C2500.m6934(str3, "#AAAAAA", ""));
}
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
C2975.f9312.post(new RunnableC3546());
String str4 = C2500.m7007(R.string.package_name) + ":\n";
this.f10195.clear();
this.f10195.append((CharSequence) C2500.m6934(str4, "#6699cc", "bold"));
this.f10195.append((CharSequence) C2500.m6934(C2975.f9253.f10046 + "\n", "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934(C2500.m7007(R.string.stat_launch_activity) + "\n", "#6699cc", "bold"));
try {
this.f10195.append((CharSequence) C2500.m6934(C2975.m7932().getLaunchIntentForPackage(C2975.f9253.f10046).getComponent().getClassName() + "\n", "#AAAAAA", ""));
} catch (Exception e2) {
e2.printStackTrace();
}
this.f10195.append((CharSequence) C2500.m6934(C2500.m7007(R.string.signature) + " SHA-1:", "#6699cc", "bold"));
String str5 = "unknown";
try {
Signature[] signatureArr = C2975.m7932().getPackageInfo(C2975.f9253.f10046, 8256).signatures;
if (signatureArr != null && signatureArr.length >= 1) {
byte[] encoded = CertificateFactory.getInstance("X.509").generateCertificate(new ByteArrayInputStream(signatureArr[0].toByteArray())).getEncoded();
str5 = C2500.m7050(encoded) ? " test signature" : "\n" + C2500.m7147(MessageDigest.getInstance("SHA-1").digest(encoded));
}
} catch (Throwable th) {
th.printStackTrace();
}
this.f10195.append((CharSequence) C2500.m6934("" + str5, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.statappplace) + "\n", "#6699cc", "bold"));
try {
this.f10195.append((CharSequence) C2500.m6934(C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.sourceDir, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.statdataplace) + "\n", "#6699cc", "bold"));
StringBuilder sb = new StringBuilder();
sb.append(C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.dataDir);
sb.append(InternalZipConstants.ZIP_FILE_SEPARATOR);
this.f10195.append((CharSequence) C2500.m6934(sb.toString(), "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.statversion) + " ", "#6699cc", "bold"));
this.f10195.append((CharSequence) C2500.m6934(C2500.m6975(C2975.f9253.f10046), "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.statbuild) + " ", "#6699cc", "bold"));
StringBuilder sb2 = new StringBuilder();
sb2.append("");
sb2.append(C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).versionCode);
this.f10195.append((CharSequence) C2500.m6934(sb2.toString(), "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\nminSDK: ", "#6699cc", "bold"));
} catch (PackageManager.NameNotFoundException e3) {
e3.printStackTrace();
}
try {
try {
i2 = C2975.m7932().getApplicationInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).minSdkVersion;
i = C2975.m7932().getApplicationInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).targetSdkVersion;
} catch (Throwable unused2) {
C2635 m6994 = C2500.m6994(new File(C2975.m7932().getApplicationInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).publicSourceDir));
int i4 = m6994.f7645;
i = m6994.f7643;
i2 = i4;
}
this.f10195.append((CharSequence) C2500.m6934("" + i2, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\nTargetSDK: ", "#6699cc", "bold"));
this.f10195.append((CharSequence) C2500.m6934("" + i, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.statuserid) + " ", "#6699cc", "bold"));
this.f10195.append((CharSequence) C2500.m6934("" + C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.uid, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.install_date) + " ", "#6699cc", "bold"));
String str6 = "" + new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date(((long) C2975.f9253.f10063) * 1000));
C2975.m7942(Integer.valueOf(C2975.f9253.f10063));
C2975.m7942(Long.valueOf(C2975.f9253.f10063 * 1000));
this.f10195.append((CharSequence) C2500.m6934(str6, "#AAAAAA", ""));
this.f10195.append((CharSequence) C2500.m6934("\n\n" + C2500.m7007(R.string.apk_size) + " ", "#6699cc", "bold"));
float length = ((float) new File(C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.sourceDir).length()) / 1048576.0f;
if (C2500.m7047(C2975.f9253.f10046)) {
Iterator<File> it = C2500.m7000(C2975.f9253.f10046).iterator();
while (it.hasNext()) {
length += ((float) it.next().length()) / 1048576.0f;
}
}
this.f10195.append((CharSequence) C2500.m6934(String.format("%.3f", Float.valueOf(length)) + " Mb", "#AAAAAA", ""));
try {
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.dalvik_cache_size) + " ", "#6699cc", "bold"));
try {
j = C2500.m6947(C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.sourceDir).length();
} catch (Exception unused3) {
j = 0;
}
this.f10195.append((CharSequence) C2500.m6934(String.format("%.3f", Float.valueOf(((float) j) / 1048576.0f)) + " Mb", "#AAAAAA", ""));
} catch (Exception unused4) {
}
if (C2975.f9283) {
try {
this.f10195.append((CharSequence) C2500.m6934("\n" + C2500.m7007(R.string.data_dir_size) + " ", "#6699cc", "bold"));
try {
str = new C2500("").m7211(C2975.f9284 + C1644.class.getName() + " " + C2975.m7932().getPackageInfo(C2975.f9253.f10046, ItemType.CLASS_DATA_ITEM).applicationInfo.dataDir);
} catch (Exception e4) {
exc = e4;
str = "";
}
} catch (Throwable th2) {
th2.printStackTrace();
}
try {
str = str.replace("SU Java-Code Running!\n", "");
C2975.m7942(str);
} catch (Exception e5) {
exc = e5;
exc.printStackTrace();
this.f10195.append((CharSequence) C2500.m6934(str.substring(0, str.indexOf("\n")).replace("\n", "").replace("\r", "") + " Mb", "#AAAAAA", ""));
C2975.m7954(new RunnableC3547());
}
this.f10195.append((CharSequence) C2500.m6934(str.substring(0, str.indexOf("\n")).replace("\n", "").replace("\r", "") + " Mb", "#AAAAAA", ""));
}
C2975.m7954(new RunnableC3547());
} catch (ApkFormatException e6) {
throw new RuntimeException(e6);
} catch (IOException e7) {
throw new RuntimeException(e7);
}
} catch (NullPointerException e8) {
e8.printStackTrace();
}
}
}
public class DialogInterfaceOnCancelListenerC3548 implements DialogInterface.OnCancelListener {
DialogInterfaceOnCancelListenerC3548() {
}
@Override
public void onCancel(DialogInterface dialogInterface) {
}
}
public void m8151() {
Dialog dialog = this.f10182;
if (dialog != null) {
dialog.dismiss();
this.f10182 = null;
}
}
public Dialog m8152() {
C2975.m7942("App Dialog create.");
C2975 c2975 = C2975.f9245;
if (c2975 == null || c2975.mo1874() == null) {
m8151();
}
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
SpannableStringBuilder spannableStringBuilder2 = new SpannableStringBuilder();
SpannableStringBuilder spannableStringBuilder3 = new SpannableStringBuilder();
LinearLayout linearLayout = (LinearLayout) View.inflate(C2975.f9245.mo1874(), R.layout.applicationdialog, null);
LinearLayout linearLayout2 = (LinearLayout) linearLayout.findViewById(R.id.appbodyscroll).findViewById(R.id.appdialogbody);
ImageView imageView = (ImageView) linearLayout2.findViewById(R.id.app_imageView);
TextView textView = (TextView) linearLayout2.findViewById(R.id.app_textView);
TextView textView2 = (TextView) linearLayout2.findViewById(R.id.app_textView2);
TextView textView3 = (TextView) linearLayout2.findViewById(R.id.app_textView3);
TextView textView4 = (TextView) linearLayout2.findViewById(R.id.app_textView31);
ProgressBar progressBar = (ProgressBar) linearLayout2.findViewById(R.id.progressBar1);
((LinearLayout) linearLayout2.findViewById(R.id.google_play_button)).setOnClickListener(new ViewOnClickListenerC3539());
textView2.setOnClickListener(new ViewOnClickListenerC3540(textView2));
textView3.setOnClickListener(new ViewOnClickListenerC3541(textView3));
textView4.setOnClickListener(new ViewOnClickListenerC3542(textView4));
try {
try {
imageView.setImageDrawable(C2975.m7932().getApplicationIcon(C2975.f9253.f10046));
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
} catch (Exception e2) {
e2.printStackTrace();
} catch (OutOfMemoryError e3) {
e3.printStackTrace();
}
new Thread(new RunnableC3543(textView, textView2, spannableStringBuilder, spannableStringBuilder3, textView4, spannableStringBuilder2, textView3, progressBar)).start();
Dialog m7851 = new C2913(C2975.f9245.mo1874(), true).m7858(linearLayout).m7851();
m7851.setCancelable(true);
m7851.setOnCancelListener(new DialogInterfaceOnCancelListenerC3548());
return m7851;
}
public void m8153() {
if (this.f10182 == null) {
this.f10182 = m8152();
}
Dialog dialog = this.f10182;
if (dialog != null) {
dialog.show();
}
}
}