103 lines
3.6 KiB
Java
103 lines
3.6 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.SharedPreferences;
|
||
|
import android.content.res.Resources;
|
||
|
import android.util.Base64;
|
||
|
import java.nio.charset.StandardCharsets;
|
||
|
import o.C1084Vf;
|
||
|
import o.C15715hv;
|
||
|
|
||
|
/* renamed from: o.Bc, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class C0197Bc extends C16157lj {
|
||
|
private static byte a = 6;
|
||
|
private static int b = 1;
|
||
|
private static int d;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C0197Bc(Resources resources, SharedPreferences sharedPreferences) {
|
||
|
super(resources, sharedPreferences);
|
||
|
}
|
||
|
|
||
|
private void n(String str, Object[] objArr) {
|
||
|
byte[] decode = Base64.decode(str, 0);
|
||
|
byte[] bArr = new byte[decode.length];
|
||
|
for (int i = 0; i < decode.length; i++) {
|
||
|
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ a);
|
||
|
}
|
||
|
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
|
||
|
}
|
||
|
|
||
|
public final C1084Vf e(UP up) {
|
||
|
String format;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = d + 19;
|
||
|
b = i2 % 128;
|
||
|
Object obj = null;
|
||
|
if (i2 % 2 == 0) {
|
||
|
int i3 = up.h;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
int i4 = up.h;
|
||
|
if (i4 != 0) {
|
||
|
format = i4 != 1 ? "" : this.e.getString(C15715hv.tOB.manage_promptpay_type_citizen);
|
||
|
} else {
|
||
|
String str = up.f;
|
||
|
String string = this.e.getString(C15715hv.tOB.manage_promptpay_type_mobile);
|
||
|
Object[] objArr = new Object[1];
|
||
|
if (str.length() >= 4) {
|
||
|
str = str.substring(str.length() - 4);
|
||
|
}
|
||
|
objArr[0] = str;
|
||
|
format = String.format(string, objArr);
|
||
|
}
|
||
|
C1084Vf.Sts sts = new C1084Vf.Sts((byte) 0);
|
||
|
String string2 = this.e.getString(C15715hv.tOB.manage_promptpay_unlink_dialog_title);
|
||
|
if (!(!string2.startsWith(",*,)"))) {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
n(string2.substring(4), objArr2);
|
||
|
string2 = ((String) objArr2[0]).intern();
|
||
|
}
|
||
|
sts.a = string2;
|
||
|
String string3 = this.e.getString(C15715hv.tOB.manage_promptpay_unlink_dialog_message);
|
||
|
if (string3.startsWith(",*,)")) {
|
||
|
int i5 = b + 53;
|
||
|
d = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
n(string3.substring(4), objArr3);
|
||
|
((String) objArr3[0]).intern();
|
||
|
throw null;
|
||
|
}
|
||
|
Object[] objArr4 = new Object[1];
|
||
|
n(string3.substring(4), objArr4);
|
||
|
string3 = ((String) objArr4[0]).intern();
|
||
|
}
|
||
|
sts.d = String.format(string3, format);
|
||
|
String string4 = this.e.getString(C15715hv.tOB.manage_promptpay_unlink_dialog_yes);
|
||
|
if (string4.startsWith(",*,)")) {
|
||
|
Object[] objArr5 = new Object[1];
|
||
|
n(string4.substring(4), objArr5);
|
||
|
string4 = ((String) objArr5[0]).intern();
|
||
|
}
|
||
|
sts.e = string4;
|
||
|
String string5 = this.e.getString(C15715hv.tOB.manage_promptpay_unlink_dialog_no);
|
||
|
if (string5.startsWith(",*,)")) {
|
||
|
int i6 = b + 91;
|
||
|
d = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
Object[] objArr6 = new Object[1];
|
||
|
n(string5.substring(4), objArr6);
|
||
|
((String) objArr6[0]).intern();
|
||
|
throw null;
|
||
|
}
|
||
|
Object[] objArr7 = new Object[1];
|
||
|
n(string5.substring(4), objArr7);
|
||
|
string5 = ((String) objArr7[0]).intern();
|
||
|
}
|
||
|
sts.c = string5;
|
||
|
return new C1084Vf(sts, (byte) 0);
|
||
|
}
|
||
|
}
|