139 lines
6.7 KiB
Java
139 lines
6.7 KiB
Java
package c.n.a.a;
|
|
|
|
import android.os.Binder;
|
|
import android.os.Bundle;
|
|
import android.os.IBinder;
|
|
import android.os.IInterface;
|
|
import android.os.Parcel;
|
|
import android.os.RemoteException;
|
|
import android.util.Log;
|
|
import c.a.s.d;
|
|
import com.discord.samsung.SamsungConnectActivity;
|
|
import d0.g0.t;
|
|
import d0.g0.y;
|
|
import d0.z.d.m;
|
|
/* compiled from: ISACallback */
|
|
public interface a extends IInterface {
|
|
|
|
/* compiled from: ISACallback */
|
|
/* renamed from: c.n.a.a.a$a reason: collision with other inner class name */
|
|
public static abstract class AbstractBinderC0155a extends Binder implements a {
|
|
public AbstractBinderC0155a() {
|
|
attachInterface(this, "com.msc.sa.aidl.ISACallback");
|
|
}
|
|
|
|
@Override // android.os.IInterface
|
|
public IBinder asBinder() {
|
|
return this;
|
|
}
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:47:0x00e7, code lost:
|
|
if (r12 != false) goto L_0x00e9;
|
|
*/
|
|
@Override // android.os.Binder
|
|
public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
|
|
if (i != 1598968902) {
|
|
switch (i) {
|
|
case 1:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveAccessToken");
|
|
case 2:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle2 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveAccessToken");
|
|
case 3:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle3 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveDisclaimerAgreement");
|
|
case 4:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
boolean z2 = false;
|
|
boolean z3 = parcel.readInt() != 0;
|
|
String str = null;
|
|
Bundle bundle4 = parcel.readInt() != 0 ? (Bundle) Bundle.CREATOR.createFromParcel(parcel) : null;
|
|
d dVar = (d) this;
|
|
String string = bundle4 != null ? bundle4.getString("authcode") : null;
|
|
String string2 = bundle4 != null ? bundle4.getString("auth_server_url") : null;
|
|
Log.i("Discord", "Samsung onReceiveAuthCode=" + z3);
|
|
if (z3) {
|
|
if (string == null || t.isBlank(string)) {
|
|
z2 = true;
|
|
break;
|
|
}
|
|
}
|
|
String string3 = bundle4 != null ? bundle4.getString("error_code") : null;
|
|
String string4 = bundle4 != null ? bundle4.getString("error_message") : null;
|
|
StringBuilder L = c.d.b.a.a.L("Samsung Account link failure ");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append('[');
|
|
sb.append(string3);
|
|
sb.append(':');
|
|
if (string != null) {
|
|
str = y.takeLast(string, 4);
|
|
}
|
|
sb.append(str);
|
|
sb.append("]: ");
|
|
sb.append(string4);
|
|
L.append(sb.toString());
|
|
String sb2 = L.toString();
|
|
m.checkNotNullExpressionValue(sb2, "StringBuilder()\n … .toString()");
|
|
Log.w("Discord", sb2);
|
|
SamsungConnectActivity.a(dVar.a, string, string2);
|
|
parcel2.writeNoException();
|
|
return true;
|
|
case 5:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle5 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveSCloudAccessToken");
|
|
case 6:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle6 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceivePasswordConfirmation");
|
|
case 7:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle7 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveRLControlFMM");
|
|
case 8:
|
|
parcel.enforceInterface("com.msc.sa.aidl.ISACallback");
|
|
parcel.readInt();
|
|
parcel.readInt();
|
|
if (parcel.readInt() != 0) {
|
|
Bundle bundle8 = (Bundle) Bundle.CREATOR.createFromParcel(parcel);
|
|
}
|
|
throw new IllegalStateException("Unexpected call to onReceiveRubinRequest");
|
|
default:
|
|
return super.onTransact(i, parcel, parcel2, i2);
|
|
}
|
|
} else {
|
|
parcel2.writeString("com.msc.sa.aidl.ISACallback");
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|