VSM FAST NET v1.0版本的 MD5 值为:e0fa12aaf85b4cd50d5bca3af35617af
以下内容为反编译后的 b.java 源代码,内容仅作参考
package s1;
import android.app.AppOpsManager;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.net.TrafficStats;
import android.os.Build;
import android.os.Process;
import android.util.Log;
import android.view.View;
import android.view.ViewParent;
import com.facebook.soloader.SoLoader;
import com.google.android.material.behavior.SwipeDismissBehavior;
import com.technore.vsmfastnet.R;
import d3.c;
import e0.l;
import e0.n;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.attribute.DosFileAttributeView;
import java.nio.file.attribute.DosFileAttributes;
import java.nio.file.attribute.PosixFileAttributeView;
import java.nio.file.attribute.PosixFilePermission;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import m4.f;
import m4.h;
import n5.g;
import n5.m;
import p.d;
public class b implements a, a2.a, d3.b, u2.a {
public static boolean C = true;
public static b f4509a;
public static long f4511c;
public static long f4512d;
public static boolean r;
public static p2.a f4524s;
public static final b f4510b = new b();
public static final o2.a f4513e = new o2.a("JPEG", "jpeg");
public static final o2.a f4514f = new o2.a("PNG", "png");
public static final o2.a g = new o2.a("GIF", "gif");
public static final o2.a f4515h = new o2.a("BMP", "bmp");
public static final o2.a f4516i = new o2.a("ICO", "ico");
public static final o2.a f4517j = new o2.a("WEBP_SIMPLE", "webp");
public static final o2.a f4518k = new o2.a("WEBP_LOSSLESS", "webp");
public static final o2.a l = new o2.a("WEBP_EXTENDED", "webp");
public static final o2.a f4519m = new o2.a("WEBP_EXTENDED_WITH_ALPHA", "webp");
public static final o2.a f4520n = new o2.a("WEBP_ANIMATED", "webp");
public static final o2.a f4521o = new o2.a("HEIF", "heif");
public static final o2.a f4522p = new o2.a("DNG", "dng");
public static boolean[] f4523q = new boolean[3];
public static final int[] t = {R.attr.MT_Bin_dup_0x7f040179, R.attr.MT_Bin_dup_0x7f04027f};
public static final int[] f4525u = {16842931, R.attr.MT_Bin_dup_0x7f040180, R.attr.MT_Bin_dup_0x7f040181, R.attr.MT_Bin_dup_0x7f040182, R.attr.MT_Bin_dup_0x7f0401ae, R.attr.MT_Bin_dup_0x7f0401b7, R.attr.MT_Bin_dup_0x7f0401b8};
public static final byte[] f4526v = {0, 0, -92, -127};
public static final byte[] f4527w = {0, 0, -19, 65};
public static final int[] f4528x = {16843173, 16843551, R.attr.MT_Bin_dup_0x7f04002c};
public static final int[] f4529y = {R.attr.MT_Bin_dup_0x7f040131, R.attr.MT_Bin_dup_0x7f040132, R.attr.MT_Bin_dup_0x7f040133, R.attr.MT_Bin_dup_0x7f040134, R.attr.MT_Bin_dup_0x7f040135, R.attr.MT_Bin_dup_0x7f040136, R.attr.MT_Bin_dup_0x7f040137};
public static final int[] f4530z = {16844082, 16844083, 16844095, 16844143, 16844144, R.attr.MT_Bin_dup_0x7f04012f, R.attr.MT_Bin_dup_0x7f040138, R.attr.MT_Bin_dup_0x7f040139, R.attr.MT_Bin_dup_0x7f04013a, R.attr.MT_Bin_dup_0x7f0402f7};
public static final int[] A = {16843165, 16843166, 16843169, 16843170, 16843171, 16843172, 16843265, 16843275, 16844048, 16844049, 16844050, 16844051};
public static final int[] B = {16843173, 16844052};
public b() {
}
public static boolean A() {
return System.getProperty("os.name").toLowerCase().contains("win");
}
public static boolean B(String str) {
return str.endsWith("/") || str.endsWith("\\");
}
public static float C(float f6, float f7, float f8) {
return (f8 * f7) + ((1.0f - f8) * f6);
}
public static boolean D(d dVar, int i6) {
int[] iArr = dVar.B;
if (iArr[i6] != 3) {
return false;
}
if (dVar.F != 0.0f) {
int i7 = iArr[i6 != 0 ? (char) 0 : (char) 1];
return false;
}
if (i6 == 0) {
if (dVar.f4175e != 0 || dVar.f4177h != 0 || dVar.f4178i != 0) {
return false;
}
} else if (dVar.f4176f != 0 || dVar.f4180k != 0 || dVar.l != 0) {
return false;
}
return true;
}
public static byte E(byte b6, int i6) {
return (byte) (b6 | (1 << i6));
}
public static byte F(boolean z5, byte b6, int i6) {
return z5 ? E(b6, i6) : b6;
}
public static void G(View view, float f6) {
Drawable background = view.getBackground();
if (background instanceof f) {
f fVar = (f) background;
f.b bVar = fVar.f3689b;
if (bVar.f3720o != f6) {
bVar.f3720o = f6;
fVar.w();
}
}
}
public static void H(View view, f fVar) {
e4.a aVar = fVar.f3689b.f3709b;
if (aVar != null && aVar.f2786a) {
float f6 = 0.0f;
for (ViewParent parent = view.getParent(); parent instanceof View; parent = parent.getParent()) {
WeakHashMap<View, n> weakHashMap = l.f2723a;
f6 += ((View) parent).getElevation();
}
f.b bVar = fVar.f3689b;
if (bVar.f3719n != f6) {
bVar.f3719n = f6;
fVar.w();
}
}
}
public static byte I(byte b6, int i6) {
return (byte) (b6 & (~(1 << i6)));
}
public static void J(File file, u1.a aVar) {
aVar.a(file);
File[] listFiles = file.listFiles();
if (listFiles != null) {
for (File file2 : listFiles) {
if (file2.isDirectory()) {
J(file2, aVar);
} else {
aVar.c(file2);
}
}
}
aVar.b(file);
}
public static void b(Boolean bool) {
if (bool != null && !bool.booleanValue()) {
throw new IllegalArgumentException();
}
}
public static int c(int i6) {
if (i6 >= 0) {
return i6;
}
throw new IllegalArgumentException();
}
public static Object d(Object obj, Object obj2) {
if (obj != null) {
return obj;
}
throw new NullPointerException(String.valueOf(obj2));
}
public static Object e(Object obj, Object obj2) {
if (obj != null) {
return obj;
}
throw new NullPointerException(String.valueOf(obj2));
}
public static int f(Context context, String str) {
int myPid = Process.myPid();
int myUid = Process.myUid();
String packageName = context.getPackageName();
if (context.checkPermission(str, myPid, myUid) != -1) {
int i6 = Build.VERSION.SDK_INT;
String permissionToOp = i6 >= 23 ? AppOpsManager.permissionToOp(str) : null;
if (permissionToOp == null) {
return 0;
}
if (packageName == null) {
String[] packagesForUid = context.getPackageManager().getPackagesForUid(myUid);
if (packagesForUid != null && packagesForUid.length > 0) {
packageName = packagesForUid[0];
}
}
return (i6 >= 23 ? ((AppOpsManager) context.getSystemService(AppOpsManager.class)).noteProxyOpNoThrow(permissionToOp, packageName) : 1) != 0 ? -2 : 0;
}
return -1;
}
public static void g(boolean z5) {
if (!z5) {
throw new IllegalStateException();
}
}
public static void h(boolean z5, Object obj) {
if (!z5) {
throw new IllegalStateException(String.valueOf(obj));
}
}
public static c i(int i6) {
if (i6 != 0) {
if (i6 != 1) {
return new h();
}
return new m4.d();
}
return new h();
}
public static String j(byte[] bArr, boolean z5, Charset charset) {
return charset != null ? new String(bArr, charset) : z5 ? new String(bArr, r5.b.f4484b) : new String(bArr, r5.b.f4485c);
}
public static boolean k(File file) {
File[] listFiles = file.listFiles();
boolean z5 = true;
if (listFiles != null) {
for (File file2 : listFiles) {
z5 &= l(file2);
}
}
return z5;
}
public static boolean l(File file) {
if (file.isDirectory()) {
k(file);
}
return file.delete();
}
public static float m(float f6, float f7, float f8, float f9) {
return (float) Math.hypot(f8 - f6, f9 - f7);
}
public static List n() {
ArrayList arrayList = new ArrayList();
if (f4512d == 0) {
f4512d = TrafficStats.getTotalRxBytes();
}
if (f4511c == 0) {
f4511c = TrafficStats.getTotalTxBytes();
}
long totalRxBytes = TrafficStats.getTotalRxBytes();
long totalTxBytes = TrafficStats.getTotalTxBytes();
f4512d = totalRxBytes;
f4511c = totalTxBytes;
arrayList.add(Long.valueOf(totalRxBytes - f4512d));
arrayList.add(Long.valueOf(totalTxBytes - f4511c));
return arrayList;
}
public static String o(String str, Object... objArr) {
int indexOf;
String valueOf = String.valueOf(str);
StringBuilder sb = new StringBuilder((objArr.length * 16) + valueOf.length());
int i6 = 0;
int i7 = 0;
while (i6 < objArr.length && (indexOf = valueOf.indexOf("%s", i7)) != -1) {
sb.append(valueOf.substring(i7, indexOf));
sb.append(objArr[i6]);
i7 = indexOf + 2;
i6++;
}
sb.append(valueOf.substring(i7));
if (i6 < objArr.length) {
sb.append(" [");
sb.append(objArr[i6]);
for (int i8 = i6 + 1; i8 < objArr.length; i8++) {
sb.append(", ");
sb.append(objArr[i8]);
}
sb.append(']');
}
return sb.toString();
}
public static byte[] p(String str, Charset charset) {
return charset == null ? str.getBytes(r5.b.f4485c) : str.getBytes(charset);
}
public static g q(n5.l lVar, String str) {
g r3 = r(lVar, str);
if (r3 == null) {
String replaceAll = str.replaceAll("\\\\", "/");
g r6 = r(lVar, replaceAll);
return r6 == null ? r(lVar, replaceAll.replaceAll("/", "\\\\")) : r6;
}
return r3;
}
public static g r(n5.l lVar, String str) {
if (lVar != null) {
if (p1.c.h(str)) {
g5.f fVar = lVar.f3940c;
if (fVar != null) {
Object obj = fVar.f3011a;
if (((List) obj) != null) {
if (((List) obj).size() == 0) {
return null;
}
for (g gVar : (List) lVar.f3940c.f3011a) {
String str2 = gVar.f3904k;
if (p1.c.h(str2) && str.equalsIgnoreCase(str2)) {
return gVar;
}
}
return null;
}
throw new j5.a(c.a.c("file Headers are null, cannot determine file header with exact match for fileName: ", str));
}
throw new j5.a(c.a.c("central directory is null, cannot determine file header with exact match for fileName: ", str));
}
throw new j5.a(c.a.c("file name is null, cannot determine file header with exact match for fileName: ", str));
}
throw new j5.a(c.a.c("zip model is null, cannot determine file header with exact match for fileName: ", str));
}
public static String s(File file, String str) {
return p1.c.h(str) ? str : z(file) ? file.toPath().toRealPath(LinkOption.NOFOLLOW_LINKS).getFileName().toString() : file.getName();
}
public static long t(n5.l lVar) {
if (lVar.f3946j) {
return lVar.f3943f.f3934j;
}
return lVar.f3941d.f3915f;
}
public static byte[] u(Path path) {
byte[] bArr = new byte[4];
try {
Set<PosixFilePermission> permissions = ((PosixFileAttributeView) Files.getFileAttributeView(path, PosixFileAttributeView.class, LinkOption.NOFOLLOW_LINKS)).readAttributes().permissions();
bArr[3] = F(Files.isRegularFile(path, new LinkOption[0]), bArr[3], 7);
bArr[3] = F(Files.isDirectory(path, new LinkOption[0]), bArr[3], 6);
bArr[3] = F(Files.isSymbolicLink(path), bArr[3], 5);
bArr[3] = F(permissions.contains(PosixFilePermission.OWNER_READ), bArr[3], 0);
bArr[2] = F(permissions.contains(PosixFilePermission.OWNER_WRITE), bArr[2], 7);
bArr[2] = F(permissions.contains(PosixFilePermission.OWNER_EXECUTE), bArr[2], 6);
bArr[2] = F(permissions.contains(PosixFilePermission.GROUP_READ), bArr[2], 5);
bArr[2] = F(permissions.contains(PosixFilePermission.GROUP_WRITE), bArr[2], 4);
bArr[2] = F(permissions.contains(PosixFilePermission.GROUP_EXECUTE), bArr[2], 3);
bArr[2] = F(permissions.contains(PosixFilePermission.OTHERS_READ), bArr[2], 2);
bArr[2] = F(permissions.contains(PosixFilePermission.OTHERS_WRITE), bArr[2], 1);
bArr[2] = F(permissions.contains(PosixFilePermission.OTHERS_EXECUTE), bArr[2], 0);
} catch (IOException unused) {
}
return bArr;
}
public static String v(File file, m mVar) {
String s6;
StringBuilder sb;
String str;
String substring;
try {
String canonicalPath = file.getCanonicalPath();
if (p1.c.h(mVar.f3956k)) {
String canonicalPath2 = new File(mVar.f3956k).getCanonicalPath();
String str2 = r5.b.f4483a;
if (!canonicalPath2.endsWith(str2)) {
canonicalPath2 = canonicalPath2 + str2;
}
if (z(file)) {
substring = new File(file.getParentFile().getCanonicalFile().getPath() + File.separator + file.getCanonicalFile().getName()).getPath().substring(canonicalPath2.length());
} else {
substring = canonicalPath.substring(canonicalPath2.length());
}
if (substring.startsWith(System.getProperty("file.separator"))) {
substring = substring.substring(1);
}
File file2 = new File(canonicalPath);
if (!file2.isDirectory()) {
String replaceAll = substring.substring(0, substring.lastIndexOf(file2.getName())).replaceAll("\\\\", "/");
sb = new StringBuilder();
sb.append(replaceAll);
sb.append(s(file2, mVar.l));
s6 = sb.toString();
str = mVar.f3961q;
if (p1.c.h(str)) {
if (!str.endsWith("\\") && !str.endsWith("/")) {
StringBuilder g6 = android.support.v4.media.b.g(str);
g6.append(r5.b.f4483a);
str = g6.toString();
}
str = str.replaceAll("\\\\", "/");
s6 = c.a.c(str, s6);
}
if (p1.c.h(s6)) {
return s6;
}
String str3 = "fileName to add to zip is empty or null. fileName: '" + s6 + "' DefaultFolderPath: '" + mVar.f3956k + "' FileNameInZip: " + mVar.l;
if (z(file)) {
str3 = c.a.c(str3, "isSymlink: true ");
}
if (p1.c.h(str)) {
str3 = android.support.v4.media.b.f("rootFolderNameInZip: '", str, "' ");
}
throw new j5.a(str3);
}
s6 = substring.replaceAll("\\\\", "/");
sb = new StringBuilder();
} else {
File file3 = new File(canonicalPath);
s6 = s(file3, mVar.l);
if (file3.isDirectory()) {
sb = new StringBuilder();
}
str = mVar.f3961q;
if (p1.c.h(str)) {
}
if (p1.c.h(s6)) {
}
}
sb.append(s6);
sb.append("/");
s6 = sb.toString();
str = mVar.f3961q;
if (p1.c.h(str)) {
}
if (p1.c.h(s6)) {
}
} catch (IOException e6) {
throw new j5.a(e6);
}
}
public static byte[] w(Path path) {
byte[] bArr = new byte[4];
try {
DosFileAttributes readAttributes = ((DosFileAttributeView) Files.getFileAttributeView(path, DosFileAttributeView.class, LinkOption.NOFOLLOW_LINKS)).readAttributes();
bArr[0] = F(readAttributes.isArchive(), F(readAttributes.isDirectory(), F(readAttributes.isSystem(), F(readAttributes.isHidden(), F(readAttributes.isReadOnly(), (byte) 0, 0), 1), 2), 4), 5);
} catch (IOException unused) {
}
return bArr;
}
public static String x(String str) {
if (p1.c.h(str)) {
if (str.contains(System.getProperty("file.separator"))) {
str = str.substring(str.lastIndexOf(System.getProperty("file.separator")) + 1);
}
return str.endsWith(".zip") ? str.substring(0, str.lastIndexOf(".")) : str;
}
throw new j5.a("zip file name is empty or null, cannot determine zip file name");
}
public static boolean y(byte b6, int i6) {
return ((1 << i6) & ((long) b6)) != 0;
}
public static boolean z(File file) {
try {
return Files.isSymbolicLink(file.toPath());
} catch (Error | Exception unused) {
return false;
}
}
@Override
public boolean a(String str, int i6) {
Boolean bool;
boolean z5;
int i7 = ((i6 & 1) != 0 ? 16 : 0) | 0;
if (SoLoader.f1996d == null) {
ReentrantReadWriteLock reentrantReadWriteLock = SoLoader.f1995c;
reentrantReadWriteLock.readLock().lock();
try {
if (SoLoader.f1996d == null) {
if ("http://www.android.com/".equals(System.getProperty("java.vendor.url"))) {
if (!SoLoader.l()) {
throw new IllegalStateException("SoLoader.init() not yet called");
}
} else {
synchronized (SoLoader.class) {
boolean z6 = !SoLoader.f1999h.contains(str);
if (z6) {
System.loadLibrary(str);
}
bool = Boolean.valueOf(z6);
}
reentrantReadWriteLock.readLock().unlock();
if (bool == null) {
return bool.booleanValue();
}
if (SoLoader.f2002k) {
int i8 = SoLoader.f2004n;
String mapLibraryName = System.mapLibraryName(str);
boolean z7 = false;
do {
try {
z7 = SoLoader.m(mapLibraryName, str, null, i7, null);
z5 = false;
continue;
} catch (UnsatisfiedLinkError e6) {
int i9 = SoLoader.f1997e.get();
SoLoader.f1995c.writeLock().lock();
try {
try {
if (SoLoader.g == null || !SoLoader.g.c()) {
z5 = false;
} else {
Log.w("SoLoader", "sApplicationSoSource updated during load: " + mapLibraryName + ", attempting load again.");
SoLoader.f1997e.getAndIncrement();
z5 = true;
}
SoLoader.f1995c.writeLock().unlock();
if (SoLoader.f1997e.get() == i9) {
throw e6;
}
} catch (IOException e7) {
throw new RuntimeException(e7);
}
} catch (Throwable th) {
SoLoader.f1995c.writeLock().unlock();
throw th;
}
}
} while (z5);
return z7;
}
return d3.a.c(str);
}
}
reentrantReadWriteLock.readLock().unlock();
} catch (Throwable th2) {
SoLoader.f1995c.readLock().unlock();
throw th2;
}
}
bool = null;
if (bool == null) {
}
}
public b(SwipeDismissBehavior swipeDismissBehavior) {
swipeDismissBehavior.f2111e = SwipeDismissBehavior.t(0.0f, 0.1f, 1.0f);
swipeDismissBehavior.f2112f = SwipeDismissBehavior.t(0.0f, 0.6f, 1.0f);
swipeDismissBehavior.f2109c = 0;
}
}