what-the-bank/sources/o/C13053fPV.java

541 lines
18 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import io.flutter.plugin.common.MethodChannel;
/* renamed from: o.fPV, reason: case insensitive filesystem */
/* loaded from: classes5.dex */
public final class C13053fPV implements MethodChannel.MethodCallHandler {
private final fPR d;
private final C13087fQa e;
public C13053fPV(fPR fpr, C13087fQa c13087fQa) {
C14957gcv.e(fpr, "");
C14957gcv.e(c13087fQa, "");
this.d = fpr;
this.e = c13087fQa;
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:100:0x026b, code lost:
r3.addFlags(1);
*/
/* JADX WARN: Code restructure failed: missing block: B:101:0x026f, code lost:
if (r5 == false) goto L117;
*/
/* JADX WARN: Code restructure failed: missing block: B:102:0x0271, code lost:
r0 = android.content.Intent.createChooser(r3, null, android.app.PendingIntent.getBroadcast(r6.a, 0, new android.content.Intent(r6.a, (java.lang.Class<?>) o.fPY.class), ((java.lang.Number) r6.c.e()).intValue() | 134217728).getIntentSender());
*/
/* JADX WARN: Code restructure failed: missing block: B:103:0x029f, code lost:
r1 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:104:0x02a1, code lost:
if (r1 == null) goto L121;
*/
/* JADX WARN: Code restructure failed: missing block: B:105:0x02a3, code lost:
o.C14957gcv.e(r1);
r1 = r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:106:0x02ab, code lost:
r1 = r1.getPackageManager().queryIntentActivities(r0, 65536);
o.C14957gcv.c(r1, "");
r1 = r1.iterator();
*/
/* JADX WARN: Code restructure failed: missing block: B:108:0x02c2, code lost:
if (r1.hasNext() == false) goto L153;
*/
/* JADX WARN: Code restructure failed: missing block: B:109:0x02c4, code lost:
r3 = (java.lang.String) android.content.pm.PackageItemInfo.class.getField(com.huawei.hms.support.api.entity.common.CommonConstant.ReqAccessTokenParam.PACKAGE_NAME).get(((android.content.pm.ResolveInfo) r1.next()).activityInfo);
r7 = r10.iterator();
*/
/* JADX WARN: Code restructure failed: missing block: B:111:0x02e5, code lost:
if (r7.hasNext() == false) goto L154;
*/
/* JADX WARN: Code restructure failed: missing block: B:112:0x02e7, code lost:
r8 = (android.net.Uri) r7.next();
r11 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:113:0x02ef, code lost:
if (r11 == null) goto L131;
*/
/* JADX WARN: Code restructure failed: missing block: B:114:0x02f1, code lost:
o.C14957gcv.e(r11);
r11 = r11;
*/
/* JADX WARN: Code restructure failed: missing block: B:116:0x02f9, code lost:
r11.grantUriPermission(r3, r8, 3);
*/
/* JADX WARN: Code restructure failed: missing block: B:117:0x02f7, code lost:
r11 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x005b, code lost:
if (r17.e.a(r19) != false) goto L21;
*/
/* JADX WARN: Code restructure failed: missing block: B:121:0x02fe, code lost:
o.C14957gcv.c(r0, "");
r6.aBR_(r0, r5);
*/
/* JADX WARN: Code restructure failed: missing block: B:122:0x02a9, code lost:
r1 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:123:0x029a, code lost:
r0 = android.content.Intent.createChooser(r3, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:124:0x01e8, code lost:
r3.setAction("android.intent.action.SEND_MULTIPLE");
*/
/* JADX WARN: Code restructure failed: missing block: B:125:0x01ed, code lost:
if (r12 == null) goto L108;
*/
/* JADX WARN: Code restructure failed: missing block: B:127:0x01f3, code lost:
if (r12.isEmpty() == false) goto L95;
*/
/* JADX WARN: Code restructure failed: missing block: B:129:0x01f6, code lost:
o.C14957gcv.e(r12);
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x005d, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:130:0x01fd, code lost:
if (r12.size() != 1) goto L98;
*/
/* JADX WARN: Code restructure failed: missing block: B:131:0x01ff, code lost:
r7 = (java.lang.String) o.C14881gav.e(r12);
*/
/* JADX WARN: Code restructure failed: missing block: B:132:0x0257, code lost:
r3.setType(r7);
r3.putParcelableArrayListExtra("android.intent.extra.STREAM", r10);
*/
/* JADX WARN: Code restructure failed: missing block: B:133:0x0206, code lost:
r7 = (java.lang.String) o.C14881gav.e(r12);
o.C14957gcv.e(r12, "");
r15 = r12.size() - 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:134:0x0214, code lost:
if (r15 <= 0) goto L107;
*/
/* JADX WARN: Code restructure failed: missing block: B:136:0x021e, code lost:
if (o.C14957gcv.b(r7, r12.get(r14)) != false) goto L105;
*/
/* JADX WARN: Code restructure failed: missing block: B:138:0x0232, code lost:
if (o.C14957gcv.b((java.lang.Object) o.fPR.a(r7), (java.lang.Object) o.fPR.a((java.lang.String) r12.get(r14))) == false) goto L158;
*/
/* JADX WARN: Code restructure failed: missing block: B:139:0x0234, code lost:
r1 = new java.lang.StringBuilder();
r1.append(o.fPR.a((java.lang.String) r12.get(r14)));
r1.append("/*");
r7 = r1.toString();
*/
/* JADX WARN: Code restructure failed: missing block: B:141:0x0250, code lost:
if (r14 == r15) goto L157;
*/
/* JADX WARN: Code restructure failed: missing block: B:142:0x0252, code lost:
r14 = r14 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:144:0x0255, code lost:
r13 = r7;
*/
/* JADX WARN: Code restructure failed: missing block: B:145:0x0256, code lost:
r7 = r13;
*/
/* JADX WARN: Code restructure failed: missing block: B:146:0x00d1, code lost:
r14 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:147:0x0311, code lost:
r0 = move-exception;
*/
/* JADX WARN: Code restructure failed: missing block: B:148:0x0312, code lost:
r19.error("Share failed", r0.getMessage(), null);
*/
/* JADX WARN: Code restructure failed: missing block: B:149:0x031c, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x005e, code lost:
r3 = r17.d;
r6 = r18.argument("text");
o.C14957gcv.d(r6, "");
r3.c((java.lang.String) r6, (java.lang.String) r18.argument("subject"), r5);
*/
/* JADX WARN: Code restructure failed: missing block: B:151:0x0326, code lost:
throw new java.lang.IllegalArgumentException("Map arguments expected".toString());
*/
/* JADX WARN: Code restructure failed: missing block: B:153:0x004b, code lost:
if (r6.equals("shareWithResult") != false) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:155:0x008e, code lost:
if (r6.equals("shareFiles") != false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0072, code lost:
if (r5 != false) goto L159;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0074, code lost:
if (r5 == false) goto L26;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0076, code lost:
r19.success("dev.fluttercommunity.plus/share/unavailable");
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0079, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x007a, code lost:
r19.success(null);
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x007d, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0087, code lost:
throw new java.lang.IllegalArgumentException("Map arguments expected".toString());
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0041, code lost:
if (r6.equals("shareFilesWithResult") == false) goto L145;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0094, code lost:
if ((r18.arguments instanceof java.util.Map) == false) goto L143;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0096, code lost:
if (r5 == false) goto L147;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x009e, code lost:
if (r17.e.a(r19) != false) goto L147;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x00a0, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x00a1, code lost:
r6 = r17.d;
r8 = r18.argument("paths");
o.C14957gcv.e(r8);
r8 = (java.util.List) r8;
r12 = (java.util.List) r18.argument("mimeTypes");
r11 = (java.lang.String) r18.argument("text");
r0 = (java.lang.String) r18.argument("subject");
o.C14957gcv.e(r8, "");
r14 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x00c9, code lost:
if (r14 == null) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:35:0x00cb, code lost:
o.C14957gcv.e(r14);
r14 = r14;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x00d3, code lost:
r10 = new java.io.File(r14.getCacheDir(), "share_plus");
r14 = r10.listFiles();
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x00e2, code lost:
if (r10.exists() == false) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x00e4, code lost:
if (r14 == null) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x00e7, code lost:
if (r14.length == 0) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x00e9, code lost:
o.C14957gcv.c(r14, "");
r15 = r14.length;
r13 = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:42:0x00ee, code lost:
if (r13 >= r15) goto L148;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x00f0, code lost:
r14[r13].delete();
r13 = r13 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x00f8, code lost:
r10.delete();
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x00fb, code lost:
r10 = new java.util.ArrayList<>(r8.size());
r8 = r8.iterator();
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x010e, code lost:
if (r8.hasNext() == false) goto L149;
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0110, code lost:
r14 = new java.io.File((java.lang.String) r8.next());
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x011f, code lost:
if (r6.e(r14) != false) goto L150;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x0121, code lost:
r15 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0125, code lost:
if (r15 == null) goto L59;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x0127, code lost:
o.C14957gcv.e(r15);
r15 = r15;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x012f, code lost:
r13 = new java.io.File(r15.getCacheDir(), "share_plus");
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x013a, code lost:
if (r13.exists() != false) goto L63;
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x013c, code lost:
r13.mkdirs();
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x013f, code lost:
r15 = new java.io.File(r13, r14.getName());
o.C14888gbD.d(r14, r15);
r7 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x014d, code lost:
if (r7 == null) goto L66;
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x014f, code lost:
o.C14957gcv.e(r7);
r7 = r7;
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x0157, code lost:
r10.add(o.C9257dgM.getUriForFile(r7, (java.lang.String) r6.e.e(), r15));
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x0155, code lost:
r7 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x012d, code lost:
r15 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x0168, code lost:
r4 = new java.lang.StringBuilder("Shared file can not be located in '");
r7 = r6.d;
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x0175, code lost:
if (r7 == null) goto L71;
*/
/* JADX WARN: Code restructure failed: missing block: B:68:0x0177, code lost:
o.C14957gcv.e(r7);
r7 = r7;
*/
/* JADX WARN: Code restructure failed: missing block: B:69:0x017f, code lost:
r4.append(new java.io.File(r7.getCacheDir(), "share_plus").getCanonicalPath());
r4.append('\'');
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0038, code lost:
if (r6.equals("share") != false) goto L15;
*/
/* JADX WARN: Code restructure failed: missing block: B:70:0x0199, code lost:
throw new java.io.IOException(r4.toString());
*/
/* JADX WARN: Code restructure failed: missing block: B:71:0x017d, code lost:
r7 = r6.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:73:0x019a, code lost:
r3 = new android.content.Intent();
*/
/* JADX WARN: Code restructure failed: missing block: B:74:0x01a3, code lost:
if (r10.isEmpty() == false) goto L81;
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x01a5, code lost:
r7 = r11;
*/
/* JADX WARN: Code restructure failed: missing block: B:76:0x01a8, code lost:
if (r7 == null) goto L81;
*/
/* JADX WARN: Code restructure failed: missing block: B:78:0x01ae, code lost:
if (o.gdZ.d((java.lang.CharSequence) r7) != false) goto L81;
*/
/* JADX WARN: Code restructure failed: missing block: B:79:0x01b0, code lost:
r6.c(r11, r0, r5);
*/
/* JADX WARN: Code restructure failed: missing block: B:80:0x0304, code lost:
if (r5 != false) goto L160;
*/
/* JADX WARN: Code restructure failed: missing block: B:81:0x0306, code lost:
if (r5 == false) goto L138;
*/
/* JADX WARN: Code restructure failed: missing block: B:82:0x0308, code lost:
r19.success("dev.fluttercommunity.plus/share/unavailable");
*/
/* JADX WARN: Code restructure failed: missing block: B:83:0x030b, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:84:0x030c, code lost:
r19.success(null);
*/
/* JADX WARN: Code restructure failed: missing block: B:85:0x0310, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:86:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:88:0x01b9, code lost:
r13 = "*\/*";
r14 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:89:0x01be, code lost:
if (r10.size() != 1) goto L90;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0051, code lost:
if ((r18.arguments instanceof java.util.Map) == false) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:90:0x01c0, code lost:
r7 = r12;
*/
/* JADX WARN: Code restructure failed: missing block: B:91:0x01c3, code lost:
if (r7 == null) goto L89;
*/
/* JADX WARN: Code restructure failed: missing block: B:93:0x01c9, code lost:
if (r7.isEmpty() != false) goto L89;
*/
/* JADX WARN: Code restructure failed: missing block: B:94:0x01cb, code lost:
r13 = (java.lang.String) o.C14881gav.e(r12);
*/
/* JADX WARN: Code restructure failed: missing block: B:95:0x01d2, code lost:
r3.setAction("android.intent.action.SEND");
r3.setType(r13);
r3.putExtra("android.intent.extra.STREAM", (android.os.Parcelable) o.C14881gav.e((java.util.List) r10));
*/
/* JADX WARN: Code restructure failed: missing block: B:96:0x025d, code lost:
if (r11 == null) goto L112;
*/
/* JADX WARN: Code restructure failed: missing block: B:97:0x025f, code lost:
r3.putExtra("android.intent.extra.TEXT", r11);
*/
/* JADX WARN: Code restructure failed: missing block: B:98:0x0264, code lost:
if (r0 == null) goto L114;
*/
/* JADX WARN: Code restructure failed: missing block: B:99:0x0266, code lost:
r3.putExtra("android.intent.extra.SUBJECT", r0);
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0053, code lost:
if (r5 == false) goto L21;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:4:0x002d. Please report as an issue. */
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onMethodCall(io.flutter.plugin.common.MethodCall r18, io.flutter.plugin.common.MethodChannel.Result r19) {
/*
Method dump skipped, instructions count: 830
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C13053fPV.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result):void");
}
}