From: insang-hmogara-pc Date: Mon, 14 Sep 2026 05:25:37 +0000 (+0900) Subject: initialize X-Git-Url: https://git.insang.kr/gitweb/?a=commitdiff_plain;ds=sidebyside;p=hyundai.git initialize --- fdc7d69209d8df92ced74f646bab0338dd1ed076 diff --git a/DkProp.java b/DkProp.java new file mode 100644 index 0000000..98434f2 --- /dev/null +++ b/DkProp.java @@ -0,0 +1,89 @@ +package org.carconnectivity.android.digitalkey.framework.sdk; + +import android.content.Context; +import android.net.Uri; +import android.os.Bundle; +import com.salesforce.marketingcloud.storage.db.a; +import com.xshield.dc; + +/* loaded from: classes5.dex */ +class DkProp { + private static final Uri CONTENT_URI = Uri.parse("content://com.samsung.android.carkey.properties"); + private static final String TAG = "DkProp"; + + public static class Methods { + public static final String GET_VALUE = "method_get_value"; + } + + public static Bundle bundleForNull() { + Bundle bundle = new Bundle(1); + bundle.putString(dc.m1076(2133603136), null); + return bundle; + } + + public static Bundle bundleForValue(String str) { + Bundle bundle = new Bundle(1); + bundle.putString(dc.m1076(2133603136), str); + return bundle; + } + + public static Integer getDigitalKeyFrameworkApiLevel(Context context) { + try { + Integer numIntFromBundle = intFromBundle(context.getContentResolver().call(CONTENT_URI, Methods.GET_VALUE, Params.EXTRAS_KEY_API_LEVEL, (Bundle) null)); + if (numIntFromBundle == null) { + Logger.i(TAG, "CCC DigitalKey application is not supported"); + } + return numIntFromBundle; + } catch (Exception unused) { + Logger.i(TAG, dc.m1069(-1885505765)); + return null; + } + } + + public static String getDigitalKeyFrameworkApiVersion(Context context) { + try { + String strStringFromBundle = stringFromBundle(context.getContentResolver().call(CONTENT_URI, Methods.GET_VALUE, Params.EXTRAS_KEY_API_VERSION, (Bundle) null)); + if (strStringFromBundle == null) { + Logger.i(TAG, "CCC DigitalKey application is not supported"); + } + return strStringFromBundle; + } catch (Exception unused) { + Logger.i(TAG, dc.m1069(-1885505765)); + return null; + } + } + + private static int[] intArrayFromBundle(Bundle bundle) { + int[] intArray; + if (bundle == null || (intArray = bundle.getIntArray(dc.m1076(2133603136))) == null) { + return null; + } + return intArray; + } + + private static Integer intFromBundle(Bundle bundle) { + if (bundle == null) { + return null; + } + return Integer.valueOf(bundle.getInt(a.C0931a.b)); + } + + private static String stringFromBundle(Bundle bundle) { + if (bundle == null) { + return null; + } + return bundle.getString(dc.m1076(2133603136)); + } + + public static Bundle bundleForValue(int i) { + Bundle bundle = new Bundle(1); + bundle.putInt(dc.m1076(2133603136), i); + return bundle; + } + + public static Bundle bundleForValue(int[] iArr) { + Bundle bundle = new Bundle(1); + bundle.putIntArray(dc.m1076(2133603136), iArr); + return bundle; + } +} diff --git a/Hyundai.java b/Hyundai.java new file mode 100644 index 0000000..4211051 --- /dev/null +++ b/Hyundai.java @@ -0,0 +1,574 @@ +package com.hmg.ccs.sdk.core.config; + +import androidx.annotation.Keep; +import androidx.camera.camera2.internal.C1239u0; +import androidx.camera.core.processing.util.d; +import com.hmg.ccs.sdk.core.config.Country; +import com.hmg.ccs.sdk.core.log.L; +import com.xshield.dc; +import kotlin.Metadata; +import kotlin.jvm.internal.DefaultConstructorMarker; +import kotlin.jvm.internal.i; +import okhttp3.r; + +/* compiled from: Hyundai.kt */ +@Keep +@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bq\u0018\u00002\u00020\u0001:\u0004\u0002\u0003\u0004\u0005\u0082\u0001\u0004\u0006\u0007\b\t¨\u0006\n"}, d2 = {"Lcom/hmg/ccs/sdk/core/config/Hyundai;", "", "Kr", "Eu", "Na", "Sa", "Lcom/hmg/ccs/sdk/core/config/Hyundai$Eu;", "Lcom/hmg/ccs/sdk/core/config/Hyundai$Kr;", "Lcom/hmg/ccs/sdk/core/config/Hyundai$Na;", "Lcom/hmg/ccs/sdk/core/config/Hyundai$Sa;", "lib-core_release"}, k = 1, mv = {2, 0, 0}, xi = 48) +/* loaded from: classes2.dex */ +public interface Hyundai { + + /* compiled from: Hyundai.kt */ + @Keep + @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u00012\u00020\u0002B\u0011\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\t\u001a\u00020\u0004H\u0016J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\u0004H\u0016J\b\u0010\f\u001a\u00020\u0004H\u0016J\t\u0010\r\u001a\u00020\u0004HÆ\u0003J\u0013\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0004HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0004HÖ\u0001R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/hmg/ccs/sdk/core/config/Hyundai$Eu;", "Lcom/hmg/ccs/sdk/core/config/Hyundai;", "Lcom/hmg/ccs/sdk/core/config/AppConfig;", "key", "", "", "(Ljava/lang/String;)V", "getKey", "()Ljava/lang/String;", "loginUrl", "logoutUrl", "loginRedirectUrl", "loginAuthUrl", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "lib-core_release"}, k = 1, mv = {2, 0, 0}, xi = 48) + public static final /* data */ class Eu extends AppConfig implements Hyundai { + private final String key; + + /* JADX WARN: Multi-variable type inference failed */ + public Eu() { + this(null, 1, 0 == true ? 1 : 0); + } + + public static /* synthetic */ Eu copy$default(Eu eu, String str, int i, Object obj) { + if ((i & 1) != 0) { + str = eu.key; + } + return eu.copy(str); + } + + /* renamed from: component1, reason: from getter */ + public final String getKey() { + return this.key; + } + + public final Eu copy(String key) { + i.j(key, "key"); + return new Eu(key); + } + + public boolean equals(Object other) { + if (this == other) { + return true; + } + return (other instanceof Eu) && i.e(this.key, ((Eu) other).key); + } + + public final String getKey() { + return this.key; + } + + public int hashCode() { + return this.key.hashCode(); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginAuthUrl() { + return ""; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginRedirectUrl() { + return C1239u0.e(getAccountUrl(), dc.m1076(2132889536)); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginUrl() throws NumberFormatException { + String idpAccountUrl = SDKConfig.INSTANCE.getIdpAccountUrl(); + i.j(idpAccountUrl, dc.m1081(-811746876)); + r.a aVar = new r.a(); + aVar.g(null, idpAccountUrl); + r.a aVarF = aVar.d().f(); + aVarF.b(dc.m1080(-1041600830)); + aVarF.c(dc.m1071(108141377), dc.m1069(-1879959693)); + aVarF.c(dc.m1077(-1631485194), getCcspServiceId()); + aVarF.c(dc.m1077(-1631485282), loginRedirectUrl()); + aVarF.c(dc.m1076(2132888784), dc.m1069(-1879643053)); + r rVarD = aVarF.d(); + L l = L.INSTANCE; + String str = rVarD.i; + l.d(dc.m1071(108140697).concat(str)); + return str; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String logoutUrl() { + r.a aVar = new r.a(); + aVar.f(getCcspBaseUrl()); + aVar.b(getCcspPath()); + aVar.a(dc.m1068(1329428967)); + aVar.a(dc.m1081(-812620204)); + return aVar.d().i; + } + + public String toString() { + return d.d(dc.m1071(108141001), this.key, dc.m1069(-1879377757)); + } + + public /* synthetic */ Eu(String str, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? "Config - Hyundai Eu GSPA" : str); + } + + /* JADX WARN: Illegal instructions before constructor call */ + public Eu(String str) { + i.j(str, dc.m1081(-811831492)); + SDKConfig sDKConfig = SDKConfig.INSTANCE; + String strM1078 = sDKConfig.isProduction() ? dc.m1078(-391922675) : "https://stg-gspa-ccs-eu.hyundai.com/"; + String strM1069 = sDKConfig.isProduction() ? dc.m1069(-1879638125) : "50ebe2d2-a60c-45e7-a950-a341e5d8f119"; + String strM10692 = sDKConfig.isProduction() ? dc.m1069(-1879638717) : "https://stg-egw-svchub-ccs-h-eu.eu-central.hmgmobility.com:31010"; + String strM1077 = sDKConfig.isProduction() ? dc.m1077(-1631506826) : "https://stg.eu-ccapi.hyundai.com:8080"; + String strM10693 = sDKConfig.isProduction() ? dc.m1069(-1879670725) : "https://stg-idpconnect-eu.hyundai.com"; + String strM1071 = sDKConfig.isProduction() ? dc.m1071(108180745) : "Basic NTBlYmUyZDItYTYwYy00NWU3LWE5NTAtYTM0MWU1ZDhmMTE5OnNlY3JldA=="; + String strM10712 = sDKConfig.isProduction() ? dc.m1071(108179753) : "838146c3-a519-4eca-8132-ead536d05ce4"; + String strM10713 = sDKConfig.isProduction() ? dc.m1071(108183065) : "9eb34f0b-b29e-42a3-a9cd-ba04d75f9169"; + String strM1068 = sDKConfig.isProduction() ? dc.m1068(1329424215) : "a0d34f69-22b1-4a06-b1eb-778caf999458"; + String strM1081 = sDKConfig.isProduction() ? dc.m1081(-812614676) : "563bbb56-9a0c-4809-b6ee-ff08e39d7035"; + String strM10812 = sDKConfig.isProduction() ? dc.m1081(-812586604) : "https://stg-commerce.hyundai.com/uk/en/commerce/fod"; + String strM10782 = sDKConfig.isProduction() ? dc.m1078(-391918355) : "https://stg-oneapp.hyundai.com"; + String strM1076 = sDKConfig.isProduction() ? dc.m1076(2132918456) : "76d5f644-7912-4806-bb39-2fdf9e745623"; + String strM1080 = sDKConfig.isProduction() ? dc.m1080(-1041606350) : "5d922ca3-6749-420d-b298-8f19658c63e4"; + String strM10694 = sDKConfig.isProduction() ? dc.m1069(-1879695549) : "82d9e662-0ea6-4a9b-917d-8091bd7aee8b"; + String strM10772 = sDKConfig.isProduction() ? dc.m1077(-1631509626) : "91c6e20a-9c2f-469c-b63b-237b254659e4"; + String strM10714 = sDKConfig.isProduction() ? dc.m1071(108181625) : "1b80db2a-9b92-4207-8332-b62d74b8d75c"; + String strM10715 = sDKConfig.isProduction() ? dc.m1071(108181801) : "881333f5-99ea-4e5a-ad5b-168782b84aa0"; + String strM10762 = sDKConfig.isProduction() ? dc.m1076(2132888072) : "72462170-6ef4-445d-bfed-49b6b856cf3d"; + String strM10783 = sDKConfig.isProduction() ? dc.m1078(-391917235) : dc.m1081(-812620820); + String strM10802 = sDKConfig.isProduction() ? "" : dc.m1080(-1041574206); + super(true, true, dc.m1077(-1631503786), "", dc.m1080(-1041602734), dc.m1080(-1041573998), dc.m1071(108176353), strM1078, strM10692, strM1069, dc.m1080(-1041603142), strM1077, strM10693, "auth/api/v2/user/oauth2/token", "auth/api/v2/user/oauth2/token", strM1071, null, "", null, "", "", "", "", "", "", "", strM10712, strM10713, strM1068, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Hyundai", "", "", "", "", "", "", "", "", "", "", "", "https://www.hyundai.com/eu/driving-hyundai/owning-a-hyundai/bluelink-connectivity/digital-key.html", strM1081, null, "Bluelink Service", "080-600-6000", strM10812, "", "", "", strM10782, strM1076, strM1080, strM10694, strM10772, strM10714, strM10715, strM10762, strM10783, strM10802, 327680, 536870912, 0, null); + this.key = str; + } + } + + /* compiled from: Hyundai.kt */ + @Keep + @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u00012\u00020\u0002B\u0011\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\t\u001a\u00020\u0004H\u0016J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\u0004H\u0016J\b\u0010\f\u001a\u00020\u0004H\u0016J\t\u0010\r\u001a\u00020\u0004HÆ\u0003J\u0013\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0004HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0004HÖ\u0001R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/hmg/ccs/sdk/core/config/Hyundai$Kr;", "Lcom/hmg/ccs/sdk/core/config/Hyundai;", "Lcom/hmg/ccs/sdk/core/config/AppConfig;", "key", "", "", "(Ljava/lang/String;)V", "getKey", "()Ljava/lang/String;", "loginUrl", "logoutUrl", "loginRedirectUrl", "loginAuthUrl", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "lib-core_release"}, k = 1, mv = {2, 0, 0}, xi = 48) + public static final /* data */ class Kr extends AppConfig implements Hyundai { + private final String key; + + /* JADX WARN: Multi-variable type inference failed */ + public Kr() { + this(null, 1, 0 == true ? 1 : 0); + } + + public static /* synthetic */ Kr copy$default(Kr kr, String str, int i, Object obj) { + if ((i & 1) != 0) { + str = kr.key; + } + return kr.copy(str); + } + + /* renamed from: component1, reason: from getter */ + public final String getKey() { + return this.key; + } + + public final Kr copy(String key) { + i.j(key, "key"); + return new Kr(key); + } + + public boolean equals(Object other) { + if (this == other) { + return true; + } + return (other instanceof Kr) && i.e(this.key, ((Kr) other).key); + } + + public final String getKey() { + return this.key; + } + + public int hashCode() { + return this.key.hashCode(); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginAuthUrl() { + return ""; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginRedirectUrl() { + return C1239u0.e(getCcspBaseUrl(), dc.m1071(108151945)); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginUrl() { + String str = getCcspBaseUrl() + dc.m1068(1329419119); + i.j(str, dc.m1081(-811746876)); + r rVarD = null; + try { + r.a aVar = new r.a(); + aVar.g(null, str); + rVarD = aVar.d(); + } catch (IllegalArgumentException unused) { + } + i.g(rVarD); + r.a aVarF = rVarD.f(); + aVarF.c(dc.m1071(108141377), dc.m1069(-1879959693)); + aVarF.c(dc.m1076(2132894960), dc.m1078(-391905699)); + aVarF.c(dc.m1077(-1631485194), getCcspServiceId()); + aVarF.c(dc.m1077(-1631485282), getCcspBaseUrl() + dc.m1071(108151945)); + return aVarF.d().i; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String logoutUrl() { + return C1239u0.e(getCcspBaseUrl(), dc.m1069(-1879655293)); + } + + public String toString() { + return d.d(dc.m1068(1329401655), this.key, dc.m1069(-1879377757)); + } + + public /* synthetic */ Kr(String str, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? "Config - Hyundai Kr" : str); + } + + /* JADX WARN: Illegal instructions before constructor call */ + public Kr(String str) { + i.j(str, dc.m1081(-811831492)); + SDKConfig sDKConfig = SDKConfig.INSTANCE; + boolean zIsProduction = sDKConfig.isProduction(); + String strM1081 = dc.m1081(-812620140); + String strM1078 = dc.m1078(-391915427); + String str2 = zIsProduction ? strM1078 : strM1081; + String strM1069 = sDKConfig.isProduction() ? dc.m1069(-1879663685) : "https://stg-egw-svchub-ccs-h-kr.ap-northeast.hmgmobility.com:31010"; + String strM10782 = sDKConfig.isProduction() ? dc.m1078(-391941675) : "api/v1/apps/spa/tmc"; + sDKConfig.isProduction(); + boolean zIsProduction2 = sDKConfig.isProduction(); + String strM10783 = dc.m1078(-391914699); + String strM1068 = dc.m1068(1329426975); + String str3 = zIsProduction2 ? strM1068 : strM10783; + String str4 = sDKConfig.isProduction() ? strM1068 : strM10783; + String strM1080 = sDKConfig.isProduction() ? dc.m1080(-1041572038) : "Basic MjVmYTg5MDAtNjBiMC00ZjVkLTgwMmItMDRjNzE2OGY2NGVhOnNlY3JldA=="; + String strM10692 = sDKConfig.isProduction() ? dc.m1069(-1879661637) : "secret"; + String strM1071 = sDKConfig.isProduction() ? dc.m1071(108172545) : "https://stg.kr-ccapi.hyundai.com:8080/api/v1/apps/icp/icpa/hmc/"; + String strM10712 = sDKConfig.isProduction() ? dc.m1071(108172081) : "64753f612d6441e5bd12"; + String strM10802 = sDKConfig.isProduction() ? dc.m1080(-1041570614) : "5d039c00-9e06-4a28-9f37-ea90da90272c"; + String strM1076 = sDKConfig.isProduction() ? dc.m1076(2132901184) : "71f05d66-efbf-4d3b-b47e-113521ef3ac5"; + String strM10713 = sDKConfig.isProduction() ? dc.m1071(108174849) : "70e80715-eafe-4076-92dd-23ead197f251"; + String strM10682 = sDKConfig.isProduction() ? dc.m1068(1329416047) : "87545234-e590-4951-8bf8-07782f3aa35d"; + boolean zIsProduction3 = sDKConfig.isProduction(); + String strM1077 = dc.m1077(-1631517266); + String strM10714 = dc.m1071(108174737); + String str5 = zIsProduction3 ? strM10714 : strM1077; + String strM10812 = sDKConfig.isProduction() ? dc.m1081(-812622828) : "5c13ac14-4407-44d4-8bd3-b9da39c7fc24"; + String strM10715 = sDKConfig.isProduction() ? dc.m1071(108173361) : "2dac4009-c8eb-4a01-992b-2af0e0f2ba0d"; + String strM10762 = sDKConfig.isProduction() ? dc.m1076(2132899312) : "cbe47fe1-26cb-4bfb-a53c-98b5bf970c91"; + String str6 = sDKConfig.isProduction() ? strM1078 : strM1081; + String strM10803 = sDKConfig.isProduction() ? dc.m1080(-1041567110) : "E3QcjMYztz6yK6O8V8wQ"; + String strM10716 = sDKConfig.isProduction() ? dc.m1071(108168961) : "svSSfe6Wj9qzQtwGVFhIr5A12lrWyy7CC7Npf0Ex"; + String strM10693 = sDKConfig.isProduction() ? dc.m1069(-1879658277) : "hyundaikr://welaaa/login/stg"; + String str7 = sDKConfig.isProduction() ? strM10714 : strM1077; + String strM10784 = sDKConfig.isProduction() ? dc.m1078(-391908507) : "https://stg.kr-app-cfs.hyundai.com/"; + String strM10785 = sDKConfig.isProduction() ? dc.m1078(-391908275) : "https://stg-web.icps.hmc.co.kr:9401/icp_ssn_1001.do"; + String strM10763 = sDKConfig.isProduction() ? dc.m1076(2132896816) : "aHl1bmRhaUNhclBheQ=="; + String strM10813 = sDKConfig.isProduction() ? dc.m1081(-812636868) : "https://dev-genesis-one-app-store.eeppii.com"; + sDKConfig.isProduction(); + super(true, false, dc.m1077(-1631503786), dc.m1080(-1041565318), dc.m1080(-1041602734), dc.m1080(-1041573998), dc.m1071(108176353), str2, strM1069, dc.m1076(2132895248), strM10782, str3, str4, "api/v1/user/oauth2/token", "api/v1/user/oauth2/token", strM1080, strM10692, strM1071, strM10712, "https://bluelinkmobile.hyundai.com/mcc/bluelink/kmcis/requestToKMCIS.do?pgNum=04", "https://www.hyundai.com/kr/ko/faq", "https://mdirect.hi.co.kr/service.do?m=b5eef5f9a4&cnc_no=367&media_no=B238&companyId=367", "https://update.hyundai.com/KR/KO/updateGuide", "https://update.hyundai.com/KR/KO/updateNoticeList", "", "https://www.hyundai.com/kr/ko/digital-customer-support/app/hyundai-digital-key/hyundai-digital-key-information/hyundai-digital-key-information", strM10802, strM1076, strM10713, strM10682, "776192ce-ae6a-412d-adeb-6e9c66f5f605", "LM66", "HDIVIM", "73fd1e975c4143551968690539dbbdc4", "hMBsnylSQzmBakCb83Q4BzkwSYRbXPYQ", str5, "lqImqQWBzZHCZiDKbUbH", "tk7HGlNuBd", strM10812, strM10715, str6, strM10803, strM10716, strM10693, strM10762, "c9f4c9f7c56351206285e114237b2f85", str7, "Hyundai", "https://www.hyundai.com/kr/ko/customer-service/bluelink/use-guide/bluelink-app-user-guide/bluelink-app-add-profile", strM10784, "", strM10785, strM10763, strM10813, "H", "6b7cfe0b-65a8-42b2-a3fb-f2a7a7aa3d04", sDKConfig.isProduction() ? dc.m1071(108170801) : "https://paystg.hyundai.com/", "HNDM", "HK40001", "https://www.hyundai.com/kr/ko/customer-service/bluelink/bluelink-service/digital-key-2", sDKConfig.isProduction() ? dc.m1071(108171073) : "681f6dbe-c287-43b2-81a3-6c2f25505bc0", null, "블루링크 서비스", "080-600-6000", sDKConfig.isProduction() ? dc.m1081(-812586604) : "https://stg-commerce.hyundai.com/kr/ko/commerce/fod", sDKConfig.isProduction() ? dc.m1068(1329412447) : "https://stg-hmgpay-api-kr.hyundai.com/", "HYUNDAI_KR", sDKConfig.isProduction() ? dc.m1071(108170289) : "https://stg-hmgpay.hyundai.com/kr/ccs/callback", sDKConfig.isProduction() ? dc.m1078(-391918355) : "https://stg-oneapp.hyundai.com", sDKConfig.isProduction() ? dc.m1076(2132918456) : "76d5f644-7912-4806-bb39-2fdf9e745623", sDKConfig.isProduction() ? dc.m1080(-1041606350) : "5d922ca3-6749-420d-b298-8f19658c63e4", sDKConfig.isProduction() ? dc.m1069(-1879695549) : "82d9e662-0ea6-4a9b-917d-8091bd7aee8b", sDKConfig.isProduction() ? dc.m1077(-1631509626) : "91c6e20a-9c2f-469c-b63b-237b254659e4", sDKConfig.isProduction() ? dc.m1071(108181625) : "1b80db2a-9b92-4207-8332-b62d74b8d75c", sDKConfig.isProduction() ? dc.m1071(108181801) : "881333f5-99ea-4e5a-ad5b-168782b84aa0", sDKConfig.isProduction() ? dc.m1076(2132888072) : "72462170-6ef4-445d-bfed-49b6b856cf3d", sDKConfig.isProduction() ? dc.m1078(-391917235) : dc.m1081(-812620820), sDKConfig.isProduction() ? "" : dc.m1080(-1041574206), 0, 536870912, 0, null); + this.key = str; + } + } + + /* compiled from: Hyundai.kt */ + @Keep + @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u00012\u00020\u0002B\u0011\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\t\u001a\u00020\u0004H\u0016J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\u0004H\u0016J\b\u0010\f\u001a\u00020\u0004H\u0016J\t\u0010\r\u001a\u00020\u0004HÆ\u0003J\u0013\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0004HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0004HÖ\u0001R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/hmg/ccs/sdk/core/config/Hyundai$Na;", "Lcom/hmg/ccs/sdk/core/config/Hyundai;", "Lcom/hmg/ccs/sdk/core/config/AppConfig;", "key", "", "", "(Ljava/lang/String;)V", "getKey", "()Ljava/lang/String;", "loginUrl", "logoutUrl", "loginRedirectUrl", "loginAuthUrl", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "lib-core_release"}, k = 1, mv = {2, 0, 0}, xi = 48) + public static final /* data */ class Na extends AppConfig implements Hyundai { + private final String key; + + /* JADX WARN: Multi-variable type inference failed */ + public Na() { + this(null, 1, 0 == true ? 1 : 0); + } + + public static /* synthetic */ Na copy$default(Na na, String str, int i, Object obj) { + if ((i & 1) != 0) { + str = na.key; + } + return na.copy(str); + } + + /* renamed from: component1, reason: from getter */ + public final String getKey() { + return this.key; + } + + public final Na copy(String key) { + i.j(key, "key"); + return new Na(key); + } + + public boolean equals(Object other) { + if (this == other) { + return true; + } + return (other instanceof Na) && i.e(this.key, ((Na) other).key); + } + + public final String getKey() { + return this.key; + } + + public int hashCode() { + return this.key.hashCode(); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginAuthUrl() { + return ""; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginRedirectUrl() { + return C1239u0.e(getAccountUrl(), dc.m1076(2132889536)); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginUrl() throws NumberFormatException { + String idpAccountUrl = SDKConfig.INSTANCE.getIdpAccountUrl(); + i.j(idpAccountUrl, dc.m1081(-811746876)); + r.a aVar = new r.a(); + aVar.g(null, idpAccountUrl); + r.a aVarF = aVar.d().f(); + aVarF.b(dc.m1080(-1041600830)); + aVarF.c(dc.m1071(108141377), dc.m1069(-1879959693)); + aVarF.c(dc.m1077(-1631485194), getCcspServiceId()); + aVarF.c(dc.m1077(-1631485282), loginRedirectUrl()); + aVarF.c(dc.m1076(2132888784), dc.m1069(-1879643053)); + r rVarD = aVarF.d(); + L l = L.INSTANCE; + String str = rVarD.i; + l.d(dc.m1071(108140697).concat(str)); + return str; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String logoutUrl() { + r.a aVar = new r.a(); + aVar.f(getCcspBaseUrl()); + aVar.b(getCcspPath()); + aVar.a(dc.m1068(1329428967)); + aVar.a(dc.m1081(-812620204)); + return aVar.d().i; + } + + public String toString() { + return d.d(dc.m1076(2132881256), this.key, dc.m1069(-1879377757)); + } + + public /* synthetic */ Na(String str, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? "Config - Hyundai Na GSPA" : str); + } + + /* JADX WARN: Illegal instructions before constructor call */ + public Na(String str) { + String strM1078; + String str2; + String str3; + String strM1081; + String str4; + String str5; + String strM1077; + String strM1080; + i.j(str, dc.m1081(-811831492)); + SDKConfig sDKConfig = SDKConfig.INSTANCE; + Country country = sDKConfig.getCountry(); + Country.Canada canada = Country.Canada.INSTANCE; + if (i.e(country, canada)) { + strM1078 = sDKConfig.isProduction() ? dc.m1080(-1041564326) : "https://stg-gspa-ccs-ca.hyundai.com/"; + } else { + strM1078 = sDKConfig.isProduction() ? dc.m1078(-392167355) : "https://stg-gspa-ccs-us.hyundai.com/"; + } + String str6 = strM1078; + boolean zE = i.e(sDKConfig.getCountry(), canada); + String strM1069 = dc.m1069(-1879638125); + if (zE) { + if (!sDKConfig.isProduction()) { + str2 = "4712a06c-b9ff-440b-9515-eed0ab00da06"; + str3 = str2; + } + str3 = strM1069; + } else { + if (!sDKConfig.isProduction()) { + str2 = "51ea965f-8ead-4f2e-8f4b-7ab8fea8f375"; + str3 = str2; + } + str3 = strM1069; + } + if (i.e(sDKConfig.getCountry(), canada)) { + strM1081 = sDKConfig.isProduction() ? dc.m1081(-812404604) : "https://stg-egw-svchub-ccs-h-ca.us-west.hmgmobility.com:31010"; + } else { + strM1081 = sDKConfig.isProduction() ? dc.m1081(-812404036) : dc.m1077(-1631393266); + } + String str7 = strM1081; + boolean zE2 = i.e(sDKConfig.getCountry(), canada); + String strM10782 = dc.m1078(-392165443); + String strM10772 = dc.m1077(-1631393810); + String strM10692 = dc.m1069(-1879749661); + String strM10802 = dc.m1080(-1041692550); + if (zE2) { + str4 = sDKConfig.isProduction() ? strM10802 : strM10692; + } else { + str4 = sDKConfig.isProduction() ? strM10772 : strM10782; + } + if (i.e(sDKConfig.getCountry(), canada)) { + str5 = sDKConfig.isProduction() ? strM10802 : strM10692; + } else { + str5 = sDKConfig.isProduction() ? strM10772 : strM10782; + } + String strM10693 = sDKConfig.isProduction() ? dc.m1069(-1879643053) : "secret"; + String strM1071 = sDKConfig.isProduction() ? dc.m1071(108179753) : "838146c3-a519-4eca-8132-ead536d05ce4"; + String strM10712 = sDKConfig.isProduction() ? dc.m1071(108183065) : "9eb34f0b-b29e-42a3-a9cd-ba04d75f9169"; + String strM1068 = sDKConfig.isProduction() ? dc.m1068(1329424215) : "a0d34f69-22b1-4a06-b1eb-778caf999458"; + if (i.e(sDKConfig.getCountry(), canada)) { + strM1077 = sDKConfig.isProduction() ? dc.m1078(-392164515) : "469b8048-2843-4dfc-a4fc-95172cb59dad"; + } else { + strM1077 = sDKConfig.isProduction() ? dc.m1077(-1631394938) : "29205971-d88f-45a3-864a-957e2c9d9524"; + } + String str8 = strM1077; + if (i.e(sDKConfig.getCountry(), canada)) { + strM1080 = sDKConfig.isProduction() ? dc.m1081(-812400852) : "1ecb0611-5b17-447e-b8ff-d7f1d7a51613"; + } else { + strM1080 = sDKConfig.isProduction() ? dc.m1080(-1041691262) : "05a0962f-fd73-45c6-af37-28c0959a1c68"; + } + String str9 = strM1080; + String strM10812 = sDKConfig.isProduction() ? dc.m1081(-812586604) : "https://stg-commerce.hyundai.com/uk/en/commerce/fod"; + String strM10783 = sDKConfig.isProduction() ? dc.m1078(-391918355) : "https://stg-oneapp.hyundai.com"; + String strM1076 = sDKConfig.isProduction() ? dc.m1076(2132918456) : "76d5f644-7912-4806-bb39-2fdf9e745623"; + String strM10803 = sDKConfig.isProduction() ? dc.m1080(-1041606350) : "5d922ca3-6749-420d-b298-8f19658c63e4"; + String strM10694 = sDKConfig.isProduction() ? dc.m1069(-1879695549) : "82d9e662-0ea6-4a9b-917d-8091bd7aee8b"; + String strM10773 = sDKConfig.isProduction() ? dc.m1077(-1631509626) : "91c6e20a-9c2f-469c-b63b-237b254659e4"; + String strM10713 = sDKConfig.isProduction() ? dc.m1071(108181625) : "1b80db2a-9b92-4207-8332-b62d74b8d75c"; + String strM10714 = sDKConfig.isProduction() ? dc.m1071(108181801) : "881333f5-99ea-4e5a-ad5b-168782b84aa0"; + String strM10762 = sDKConfig.isProduction() ? dc.m1076(2132888072) : "72462170-6ef4-445d-bfed-49b6b856cf3d"; + String strM10784 = sDKConfig.isProduction() ? dc.m1078(-391917235) : dc.m1081(-812620820); + String strM10804 = sDKConfig.isProduction() ? "" : dc.m1080(-1041574206); + super(true, true, dc.m1077(-1631503786), "", dc.m1080(-1041602734), dc.m1080(-1041573998), dc.m1071(108176353), str6, str7, str3, dc.m1080(-1041603142), str4, str5, "gspa/oauth/token", "gspa/oauth/token", "ZmZmZmZmZmYtZmZmZi1mZmZmLWZmZmYtZmZmZmZmZmZmZmZm", strM10693, "", null, "", "", "", "", "", "", "", strM1071, strM10712, strM1068, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Hyundai", "", "", "", "", "", "", "K", "", "", "", "", "https://www.hyundai.com/eu/driving-hyundai/owning-a-hyundai/bluelink-connectivity/digital-key.html", str8, str9, "Bluelink Service", "(080) 633-5151", strM10812, "", "", "", strM10783, strM1076, strM10803, strM10694, strM10773, strM10713, strM10714, strM10762, strM10784, strM10804, 262144, 0, 0, null); + this.key = str; + } + } + + /* compiled from: Hyundai.kt */ + @Keep + @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0087\b\u0018\u00002\u00020\u00012\u00020\u0002B\u0011\u0012\b\b\u0002\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006J\b\u0010\t\u001a\u00020\u0004H\u0016J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\u0004H\u0016J\b\u0010\f\u001a\u00020\u0004H\u0016J\t\u0010\r\u001a\u00020\u0004HÆ\u0003J\u0013\u0010\u000e\u001a\u00020\u00002\b\b\u0002\u0010\u0003\u001a\u00020\u0004HÆ\u0001J\u0013\u0010\u000f\u001a\u00020\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u0012HÖ\u0003J\t\u0010\u0013\u001a\u00020\u0014HÖ\u0001J\t\u0010\u0015\u001a\u00020\u0004HÖ\u0001R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u0016"}, d2 = {"Lcom/hmg/ccs/sdk/core/config/Hyundai$Sa;", "Lcom/hmg/ccs/sdk/core/config/Hyundai;", "Lcom/hmg/ccs/sdk/core/config/AppConfig;", "key", "", "", "(Ljava/lang/String;)V", "getKey", "()Ljava/lang/String;", "loginUrl", "logoutUrl", "loginRedirectUrl", "loginAuthUrl", "component1", "copy", "equals", "", "other", "", "hashCode", "", "toString", "lib-core_release"}, k = 1, mv = {2, 0, 0}, xi = 48) + public static final /* data */ class Sa extends AppConfig implements Hyundai { + private final String key; + + /* JADX WARN: Multi-variable type inference failed */ + public Sa() { + this(null, 1, 0 == true ? 1 : 0); + } + + public static /* synthetic */ Sa copy$default(Sa sa, String str, int i, Object obj) { + if ((i & 1) != 0) { + str = sa.key; + } + return sa.copy(str); + } + + /* renamed from: component1, reason: from getter */ + public final String getKey() { + return this.key; + } + + public final Sa copy(String key) { + i.j(key, "key"); + return new Sa(key); + } + + public boolean equals(Object other) { + if (this == other) { + return true; + } + return (other instanceof Sa) && i.e(this.key, ((Sa) other).key); + } + + public final String getKey() { + return this.key; + } + + public int hashCode() { + return this.key.hashCode(); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginAuthUrl() { + return ""; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginRedirectUrl() { + return C1239u0.e(getAccountUrl(), dc.m1076(2132889536)); + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String loginUrl() throws NumberFormatException { + String idpAccountUrl = SDKConfig.INSTANCE.getIdpAccountUrl(); + i.j(idpAccountUrl, dc.m1081(-811746876)); + r.a aVar = new r.a(); + aVar.g(null, idpAccountUrl); + r.a aVarF = aVar.d().f(); + aVarF.b(dc.m1080(-1041600830)); + aVarF.c(dc.m1071(108141377), dc.m1069(-1879959693)); + aVarF.c(dc.m1077(-1631485194), getCcspServiceId()); + aVarF.c(dc.m1077(-1631485282), loginRedirectUrl()); + aVarF.c(dc.m1076(2132888784), dc.m1069(-1879643053)); + r rVarD = aVarF.d(); + L l = L.INSTANCE; + String str = rVarD.i; + l.d(dc.m1071(108140697).concat(str)); + return str; + } + + @Override // com.hmg.ccs.sdk.core.config.AppConfig + public String logoutUrl() { + r.a aVar = new r.a(); + aVar.f(getCcspBaseUrl()); + aVar.b(getCcspPath()); + aVar.a(dc.m1068(1329428967)); + aVar.a(dc.m1081(-812620204)); + return aVar.d().i; + } + + public String toString() { + return d.d(dc.m1069(-1879638325), this.key, dc.m1069(-1879377757)); + } + + public /* synthetic */ Sa(String str, int i, DefaultConstructorMarker defaultConstructorMarker) { + this((i & 1) != 0 ? "Config - Hyundai Sa GSPA" : str); + } + + /* JADX WARN: Illegal instructions before constructor call */ + public Sa(String str) { + i.j(str, dc.m1081(-811831492)); + SDKConfig sDKConfig = SDKConfig.INSTANCE; + String strM1078 = sDKConfig.isProduction() ? dc.m1078(-392163171) : "https://stg-gspa-ccs-sa.hyundai.com/"; + sDKConfig.isProduction(); + String strM1069 = sDKConfig.isProduction() ? dc.m1069(-1879638125) : "51ea965f-8ead-4f2e-8f4b-7ab8fea8f375"; + String strM1081 = sDKConfig.isProduction() ? dc.m1081(-812408644) : "https://stg-egw-svchub-ccs-h-ca.us-west.hmgmobility.com:31010"; + boolean zIsProduction = sDKConfig.isProduction(); + String strM10812 = dc.m1081(-812408236); + String strM1068 = dc.m1068(1329511031); + String str2 = zIsProduction ? strM1068 : strM10812; + String str3 = sDKConfig.isProduction() ? strM1068 : strM10812; + String strM10692 = sDKConfig.isProduction() ? dc.m1069(-1879643053) : "secret"; + sDKConfig.isProduction(); + String strM1071 = sDKConfig.isProduction() ? dc.m1071(108179753) : "838146c3-a519-4eca-8132-ead536d05ce4"; + String strM10712 = sDKConfig.isProduction() ? dc.m1071(108183065) : "9eb34f0b-b29e-42a3-a9cd-ba04d75f9169"; + String strM10682 = sDKConfig.isProduction() ? dc.m1068(1329424215) : "a0d34f69-22b1-4a06-b1eb-778caf999458"; + String strM1077 = sDKConfig.isProduction() ? dc.m1077(-1631394938) : "29205971-d88f-45a3-864a-957e2c9d9524"; + String strM10813 = sDKConfig.isProduction() ? dc.m1081(-812586604) : "https://stg-commerce.hyundai.com/uk/en/commerce/fod"; + String strM10782 = sDKConfig.isProduction() ? dc.m1078(-391918355) : "https://stg-oneapp.hyundai.com"; + String strM1076 = sDKConfig.isProduction() ? dc.m1076(2132918456) : "76d5f644-7912-4806-bb39-2fdf9e745623"; + String strM1080 = sDKConfig.isProduction() ? dc.m1080(-1041606350) : "5d922ca3-6749-420d-b298-8f19658c63e4"; + String strM10693 = sDKConfig.isProduction() ? dc.m1069(-1879695549) : "82d9e662-0ea6-4a9b-917d-8091bd7aee8b"; + String strM10772 = sDKConfig.isProduction() ? dc.m1077(-1631509626) : "91c6e20a-9c2f-469c-b63b-237b254659e4"; + String strM10713 = sDKConfig.isProduction() ? dc.m1071(108181625) : "1b80db2a-9b92-4207-8332-b62d74b8d75c"; + String strM10714 = sDKConfig.isProduction() ? dc.m1071(108181801) : "881333f5-99ea-4e5a-ad5b-168782b84aa0"; + String strM10762 = sDKConfig.isProduction() ? dc.m1076(2132888072) : "72462170-6ef4-445d-bfed-49b6b856cf3d"; + String strM10783 = sDKConfig.isProduction() ? dc.m1078(-391917235) : dc.m1081(-812620820); + String strM10802 = sDKConfig.isProduction() ? "" : dc.m1080(-1041574206); + super(true, true, dc.m1077(-1631503786), "", dc.m1080(-1041602734), dc.m1080(-1041573998), dc.m1071(108176353), strM1078, strM1081, strM1069, dc.m1080(-1041603142), str2, str3, "gspa/oauth/token", "gspa/oauth/token", "ZmZmZmZmZmYtZmZmZi1mZmZmLWZmZmYtZmZmZmZmZmZmZmZm", strM10692, "https://dev-icp-eu.bluewalnut.net:443/mob/icp/init.do", null, "", "", "", "", "", "", "", strM1071, strM10712, strM10682, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Hyundai", "", "", "", "", "", "", "", "", "", "", "", "https://www.hyundai.com/eu/driving-hyundai/owning-a-hyundai/bluelink-connectivity/digital-key.html", strM1077, null, "Bluelink Service", "080-600-6000", strM10813, "", "", "", strM10782, strM1076, strM1080, strM10693, strM10772, strM10713, strM10714, strM10762, strM10783, strM10802, 262144, 536870912, 0, null); + this.key = str; + } + } +} diff --git a/e(2).java b/e(2).java new file mode 100644 index 0000000..4a28811 --- /dev/null +++ b/e(2).java @@ -0,0 +1,55 @@ +package org.eclipse.paho.client.mqttv3.internal.websocket; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.PipedInputStream; +import org.eclipse.paho.client.mqttv3.MqttException; +import org.eclipse.paho.client.mqttv3.internal.m; + +/* compiled from: WebSocketNetworkModule.java */ +/* loaded from: classes5.dex */ +public final class e extends m { + public org.eclipse.paho.client.mqttv3.logging.b g; + public String h; + public String i; + public int j; + public PipedInputStream k; + public g l; + public b m; + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final OutputStream a() { + return this.m; + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final InputStream b() { + return this.k; + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final void start() throws MqttException, IOException { + super.start(); + new d(this.b.getInputStream(), this.b.getOutputStream(), this.h, this.i, this.j).a(); + g gVar = new g(this.b.getInputStream(), this.k); + this.l = gVar; + gVar.a("webSocketReceiver"); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final void stop() throws InterruptedException, IOException { + this.b.getOutputStream().write(new c((byte) 8, "1000".getBytes()).a()); + this.b.getOutputStream().flush(); + g gVar = this.l; + if (gVar != null) { + gVar.b(); + } + super.stop(); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final String t() { + return "ws://" + this.i + ":" + this.j; + } +} diff --git a/e.java b/e.java new file mode 100644 index 0000000..8b41c39 --- /dev/null +++ b/e.java @@ -0,0 +1,670 @@ +package org.jsoup.parser; + +import com.mapbox.common.MapboxServices; +import com.onetrust.otpublishers.headless.Public.Keys.OTUXParamsKeys; +import com.xshield.dc; +import java.util.ArrayList; +import org.jsoup.helper.ValidationException; +import org.jsoup.nodes.Document; +import org.jsoup.nodes.Element; +import org.jsoup.parser.Token; + +/* compiled from: HtmlTreeBuilder.java */ +/* loaded from: classes.dex */ +public final class e extends B { + public HtmlTreeBuilderState l; + public HtmlTreeBuilderState m; + public boolean n; + public Element o; + public org.jsoup.nodes.m p; + public ArrayList q; + public ArrayList r; + public ArrayList s; + public Token.f t; + public boolean u; + public boolean v; + public final String[] w = {null}; + public static final String[] x = {"applet", "caption", "html", "marquee", "object", "table", "td", "template", "th"}; + public static final String[] y = {"annotation-xml", "mi", "mn", "mo", "ms", "mtext"}; + public static final String[] z = {"desc", "foreignObject", "title"}; + public static final String[] A = {"ol", "ul"}; + public static final String[] B = {"button"}; + public static final String[] C = {"html", "table"}; + public static final String[] D = {"optgroup", "option"}; + public static final String[] E = {"dd", "dt", "li", "optgroup", "option", "p", "rb", "rp", "rt", "rtc"}; + public static final String[] F = {"caption", "colgroup", "dd", "dt", "li", "optgroup", "option", "p", "rb", "rp", "rt", "rtc", "tbody", "td", "tfoot", "th", "thead", "tr"}; + public static final String[] G = {"address", "applet", "area", "article", "aside", "base", "basefont", "bgsound", "blockquote", "body", "br", "button", "caption", "center", "col", "colgroup", "dd", "details", "dir", "div", "dl", "dt", "embed", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "img", "input", "keygen", "li", "link", "listing", "main", "marquee", "menu", "meta", "nav", "noembed", "noframes", "noscript", "object", "ol", "p", "param", "plaintext", "pre", "script", MapboxServices.SEARCH, "section", "select", "source", "style", OTUXParamsKeys.OT_UX_SUMMARY, "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "title", "tr", "track", "ul", "wbr", "xmp"}; + public static final String[] H = {"annotation-xml", "mi", "mn", "mo", "ms", "mtext"}; + public static final String[] I = {"mi", "mn", "mo", "ms", "mtext"}; + public static final String[] J = {"desc", "foreignObject", "title"}; + public static final String[] K = {"button", "fieldset", "input", "keygen", "object", "output", "select", "textarea"}; + + public static boolean F(Element element) { + i iVar = element.g; + String str = iVar.d; + String str2 = iVar.f; + str.getClass(); + char c = 65535; + switch (str.hashCode()) { + case -2078206768: + if (str.equals(dc.m1080(-1042051558))) { + c = 0; + break; + } + break; + case -296110905: + if (str.equals(dc.m1071(108783113))) { + c = 1; + break; + } + break; + case 1725132794: + if (str.equals(dc.m1081(-812040580))) { + c = 2; + break; + } + break; + } + switch (c) { + case 0: + return org.jsoup.internal.l.d(str2, G); + case 1: + return org.jsoup.internal.l.d(str2, J); + case 2: + return org.jsoup.internal.l.d(str2, H); + default: + return false; + } + } + + public static boolean H(ArrayList arrayList, Element element) { + int size = arrayList.size(); + int i = size - 1; + int i2 = i >= 256 ? size - 257 : 0; + while (i >= i2) { + if (arrayList.get(i) == element) { + return true; + } + i--; + } + return false; + } + + public final void A(Token.c cVar) { + a().S(new org.jsoup.nodes.d(cVar.d.e())); + } + + public final Element B(Token.g gVar) { + Element elementN = n(gVar, dc.m1080(-1042051558), false); + o(elementN); + if (gVar.f) { + i iVar = elementN.g; + iVar.g |= 32; + if (!iVar.d() || ((iVar.g & 2) == 0 && !iVar.f())) { + A a = this.c; + Object[] objArr = {iVar.f}; + ParseErrorList parseErrorList = a.b; + if (parseErrorList.a()) { + parseErrorList.add(new f(a.a, dc.m1078(-391474771), objArr)); + } + } else { + this.c.o(TokeniserState.Data); + A a2 = this.c; + Token.f fVar = this.t; + fVar.g(); + fVar.k(iVar.e); + a2.h(fVar); + } + } + return elementN; + } + + public final Element C(Token.g gVar) { + Element elementN = n(gVar, dc.m1080(-1042051558), false); + o(elementN); + c(); + return elementN; + } + + public final void D(Token.g gVar, String str) { + Element elementN = n(gVar, str, true); + o(elementN); + if (gVar.f) { + elementN.g.g |= 32; + c(); + } + } + + public final void E(Token.g gVar, boolean z2, boolean z3) { + org.jsoup.nodes.m mVar = (org.jsoup.nodes.m) n(gVar, dc.m1080(-1042051558), false); + if (!z3 || !G("template")) { + this.p = mVar; + } + o(mVar); + if (z2) { + return; + } + c(); + } + + public final boolean G(String str) { + return s(str) != null; + } + + public final boolean I(String[] strArr) { + int size = this.e.size(); + int i = size - 1; + int i2 = i > 100 ? size - 101 : 0; + while (i >= i2) { + if (!org.jsoup.internal.l.d(this.e.get(i).g.f, strArr)) { + return true; + } + i--; + } + return false; + } + + public final void J(String str) { + for (int size = this.e.size() - 1; size >= 0; size--) { + i iVar = c().g; + if (iVar.f.equals(str) && iVar.d.equals(dc.m1080(-1042051558))) { + return; + } + } + } + + public final void K() { + if (this.r.size() > 0) { + this.r.remove(r0.size() - 1); + } + } + + public final boolean L(Token token, HtmlTreeBuilderState htmlTreeBuilderState) { + return htmlTreeBuilderState.k(token, this); + } + + public final void M(HtmlTreeBuilderState htmlTreeBuilderState) { + this.r.add(htmlTreeBuilderState); + } + + public final void N() { + if (this.e.size() > 256) { + return; + } + boolean z2 = true; + Element element = this.q.size() > 0 ? (Element) androidx.appcompat.view.menu.d.f(1, this.q) : null; + if (element == null || H(this.e, element)) { + return; + } + int size = this.q.size(); + int i = size - 12; + if (i < 0) { + i = 0; + } + int i2 = size - 1; + int i3 = i2; + while (i3 != i) { + i3--; + element = this.q.get(i3); + if (element == null || H(this.e, element)) { + z2 = false; + break; + } + } + while (true) { + if (!z2) { + i3++; + element = this.q.get(i3); + } + org.jsoup.helper.b.d(element); + Element element2 = new Element(this.i.d(element.D(), element.g.f, dc.m1080(-1042051558), this.h.a), null, element.j().clone()); + o(element2); + this.q.set(i3, element2); + if (i3 == i2) { + return; + } else { + z2 = false; + } + } + } + + public final void O(Element element) { + for (int size = this.q.size() - 1; size >= 0; size--) { + if (this.q.get(size) == element) { + this.q.remove(size); + return; + } + } + } + + public final void P(Element element) { + for (int size = this.e.size() - 1; size >= 0; size--) { + if (this.e.get(size) == element) { + this.e.remove(size); + return; + } + } + } + + public final void Q() { + String strM1068 = dc.m1068(1328823343); + if (!G(strM1068)) { + ArrayList arrayList = this.e; + Document document = this.d; + Element elementB0 = document.b0(); + while (true) { + if (elementB0 == null) { + elementB0 = document.T("html"); + break; + } else if (elementB0.z("html")) { + break; + } else { + elementB0 = elementB0.A(); + } + } + Element elementB02 = elementB0.b0(); + while (true) { + if (elementB02 == null) { + elementB02 = elementB0.T(strM1068); + break; + } else if (elementB02.z(strM1068) || elementB02.z("frameset")) { + break; + } else { + elementB02 = elementB02.A(); + } + } + arrayList.add(elementB02); + } + this.l = HtmlTreeBuilderState.InBody; + } + + /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ + /* JADX WARN: Failed to restore switch over string. Please report as a decompilation issue */ + /* JADX WARN: Removed duplicated region for block: B:119:0x0113 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:120:0x0119 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:121:0x011f A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:122:0x0124 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:123:0x0137 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:124:0x013c A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:125:0x0152 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:126:0x0157 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:127:0x015c A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:128:0x0180 A[SYNTHETIC] */ + /* JADX WARN: Removed duplicated region for block: B:93:0x0130 */ + /* JADX WARN: Removed duplicated region for block: B:97:0x0141 */ + /* JADX WARN: Removed duplicated region for block: B:99:0x0148 */ + /* + Code decompiled incorrectly, please refer to instructions dump. + To view partially-correct add '--show-bad-code' argument + */ + public final boolean R() { + /* + Method dump skipped, instructions count: 492 + To view this dump add '--comments-level debug' option + */ + throw new UnsupportedOperationException("Method not decompiled: org.jsoup.parser.e.R():boolean"); + } + + /* JADX WARN: Removed duplicated region for block: B:19:0x0061 */ + /* JADX WARN: Removed duplicated region for block: B:22:0x0069 */ + /* JADX WARN: Removed duplicated region for block: B:31:0x0095 */ + /* JADX WARN: Removed duplicated region for block: B:40:0x00c8 */ + /* JADX WARN: Removed duplicated region for block: B:44:0x00da */ + /* JADX WARN: Removed duplicated region for block: B:49:0x00e7 */ + @Override // org.jsoup.parser.B + /* + Code decompiled incorrectly, please refer to instructions dump. + To view partially-correct add '--show-bad-code' argument + */ + public final boolean d(org.jsoup.parser.Token r9) { + /* + r8 = this; + java.util.ArrayList r0 = r8.e + boolean r0 = r0.isEmpty() + r1 = 1 + if (r0 == 0) goto Lb + goto Leb + Lb: + org.jsoup.nodes.Element r0 = r8.a() + org.jsoup.parser.i r2 = r0.g + java.lang.String r2 = r2.d + java.lang.String r3 = "http://www.w3.org/1999/xhtml" + boolean r3 = r3.equals(r2) + if (r3 == 0) goto L1d + goto Leb + L1d: + org.jsoup.parser.i r3 = r0.g + java.lang.String r4 = r3.d + r5 = -812040580(0xffffffffcf993e7c, float:-5.142018E9) + java.lang.String r5 = com.xshield.dc.m1081(r5) + boolean r4 = r5.equals(r4) + if (r4 == 0) goto L69 + java.lang.String[] r4 = org.jsoup.parser.e.I + java.lang.String r6 = r3.f + boolean r4 = org.jsoup.internal.l.d(r6, r4) + if (r4 == 0) goto L69 + boolean r4 = r9.f() + if (r4 == 0) goto L61 + r4 = r9 + org.jsoup.parser.Token$g r4 = (org.jsoup.parser.Token.g) r4 + java.lang.String r6 = r4.e + r7 = 1328822951(0x4f343aa7, float:3.02374272E9) + java.lang.String r7 = com.xshield.dc.m1068(r7) + boolean r6 = r7.equals(r6) + if (r6 != 0) goto L61 + java.lang.String r4 = r4.e + r6 = 1328822887(0x4f343a67, float:3.02372634E9) + java.lang.String r6 = com.xshield.dc.m1068(r6) + boolean r4 = r6.equals(r4) + if (r4 != 0) goto L61 + goto Leb + L61: + boolean r4 = r9.a() + if (r4 == 0) goto L69 + goto Leb + L69: + boolean r2 = r5.equals(r2) + r4 = -1879058797(0xffffffff8fffd693, float:-2.5227592E-29) + java.lang.String r4 = com.xshield.dc.m1069(r4) + if (r2 == 0) goto L95 + boolean r2 = r0.z(r4) + if (r2 == 0) goto L95 + boolean r2 = r9.f() + if (r2 == 0) goto L95 + r2 = r9 + org.jsoup.parser.Token$g r2 = (org.jsoup.parser.Token.g) r2 + java.lang.String r2 = r2.e + r6 = -812047284(0xffffffffcf99244c, float:-5.1385856E9) + java.lang.String r6 = com.xshield.dc.m1081(r6) + boolean r2 = r6.equals(r2) + if (r2 == 0) goto L95 + goto Leb + L95: + java.lang.String r2 = r3.d + boolean r5 = r5.equals(r2) + if (r5 == 0) goto Lc8 + boolean r4 = r0.z(r4) + if (r4 == 0) goto Lc8 + r4 = -1042049174(0xffffffffc1e3976a, float:-28.448933) + java.lang.String r4 = com.xshield.dc.m1080(r4) + java.lang.String r0 = r0.c(r4) + java.lang.String r0 = org.jsoup.internal.b.b(r0) + java.lang.String r4 = "text/html" + boolean r4 = r0.equals(r4) + if (r4 != 0) goto Lda + r4 = -1631028578(0xffffffff9ec87a9e, float:-2.1226537E-20) + java.lang.String r4 = com.xshield.dc.m1077(r4) + boolean r0 = r0.equals(r4) + if (r0 == 0) goto Lc8 + goto Lda + Lc8: + java.lang.String r0 = "http://www.w3.org/2000/svg" + boolean r0 = r0.equals(r2) + if (r0 == 0) goto Le7 + java.lang.String r0 = r3.e + java.lang.String[] r2 = org.jsoup.parser.e.J + boolean r0 = org.jsoup.internal.l.c(r0, r2) + if (r0 == 0) goto Le7 + Lda: + boolean r0 = r9.f() + if (r0 != 0) goto Leb + boolean r0 = r9.a() + if (r0 == 0) goto Le7 + goto Leb + Le7: + boolean r1 = r9.d() + Leb: + if (r1 == 0) goto Lf0 + org.jsoup.parser.HtmlTreeBuilderState r0 = r8.l + goto Lf2 + Lf0: + org.jsoup.parser.HtmlTreeBuilderState r0 = org.jsoup.parser.HtmlTreeBuilderState.ForeignContent + Lf2: + boolean r9 = r0.k(r9, r8) + return r9 + */ + throw new UnsupportedOperationException("Method not decompiled: org.jsoup.parser.e.d(org.jsoup.parser.Token):boolean"); + } + + public final Element h(Element element) { + for (int size = this.e.size() - 1; size >= 0; size--) { + if (this.e.get(size) == element) { + return this.e.get(size - 1); + } + } + return null; + } + + public final void i(Element element) { + int size = this.q.size(); + int i = size - 13; + int i2 = 0; + if (i < 0) { + i = 0; + } + for (int i3 = size - 1; i3 >= i; i3--) { + Element element2 = this.q.get(i3); + if (element2 == null) { + return; + } + if (element.g.f.equals(element2.g.f) && element.j().equals(element2.j())) { + i2++; + } + if (i2 == 3) { + this.q.remove(i3); + return; + } + } + } + + public final void j() { + while (!this.q.isEmpty()) { + int size = this.q.size(); + if ((size > 0 ? this.q.remove(size - 1) : null) == null) { + return; + } + } + } + + public final void k(String... strArr) { + for (int size = this.e.size() - 1; size >= 0; size--) { + Element element = this.e.get(size); + if (dc.m1080(-1042051558).equals(element.g.d) && (org.jsoup.internal.l.c(element.g.f, strArr) || element.z(dc.m1077(-1631028794)))) { + return; + } + c(); + } + } + + public final void l() { + k(dc.m1069(-1879059277), dc.m1069(-1879059077)); + } + + public final void m() { + k(dc.m1081(-812046764), dc.m1069(-1879059077)); + } + + public final Element n(Token.g gVar, String str, boolean z2) { + int i; + org.jsoup.nodes.b bVar = gVar.g; + int i2 = 0; + if (!z2) { + g gVar2 = this.h; + if (bVar == null) { + gVar2.getClass(); + } else if (!gVar2.b) { + for (int i3 = 0; i3 < bVar.d; i3++) { + String str2 = bVar.e[i3]; + if (!org.jsoup.nodes.b.r(str2)) { + bVar.e[i3] = org.jsoup.internal.b.a(str2); + } + } + } + } + if (bVar != null && (i = bVar.d) != 0) { + g gVar3 = this.h; + if (i != 0) { + boolean z3 = gVar3.b; + int i4 = 0; + while (i2 < bVar.d) { + String str3 = bVar.e[i2]; + i2++; + int i5 = i2; + while (i5 < bVar.d) { + if ((z3 && str3.equals(bVar.e[i5])) || (!z3 && str3.equalsIgnoreCase(bVar.e[i5]))) { + i4++; + bVar.x(i5); + i5--; + } + i5++; + } + } + i2 = i4; + } + if (i2 > 0) { + Object[] objArr = {gVar.e}; + ParseErrorList parseErrorList = this.a.e; + if (parseErrorList.a()) { + parseErrorList.add(new f(this.b, dc.m1081(-812046668), objArr)); + } + } + } + i iVarD = this.i.d(gVar.d.e(), gVar.e, str, (z2 ? g.d : this.h).a); + return iVarD.f.equals("form") ? new org.jsoup.nodes.m(iVarD, bVar) : new Element(iVarD, null, bVar); + } + + /* JADX WARN: Removed duplicated region for block: B:31:0x00a7 */ + /* JADX WARN: Removed duplicated region for block: B:64:0x0139 */ + /* JADX WARN: Removed duplicated region for block: B:68:0x014f */ + /* JADX WARN: Removed duplicated region for block: B:70:0x015c */ + /* + Code decompiled incorrectly, please refer to instructions dump. + To view partially-correct add '--show-bad-code' argument + */ + public final void o(org.jsoup.nodes.Element r12) { + /* + Method dump skipped, instructions count: 365 + To view this dump add '--comments-level debug' option + */ + throw new UnsupportedOperationException("Method not decompiled: org.jsoup.parser.e.o(org.jsoup.nodes.Element):void"); + } + + public final void p(HtmlTreeBuilderState htmlTreeBuilderState) { + if (this.a.e.a()) { + this.a.e.add(new f(this.b, dc.m1068(1328821583), this.g.getClass().getSimpleName(), this.g, htmlTreeBuilderState)); + } + } + + public final void q(String str) { + while (org.jsoup.internal.l.d(a().g.f, E)) { + if (str != null && b(str)) { + return; + } else { + c(); + } + } + } + + public final void r(boolean z2) { + String[] strArr = z2 ? F : E; + while (dc.m1080(-1042051558).equals(a().g.d) && org.jsoup.internal.l.d(a().g.f, strArr)) { + c(); + } + } + + public final Element s(String str) { + int size = this.e.size(); + int i = size - 1; + int i2 = i >= 256 ? size - 257 : 0; + while (i >= i2) { + Element element = this.e.get(i); + i iVar = element.g; + if (iVar.f.equals(str) && iVar.d.equals(dc.m1080(-1042051558))) { + return element; + } + i--; + } + return null; + } + + public final boolean t(String str) { + String[] strArr = B; + String[] strArr2 = x; + String[] strArr3 = this.w; + strArr3[0] = str; + return w(strArr3, strArr2, strArr); + } + + public final String toString() { + return dc.m1077(-1631030666) + this.g + dc.m1080(-1042047174) + this.l + dc.m1078(-391471451) + a() + '}'; + } + + public final boolean u(String str) { + String[] strArr = x; + String[] strArr2 = this.w; + strArr2[0] = str; + return w(strArr2, strArr, null); + } + + public final boolean v(String str) { + for (int size = this.e.size() - 1; size >= 0; size--) { + String str2 = this.e.get(size).g.f; + if (str2.equals(str)) { + return true; + } + if (!org.jsoup.internal.l.d(str2, D)) { + return false; + } + } + throw new ValidationException("Should not be reachable"); + } + + public final boolean w(String[] strArr, String[] strArr2, String[] strArr3) { + int size = this.e.size(); + int i = size - 1; + int i2 = i > 100 ? size - 101 : 0; + while (i >= i2) { + i iVar = this.e.get(i).g; + String str = iVar.f; + String str2 = iVar.d; + if (str2.equals("http://www.w3.org/1999/xhtml")) { + if (org.jsoup.internal.l.d(str, strArr)) { + return true; + } + if (org.jsoup.internal.l.d(str, strArr2)) { + return false; + } + if (strArr3 != null && org.jsoup.internal.l.d(str, strArr3)) { + return false; + } + } else if (strArr2 != x) { + continue; + } else { + if (str2.equals("http://www.w3.org/1998/Math/MathML") && org.jsoup.internal.l.d(str, y)) { + return false; + } + if (str2.equals(dc.m1071(108783113)) && org.jsoup.internal.l.d(str, z)) { + return false; + } + } + i--; + } + return false; + } + + public final boolean x(String str) { + String[] strArr = C; + String[] strArr2 = this.w; + strArr2[0] = str; + return w(strArr2, strArr, null); + } + + public final void y(Token.b bVar) { + z(bVar, a()); + } + + public final void z(Token.b bVar, Element element) { + String strE = bVar.d.e(); + element.S(bVar instanceof Token.a ? new org.jsoup.nodes.c(strE) : element.g.c(com.salesforce.marketingcloud.b.r) ? new org.jsoup.nodes.e(strE) : new org.jsoup.nodes.u(strE)); + } +} diff --git a/f.java b/f.java new file mode 100644 index 0000000..5b55dcf --- /dev/null +++ b/f.java @@ -0,0 +1,179 @@ +package com.hyundai.digitalkey.sdk.network; + +import android.text.TextUtils; +import com.google.android.gms.dynamite.descriptors.com.google.mlkit.dynamite.barcode.ModuleDescriptor; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.hyundai.digitalkey.sdk.network.HttpRequest; +import com.hyundai.digitalkey.sdk.tee.NewTeeStorage; +import com.xshield.dc; +import java.io.BufferedInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.nio.ByteBuffer; +import java.nio.CharBuffer; +import java.security.GeneralSecurityException; +import java.security.SecureRandom; +import java.util.HashMap; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; +import javax.net.ssl.TrustManager; + +/* loaded from: classes5.dex */ +public final class f { + public static volatile f a; + public static int b; + public static final String[][] c = {new String[]{"http://stg-pretam.ksmartech.com:8082/pretam", "HMC_DKC_TEST", "https://test-tam.t-base.co.kr:20443"}, new String[]{"https://pretam.t-base.co.kr:9443/pretam", "HMC_DKC", "https://tam.t-base.co.kr:18443"}}; + + public static /* synthetic */ class a { + public static final /* synthetic */ int[] a; + + static { + int[] iArr = new int[NewTeeStorage.StorageType.values().length]; + a = iArr; + try { + iArr[NewTeeStorage.StorageType.TEE.ordinal()] = 1; + } catch (NoSuchFieldError unused) { + } + try { + a[NewTeeStorage.StorageType.WBC.ordinal()] = 2; + } catch (NoSuchFieldError unused2) { + } + } + } + + public static JsonObject a(String str, HashMap map) { + JsonObject asJsonObject; + HttpRequest httpRequest = new HttpRequest(str); + httpRequest.c().setReadTimeout(ModuleDescriptor.MODULE_VERSION); + httpRequest.c().setConnectTimeout(ModuleDescriptor.MODULE_VERSION); + httpRequest.c().setRequestProperty(dc.m1076(2133794280), dc.m1077(-1630574770)); + httpRequest.e = true; + httpRequest.c().setInstanceFollowRedirects(true); + HttpURLConnection httpURLConnectionC = httpRequest.c(); + if (httpURLConnectionC instanceof HttpsURLConnection) { + HttpsURLConnection httpsURLConnection = (HttpsURLConnection) httpURLConnectionC; + if (HttpRequest.f == null) { + TrustManager[] trustManagerArr = {new b()}; + try { + SSLContext sSLContext = SSLContext.getInstance("TLS"); + sSLContext.init(null, trustManagerArr, new SecureRandom()); + HttpRequest.f = sSLContext.getSocketFactory(); + } catch (GeneralSecurityException e) { + IOException iOException = new IOException(dc.m1081(-807636460)); + iOException.initCause(e); + throw new HttpRequest.HttpRequestException(iOException); + } + } + httpsURLConnection.setSSLSocketFactory(HttpRequest.f); + } + HttpURLConnection httpURLConnectionC2 = httpRequest.c(); + if (httpURLConnectionC2 instanceof HttpsURLConnection) { + HttpsURLConnection httpsURLConnection2 = (HttpsURLConnection) httpURLConnectionC2; + if (HttpRequest.g == null) { + HttpRequest.g = new com.hyundai.digitalkey.sdk.network.a(); + } + httpsURLConnection2.setHostnameVerifier(HttpRequest.g); + } + httpRequest.toString(); + String json = new Gson().toJson(map); + HttpURLConnection httpURLConnectionC3 = httpRequest.c(); + String strM1080 = dc.m1080(-1041881950); + httpURLConnectionC3.setRequestProperty(strM1080, dc.m1068(1332832895)); + try { + if (httpRequest.d == null) { + httpRequest.c().setDoOutput(true); + httpRequest.d = new HttpRequest.c(httpRequest.c().getOutputStream(), HttpRequest.a(httpRequest.c().getRequestProperty(strM1080))); + } + HttpRequest.c cVar = httpRequest.d; + ByteBuffer byteBufferEncode = cVar.d.encode(CharBuffer.wrap(json.toString())); + cVar.write(byteBufferEncode.array(), 0, byteBufferEncode.limit()); + try { + HttpRequest.c cVar2 = httpRequest.d; + if (cVar2 != null) { + try { + cVar2.close(); + } catch (IOException unused) { + } + httpRequest.d = null; + } + int responseCode = httpRequest.c().getResponseCode(); + try { + HttpRequest.c cVar3 = httpRequest.d; + if (cVar3 != null) { + try { + cVar3.close(); + } catch (IOException unused2) { + } + httpRequest.d = null; + } + String strA = HttpRequest.a(httpRequest.c().getHeaderField(strM1080)); + try { + HttpRequest.c cVar4 = httpRequest.d; + if (cVar4 != null) { + try { + cVar4.close(); + } catch (IOException unused3) { + } + httpRequest.d = null; + } + int headerFieldInt = httpRequest.c().getHeaderFieldInt(dc.m1077(-1630681082), -1); + ByteArrayOutputStream byteArrayOutputStream = headerFieldInt > 0 ? new ByteArrayOutputStream(headerFieldInt) : new ByteArrayOutputStream(); + try { + BufferedInputStream bufferedInputStreamB = httpRequest.b(); + new c(httpRequest, bufferedInputStreamB, bufferedInputStreamB, byteArrayOutputStream).call(); + if (strA == null || strA.length() <= 0) { + strA = "UTF-8"; + } + String string = byteArrayOutputStream.toString(strA); + httpRequest.c().disconnect(); + try { + asJsonObject = ((JsonElement) new Gson().fromJson(string, JsonElement.class)).getAsJsonObject(); + } catch (Exception unused4) { + asJsonObject = null; + } + if (responseCode == 200 || responseCode == 204) { + return asJsonObject; + } + if (asJsonObject == null) { + throw new CcspException(responseCode, string, null, null); + } + String strM1076 = dc.m1076(2133671560); + String asString = asJsonObject.get(strM1076) == null ? "" : asJsonObject.get(strM1076).getAsString(); + if (TextUtils.isEmpty(asString)) { + asString = asJsonObject.get(strM1076) == null ? dc.m1077(-1634915610) : asJsonObject.get(dc.m1078(-386939163)).getAsString(); + } + throw new CcspException(responseCode, string, asJsonObject, asString); + } catch (IOException e2) { + throw new HttpRequest.HttpRequestException(e2); + } + } catch (IOException e3) { + throw new HttpRequest.HttpRequestException(e3); + } + } catch (IOException e4) { + throw new HttpRequest.HttpRequestException(e4); + } + } catch (IOException e5) { + throw new HttpRequest.HttpRequestException(e5); + } + } catch (IOException e6) { + throw new HttpRequest.HttpRequestException(e6); + } + } + + public static f b() { + if (a == null) { + synchronized (f.class) { + try { + if (a == null) { + a = new f(); + } + } finally { + } + } + } + return a; + } +} diff --git a/h.java b/h.java new file mode 100644 index 0000000..422608e --- /dev/null +++ b/h.java @@ -0,0 +1,55 @@ +package org.eclipse.paho.client.mqttv3.internal.websocket; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.PipedInputStream; +import org.eclipse.paho.client.mqttv3.MqttException; +import org.eclipse.paho.client.mqttv3.internal.k; + +/* compiled from: WebSocketSecureNetworkModule.java */ +/* loaded from: classes5.dex */ +public final class h extends k { + public org.eclipse.paho.client.mqttv3.logging.b m; + public PipedInputStream n; + public g o; + public String p; + public String q; + public int r; + public b s; + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final OutputStream a() { + return this.s; + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final InputStream b() { + return this.n; + } + + @Override // org.eclipse.paho.client.mqttv3.internal.k, org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final void start() throws MqttException, IOException { + super.start(); + new d(this.b.getInputStream(), this.b.getOutputStream(), this.p, this.q, this.r).a(); + g gVar = new g(this.b.getInputStream(), this.n); + this.o = gVar; + gVar.a("WssSocketReceiver"); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final void stop() throws InterruptedException, IOException { + this.b.getOutputStream().write(new c((byte) 8, "1000".getBytes()).a()); + this.b.getOutputStream().flush(); + g gVar = this.o; + if (gVar != null) { + gVar.b(); + } + super.stop(); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.k, org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public final String t() { + return "wss://" + this.q + ":" + this.r; + } +} diff --git a/k.java b/k.java new file mode 100644 index 0000000..29cfecf --- /dev/null +++ b/k.java @@ -0,0 +1,83 @@ +package org.eclipse.paho.client.mqttv3.internal; + +import java.io.IOException; +import java.util.ArrayList; +import javax.net.ssl.SNIHostName; +import javax.net.ssl.SSLParameters; +import javax.net.ssl.SSLSocket; +import javax.net.ssl.SSLSocketFactory; +import org.eclipse.paho.client.mqttv3.MqttException; + +/* compiled from: SSLNetworkModule.java */ +/* loaded from: classes5.dex */ +public class k extends m { + public final org.eclipse.paho.client.mqttv3.logging.b g; + public String[] h; + public int i; + public boolean j; + public final String k; + public final int l; + + public k(SSLSocketFactory sSLSocketFactory, String str, int i, String str2) { + super(sSLSocketFactory, str, i, str2); + org.eclipse.paho.client.mqttv3.logging.b bVarA = org.eclipse.paho.client.mqttv3.logging.c.a("org.eclipse.paho.client.mqttv3.internal.k"); + this.g = bVarA; + this.j = false; + this.k = str; + this.l = i; + bVarA.d(str2); + } + + public final void c(String[] strArr) { + if (strArr != null) { + this.h = (String[]) strArr.clone(); + } + if (this.b == null || this.h == null) { + return; + } + org.eclipse.paho.client.mqttv3.logging.b bVar = this.g; + if (bVar.e()) { + String strConcat = ""; + for (int i = 0; i < this.h.length; i++) { + if (i > 0) { + strConcat = String.valueOf(strConcat).concat(","); + } + strConcat = String.valueOf(strConcat) + this.h[i]; + } + bVar.g("org.eclipse.paho.client.mqttv3.internal.k", "setEnabledCiphers", "260", new Object[]{strConcat}); + } + ((SSLSocket) this.b).setEnabledCipherSuites(this.h); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public void start() throws MqttException, IOException { + String str = this.k; + super.start(); + c(this.h); + int soTimeout = this.b.getSoTimeout(); + this.b.setSoTimeout(this.i * 1000); + try { + SSLParameters sSLParameters = new SSLParameters(); + ArrayList arrayList = new ArrayList(1); + arrayList.add(new SNIHostName(str)); + sSLParameters.setServerNames(arrayList); + ((SSLSocket) this.b).setSSLParameters(sSLParameters); + } catch (NoClassDefFoundError unused) { + } + if (this.j) { + try { + SSLParameters sSLParameters2 = new SSLParameters(); + sSLParameters2.setEndpointIdentificationAlgorithm("HTTPS"); + ((SSLSocket) this.b).setSSLParameters(sSLParameters2); + } catch (NoSuchMethodError unused2) { + } + } + ((SSLSocket) this.b).startHandshake(); + this.b.setSoTimeout(soTimeout); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.m, org.eclipse.paho.client.mqttv3.internal.h + public String t() { + return "ssl://" + this.k + ":" + this.l; + } +} diff --git a/m.java b/m.java new file mode 100644 index 0000000..03597cb --- /dev/null +++ b/m.java @@ -0,0 +1,70 @@ +package org.eclipse.paho.client.mqttv3.internal; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.ConnectException; +import java.net.InetSocketAddress; +import java.net.Socket; +import javax.net.SocketFactory; +import org.eclipse.paho.client.mqttv3.MqttException; + +/* compiled from: TCPNetworkModule.java */ +/* loaded from: classes5.dex */ +public class m implements h { + public final org.eclipse.paho.client.mqttv3.logging.b a; + public Socket b; + public final SocketFactory c; + public final String d; + public final int e; + public int f; + + public m(SocketFactory socketFactory, String str, int i, String str2) { + org.eclipse.paho.client.mqttv3.logging.b bVarA = org.eclipse.paho.client.mqttv3.logging.c.a("org.eclipse.paho.client.mqttv3.internal.m"); + this.a = bVarA; + bVarA.d(str2); + this.c = socketFactory; + this.d = str; + this.e = i; + } + + @Override // org.eclipse.paho.client.mqttv3.internal.h + public OutputStream a() { + return this.b.getOutputStream(); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.h + public InputStream b() { + return this.b.getInputStream(); + } + + @Override // org.eclipse.paho.client.mqttv3.internal.h + public void start() throws MqttException, IOException { + int i = this.e; + String str = this.d; + try { + this.a.g("org.eclipse.paho.client.mqttv3.internal.m", "start", "252", new Object[]{str, Integer.valueOf(i), Long.valueOf(this.f * 1000)}); + InetSocketAddress inetSocketAddress = new InetSocketAddress(str, i); + Socket socketCreateSocket = this.c.createSocket(); + this.b = socketCreateSocket; + socketCreateSocket.connect(inetSocketAddress, this.f * 1000); + this.b.setSoTimeout(1000); + } catch (ConnectException e) { + this.a.a("org.eclipse.paho.client.mqttv3.internal.m", "start", "250", null, e); + throw new MqttException(e, 32103); + } + } + + @Override // org.eclipse.paho.client.mqttv3.internal.h + public void stop() throws IOException { + Socket socket = this.b; + if (socket != null) { + socket.close(); + } + } + + @Override // org.eclipse.paho.client.mqttv3.internal.h + public String t() { + return "tcp://" + this.d + ":" + this.e; + } +} diff --git a/s.java b/s.java new file mode 100644 index 0000000..8dfa951 --- /dev/null +++ b/s.java @@ -0,0 +1,49 @@ +package com.hmg.ccs.sdk.data.domestic.api.data.common.retrofit; + +import com.hmg.ccs.sdk.core.config.Brand; +import com.hmg.ccs.sdk.core.config.SDKConfig; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTConnectStateApiResponse; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTHostApiResponse; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTMetaListApiResponse; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTRegisterClientApiRequest; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTRegisterClientApiResponse; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTRegisterProtocolApiRequest; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTRegisterProtocolApiResponse; +import com.hmg.ccs.sdk.data.domestic.api.data.mqtt.model.MQTTVehicleIdApiResponse; +import com.hmg.ccs.sdk.devmode.SDKFeatureFlag; +import kotlin.Metadata; + +/* compiled from: MQTTServiceApi.kt */ +@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001:\u0001\u0011J\u0016\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H§@¢\u0006\u0004\b\u0004\u0010\u0005J*\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\n0\u00022\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\t\u001a\u00020\bH§@¢\u0006\u0004\b\u000b\u0010\fJ>\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00100\u00022\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\r\u001a\u00020\u00062\b\b\u0001\u0010\u000e\u001a\u00020\u00062\b\b\u0001\u0010\u000f\u001a\u00020\u0006H§@¢\u0006\u0004\b\u0011\u0010\u0012J>\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00130\u00022\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\r\u001a\u00020\u00062\b\b\u0001\u0010\u000e\u001a\u00020\u00062\b\b\u0001\u0010\u000f\u001a\u00020\u0006H§@¢\u0006\u0004\b\u0014\u0010\u0012J4\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00160\u00022\b\b\u0001\u0010\u0007\u001a\u00020\u00062\b\b\u0001\u0010\r\u001a\u00020\u00062\b\b\u0001\u0010\t\u001a\u00020\u0015H§@¢\u0006\u0004\b\u0017\u0010\u0018J*\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u001a0\u00022\b\b\u0001\u0010\r\u001a\u00020\u00062\b\b\u0001\u0010\u0019\u001a\u00020\u0006H§@¢\u0006\u0004\b\u001b\u0010\u001c¨\u0006\u001d"}, d2 = {"Lcom/hmg/ccs/sdk/data/domestic/api/data/common/retrofit/s;", "", "Lretrofit2/t;", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTHostApiResponse;", "b", "(Lkotlin/coroutines/c;)Ljava/lang/Object;", "", "tId", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterClientApiRequest;", "request", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterClientApiResponse;", "d", "(Ljava/lang/String;Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterClientApiRequest;Lkotlin/coroutines/c;)Ljava/lang/Object;", "clientId", "carId", "brand", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTMetaListApiResponse;", "a", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/c;)Ljava/lang/Object;", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTVehicleIdApiResponse;", "c", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterProtocolApiRequest;", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterProtocolApiResponse;", "e", "(Ljava/lang/String;Ljava/lang/String;Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTRegisterProtocolApiRequest;Lkotlin/coroutines/c;)Ljava/lang/Object;", "vehicleClientId", "Lcom/hmg/ccs/sdk/data/domestic/api/data/mqtt/model/MQTTConnectStateApiResponse;", "f", "(Ljava/lang/String;Ljava/lang/String;Lkotlin/coroutines/c;)Ljava/lang/Object;", "lib-data-domestic_release"}, k = 1, mv = {2, 0, 0}, xi = 48) +/* loaded from: classes3.dex */ +public interface s { + public static final a a = a.a; + + /* compiled from: MQTTServiceApi.kt */ + public static final class a { + public static final /* synthetic */ a a = new a(); + public static final String b; + + static { + b = (SDKFeatureFlag.KiaCCSModernizationTest.INSTANCE.isEnabled() && Brand.INSTANCE.ofConfig() == Brand.KIA && SDKConfig.INSTANCE.isProduction()) ? "https://test-egw-svchub-ccs-k-kr.ap-northeast.hmgmobility.com:31010" : SDKConfig.INSTANCE.getMqttURL(); + } + } + + @retrofit2.http.f("api/v3/servicehub/vehicles/metadatalist") + Object a(@retrofit2.http.i("tid") String str, @retrofit2.http.i("client-id") String str2, @retrofit2.http.t("carId") String str3, @retrofit2.http.t("brand") String str4, kotlin.coroutines.c> cVar); + + @retrofit2.http.f("api/v3/servicehub/device/host") + Object b(kotlin.coroutines.c> cVar); + + @retrofit2.http.o("api/v3/servicehub/vehicleId") + Object c(@retrofit2.http.i("tid") String str, @retrofit2.http.i("client-id") String str2, @retrofit2.http.t("carId") String str3, @retrofit2.http.t("brand") String str4, kotlin.coroutines.c> cVar); + + @retrofit2.http.o("api/v3/servicehub/device/register") + Object d(@retrofit2.http.i("tid") String str, @retrofit2.http.a MQTTRegisterClientApiRequest mQTTRegisterClientApiRequest, kotlin.coroutines.c> cVar); + + @retrofit2.http.o("api/v3/servicehub/device/protocol") + Object e(@retrofit2.http.i("tid") String str, @retrofit2.http.i("client-id") String str2, @retrofit2.http.a MQTTRegisterProtocolApiRequest mQTTRegisterProtocolApiRequest, kotlin.coroutines.c> cVar); + + @retrofit2.http.f("api/v3/vstatus/connstate") + Object f(@retrofit2.http.i("client-id") String str, @retrofit2.http.t("clientId") String str2, kotlin.coroutines.c> cVar); +}