what-the-bank/sources/io/flutter/plugins/imagepicker/ImagePickerFileProvider.java

367 lines
20 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.imagepicker;
import android.content.Context;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import o.C9257dgM;
import o.TVH;
import o.xzZ;
import o.zUI;
import org.jnbis.internal.NistHelper;
/* loaded from: classes6.dex */
public class ImagePickerFileProvider extends C9257dgM {
private static final byte[] $$a = {78, ISO7816.INS_DELETE_FILE, 113, -27};
private static final int $$b = 219;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static int c = 1;
private static char[] d = {40082, 40248, 40231, 40239, 40226, 40251, 40234, 40180, 40219, 40250, 40197, 40194, 40237, 40231, 40251, 40224, 40226, 40236, 39993, 40041, 40040, 40032, 40038, 40021, 40045, 40061, 40037, 40036, 40036, 40037, 40032, 40025, 39996, 40004, 40059, 40035, 40012, 40002, 40045, 40039, 40059, 40032, 40034, 40044, 39953, 40007, 40005, 40006, 40007, 39996, 39997, 39992, 40001, 40041, 40040, 40046, 40000, 39999, 39997, 39992, 39994, 40001, 40005, 40005, 40007, 40007, 40007, 40005, 40004, 40006, 40001, 39992, 39998, 39998, 39993, 40001, 40006, 39998, 40001, 40001, 40001, 40002, 39998, 40006, 40042, 40040, 40047, 40000, 40001, 40000, 39998, 39999};
private static int a = 2015661759;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002c). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(byte r7, int r8, short r9, java.lang.Object[] r10) {
/*
int r9 = 76 - r9
int r7 = r7 * 4
int r7 = 1 - r7
int r8 = r8 * 3
int r8 = 3 - r8
byte[] r0 = io.flutter.plugins.imagepicker.ImagePickerFileProvider.$$a
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r3 = r7
r9 = r8
r4 = r2
goto L2c
L15:
r3 = r2
L16:
int r4 = r3 + 1
byte r5 = (byte) r9
r1[r3] = r5
int r8 = r8 + 1
if (r4 != r7) goto L27
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L27:
r3 = r0[r8]
r6 = r9
r9 = r8
r8 = r6
L2c:
int r3 = -r3
int r8 = r8 + r3
r3 = r4
r6 = r9
r9 = r8
r8 = r6
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: io.flutter.plugins.imagepicker.ImagePickerFileProvider.g(byte, int, short, java.lang.Object[]):void");
}
@Override // o.C9257dgM, android.content.ContentProvider
public boolean onCreate() {
int i = 2 % 2;
int i2 = b + 35;
c = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
e(new int[]{0, 18, 192, 0}, true, new byte[]{1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), new char[]{5, 65532, 1, 65517, 17}, KeyEvent.normalizeMetaState(0) + 256, true, 1 - Color.blue(0), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Object[] objArr3 = new Object[1];
e(new int[]{18, 26, 0, 0}, true, new byte[]{0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1}, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
f((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 17, new char[]{'\n', 65527, 65529, 65535, 2, 6, 6, 65495, '\n', 4, 65531, '\b', '\b', 11, 65529, 4, 5, 65535}, (ViewConfiguration.getFadingEdgeLength() >> 16) + 258, true, 15 - (ViewConfiguration.getFadingEdgeLength() >> 16), objArr4);
Context context = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
if (context != null) {
int i4 = c + 111;
b = i4 % 128;
int i5 = i4 % 2;
context = context.getApplicationContext();
}
if (context != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(493 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 5 - View.combineMeasuredStates(0, 0), (char) Gravity.getAbsoluteGravity(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
e(new int[]{44, 48, 0, 0}, true, new byte[]{0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
f(64 - Color.argb(0, 0, 0, 0), new char[]{65523, 65524, 65516, 65525, 65518, 31, 65516, 65522, 65519, 65520, 29, 65522, 31, 65518, 65517, 65520, 65522, 65517, 65523, 65522, 65518, 65522, 65518, 65521, '!', 65525, 65520, 30, 65522, '!', 65522, 30, '!', '!', 29, 30, 65522, 65524, 65517, 31, 65524, 30, 65521, 65524, 31, 65523, '\"', 65524, ' ', 30, 65522, 65517, 65521, 65522, 29, 30, 65522, 30, 30, 65524, 65521, 29, 65521, 65523}, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 219, true, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 33, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(64 - (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)), new char[]{27, 65521, 29, 65522, 65519, 27, ' ', 27, 65514, ' ', 65514, 65523, 65520, 65522, 65516, 31, NistHelper.SEP_FS, 31, 65520, 29, ' ', 65517, 65519, 65514, 65519, 65515, 65515, 65516, 65519, 65519, 27, NistHelper.SEP_FS, 65518, 30, 65523, 65520, 65522, 31, ' ', 65522, 29, 65516, 65521, 65514, 65515, 65514, ' ', NistHelper.SEP_FS, 27, 65522, 65514, 65518, NistHelper.SEP_FS, 31, 65517, 65523, 65516, 31, 31, 65517, 27, 65517, 65514, 65522}, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 222, true, Color.alpha(0) + 1, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
f(73 - TextUtils.lastIndexOf("", '0', 0), new char[]{65485, 17, 7, 65535, 11, 1, '\r', 11, 11, 3, 16, 1, 7, 65535, '\n', 0, 65535, '\f', '\t', 65484, 18, 6, 16, 3, 65535, 18, 1, 65535, 17, 18, 65484, 5, 19, 65535, 16, 2, 17, 15, 19, 65535, 16, 3, 65484, 1, '\r', 11, 65485, 65535, 14, 7, 65485, 7, '\f', 5, 3, 17, 18, 65485, 20, 65488, 65485, 3, 20, 3, '\f', 18, 17, 6, 18, 18, 14, 17, 65496, 65485}, 250 - ExpandableListView.getPackedPositionGroup(0L), false, 66 - TextUtils.indexOf((CharSequence) "", '0', 0), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
f(5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), new char[]{65534, 7, 65532, 6, 65532}, 203 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), false, 1 - (ViewConfiguration.getJumpTapTimeout() >> 16), objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
f(Process.getGidForName("") + 37, new char[]{65522, ' ', 30, 65520, 65519, 65520, 65516, ' ', ' ', NistHelper.SEP_FS, 65517, 65519, 31, 65524, 65519, 65515, 65512, 65521, 65515, ' ', 29, 65512, 65519, 65517, 65516, 65516, 65512, NistHelper.SEP_FS, 29, ' ', 30, 65512, 65517, 30, 65517, NistHelper.SEP_FS}, (ViewConfiguration.getJumpTapTimeout() >> 16) + 221, false, 8 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), objArr10);
Object[] objArr11 = {context, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(486 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (ViewConfiguration.getJumpTapTimeout() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause != null) {
throw cause;
}
throw th;
}
}
}
return super.onCreate();
}
private static void f(int i, char[] cArr, int i2, boolean z, int i3, Object[] objArr) {
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr2 = new char[i];
zui.d = 0;
while (zui.d < i) {
int i5 = $11 + 35;
$10 = i5 % 128;
int i6 = i5 % 2;
zui.c = cArr[zui.d];
cArr2[zui.d] = (char) (i2 + zui.c);
int i7 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i7]), Integer.valueOf(a)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 142, 7 - TextUtils.indexOf("", "", 0), (char) View.MeasureSpec.makeMeasureSpec(0, 0));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (b3 | 7), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Process.getGidForName("") + 343, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 4, (char) ('0' - AndroidCharacter.getMirror('0')));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, b5, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i3 > 0) {
int i8 = $11 + 57;
$10 = i8 % 128;
int i9 = i8 % 2;
zui.a = i3;
char[] cArr3 = new char[i];
System.arraycopy(cArr2, 0, cArr3, 0, i);
System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a);
System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a);
}
if (z) {
char[] cArr4 = new char[i];
zui.d = 0;
while (zui.d < i) {
int i10 = $10 + 115;
$11 = i10 % 128;
int i11 = i10 % 2;
cArr4[zui.d] = cArr2[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(342 - ((Process.getThreadPriority(0) + 20) >> 6), 5 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr2 = cArr4;
}
objArr[0] = new String(cArr2);
}
private static void e(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = iArr[1];
int i6 = iArr[2];
int i7 = iArr[3];
char[] cArr2 = d;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i8 = 0;
while (i8 < length) {
int i9 = $10 + 105;
$11 = i9 % 128;
int i10 = i9 % 2;
try {
Object[] objArr2 = new Object[1];
objArr2[i3] = Integer.valueOf(cArr2[i8]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(223 - (ViewConfiguration.getWindowTouchSlop() >> 8), 4 - TextUtils.lastIndexOf("", '0', i3), (char) (41976 - TextUtils.lastIndexOf("", '0', i3)));
byte b2 = (byte) i3;
byte b3 = b2;
cArr = cArr2;
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (b3 + 5), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i8] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i8++;
cArr2 = cArr;
i3 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i5];
System.arraycopy(cArr2, i4, cArr4, 0, i5);
if (bArr != null) {
char[] cArr5 = new char[i5];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i5) {
if (bArr[tvh.c] == 1) {
int i11 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(((byte) KeyEvent.getModifierMetaStateMask()) + 503, ((Process.getThreadPriority(0) + 20) >> 6) + 5, (char) (54 - (Process.myPid() >> 22)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i11] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
int i12 = $10 + 25;
$11 = i12 % 128;
int i13 = i12 % 2;
} else {
int i14 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 15, View.getDefaultSize(0, 0) + 5, (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 58133))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr5[i14] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c2 = cArr5[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(TextUtils.indexOf("", "") + 402, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) ((KeyEvent.getMaxKeyCode() >> 16) + 21608));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
g(b4, b5, (byte) (b5 + 3), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr4 = cArr5;
}
if (i7 > 0) {
char[] cArr6 = new char[i5];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i5);
int i15 = i5 - i7;
System.arraycopy(cArr6, 0, cArr4, i15, i7);
System.arraycopy(cArr6, i7, cArr4, 0, i15);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i5];
while (true) {
tvh.c = i;
if (tvh.c >= i5) {
break;
}
cArr7[tvh.c] = cArr4[(i5 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr7;
}
if (i6 > 0) {
int i16 = 0;
while (true) {
tvh.c = i16;
if (tvh.c >= i5) {
break;
}
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i16 = tvh.c + 1;
}
}
objArr[0] = new String(cArr4);
}
}