package com.lt.app.a; import com.d.b.b.c; import com.d.b.k; import com.lt.app.App; import com.lt.app.c.a; import com.meizu.cloud.pushsdk.notification.model.NotifyType; import com.umeng.analytics.pro.ak; import java.io.InputStream; /* compiled from: LogSniffer */ public class n { /* renamed from: ʻ reason: contains not printable characters */ private static Thread f6158; /* renamed from: ʼ reason: contains not printable characters */ private static InputStream f6159; /* renamed from: ʻ reason: contains not printable characters */ public static Exception m8375() { Thread thread = f6158; if (thread != null && thread.isAlive()) { f6158.interrupt(); } a r1 = App.m8128(); if (r1 == null || !r1.m8522(5)) { return null; } App r12 = App.m8130(); if (r12 != null) { try { m8380("APP与设备信息\n" + r12.m8140().toString(4)); } catch (Exception unused) { m8380("APP与设备信息\n" + r12.m8140()); } } try { Runtime.getRuntime().exec("logcat -c").waitFor(); final Process exec = Runtime.getRuntime().exec("logcat -v tag *:D"); f6159 = exec.getInputStream(); AnonymousClass1 r13 = new Thread() { /* class com.lt.app.a.n.AnonymousClass1 */ public void run() { try { byte[] bArr = new byte[20480]; while (true) { int read = n.f6159.read(bArr); if (-1 != read) { n.m8380(new String(bArr, 0, read)); } else { n.f6159.close(); InputStream unused = n.f6159 = null; Thread unused2 = n.f6158 = null; exec.destroy(); return; } } } catch (Exception unused3) { } } }; f6158 = r13; r13.start(); return null; } catch (Exception e) { f6158 = null; return e; } } /* renamed from: ʼ reason: contains not printable characters */ public static void m8379() { InputStream inputStream = f6159; if (inputStream != null) { try { inputStream.close(); f6159 = null; } catch (Exception unused) { } } Thread thread = f6158; if (thread != null) { thread.interrupt(); f6158 = null; } } /* renamed from: ʻ reason: contains not printable characters */ public static void m8377(String str) { ((c.a.f) ((c.a.AbstractC0065a) k.m7775(App.m8130()).m7660(App.m8130().m8139("gate/log/")).m7665(7000)).m7671("sys", str)).m7654(); } /* renamed from: ʻ reason: contains not printable characters */ public static void m8378(String str, int i, int i2) { a r0 = App.m8128(); App r1 = App.m8130(); if (r1 != null && r0 != null) { String r2 = r1.m8139("gate/log/"); ((c.a.f) ((c.a.f) ((c.a.f) ((c.a.f) ((c.a.f) ((c.a.f) ((c.a.AbstractC0065a) k.m7775(r1).m7660(r2).m7665(7000)).m7671(ak.av, String.valueOf(r0.ltid))).m7671("d", r1.m8147())).m7671(ak.ax, "44")).m7671("s", str)).m7671("c", "" + i)).m7671(NotifyType.LIGHTS, "" + i2)).m7654(); } } /* renamed from: ʼ reason: contains not printable characters */ public static void m8380(String str) { m8378(str, 0, 0); } }