91快播 v3.3.0版本的 MD5 值为:094b9519ad2388a8147509cb8a126145

以下内容为反编译后的 C1350.java 源代码,内容仅作参考


package anta.ۋ;

import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Build;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Base64;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import androidx.recyclerview.widget.RecyclerView;
import anta.ղ.C1156;
import anta.ղ.C1177;
import anta.ق.C1260;
import anta.ຍ.C2176;
import anta.Ⴑ.ActivityC2430;
import anta.ቿ.C3021;
import anta.Ꮜ.EnumC3274;
import anta.ᗐ.InterfaceC4143;
import anta.ᰣ.C5076;
import anta.ᰣ.C5078;
import anta.ㆇ.C6892;
import anta.ㆇ.InterfaceC6891;
import anta.㘥.C7435;
import anta.㙿.InterfaceC7480;
import anta.㜛.AbstractApplicationC7572;
import anta.㟣.C7840;
import anta.㩨.AbstractC8726;
import anta.㮌.C9125;
import anta.㱳.C9403;
import anta.㱷.InterfaceC9404;
import anta.㷋.InterfaceC9853;
import com.kb91.app65.R;
import com.theway.abc.v2.nidongde.lsj.api.model.response.CLVideoWrapperKt;
import com.theway.abc.v2.nidongde.xiangjiao.model.XJVideoModel;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Random;
import java.util.TimeZone;
import java.util.TreeMap;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESedeKeySpec;
import javax.crypto.spec.IvParameterSpec;
public class C1350 {
    public static int f3796;
    public static float f3797;
    public static int f3798;

    public static void m1414(String str) {
        C7435.m6455(str);
    }

    public static String m1415(String str) {
        return str.contains("LimitV01ttIP") ? str.substring(0, str.length() - 12) : str;
    }

    public static void m1416(Throwable th) {
        if (!(th instanceof VirtualMachineError)) {
            if (!(th instanceof ThreadDeath)) {
                if (th instanceof LinkageError) {
                    throw ((LinkageError) th);
                }
                return;
            }
            throw ((ThreadDeath) th);
        }
        throw ((VirtualMachineError) th);
    }

    public static long m1417(AtomicLong atomicLong, long j) {
        long j2;
        long j3;
        do {
            j2 = atomicLong.get();
            j3 = RecyclerView.FOREVER_NS;
            if (j2 == RecyclerView.FOREVER_NS) {
                return RecyclerView.FOREVER_NS;
            }
            long j4 = j2 + j;
            if (j4 >= 0) {
                j3 = j4;
            }
        } while (!atomicLong.compareAndSet(j2, j3));
        return j2;
    }

    public static int m1418(int i) {
        return AbstractApplicationC7572.f16868.getResources().getColor(i);
    }

    public static String m1419(int i) {
        return m1457(i, "123456789");
    }

    public static final String m1420(String str) {
        BufferedReader bufferedReader;
        BufferedReader bufferedReader2;
        BufferedReader bufferedReader3 = null;
        try {
            try {
                Process exec = Runtime.getRuntime().exec("getprop " + str);
                C7840.m6787(exec, "p");
                bufferedReader = new BufferedReader(new InputStreamReader(exec.getInputStream()), 1024);
                try {
                    String readLine = bufferedReader.readLine();
                    bufferedReader.close();
                    try {
                        bufferedReader.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                    return readLine;
                } catch (IOException e2) {
                    e = e2;
                    e.printStackTrace();
                    if (bufferedReader != null) {
                        try {
                            bufferedReader.close();
                        } catch (IOException e3) {
                            e3.printStackTrace();
                        }
                    }
                    return null;
                }
            } catch (Throwable th) {
                th = th;
                bufferedReader3 = bufferedReader2;
                if (bufferedReader3 != null) {
                    try {
                        bufferedReader3.close();
                    } catch (IOException e4) {
                        e4.printStackTrace();
                    }
                }
                throw th;
            }
        } catch (IOException e5) {
            e = e5;
            bufferedReader = null;
        } catch (Throwable th2) {
            th = th2;
            if (bufferedReader3 != null) {
            }
            throw th;
        }
    }

    public static TreeMap<String, String> m1421(TreeMap<String, String> treeMap) {
        String uuid;
        String str = "";
        treeMap.put("auth", "");
        treeMap.put("NET", "WIFI");
        treeMap.put("PLAT", "android");
        treeMap.put("PLATV", Build.VERSION.RELEASE);
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeZone(TimeZone.getTimeZone("GMT+8"));
        long timeInMillis = calendar.getTimeInMillis();
        treeMap.put("TIME", (timeInMillis / 1000) + "");
        StringBuilder sb = new StringBuilder();
        sb.append("35");
        C9125.m8113(Build.BOARD, 10, sb);
        C9125.m8113(Build.BRAND, 10, sb);
        C9125.m8113(Build.CPU_ABI, 10, sb);
        C9125.m8113(Build.DEVICE, 10, sb);
        C9125.m8113(Build.DISPLAY, 10, sb);
        C9125.m8113(Build.HOST, 10, sb);
        C9125.m8113(Build.ID, 10, sb);
        C9125.m8113(Build.MANUFACTURER, 10, sb);
        C9125.m8113(Build.MODEL, 10, sb);
        C9125.m8113(Build.PRODUCT, 10, sb);
        C9125.m8113(Build.TAGS, 10, sb);
        C9125.m8113(Build.TYPE, 10, sb);
        sb.append(Build.USER.length() % 10);
        String sb2 = sb.toString();
        try {
            uuid = new UUID(sb2.hashCode(), Build.class.getField("SERIAL").get(null).toString().hashCode()).toString();
        } catch (Exception unused) {
            uuid = new UUID(sb2.hashCode(), -905839116).toString();
        }
        treeMap.put("UUID", uuid);
        treeMap.put("random", UUID.randomUUID().toString());
        treeMap.put("V", C1177.f3448);
        treeMap.put("CHANNEL", "");
        treeMap.put("EXT", "");
        StringBuilder sb3 = new StringBuilder();
        for (Map.Entry<String, String> entry : treeMap.entrySet()) {
            sb3.append(entry.getKey());
            sb3.append("=");
            sb3.append(entry.getValue());
            sb3.append("&");
        }
        String substring = sb3.substring(0, sb3.length() - 1);
        if (!TextUtils.isEmpty(substring)) {
            try {
                String str2 = "";
                for (byte b : MessageDigest.getInstance("MD5").digest(substring.getBytes())) {
                    String hexString = Integer.toHexString(b & 255);
                    if (hexString.length() == 1) {
                        hexString = CLVideoWrapperKt.CL_VIDEO_TYPE_LONG + hexString;
                    }
                    str2 = str2 + hexString;
                }
                str = str2;
            } catch (NoSuchAlgorithmException e) {
                e.printStackTrace();
            }
        }
        treeMap.put("SIGN", str.toUpperCase());
        return treeMap;
    }

    public static final void m1422(ActivityC2430 activityC2430, boolean z) {
        View decorView;
        C7840.m6791(activityC2430, "$this$setStatusBarSystemUiFlagWithLight");
        Window window = activityC2430.getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        decorView.setSystemUiVisibility(z ? 9472 : 1280);
    }

    public static final boolean m1423() {
        return C7840.m6782(Thread.currentThread(), Looper.getMainLooper().getThread());
    }

    public static int m1424(float f) {
        return (int) ((f * f3797) + 0.5f);
    }

    public static String m1425(int i) {
        return AbstractApplicationC7572.f16868.getResources().getString(i);
    }

    public static final void m1426(ActivityC2430 activityC2430) {
        C7840.m6791(activityC2430, "$this$statusBarTransparent");
        if (Build.VERSION.SDK_INT >= 29) {
            Window window = activityC2430.getWindow();
            C7840.m6787(window, "window");
            window.setStatusBarContrastEnforced(false);
        }
        Window window2 = activityC2430.getWindow();
        C7840.m6787(window2, "window");
        window2.setStatusBarColor(0);
    }

    public static int m1427(XJVideoModel xJVideoModel) {
        if (xJVideoModel.getDefinition().equals("4")) {
            return R.drawable.xj_icon_1080p;
        }
        if (xJVideoModel.getDefinition().equals("3")) {
            return R.drawable.xj_icon_720;
        }
        return -1;
    }

    public static String m1428(Context context) {
        try {
            return m1450(context.getPackageManager().getPackageInfo(context.getPackageName(), 64).signatures[0].toByteArray());
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
            return "";
        }
    }

    public static long m1429(AtomicLong atomicLong, long j) {
        long j2;
        long j3;
        do {
            j2 = atomicLong.get();
            if (j2 == RecyclerView.FOREVER_NS) {
                return RecyclerView.FOREVER_NS;
            }
            j3 = j2 - j;
            if (j3 < 0) {
                C2176.m2242(new IllegalStateException(C9125.m8132("More produced than requested: ", j3)));
                j3 = 0;
            }
        } while (!atomicLong.compareAndSet(j2, j3));
        return j3;
    }

    public static Bitmap m1430(File file, int i, int i2) {
        BitmapFactory.Options options = new BitmapFactory.Options();
        int i3 = 1;
        options.inJustDecodeBounds = true;
        BitmapFactory.decodeFile(file.getAbsolutePath(), options);
        int i4 = options.outHeight;
        int i5 = options.outWidth;
        if (i4 > i2 || i5 > i) {
            int i6 = i4 / 2;
            int i7 = i5 / 2;
            while (i6 / i3 >= i2 && i7 / i3 >= i) {
                i3 *= 2;
            }
        }
        options.inSampleSize = i3;
        options.inJustDecodeBounds = false;
        Bitmap decodeFile = BitmapFactory.decodeFile(file.getAbsolutePath(), options);
        int attributeInt = new ExifInterface(file.getAbsolutePath()).getAttributeInt("Orientation", 0);
        Matrix matrix = new Matrix();
        if (attributeInt == 6) {
            matrix.postRotate(90.0f);
        } else if (attributeInt == 3) {
            matrix.postRotate(180.0f);
        } else if (attributeInt == 8) {
            matrix.postRotate(270.0f);
        }
        return Bitmap.createBitmap(decodeFile, 0, 0, decodeFile.getWidth(), decodeFile.getHeight(), matrix, true);
    }

    public static Drawable m1431(int i) {
        return AbstractApplicationC7572.f16868.getResources().getDrawable(i);
    }

    public static String m1432(byte[] bArr) {
        if (bArr == null) {
            return null;
        }
        StringBuffer stringBuffer = new StringBuffer(bArr.length * 2);
        for (int i = 0; i < bArr.length; i++) {
            if ((bArr[i] & 255) < 16) {
                stringBuffer.append(CLVideoWrapperKt.CL_VIDEO_TYPE_LONG);
            }
            stringBuffer.append(Long.toString(bArr[i] & 255, 16));
        }
        return stringBuffer.toString();
    }

    public static String m1433(int i) {
        return m1457(i, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
    }

    public static AbstractC8726 m1434(InterfaceC9404 interfaceC9404, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = 1;
        }
        return interfaceC9404.m8306(i);
    }

    public static AbstractC8726 m1435(InterfaceC9404 interfaceC9404, int i, int i2, int i3, Object obj) {
        if ((i3 & 2) != 0) {
            i2 = 0;
        }
        return interfaceC9404.m8296(i, i2);
    }

    public static final List<View> m1436(View view) {
        C7840.m6791(view, "$this$children");
        ArrayList arrayList = new ArrayList();
        if (view instanceof ViewGroup) {
            ViewGroup viewGroup = (ViewGroup) view;
            int childCount = viewGroup.getChildCount();
            for (int i = 0; i < childCount; i++) {
                View childAt = viewGroup.getChildAt(i);
                arrayList.add(childAt);
                C7840.m6787(childAt, "child");
                arrayList.addAll(m1436(childAt));
            }
        }
        return arrayList;
    }

    public static void m1437(Context context) {
        if (context == null) {
            return;
        }
        DisplayMetrics displayMetrics = new DisplayMetrics();
        ((WindowManager) context.getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics);
        f3796 = displayMetrics.widthPixels;
        f3798 = displayMetrics.heightPixels;
        f3797 = displayMetrics.density;
    }

    public static AbstractC8726 m1438(InterfaceC4143 interfaceC4143, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, int i, Object obj) {
        String str11;
        String str12;
        if ((i & 1) != 0) {
            str11 = "android";
            C7840.m6789("android", "XX_DEVICE_TYPE");
        } else {
            str11 = null;
        }
        if ((i & 2) != 0) {
            str12 = C1156.f3344;
            C7840.m6789(str12, "DEVICE_TOKEN");
        } else {
            str12 = null;
        }
        return interfaceC4143.m4356(str11, str12, (i & 4) != 0 ? "" : str3, (i & 8) != 0 ? "" : null, (i & 16) != 0 ? "" : null, (i & 32) != 0 ? "user_recommend" : str6, (i & 64) != 0 ? "" : str7, (i & RecyclerView.AbstractC0157.FLAG_IGNORE) != 0 ? "" : str8, (i & 256) == 0 ? null : "", (i & 512) != 0 ? "10" : null);
    }

    public static AbstractC8726 m1439(InterfaceC9853 interfaceC9853, String str, String str2, int i, Object obj) {
        String str3;
        if ((i & 1) != 0) {
            str = "";
        }
        if ((i & 2) != 0) {
            str3 = C5076.m4968().f12255;
            C7840.m6789(str3, "getInstance().token");
        } else {
            str3 = null;
        }
        return interfaceC9853.m8579(str, str3);
    }

    public static InterfaceC6891 m1440() {
        return new C6892(C3021.f7320);
    }

    public static String m1441(String str) {
        if (Uri.parse(str).getScheme() != null) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        Objects.requireNonNull(C5078.m4982());
        sb.append(C5078.f12260.f3658.getString("sp_key_available_domain", "https://apikb0203.xyz"));
        sb.append(str);
        return sb.toString();
    }

    public static String m1442(int i) {
        return m1457(i, "0123456789qwertyuiopasdfghjklzxcvbnm");
    }

    public static final View m1443(ActivityC2430 activityC2430) {
        C7840.m6791(activityC2430, "$this$rootView");
        ViewGroup m1454 = m1454(activityC2430);
        if (m1454 != null) {
            return m1454.getChildAt(0);
        }
        return null;
    }

    public static final void m1444(ActivityC2430 activityC2430, boolean z, boolean z2) {
        View decorView;
        C7840.m6791(activityC2430, "$this$setSystemUiFlagWithLight");
        Window window = activityC2430.getWindow();
        if (window == null || (decorView = window.getDecorView()) == null) {
            return;
        }
        int i = z ? 9984 : 1792;
        if (z2) {
            i |= 16;
        }
        decorView.setSystemUiVisibility(i);
    }

    public static String m1445(String str) {
        SecretKey generateSecret = SecretKeyFactory.getInstance("desede").generateSecret(new DESedeKeySpec("012345543211234569872334".getBytes()));
        Cipher cipher = Cipher.getInstance("desede/CBC/PKCS5Padding");
        cipher.init(1, generateSecret, new IvParameterSpec("21553620".getBytes()));
        return Base64.encodeToString(cipher.doFinal(str.getBytes(StandardCharsets.UTF_8)), 0).replaceAll("[\\s*\t\n\r]", "");
    }

    public static String m1446(String str) {
        return str != null ? str : "";
    }

    public static final int m1447(Context context, String str) {
        return context.getResources().getDimensionPixelSize(context.getResources().getIdentifier(str, "dimen", "android"));
    }

    public static final int m1449(int i) {
        Resources system = Resources.getSystem();
        C7840.m6789(system, "Resources.getSystem()");
        return (int) TypedValue.applyDimension(1, i, system.getDisplayMetrics());
    }

    public static String m1450(byte[] bArr) {
        StringBuffer stringBuffer = new StringBuffer();
        try {
            MessageDigest messageDigest = MessageDigest.getInstance("MD5");
            messageDigest.reset();
            messageDigest.update(bArr);
            byte[] digest = messageDigest.digest();
            for (int i = 0; i < digest.length; i++) {
                if (Integer.toHexString(digest[i] & 255).length() == 1) {
                    stringBuffer.append(CLVideoWrapperKt.CL_VIDEO_TYPE_LONG);
                    stringBuffer.append(Integer.toHexString(digest[i] & 255));
                } else {
                    stringBuffer.append(Integer.toHexString(digest[i] & 255));
                }
            }
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
        return stringBuffer.toString();
    }

    public static List<String> m1451() {
        Intent intent = new Intent();
        intent.addCategory("android.intent.category.LAUNCHER");
        intent.setAction("android.intent.action.MAIN");
        List<ResolveInfo> queryIntentActivities = AbstractApplicationC7572.f16868.getPackageManager().queryIntentActivities(intent, 131072);
        ArrayList arrayList = new ArrayList();
        for (ResolveInfo resolveInfo : queryIntentActivities) {
            if (resolveInfo.activityInfo.packageName.contains("com.kb91.app")) {
                arrayList.add(resolveInfo.activityInfo.packageName);
            }
        }
        Collections.sort(arrayList, new C1260());
        return arrayList;
    }

    public static byte[] m1452(byte[] bArr) {
        EnumC3274 enumC3274 = EnumC3274.NONE;
        byte[] bArr2 = new byte[4];
        System.arraycopy(bArr, 0, bArr2, 0, 4);
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 4; i++) {
            String hexString = Integer.toHexString(bArr2[i] & 255);
            if (hexString.length() < 2) {
                sb.append(0);
            }
            sb.append(hexString);
        }
        String lowerCase = sb.toString().toLowerCase();
        if ((lowerCase.contains("ffd8ffe0") ? EnumC3274.JPG : lowerCase.contains("89504e47") ? EnumC3274.PNG : lowerCase.contains("47494638") ? EnumC3274.GIF : lowerCase.contains("424d") ? EnumC3274.BMP : lowerCase.contains("52494646") ? EnumC3274.WEBP : lowerCase.contains("49492a00") ? EnumC3274.TIF : enumC3274) != enumC3274) {
            return bArr;
        }
        byte[] bArr3 = new byte[bArr.length - 8];
        System.arraycopy(bArr, 8, bArr3, 0, bArr.length - 8);
        return bArr3;
    }

    public static String m1453(String str) {
        try {
            MessageDigest messageDigest = MessageDigest.getInstance("MD5");
            messageDigest.reset();
            messageDigest.update(str.getBytes("UTF-8"));
            return new String(m1432(messageDigest.digest()).getBytes("UTF-8"), "UTF-8");
        } catch (UnsupportedEncodingException | NoSuchAlgorithmException unused) {
            return "md5hash E";
        }
    }

    public static final ViewGroup m1454(ActivityC2430 activityC2430) {
        C7840.m6791(activityC2430, "$this$contentView");
        C7840.m6791(activityC2430, "$this$decorView");
        Window window = activityC2430.getWindow();
        ViewGroup viewGroup = (ViewGroup) (window != null ? window.getDecorView() : null);
        if (viewGroup != null) {
            return (ViewGroup) viewGroup.findViewById(16908290);
        }
        return null;
    }

    public static byte[] m1455(byte[] bArr) {
        byte[] byteArray;
        int length = bArr.length;
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
        ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();
        byte b = bArr[0];
        byte b2 = bArr[1];
        byte b3 = bArr[2];
        boolean z = (b == -1 && b2 == -40) ? false : true;
        if (b == -119 && b2 == 80 && b3 == 78) {
            z = false;
        }
        if (b == 82 && b2 == 73 && b3 == 70) {
            z = false;
        }
        if (b == 71 && b2 == 73 && b3 == 70) {
            z = false;
        }
        if (z) {
            byte b4 = bArr[0];
            int i = length - 1;
            byte[] bArr2 = new byte[i];
            for (int i2 = 1; i2 < length; i2++) {
                bArr2[i2 - 1] = (byte) (bArr[i2] ^ b4);
            }
            byteArrayOutputStream.write(bArr2, 0, i);
        } else {
            byteArrayOutputStream2.write(bArr, 0, length);
        }
        if (z) {
            byteArray = byteArrayOutputStream.toByteArray();
        } else {
            byteArray = byteArrayOutputStream2.toByteArray();
        }
        try {
            byteArrayOutputStream.close();
            byteArrayOutputStream2.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return byteArray;
    }

    public static AbstractC8726 m1456(InterfaceC7480 interfaceC7480, String str, int i, Object obj) {
        String str2;
        if ((i & 1) != 0) {
            str2 = C9403.m8295();
            C7840.m6789(str2, "generateRequestToken()");
        } else {
            str2 = null;
        }
        return interfaceC7480.m6531(str2);
    }

    public static String m1457(int i, String str) {
        if (i < 1) {
            i = 10;
        }
        Random random = new Random();
        StringBuilder sb = new StringBuilder(i);
        for (int i2 = 0; i2 < i; i2++) {
            sb.append(str.charAt(random.nextInt(str.length())));
        }
        return sb.toString();
    }

    public static boolean m1458(Context context) {
        return (context.getResources().getConfiguration().screenLayout & 15) >= 3;
    }

    public static AbstractC8726 m1459(InterfaceC7480 interfaceC7480, String str, int i, int i2, String str2, int i3, Object obj) {
        String str3;
        if ((i3 & 1) != 0) {
            str3 = C9403.m8295();
            C7840.m6789(str3, "generateRequestToken()");
        } else {
            str3 = null;
        }
        if ((i3 & 4) != 0) {
            i2 = 10;
        }
        return interfaceC7480.m6532(str3, i, i2, str2);
    }

    public static String m1460(String str, String str2) {
        if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || str.contains("\"")) {
            return str;
        }
        try {
            byte[] decode = Base64.decode(str, 0);
            byte[] bytes = str2.getBytes();
            byte[] bArr = new byte[decode.length];
            int i = 0;
            for (int i2 = 0; i2 < decode.length; i2++) {
                if (i >= bytes.length) {
                    i = 0;
                }
                bArr[i2] = (byte) (decode[i2] ^ bytes[i]);
                i++;
            }
            return new String(Base64.decode(bArr, 0));
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return "{}";
        }
    }

    public static int m1461(int i) {
        return 1 << (32 - Integer.numberOfLeadingZeros(i - 1));
    }

    public static final boolean m1462(Context context) {
        C7840.m6791(context, "$this$landscape");
        Resources resources = context.getResources();
        C7840.m6787(resources, "resources");
        return resources.getConfiguration().orientation == 2;
    }
}