172 lines
6.0 KiB
Java
172 lines
6.0 KiB
Java
|
package o;
|
||
|
|
||
|
import android.os.Build;
|
||
|
import java.io.File;
|
||
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class sTL {
|
||
|
public static final boolean a;
|
||
|
private static volatile int b;
|
||
|
private static final File c;
|
||
|
public static final boolean d;
|
||
|
private static volatile sTL e;
|
||
|
private final int f;
|
||
|
private final boolean h;
|
||
|
private int i;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
private final int f9269o;
|
||
|
private boolean j = true;
|
||
|
private final AtomicBoolean g = new AtomicBoolean(false);
|
||
|
|
||
|
static {
|
||
|
a = Build.VERSION.SDK_INT < 29;
|
||
|
d = true;
|
||
|
c = new File("/proc/self/fd");
|
||
|
b = -1;
|
||
|
}
|
||
|
|
||
|
public static sTL d() {
|
||
|
if (e == null) {
|
||
|
synchronized (sTL.class) {
|
||
|
if (e == null) {
|
||
|
e = new sTL();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return e;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:22:0x0098, code lost:
|
||
|
|
||
|
if (java.util.Arrays.asList("LG-M250", "LG-M320", "LG-Q710AL", "LG-Q710PL", "LGM-K121K", "LGM-K121L", "LGM-K121S", "LGM-X320K", "LGM-X320L", "LGM-X320S", "LGM-X401L", "LGM-X401S", "LM-Q610.FG", "LM-Q610.FGN", "LM-Q617.FG", "LM-Q617.FGN", "LM-Q710.FG", "LM-Q710.FGN", "LM-X220PM", "LM-X220QMA", "LM-X410PM").contains(android.os.Build.MODEL) == false) goto L17;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x009b, code lost:
|
||
|
|
||
|
r1 = false;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
sTL() {
|
||
|
/*
|
||
|
r26 = this;
|
||
|
r0 = r26
|
||
|
r26.<init>()
|
||
|
r1 = 1
|
||
|
r0.j = r1
|
||
|
java.util.concurrent.atomic.AtomicBoolean r2 = new java.util.concurrent.atomic.AtomicBoolean
|
||
|
r3 = 0
|
||
|
r2.<init>(r3)
|
||
|
r0.g = r2
|
||
|
int r2 = android.os.Build.VERSION.SDK_INT
|
||
|
r4 = 26
|
||
|
if (r2 != r4) goto L59
|
||
|
java.lang.String r5 = "SC-04J"
|
||
|
java.lang.String r6 = "SM-N935"
|
||
|
java.lang.String r7 = "SM-J720"
|
||
|
java.lang.String r8 = "SM-G570F"
|
||
|
java.lang.String r9 = "SM-G570M"
|
||
|
java.lang.String r10 = "SM-G960"
|
||
|
java.lang.String r11 = "SM-G965"
|
||
|
java.lang.String r12 = "SM-G935"
|
||
|
java.lang.String r13 = "SM-G930"
|
||
|
java.lang.String r14 = "SM-A520"
|
||
|
java.lang.String r15 = "SM-A720F"
|
||
|
java.lang.String r16 = "moto e5"
|
||
|
java.lang.String r17 = "moto e5 play"
|
||
|
java.lang.String r18 = "moto e5 plus"
|
||
|
java.lang.String r19 = "moto e5 cruise"
|
||
|
java.lang.String r20 = "moto g(6) forge"
|
||
|
java.lang.String r21 = "moto g(6) play"
|
||
|
java.lang.String[] r2 = new java.lang.String[]{r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21}
|
||
|
java.util.List r2 = java.util.Arrays.asList(r2)
|
||
|
java.util.Iterator r2 = r2.iterator()
|
||
|
L44:
|
||
|
boolean r4 = r2.hasNext()
|
||
|
if (r4 == 0) goto L59
|
||
|
java.lang.Object r4 = r2.next()
|
||
|
java.lang.String r4 = (java.lang.String) r4
|
||
|
java.lang.String r5 = android.os.Build.MODEL
|
||
|
boolean r4 = r5.startsWith(r4)
|
||
|
if (r4 == 0) goto L44
|
||
|
goto L9b
|
||
|
L59:
|
||
|
int r2 = android.os.Build.VERSION.SDK_INT
|
||
|
r4 = 27
|
||
|
if (r2 == r4) goto L60
|
||
|
goto L9c
|
||
|
L60:
|
||
|
java.lang.String r5 = "LG-M250"
|
||
|
java.lang.String r6 = "LG-M320"
|
||
|
java.lang.String r7 = "LG-Q710AL"
|
||
|
java.lang.String r8 = "LG-Q710PL"
|
||
|
java.lang.String r9 = "LGM-K121K"
|
||
|
java.lang.String r10 = "LGM-K121L"
|
||
|
java.lang.String r11 = "LGM-K121S"
|
||
|
java.lang.String r12 = "LGM-X320K"
|
||
|
java.lang.String r13 = "LGM-X320L"
|
||
|
java.lang.String r14 = "LGM-X320S"
|
||
|
java.lang.String r15 = "LGM-X401L"
|
||
|
java.lang.String r16 = "LGM-X401S"
|
||
|
java.lang.String r17 = "LM-Q610.FG"
|
||
|
java.lang.String r18 = "LM-Q610.FGN"
|
||
|
java.lang.String r19 = "LM-Q617.FG"
|
||
|
java.lang.String r20 = "LM-Q617.FGN"
|
||
|
java.lang.String r21 = "LM-Q710.FG"
|
||
|
java.lang.String r22 = "LM-Q710.FGN"
|
||
|
java.lang.String r23 = "LM-X220PM"
|
||
|
java.lang.String r24 = "LM-X220QMA"
|
||
|
java.lang.String r25 = "LM-X410PM"
|
||
|
java.lang.String[] r2 = new java.lang.String[]{r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23, r24, r25}
|
||
|
java.util.List r2 = java.util.Arrays.asList(r2)
|
||
|
java.lang.String r4 = android.os.Build.MODEL
|
||
|
boolean r2 = r2.contains(r4)
|
||
|
if (r2 != 0) goto L9b
|
||
|
goto L9c
|
||
|
L9b:
|
||
|
r1 = r3
|
||
|
L9c:
|
||
|
r0.h = r1
|
||
|
int r1 = android.os.Build.VERSION.SDK_INT
|
||
|
r2 = 28
|
||
|
if (r1 < r2) goto Lab
|
||
|
r1 = 20000(0x4e20, float:2.8026E-41)
|
||
|
r0.f9269o = r1
|
||
|
r0.f = r3
|
||
|
return
|
||
|
Lab:
|
||
|
r1 = 700(0x2bc, float:9.81E-43)
|
||
|
r0.f9269o = r1
|
||
|
r1 = 128(0x80, float:1.8E-43)
|
||
|
r0.f = r1
|
||
|
return
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.sTL.<init>():void");
|
||
|
}
|
||
|
|
||
|
public final boolean e(int i, int i2, boolean z, boolean z2) {
|
||
|
int i3;
|
||
|
if (z && this.h && d) {
|
||
|
return (!a || this.g.get()) && !z2 && i >= (i3 = this.f) && i2 >= i3 && c();
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
private boolean c() {
|
||
|
boolean z;
|
||
|
synchronized (this) {
|
||
|
int i = this.i + 1;
|
||
|
this.i = i;
|
||
|
if (i >= 50) {
|
||
|
this.i = 0;
|
||
|
this.j = ((long) c.list().length) < ((long) (b != -1 ? b : this.f9269o));
|
||
|
}
|
||
|
z = this.j;
|
||
|
}
|
||
|
return z;
|
||
|
}
|
||
|
}
|