package X; import com.bytedance.covode.number.Covode; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* renamed from: X.2K4 reason: invalid class name */ public final class AnonymousClass2K4 { public static String LIZ = "https://i.isnssdk.com/monitor/collect/c/logcollect"; static { Covode.recordClassIndex(18081); } public static boolean LIZ(String str, String str2, String str3, List<String> list, String str4, JSONObject jSONObject, AnonymousClass2K5 r12) { try { AnonymousClass3DU r5 = new AnonymousClass3DU(LIZ, "UTF-8"); r5.LIZ("aid", str); r5.LIZ("verify_info", AnonymousClass0J9.LIZ()); r5.LIZ("device_id", str2); r5.LIZ("os", "Android"); r5.LIZ("process_name", str3); for (String str5 : list) { File file = new File(str5); if (file.exists()) { HashMap hashMap = new HashMap(); hashMap.put("logtype", "alog"); hashMap.put("scene", str4); hashMap.put("env", "params.txt"); r5.LIZ(file.getName(), file, hashMap); } } r5.LIZ(jSONObject); try { JSONObject jSONObject2 = new JSONObject(r5.LIZ()); int optInt = jSONObject2.optInt("errno", -1); if (optInt == 200) { r12.LIZ(true, -1, null, jSONObject2); return true; } JSONObject jSONObject3 = new JSONObject(); jSONObject3.put("info", optInt); r12.LIZ(false, 6, null, jSONObject3); return false; } catch (JSONException e) { r12.LIZ(false, 7, e, null); } } catch (IOException e2) { r12.LIZ(false, 8, e2, null); return false; } } }