Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 25.39 KB | None | 0 0
  1. package p004cn.ijiami.callm.p005m;
  2.  
  3. import android.content.Context;
  4. import android.os.Environment;
  5. import java.io.File;
  6.  
  7. /* renamed from: cn.ijiami.callm.m.Ce */
  8. public class Hl {
  9.     public static void checkEmulatorIJM(final Context context) {
  10.         if (new File(Environment.getExternalStorageDirectory(), "/system/app/NoxHelp_zh.apk").exists()) {
  11.             System.exit(0);
  12.         }
  13.         new File(Environment.getExternalStorageDirectory(), "YSLauncher").exists();
  14.         try {
  15.             new Thread(new Runnable() {
  16.                 public void run() {
  17.                     try {
  18.                         new C0555l(context);
  19.                     } catch (Exception unused) {
  20.                     }
  21.                 }
  22.             }).start();
  23.         } catch (Exception e) {
  24.             e.printStackTrace();
  25.         }
  26.     }
  27. }
  28.  
  29. package p004cn.ijiami.callm.p005m;
  30.  
  31. import android.app.Activity;
  32. import android.content.BroadcastReceiver;
  33. import android.content.Context;
  34. import android.content.Intent;
  35. import android.content.IntentFilter;
  36. import android.content.pm.PackageInfo;
  37. import android.content.pm.PackageManager.NameNotFoundException;
  38. import android.hardware.SensorManager;
  39. import android.os.Build;
  40. import android.os.Environment;
  41. import android.os.Process;
  42. import android.text.TextUtils;
  43. import android.util.Log;
  44. import com.facebook.share.internal.MessengerShareContentUtility;
  45. import com.google.firebase.analytics.FirebaseAnalytics.Param;
  46. import com.oasis.sdk.p019vo.ProductInfo;
  47. import com.tencent.avsdkjar.BuildConfig;
  48. import java.io.BufferedInputStream;
  49. import java.io.BufferedReader;
  50. import java.io.File;
  51. import java.io.FileReader;
  52. import java.lang.reflect.Method;
  53. import java.util.ArrayList;
  54. import java.util.List;
  55. import p022io.fabric.sdk.android.services.common.CommonUtils;
  56.  
  57. /* renamed from: cn.ijiami.callm.m.l */
  58. /* compiled from: Hl */
  59. public class C0555l {
  60.  
  61.     /* renamed from: d */
  62.     private static boolean f41d;
  63.  
  64.     /* renamed from: a */
  65.     Context f42a;
  66.  
  67.     /* renamed from: b */
  68.     int f43b = 0;
  69.     /* access modifiers changed from: private */
  70.  
  71.     /* renamed from: c */
  72.     public String f44c;
  73.     /* access modifiers changed from: private */
  74.  
  75.     /* renamed from: e */
  76.     public BroadcastReceiver f45e = new BroadcastReceiver() {
  77.         public void onReceive(Context context, Intent intent) {
  78.             Intent registerReceiver = C0555l.this.f42a.registerReceiver(null, new IntentFilter("android.intent.action.BATTERY_CHANGED"));
  79.             registerReceiver.getIntExtra("status", -1);
  80.             registerReceiver.getIntExtra("plugged", -1);
  81.             intent.getIntExtra("scale", -1);
  82.             int intExtra = intent.getIntExtra(Param.LEVEL, -1);
  83.             int intExtra2 = intent.getIntExtra("voltage", -1);
  84.             int intExtra3 = intent.getIntExtra("temperature", -1);
  85.             C0555l.m24d("ro.product.model");
  86.             if (intExtra3 == 0) {
  87.                 C0555l.this.f44c.equals("x86");
  88.             }
  89.             if (intExtra2 < 0) {
  90.                 C0555l.this.m17a(context);
  91.             }
  92.             if (intExtra < 0 && (intExtra2 < 2000 || intExtra2 > 5000)) {
  93.                 C0555l.this.m17a(context);
  94.             }
  95.             try {
  96.                 if (C0555l.this.f45e != null) {
  97.                     C0555l.this.f42a.unregisterReceiver(C0555l.this.f45e);
  98.                 }
  99.             } catch (Exception unused) {
  100.             }
  101.         }
  102.     };
  103.  
  104.     /* access modifiers changed from: private */
  105.     /* renamed from: a */
  106.     public void m17a(Context context) {
  107.         Log.getStackTraceString(new Exception());
  108.         if (context != null && (context instanceof Activity)) {
  109.             try {
  110.                 ((Activity) context).finish();
  111.             } catch (Error | Exception unused) {
  112.             }
  113.         }
  114.         Process.killProcess(Process.myPid());
  115.         System.exit(0);
  116.         while (true) {
  117.             context.registerReceiver(new BroadcastReceiver() {
  118.                 public void onReceive(Context context, Intent intent) {
  119.                 }
  120.             }, new IntentFilter("android.intent.action.SCREEN_ON"));
  121.         }
  122.     }
  123.  
  124.     public C0555l(Context context) {
  125.         this.f42a = context;
  126.         String str = Build.MODEL;
  127.         String str2 = Build.FINGERPRINT;
  128.         this.f44c = m24d("ro.product.cpu.abi");
  129.         String str3 = this.f44c;
  130.         new StringBuilder().append(this.f44c);
  131.         new StringBuilder().append(str3);
  132.         new StringBuilder().append(str2);
  133.         String d = m24d("ro.arch");
  134.         if (!TextUtils.isEmpty(d) && d.contains("x86")) {
  135.             this.f44c = "x86";
  136.         }
  137.         String d2 = m24d("ro.dalvik.vm.isa.arm");
  138.         if (!TextUtils.isEmpty(d2) && d2.contains("x86")) {
  139.             this.f44c = "x86";
  140.         }
  141.         StringBuilder sb = new StringBuilder("/proc/");
  142.         sb.append(Process.myPid());
  143.         sb.append("/maps");
  144.         String a = mo9434a(sb.toString());
  145.         if (a.contains("/data/dalvik-cache/x86/")) {
  146.             this.f44c = "x86";
  147.         }
  148.         if (TextUtils.isEmpty(this.f44c)) {
  149.             m17a(context);
  150.         }
  151.         if (str2.contains(".tiantian.") || str2.contains("TiantianVM") || str2.toLowerCase().contains("ldsplayer") || str2.toLowerCase().toLowerCase().contains("ludashi") || str2.contains("TTVM/") || str2.contains("iToolsVM") || str2.contains("KPPlayer") || ((str2.contains(ProductInfo.CHANNEL_TYPE_SAMSUNG) && this.f44c.contains("x86") && str2.contains("KOT49H")) || (str2.contains(ProductInfo.CHANNEL_TYPE_SAMSUNG) && this.f44c.contains("x86") && str2.contains("JDQ39") && !str2.contains("santos10wifizc")))) {
  152.             m17a(context);
  153.             return;
  154.         }
  155.         if (str2.contains("google") && str2.contains(BuildConfig.BUILD_TYPE) && str2.contains("generic_") && str.startsWith("Android SDK built for ")) {
  156.             m17a(context);
  157.         }
  158.         if (Build.FINGERPRINT.contains(MessengerShareContentUtility.TEMPLATE_GENERIC_TYPE) && Build.FINGERPRINT.contains("-keys") && (Build.MODEL.contains(CommonUtils.GOOGLE_SDK) || Build.MODEL.contains("Android SDK built for "))) {
  159.             m17a(context);
  160.         }
  161.         String a2 = mo9434a("/proc/cpuinfo");
  162.         if (a2.contains("Genuine Intel(R)") || a2.contains("Intel(R) Core(TM)") || a2.contains("Intel(R) Pentium(R)") || a2.contains("Intel(R) Xeon(R)") || a2.contains("AMD")) {
  163.             m17a(context);
  164.         }
  165.         if (TextUtils.isEmpty(a2) && this.f44c.contains("x86")) {
  166.             m17a(context);
  167.         }
  168.         String d3 = m24d("ro.product.cpu.abi");
  169.         if (a.contains("/data/dalvik-cache/x86/") && d2.contains("x86") && !d3.contains("x86")) {
  170.             m17a(context);
  171.         }
  172.         if (a.contains("/data/dalvik-cache/x86/") && !d3.contains("x86")) {
  173.             m17a(context);
  174.         }
  175.         if (d2.contains("x86") && !d3.contains("x86")) {
  176.             m17a(context);
  177.         }
  178.         boolean booleanValue = ((Boolean) m13a(101, (List) m13a(4, null, 1, 0, false), 1, 0, false)).booleanValue();
  179.         if (this.f44c.contains("x86") || booleanValue) {
  180.             if (((Boolean) m13a(101, (List) m13a(1, null, 2, 0, booleanValue), 2, 1, booleanValue)).booleanValue()) {
  181.                 m17a(context);
  182.             }
  183.             if (((Boolean) m13a(101, (List) m13a(2, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  184.                 m17a(context);
  185.             }
  186.             if (((Boolean) m13a(101, (List) m13a(3, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  187.                 m17a(context);
  188.             }
  189.             if (((Boolean) m13a(101, (List) m13a(5, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  190.                 m17a(context);
  191.             }
  192.             if (((Boolean) m13a(101, (List) m13a(7, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  193.                 m17a(context);
  194.             }
  195.             if (((Boolean) m13a(101, (List) m13a(6, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  196.                 m17a(context);
  197.             }
  198.             if (((Boolean) m13a(101, (List) m13a(8, null, 2, 0, booleanValue), 2, 0, booleanValue)).booleanValue()) {
  199.                 m17a(context);
  200.             }
  201.         }
  202.         m21b(context);
  203.         if (m28h(mo9435b("pm list package -3")) < 5) {
  204.             this.f43b++;
  205.         }
  206.         if (mo9435b("cat /proc/self/cgroup") == null) {
  207.             this.f43b++;
  208.         }
  209.         if (m19a(context, "com.yztc.studio.plugin") && booleanValue) {
  210.             this.f43b += 2;
  211.         }
  212.         if (this.f43b >= 4) {
  213.             m17a(context);
  214.         }
  215.         try {
  216.             IntentFilter intentFilter = new IntentFilter();
  217.             intentFilter.addAction("android.intent.action.BATTERY_CHANGED");
  218.             this.f42a.registerReceiver(this.f45e, intentFilter);
  219.         } catch (Exception unused) {
  220.         }
  221.     }
  222.  
  223.     /* renamed from: a */
  224.     public static Object m13a(int i, Object obj, int i2, int i3, boolean z) {
  225.         if (i != -1 && i <= 100) {
  226.             ArrayList arrayList = new ArrayList();
  227.             if (i == 1) {
  228.                 arrayList.add(new File("/system/lib/vboxguest.ko"));
  229.                 arrayList.add(new File("/system/lib/vboxsf.ko"));
  230.                 arrayList.add(new File(Environment.getExternalStorageDirectory(), "BigNoxHD"));
  231.                 arrayList.add(new File(Environment.getExternalStorageDirectory(), "BigNoxGameHD"));
  232.                 arrayList.add(new File(Environment.getExternalStorageDirectory(), "Android/data/com.bignox.app.store.hd"));
  233.                 arrayList.add(new File(Environment.getExternalStorageDirectory(), "/data/data/com.bignox.app.store.hd"));
  234.                 return arrayList;
  235.             }
  236.             if (i == 2) {
  237.                 arrayList.add(new File("/data/dalvik-cache/com.microvirt.tools"));
  238.                 arrayList.add(new File("/sdcard/Android/data/com.microvirt.guide"));
  239.                 arrayList.add(new File("/sdcard/Android/data/com.microvirt.guide"));
  240.                 arrayList.add(new File("/sdcard/xysdk"));
  241.                 arrayList.add(new File("/data/data/com.microvirt.tools"));
  242.                 arrayList.add(new File("/sdcard/Android/data/com.microvirt.launcher"));
  243.                 arrayList.add(new File("/data/data/com.microvirt.memuime"));
  244.                 arrayList.add(new File("/data/data/com.microvirt.launcher"));
  245.                 arrayList.add(new File("/data/data/com.microvirt.market"));
  246.                 arrayList.add(new File("/data/data/com.microvirt.download"));
  247.                 arrayList.add(new File("/data/user/0/com.microvirt.market"));
  248.                 arrayList.add(new File("/data/user/0/com.microvirt.launcher"));
  249.             } else if (i == 3) {
  250.                 arrayList.add(new File("/system/lib/libc_malloc_debug_qemu.so"));
  251.                 arrayList.add(new File("/init.ludashi.rc"));
  252.                 arrayList.add(new File("/fstab.ludashi"));
  253.                 arrayList.add(new File("/system/lib/vboxsf.ko"));
  254.             } else if (i == 4) {
  255.                 arrayList.add(new File("/system/bin/su"));
  256.                 arrayList.add(new File("/system/su"));
  257.                 arrayList.add(new File("/system/xbin/su"));
  258.                 arrayList.add(new File("/su/bin/"));
  259.                 arrayList.add(new File("/system/sbin/su"));
  260.                 arrayList.add(new File("/sbin/su"));
  261.                 arrayList.add(new File("/vendor/bin/su"));
  262.             } else if (i == 5) {
  263.                 arrayList.add(new File("/data/data/com.mumu.launcher"));
  264.                 arrayList.add(new File("/data/data/com.netease.mumu.cloner"));
  265.                 arrayList.add(new File("/data/data/com.netease.nemu_vapi_android.nemu"));
  266.                 arrayList.add(new File("/data/property/nemu.nemud.device.imsi"));
  267.                 arrayList.add(new File("/data/property/nemu.nemud.device.sim.serialno"));
  268.                 arrayList.add(new File("/data/mumu_store_apps"));
  269.                 arrayList.add(new File("/system/app/nemu-vinput-pack"));
  270.                 arrayList.add(new File("/system/app/nemu-vapi-android-pack"));
  271.                 arrayList.add(new File("/system/nemu-cloner"));
  272.             } else if (i == 6) {
  273.                 arrayList.add(new File("/data/app-lib/com.bluestacks.settings"));
  274.                 arrayList.add(new File("/data/app-lib/com.bluestacks.bstfolder"));
  275.                 arrayList.add(new File("/data/misc/profiles/cur/0/com.bluestacks.home"));
  276.                 arrayList.add(new File("/data/user_de/0/com.bluestacks.home"));
  277.                 arrayList.add(new File("sdcard/Android/data/com.bluestacks.settings"));
  278.                 arrayList.add(new File("sdcard/Android/data/com.bluestacks.home"));
  279.                 arrayList.add(new File("/data/data/com.bluestacks.searchapp"));
  280.                 arrayList.add(new File("/data/data/com.bluestacks.windowsfilemanager"));
  281.                 arrayList.add(new File("/data/data/com.bluestacks.settings"));
  282.                 arrayList.add(new File("/data/data/com.bluestacks.setup"));
  283.                 arrayList.add(new File("/data/data/com.bluestacks.bstfolder"));
  284.                 arrayList.add(new File("/data/app/app-lib/com.bluestacks.setup"));
  285.                 arrayList.add(new File("/data/bluestacks.prop"));
  286.                 arrayList.add(new File("/ueventd.vbox86.rc"));
  287.             } else if (i == 8) {
  288.                 arrayList.add(new File("ueventd.ttVM_x86.rc"));
  289.                 arrayList.add(new File("/dev/vboxguest"));
  290.                 arrayList.add(new File("/dev/vboxpci"));
  291.                 arrayList.add(new File("/dev/vboxuser"));
  292.             } else if (i == 7) {
  293.                 arrayList.add(new File("/fstab.vbox86"));
  294.                 arrayList.add(new File("/system/bin/droid4x"));
  295.                 arrayList.add(new File("/system/bin/droid4x_setprop"));
  296.                 arrayList.add(new File("/system/droid4x/bin/su"));
  297.                 arrayList.add(new File("/system/bin/droid4x-prop"));
  298.                 arrayList.add(new File("/system/bin/droid4x-vbox-sf"));
  299.             }
  300.             return arrayList;
  301.         } else if (!(obj instanceof List)) {
  302.             return null;
  303.         } else {
  304.             List<File> list = (List) obj;
  305.             int i4 = 0;
  306.             if (i3 == 1) {
  307.                 i4 = m12a(m12a(0, Environment.getExternalStorageDirectory().listFiles(), "YSLauncher"), new File("/system/app/Helper").listFiles(), "NoxHelp");
  308.             }
  309.             for (File exists : list) {
  310.                 if (exists.exists()) {
  311.                     i4++;
  312.                     continue;
  313.                 }
  314.                 if (i4 >= i2) {
  315.                     return Boolean.TRUE;
  316.                 }
  317.             }
  318.             if (i4 >= i2) {
  319.                 return Boolean.TRUE;
  320.             }
  321.             if (i4 <= 0 || i3 != 1 || !z) {
  322.                 return Boolean.FALSE;
  323.             }
  324.             return Boolean.TRUE;
  325.         }
  326.     }
  327.  
  328.     /* access modifiers changed from: private */
  329.     /* renamed from: d */
  330.     public static String m24d(String str) {
  331.         return (String) m14a("android.os.Build", "getString", new Class[]{String.class}, new Object[]{str});
  332.     }
  333.  
  334.     /* renamed from: a */
  335.     public static Object m14a(String str, String str2, Class[] clsArr, Object[] objArr) {
  336.         try {
  337.             Method declaredMethod = Class.forName(str).getDeclaredMethod(str2, clsArr);
  338.             declaredMethod.setAccessible(true);
  339.             return declaredMethod.invoke(null, objArr);
  340.         } catch (Exception e) {
  341.             e.printStackTrace();
  342.             return null;
  343.         }
  344.     }
  345.  
  346.     /* access modifiers changed from: protected */
  347.     /* renamed from: a */
  348.     public String mo9434a(String str) {
  349.         try {
  350.             StringBuffer stringBuffer = new StringBuffer();
  351.             FileReader fileReader = new FileReader(str);
  352.             BufferedReader bufferedReader = new BufferedReader(fileReader);
  353.             while (true) {
  354.                 String readLine = bufferedReader.readLine();
  355.                 if (readLine != null) {
  356.                     stringBuffer.append(readLine);
  357.                 } else {
  358.                     bufferedReader.close();
  359.                     fileReader.close();
  360.                     return stringBuffer.toString();
  361.                 }
  362.             }
  363.         } catch (Exception unused) {
  364.             return "";
  365.         }
  366.     }
  367.  
  368.     /* renamed from: a */
  369.     private static int m12a(int i, File[] fileArr, String str) {
  370.         if (fileArr == null || fileArr.length <= 0) {
  371.             return i;
  372.         }
  373.         for (File name : fileArr) {
  374.             if (name.getName().indexOf(str) != -1) {
  375.                 return i + 1;
  376.             }
  377.         }
  378.         return i;
  379.     }
  380.  
  381.     /* renamed from: b */
  382.     private void m21b(Context context) {
  383.         String d = m24d("gsm.version.baseband");
  384.         String d2 = m24d("ro.build.flavor");
  385.         String d3 = m24d("ro.product.board");
  386.         String d4 = m24d("ro.board.platform");
  387.         String d5 = m24d("ro.hardware");
  388.         this.f43b += m27g(d);
  389.         this.f43b += m25e(d2);
  390.         this.f43b += m27g(d3);
  391.         this.f43b += m27g(d4);
  392.         this.f43b += m26f(d5);
  393.         this.f43b += m22c(context);
  394.     }
  395.  
  396.     /* renamed from: e */
  397.     private int m25e(String str) {
  398.         if (str == null || str.contains("unknown")) {
  399.             return 1;
  400.         }
  401.         return (!str.contains("x86") || !str.contains("sdk")) ? 0 : 2;
  402.     }
  403.  
  404.     /* renamed from: c */
  405.     private int m22c(Context context) {
  406.         return ((SensorManager) context.getSystemService("sensor")).getSensorList(-1).size() < 7 ? 1 : 0;
  407.     }
  408.  
  409.     /* renamed from: f */
  410.     private int m26f(String str) {
  411.         if (str == null || str.contains("unknown")) {
  412.             return 1;
  413.         }
  414.         if (str.contains("android_x86")) {
  415.             return 2;
  416.         }
  417.         return str.contains("vbox") ? 4 : 0;
  418.     }
  419.  
  420.     /* renamed from: g */
  421.     private int m27g(String str) {
  422.         return (str == null || str.contains("unknown")) ? 1 : 0;
  423.     }
  424.  
  425.     /* renamed from: h */
  426.     private int m28h(String str) {
  427.         if (TextUtils.isEmpty(str)) {
  428.             return 0;
  429.         }
  430.         return str.split("package:").length;
  431.     }
  432.  
  433.     /* JADX WARNING: type inference failed for: r0v0 */
  434.     /* JADX WARNING: type inference failed for: r3v0, types: [java.io.BufferedInputStream] */
  435.     /* JADX WARNING: type inference failed for: r2v0, types: [java.io.BufferedOutputStream] */
  436.     /* JADX WARNING: type inference failed for: r2v1 */
  437.     /* JADX WARNING: type inference failed for: r3v1 */
  438.     /* JADX WARNING: type inference failed for: r2v3, types: [java.io.BufferedOutputStream] */
  439.     /* JADX WARNING: type inference failed for: r0v1, types: [java.io.BufferedInputStream] */
  440.     /* JADX WARNING: type inference failed for: r2v5 */
  441.     /* JADX WARNING: type inference failed for: r2v8 */
  442.     /* JADX WARNING: type inference failed for: r3v3 */
  443.     /* JADX WARNING: type inference failed for: r0v3 */
  444.     /* JADX WARNING: type inference failed for: r0v6 */
  445.     /* JADX WARNING: type inference failed for: r0v7 */
  446.     /* JADX WARNING: type inference failed for: r0v8 */
  447.     /* JADX WARNING: type inference failed for: r2v10 */
  448.     /* JADX WARNING: type inference failed for: r2v11 */
  449.     /* JADX WARNING: type inference failed for: r2v12 */
  450.     /* JADX WARNING: type inference failed for: r2v13 */
  451.     /* JADX WARNING: type inference failed for: r2v14 */
  452.     /* JADX WARNING: type inference failed for: r3v5 */
  453.     /* JADX WARNING: Multi-variable type inference failed */
  454.     /* JADX WARNING: Removed duplicated region for block: B:33:0x005f A[SYNTHETIC, Splitter:B:33:0x005f] */
  455.     /* JADX WARNING: Removed duplicated region for block: B:38:0x0069 A[SYNTHETIC, Splitter:B:38:0x0069] */
  456.     /* JADX WARNING: Removed duplicated region for block: B:43:0x0073  */
  457.     /* JADX WARNING: Removed duplicated region for block: B:49:0x007c A[SYNTHETIC, Splitter:B:49:0x007c] */
  458.     /* JADX WARNING: Removed duplicated region for block: B:54:0x0086 A[SYNTHETIC, Splitter:B:54:0x0086] */
  459.     /* JADX WARNING: Removed duplicated region for block: B:59:0x0090  */
  460.     /* JADX WARNING: Unknown variable types count: 5 */
  461.     /* renamed from: b */
  462.     /* Code decompiled incorrectly, please refer to instructions dump. */
  463.     public java.lang.String mo9435b(java.lang.String r6) {
  464.         /*
  465.             r5 = this;
  466.             r0 = 0
  467.             java.lang.Runtime r1 = java.lang.Runtime.getRuntime()     // Catch:{ Exception -> 0x0077, all -> 0x005a }
  468.             java.lang.String r2 = "sh"
  469.             java.lang.Process r1 = r1.exec(r2)     // Catch:{ Exception -> 0x0077, all -> 0x005a }
  470.             java.io.BufferedOutputStream r2 = new java.io.BufferedOutputStream     // Catch:{ Exception -> 0x0058, all -> 0x0055 }
  471.             java.io.OutputStream r3 = r1.getOutputStream()     // Catch:{ Exception -> 0x0058, all -> 0x0055 }
  472.             r2.<init>(r3)     // Catch:{ Exception -> 0x0058, all -> 0x0055 }
  473.             java.io.BufferedInputStream r3 = new java.io.BufferedInputStream     // Catch:{ Exception -> 0x0053, all -> 0x0051 }
  474.             java.io.InputStream r4 = r1.getInputStream()     // Catch:{ Exception -> 0x0053, all -> 0x0051 }
  475.             r3.<init>(r4)     // Catch:{ Exception -> 0x0053, all -> 0x0051 }
  476.             byte[] r6 = r6.getBytes()     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  477.             r2.write(r6)     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  478.             r6 = 10
  479.             r2.write(r6)     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  480.             r2.flush()     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  481.             r2.close()     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  482.             r1.waitFor()     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  483.             java.lang.String r6 = m16a(r3)     // Catch:{ Exception -> 0x004f, all -> 0x004c }
  484.             r2.close()     // Catch:{ IOException -> 0x003a }
  485.             goto L_0x003e
  486.         L_0x003a:
  487.             r0 = move-exception
  488.             r0.printStackTrace()
  489.         L_0x003e:
  490.             r3.close()     // Catch:{ IOException -> 0x0042 }
  491.             goto L_0x0046
  492.         L_0x0042:
  493.             r0 = move-exception
  494.             r0.printStackTrace()
  495.         L_0x0046:
  496.             if (r1 == 0) goto L_0x004b
  497.             r1.destroy()
  498.         L_0x004b:
  499.             return r6
  500.         L_0x004c:
  501.             r6 = move-exception
  502.             r0 = r3
  503.             goto L_0x005d
  504.         L_0x004f:
  505.             goto L_0x007a
  506.         L_0x0051:
  507.             r6 = move-exception
  508.             goto L_0x005d
  509.         L_0x0053:
  510.             r3 = r0
  511.             goto L_0x007a
  512.         L_0x0055:
  513.             r6 = move-exception
  514.             r2 = r0
  515.             goto L_0x005d
  516.         L_0x0058:
  517.             r2 = r0
  518.             goto L_0x0079
  519.         L_0x005a:
  520.             r6 = move-exception
  521.             r1 = r0
  522.             r2 = r1
  523.         L_0x005d:
  524.             if (r2 == 0) goto L_0x0067
  525.             r2.close()     // Catch:{ IOException -> 0x0063 }
  526.             goto L_0x0067
  527.         L_0x0063:
  528.             r2 = move-exception
  529.             r2.printStackTrace()
  530.         L_0x0067:
  531.             if (r0 == 0) goto L_0x0071
  532.             r0.close()     // Catch:{ IOException -> 0x006d }
  533.             goto L_0x0071
  534.         L_0x006d:
  535.             r0 = move-exception
  536.             r0.printStackTrace()
  537.         L_0x0071:
  538.             if (r1 == 0) goto L_0x0076
  539.             r1.destroy()
  540.         L_0x0076:
  541.             throw r6
  542.         L_0x0077:
  543.             r1 = r0
  544.             r2 = r1
  545.         L_0x0079:
  546.             r3 = r2
  547.         L_0x007a:
  548.             if (r2 == 0) goto L_0x0084
  549.             r2.close()     // Catch:{ IOException -> 0x0080 }
  550.             goto L_0x0084
  551.         L_0x0080:
  552.             r6 = move-exception
  553.             r6.printStackTrace()
  554.         L_0x0084:
  555.             if (r3 == 0) goto L_0x008e
  556.             r3.close()     // Catch:{ IOException -> 0x008a }
  557.             goto L_0x008e
  558.         L_0x008a:
  559.             r6 = move-exception
  560.             r6.printStackTrace()
  561.         L_0x008e:
  562.             if (r1 == 0) goto L_0x0093
  563.             r1.destroy()
  564.         L_0x0093:
  565.             return r0
  566.         */
  567.         throw new UnsupportedOperationException("Method not decompiled: p004cn.ijiami.callm.p005m.C0555l.mo9435b(java.lang.String):java.lang.String");
  568.     }
  569.  
  570.     /* renamed from: a */
  571.     private boolean m19a(Context context, String str) {
  572.         PackageInfo packageInfo;
  573.         if (str == null || str.isEmpty()) {
  574.             return false;
  575.         }
  576.         try {
  577.             packageInfo = context.getPackageManager().getPackageInfo(str, 0);
  578.         } catch (NameNotFoundException e) {
  579.             e.printStackTrace();
  580.             packageInfo = null;
  581.         }
  582.         if (packageInfo == null) {
  583.             return false;
  584.         }
  585.         return true;
  586.     }
  587.  
  588.     /* renamed from: a */
  589.     private static String m16a(BufferedInputStream bufferedInputStream) {
  590.         int read;
  591.         if (bufferedInputStream == null) {
  592.             return "";
  593.         }
  594.         byte[] bArr = new byte[512];
  595.         StringBuilder sb = new StringBuilder();
  596.         do {
  597.             try {
  598.                 read = bufferedInputStream.read(bArr);
  599.                 if (read > 0) {
  600.                     sb.append(new String(bArr, 0, read));
  601.                     continue;
  602.                 }
  603.             } catch (Exception e) {
  604.                 e.printStackTrace();
  605.             }
  606.         } while (read >= 512);
  607.         return sb.toString();
  608.     }
  609. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement