Anti Spy v30.16.1.24版本的 MD5 值为:c71fa7f3f1aa08291411b9a5a8b2e65d

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


package c;

import android.app.Application;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteException;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.RemoteException;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Base64;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.animation.AnimationUtils;
import androidx.appcompat.widget.Toolbar;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.work.ListenableWorker;
import androidx.work.Worker;
import androidx.work.impl.workers.ConstraintTrackingWorker;
import c5.c4;
import c5.g7;
import c5.p5;
import c5.q6;
import c5.t6;
import c5.x4;
import c5.y4;
import com.google.android.gms.internal.ads.dk0;
import com.google.android.gms.internal.ads.ek;
import com.google.android.gms.internal.ads.j3;
import com.google.android.gms.internal.ads.nq;
import com.google.android.gms.internal.ads.ws;
import com.google.android.gms.internal.measurement.ia;
import com.google.android.gms.internal.measurement.la;
import com.google.android.gms.internal.measurement.m4;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.ump.ConsentInformation;
import h.z0;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import m6.m0;
import n.a2;
import org.json.JSONException;
import org.json.JSONObject;
import p0.e0;
import p0.v0;
import s3.o2;
import s3.q2;
import s3.r2;
import u3.k0;
public final class k implements Runnable {
    public final int f1729a;
    public final Object f1730b;

    public k(Object obj, int i10) {
        this.f1729a = i10;
        this.f1730b = obj;
    }

    public k(q4.f fVar) {
        this.f1729a = 22;
        this.f1730b = fVar;
    }

    private void b() {
        Object obj;
        synchronized (((androidx.lifecycle.z) this.f1730b).f983a) {
            try {
                obj = ((androidx.lifecycle.z) this.f1730b).f988f;
                ((androidx.lifecycle.z) this.f1730b).f988f = androidx.lifecycle.z.f982k;
            } catch (Throwable th) {
                throw th;
            }
        }
        ((androidx.lifecycle.z) this.f1730b).d(obj);
    }

    private void c() {
        Set set;
        ReentrantReadWriteLock.ReadLock readLock = ((w1.l) this.f1730b).f19814a.f19874h.readLock();
        h6.l.o(readLock, "readWriteLock.readLock()");
        readLock.lock();
        try {
            try {
            } catch (Throwable th) {
                readLock.unlock();
                ((w1.l) this.f1730b).getClass();
                throw th;
            }
        } catch (SQLiteException unused) {
            set = h9.m.f15180a;
        } catch (IllegalStateException unused2) {
            set = h9.m.f15180a;
        }
        if (!((w1.l) this.f1730b).b()) {
            readLock.unlock();
            ((w1.l) this.f1730b).getClass();
            return;
        }
        int i10 = 2 >> 0;
        if (!((w1.l) this.f1730b).f19819f.compareAndSet(true, false)) {
            readLock.unlock();
            ((w1.l) this.f1730b).getClass();
        } else if (((w1.l) this.f1730b).f19814a.h().w().n()) {
            readLock.unlock();
            ((w1.l) this.f1730b).getClass();
        } else {
            a2.c w10 = ((w1.l) this.f1730b).f19814a.h().w();
            w10.s();
            try {
                set = a();
                w10.r();
                w10.b();
                readLock.unlock();
                ((w1.l) this.f1730b).getClass();
                if (!set.isEmpty()) {
                    w1.l lVar = (w1.l) this.f1730b;
                    synchronized (lVar.f19823j) {
                        try {
                            Iterator it = lVar.f19823j.iterator();
                            while (true) {
                                p.e eVar = (p.e) it;
                                if (!eVar.hasNext()) {
                                    break;
                                }
                                ((w1.k) ((Map.Entry) eVar.next()).getValue()).a(set);
                            }
                        } catch (Throwable th2) {
                            throw th2;
                        }
                    }
                }
            } catch (Throwable th3) {
                w10.b();
                throw th3;
            }
        }
    }

    private void d() {
        ConstraintTrackingWorker constraintTrackingWorker = (ConstraintTrackingWorker) this.f1730b;
        Object obj = constraintTrackingWorker.getInputData().f15846a.get("androidx.work.impl.workers.ConstraintTrackingWorker.ARGUMENT_CLASS_NAME");
        String str = obj instanceof String ? (String) obj : null;
        if (TextUtils.isEmpty(str)) {
            k2.o h10 = k2.o.h();
            int i10 = ConstraintTrackingWorker.f1394t;
            h10.g(new Throwable[0]);
            constraintTrackingWorker.f1398r.j(new k2.k());
            return;
        }
        ListenableWorker a10 = constraintTrackingWorker.getWorkerFactory().a(constraintTrackingWorker.getApplicationContext(), str, constraintTrackingWorker.f1395o);
        constraintTrackingWorker.f1399s = a10;
        if (a10 == null) {
            k2.o h11 = k2.o.h();
            int i11 = ConstraintTrackingWorker.f1394t;
            h11.f(new Throwable[0]);
            constraintTrackingWorker.f1398r.j(new k2.k());
            return;
        }
        t2.j i12 = l2.m.s(constraintTrackingWorker.getApplicationContext()).f16112c.u().i(constraintTrackingWorker.getId().toString());
        if (i12 == null) {
            constraintTrackingWorker.f1398r.j(new k2.k());
            return;
        }
        p2.c cVar = new p2.c(constraintTrackingWorker.getApplicationContext(), constraintTrackingWorker.getTaskExecutor(), constraintTrackingWorker);
        cVar.c(Collections.singletonList(i12));
        if (!cVar.a(constraintTrackingWorker.getId().toString())) {
            k2.o h12 = k2.o.h();
            int i13 = ConstraintTrackingWorker.f1394t;
            String.format("Constraints not met for delegate %s. Requesting retry.", str);
            h12.f(new Throwable[0]);
            constraintTrackingWorker.f1398r.j(new k2.l());
            return;
        }
        k2.o h13 = k2.o.h();
        int i14 = ConstraintTrackingWorker.f1394t;
        String.format("Constraints met for delegate %s", str);
        h13.f(new Throwable[0]);
        try {
            y6.a startWork = constraintTrackingWorker.f1399s.startWork();
            startWork.a(new n.j(constraintTrackingWorker, 11, startWork), constraintTrackingWorker.getBackgroundExecutor());
        } catch (Throwable th) {
            k2.o h14 = k2.o.h();
            int i15 = ConstraintTrackingWorker.f1394t;
            String.format("Delegated worker %s threw exception in startWork.", str);
            h14.f(th);
            synchronized (constraintTrackingWorker.f1396p) {
                try {
                    if (constraintTrackingWorker.f1397q) {
                        k2.o.h().f(new Throwable[0]);
                        constraintTrackingWorker.f1398r.j(new k2.l());
                    } else {
                        constraintTrackingWorker.f1398r.j(new k2.k());
                    }
                } catch (Throwable th2) {
                    throw th2;
                }
            }
        }
    }

    public final i9.i a() {
        i9.i iVar = new i9.i();
        Cursor m10 = ((w1.l) this.f1730b).f19814a.m(new a2.a("SELECT * FROM room_table_modification_log WHERE invalidated = 1;"), null);
        while (m10.moveToNext()) {
            try {
                boolean z10 = true | false;
                iVar.add(Integer.valueOf(m10.getInt(0)));
            } catch (Throwable th) {
                try {
                    throw th;
                } catch (Throwable th2) {
                    h6.l.t(m10, th);
                    throw th2;
                }
            }
        }
        h6.l.t(m10, null);
        h6.l.j(iVar);
        if (!iVar.f15720a.isEmpty()) {
            if (((w1.l) this.f1730b).f19821h == null) {
                throw new IllegalStateException("Required value was null.".toString());
            }
            a2.j jVar = ((w1.l) this.f1730b).f19821h;
            if (jVar == null) {
                throw new IllegalArgumentException("Required value was null.".toString());
            }
            jVar.j();
        }
        return iVar;
    }

    @Override
    public final void run() {
        View f10;
        int width;
        String str = null;
        switch (this.f1729a) {
            case 0:
                try {
                    o.x((o) this.f1730b);
                    return;
                } catch (IllegalStateException e10) {
                    if (!TextUtils.equals(e10.getMessage(), "Can not perform this action after onSaveInstanceState")) {
                        throw e10;
                    }
                    return;
                } catch (NullPointerException e11) {
                    if (!TextUtils.equals(e11.getMessage(), "Attempt to invoke virtual method 'android.os.Handler android.app.FragmentHostCallback.getHandler()' on a null object reference")) {
                        throw e11;
                    }
                    return;
                }
            case 1:
                z0 z0Var = (z0) this.f1730b;
                Window.Callback callback = z0Var.f14615d;
                Menu G = z0Var.G();
                m.o oVar = G instanceof m.o ? (m.o) G : null;
                if (oVar != null) {
                    oVar.w();
                }
                try {
                    G.clear();
                    if (callback.onCreatePanelMenu(0, G)) {
                        if (!callback.onPreparePanel(0, null, G)) {
                        }
                        if (oVar == null) {
                            oVar.v();
                            return;
                        }
                        return;
                    }
                    G.clear();
                    if (oVar == null) {
                    }
                } catch (Throwable th) {
                    if (oVar != null) {
                        oVar.v();
                    }
                    throw th;
                }
            case 2:
                ((i.h) this.f1730b).a(true);
                ((i.h) this.f1730b).invalidateSelf();
                return;
            case 3:
                a2 a2Var = (a2) this.f1730b;
                a2Var.f17315v = null;
                a2Var.drawableStateChanged();
                return;
            case 4:
                ((Toolbar) this.f1730b).u();
                return;
            case 5:
                t0.g gVar = (t0.g) this.f1730b;
                if (gVar.D) {
                    if (gVar.B) {
                        gVar.B = false;
                        t0.a aVar = gVar.f18926a;
                        aVar.getClass();
                        long currentAnimationTimeMillis = AnimationUtils.currentAnimationTimeMillis();
                        aVar.f18921e = currentAnimationTimeMillis;
                        aVar.f18923g = -1L;
                        aVar.f18922f = currentAnimationTimeMillis;
                        aVar.f18924h = 0.5f;
                    }
                    t0.a aVar2 = ((t0.g) this.f1730b).f18926a;
                    if ((aVar2.f18923g > 0 && AnimationUtils.currentAnimationTimeMillis() > aVar2.f18923g + aVar2.f18925i) || !((t0.g) this.f1730b).j()) {
                        ((t0.g) this.f1730b).D = false;
                        return;
                    }
                    t0.g gVar2 = (t0.g) this.f1730b;
                    if (gVar2.C) {
                        gVar2.C = false;
                        long uptimeMillis = SystemClock.uptimeMillis();
                        MotionEvent obtain = MotionEvent.obtain(uptimeMillis, uptimeMillis, 3, 0.0f, 0.0f, 0);
                        gVar2.f18928c.onTouchEvent(obtain);
                        obtain.recycle();
                    }
                    if (aVar2.f18922f == 0) {
                        throw new RuntimeException("Cannot compute scroll delta before calling start()");
                    }
                    long currentAnimationTimeMillis2 = AnimationUtils.currentAnimationTimeMillis();
                    float a10 = aVar2.a(currentAnimationTimeMillis2);
                    aVar2.f18922f = currentAnimationTimeMillis2;
                    t0.h.b(((t0.g) this.f1730b).H, (int) (((float) (currentAnimationTimeMillis2 - aVar2.f18922f)) * ((a10 * 4.0f) + ((-4.0f) * a10 * a10)) * aVar2.f18920d));
                    View view = ((t0.g) this.f1730b).f18928c;
                    WeakHashMap weakHashMap = v0.f17991a;
                    e0.m(view, this);
                    return;
                }
                return;
            case 6:
                ((w0.e) this.f1730b).o(0);
                return;
            case 7:
                c1.g gVar3 = (c1.g) this.f1730b;
                int i10 = gVar3.f1810e.f19770o;
                boolean z10 = gVar3.f1809d == 3;
                DrawerLayout drawerLayout = gVar3.f1812g;
                if (z10) {
                    f10 = drawerLayout.f(3);
                    width = (f10 != null ? -f10.getWidth() : 0) + i10;
                } else {
                    f10 = drawerLayout.f(5);
                    width = drawerLayout.getWidth() - i10;
                }
                if (f10 != null) {
                    if (((!z10 || f10.getLeft() >= width) && (z10 || f10.getLeft() <= width)) || drawerLayout.j(f10) != 0) {
                        return;
                    }
                    gVar3.f1810e.r(f10, width, f10.getTop());
                    ((c1.e) f10.getLayoutParams()).f1802c = true;
                    drawerLayout.invalidate();
                    int i11 = gVar3.f1809d == 3 ? 5 : 3;
                    DrawerLayout drawerLayout2 = gVar3.f1812g;
                    View f11 = drawerLayout2.f(i11);
                    if (f11 != null) {
                        drawerLayout2.c(f11, true);
                    }
                    if (drawerLayout.I) {
                        return;
                    }
                    long uptimeMillis2 = SystemClock.uptimeMillis();
                    MotionEvent obtain2 = MotionEvent.obtain(uptimeMillis2, uptimeMillis2, 3, 0.0f, 0.0f, 0);
                    int childCount = drawerLayout.getChildCount();
                    for (int i12 = 0; i12 < childCount; i12++) {
                        drawerLayout.getChildAt(i12).dispatchTouchEvent(obtain2);
                    }
                    obtain2.recycle();
                    drawerLayout.I = true;
                    return;
                }
                return;
            case 8:
                a9.i.B(this.f1730b);
                SystemClock.uptimeMillis();
                throw null;
            case 9:
                b();
                return;
            case 10:
                c();
                return;
            case 11:
                try {
                    ((Worker) this.f1730b).f1364o.j(((Worker) this.f1730b).doWork());
                    return;
                } catch (Throwable th2) {
                    ((Worker) this.f1730b).f1364o.k(th2);
                    return;
                }
            case 12:
                d();
                return;
            case 13:
                x2.w wVar = (x2.w) this.f1730b;
                wVar.f20372d.f20293a = 0;
                wVar.f20372d.f20299g = null;
                m4 m4Var = wVar.f20372d.f20298f;
                x2.h hVar = x2.x.f20383k;
                m4Var.G(m0.z(24, 6, hVar));
                wVar.a(hVar);
                return;
            case 14:
                s3.x xVar = ((o2) this.f1730b).f18820a.f18828a;
                if (xVar != null) {
                    try {
                        xVar.N(1);
                        return;
                    } catch (RemoteException unused) {
                        dk0 dk0Var = ws.f11024a;
                        return;
                    }
                }
                return;
            case 15:
                s3.x xVar2 = ((q2) this.f1730b).f18830a;
                if (xVar2 != null) {
                    try {
                        xVar2.N(1);
                        return;
                    } catch (RemoteException unused2) {
                        dk0 dk0Var2 = ws.f11024a;
                        return;
                    }
                }
                return;
            case 16:
                ek ekVar = ((r2) this.f1730b).f18835a;
                if (ekVar != null) {
                    try {
                        ekVar.q2(Collections.emptyList());
                        return;
                    } catch (RemoteException unused3) {
                        dk0 dk0Var3 = ws.f11024a;
                        return;
                    }
                }
                return;
            case 17:
                nq nqVar = (nq) this.f1730b;
                if (nqVar != null) {
                    try {
                        nqVar.N(1);
                        return;
                    } catch (RemoteException e12) {
                        ws.f("#007 Could not call remote method.", e12);
                        return;
                    }
                }
                return;
            case 18:
                ((t3.i) this.f1730b).zzc();
                return;
            case 19:
                Thread.currentThread();
                ((u3.n) this.f1730b).getClass();
                ((u3.n) this.f1730b).a();
                return;
            case 20:
                ((k0) this.f1730b).w();
                return;
            case 21:
                ((TaskCompletionSource) this.f1730b).trySetException(new IOException("TIMEOUT"));
                return;
            case 22:
                long j10 = ((q4.f) this.f1730b).f18169a.getSharedPreferences("app_set_id_storage", 0).getLong("app_set_id_last_used_time", -1L);
                long j11 = j10 != -1 ? j10 + 33696000000L : -1L;
                if (j11 == -1 || System.currentTimeMillis() <= j11) {
                    return;
                }
                Context context = ((q4.f) this.f1730b).f18169a;
                if (!context.getSharedPreferences("app_set_id_storage", 0).edit().remove("app_set_id").commit()) {
                    String valueOf = String.valueOf(context.getPackageName());
                    if (valueOf.length() != 0) {
                        "Failed to clear app set ID generated for App ".concat(valueOf);
                    }
                }
                if (context.getSharedPreferences("app_set_id_storage", 0).edit().remove("app_set_id_last_used_time").commit()) {
                    return;
                }
                String valueOf2 = String.valueOf(context.getPackageName());
                if (valueOf2.length() != 0) {
                    "Failed to clear app set ID last used time for App ".concat(valueOf2);
                    return;
                }
                return;
            case 23:
                u4.v0 v0Var = new u4.v0(4, "Web view timed out.");
                u4.k kVar = (u4.k) ((u4.l) this.f1730b).f19399i.getAndSet(null);
                if (kVar == null) {
                    return;
                }
                kVar.onConsentFormLoadFailure(v0Var.a());
                return;
            case 24:
                ((u4.o) this.f1730b).b();
                return;
            case 25:
                u4.u uVar = (u4.u) this.f1730b;
                Application application = uVar.f19438a;
                JSONObject jSONObject = new JSONObject();
                try {
                    jSONObject.put("app_name", application.getPackageManager().getApplicationLabel(application.getApplicationInfo()).toString());
                    Drawable applicationIcon = application.getPackageManager().getApplicationIcon(application.getApplicationInfo());
                    if (applicationIcon != null) {
                        Bitmap createBitmap = Bitmap.createBitmap(applicationIcon.getIntrinsicWidth(), applicationIcon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);
                        Canvas canvas = new Canvas(createBitmap);
                        applicationIcon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
                        applicationIcon.draw(canvas);
                        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                        createBitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
                        str = "data:image/png;base64,".concat(String.valueOf(Base64.encodeToString(byteArrayOutputStream.toByteArray(), 2)));
                    }
                    jSONObject.put("app_icon", str);
                    jSONObject.put("stored_infos_map", uVar.f19445q.a());
                } catch (JSONException unused4) {
                }
                uVar.f19444p.f19397g.a("UMP_configureFormWithAppAssets", jSONObject.toString());
                return;
            case 26:
                ((ConsentInformation.OnConsentInfoUpdateSuccessListener) this.f1730b).onConsentInfoUpdateSuccess();
                return;
            case 27:
                t6 t6Var = (t6) this.f1730b;
                x3.e eVar = t6Var.f2402c;
                long j12 = t6Var.f2400a;
                ((q6) eVar.f20393c).n();
                ((q6) eVar.f20393c).i().f1959m.d("Application going to the background");
                ((q6) eVar.f20393c).l().f2125r.a(true);
                q6 q6Var = (q6) eVar.f20393c;
                q6Var.n();
                q6Var.f2319d = true;
                if (!((q6) eVar.f20393c).j().C()) {
                    j3 j3Var = ((q6) eVar.f20393c).f2321f;
                    long j13 = t6Var.f2401b;
                    ((c5.n) j3Var.f6541c).a();
                    ((q6) eVar.f20393c).f2321f.e(j13, false, false);
                }
                ((la) ia.f12249b.get()).getClass();
                if (((q6) eVar.f20393c).j().y(null, c5.w.C0)) {
                    ((q6) eVar.f20393c).i().f1958l.a(Long.valueOf(j12), "Application backgrounded at: timestamp_millis");
                    return;
                } else {
                    ((q6) eVar.f20393c).q().y(j12, new Bundle(), "auto", "_ab");
                    return;
                }
            case 28:
                y4 y4Var = (y4) this.f1730b;
                g7 g7Var = y4Var.f2548l;
                y4.d(g7Var);
                g7Var.n();
                if (g7Var.t0() == 1) {
                    p5 p5Var = y4Var.f2552p;
                    y4.c(p5Var);
                    new Thread(new x4(p5Var, 3)).start();
                    return;
                }
                c4 c4Var = y4Var.f2545i;
                y4.e(c4Var);
                c4Var.f1955i.d("registerTrigger called but app not eligible");
                return;
            default:
                g5.a aVar3 = (g5.a) this.f1730b;
                synchronized (aVar3.f14361a) {
                    try {
                        if (aVar3.b()) {
                            String.valueOf(aVar3.f14370j).concat(" ** IS FORCE-RELEASED ON TIMEOUT **");
                            aVar3.d();
                            if (aVar3.b()) {
                                aVar3.f14363c = 1;
                                aVar3.e();
                                return;
                            }
                            return;
                        }
                        return;
                    } finally {
                    }
                }
        }
    }
}