导航菜单

页面标题

页面副标题

JADUGAR VIP LOADER v3.0 - Y.java 源代码

正在查看: JADUGAR VIP LOADER v3.0 应用的 Y.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package k0;

import android.app.ActivityManager;
import android.app.IServiceConnection;
import android.content.ComponentName;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.content.pm.ComponentInfo;
import android.content.pm.ProviderInfo;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.os.IBinder;
import android.os.Process;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

public final class Y extends O {
    public static final Y b;

    public static final ConcurrentHashMap f3114c;

    public static final Q f3115d;

    public static final ConcurrentHashMap f3116e;

    static {
        Y y2 = new Y();
        y2.attachInterface(y2, "top.bienvenido.mundo.IMundoActivityManagerService");
        b = y2;
        f3114c = new ConcurrentHashMap();
        f3115d = new Q();
        f3116e = new ConcurrentHashMap();
    }

    public static ServiceInfo N0(Intent intent) {
        ResolveInfo resolveInfo;
        ResolveInfo resolveInfo2 = (ResolveInfo) g1.d.G(BinderC0364s.b.P(intent, null, 0L));
        if (resolveInfo2 != null) {
            return resolveInfo2.serviceInfo;
        }
        try {
            resolveInfo = AbstractC0321k3.f3200a.getPackageManager().resolveService(intent, 512);
        } catch (Exception unused) {
            resolveInfo = null;
        }
        if (resolveInfo != null) {
            ServiceInfo serviceInfo = resolveInfo.serviceInfo;
            if (BinderC0364s.N0(serviceInfo.packageName)) {
                return serviceInfo;
            }
        }
        return null;
    }

    public static final void O0(IBinder iBinder, Intent intent, IBinder iBinder2, IBinder iBinder3) {
        try {
            ((BinderC0276d0) iBinder).f3152c = new f1.a(intent, iBinder2);
            IServiceConnection asInterface = IServiceConnection.Stub.asInterface(iBinder3);
            if (AbstractC0381u4.f3259e) {
                ServiceInfo serviceInfo = ((BinderC0276d0) iBinder).b;
                asInterface.connected(new ComponentName(((ComponentInfo) serviceInfo).packageName, ((ComponentInfo) serviceInfo).name), iBinder2, false);
            } else {
                ServiceInfo serviceInfo2 = ((BinderC0276d0) iBinder).b;
                asInterface.connected(new ComponentName(((ComponentInfo) serviceInfo2).packageName, ((ComponentInfo) serviceInfo2).name), iBinder2);
            }
        } catch (Throwable unused) {
        }
    }

    public static final void P0(IBinder iBinder, BinderC0276d0 binderC0276d0, f1.a aVar) {
        try {
            IServiceConnection asInterface = IServiceConnection.Stub.asInterface(iBinder);
            ServiceInfo serviceInfo = binderC0276d0.b;
            ComponentName componentName = new ComponentName(((ComponentInfo) serviceInfo).packageName, ((ComponentInfo) serviceInfo).name);
            if (AbstractC0381u4.f3259e) {
                asInterface.connected(componentName, (IBinder) aVar.g, false);
            } else {
                asInterface.connected(componentName, (IBinder) aVar.g);
            }
        } catch (Throwable unused) {
        }
    }

    @Override
    public final boolean G(ComponentName componentName, IBinder iBinder, int i2) {
        try {
            if (!(iBinder instanceof BinderC0276d0)) {
                return false;
            }
            if ((componentName == null || o1.h.a(componentName.getClassName(), ((BinderC0276d0) iBinder).b.name)) && ((i2 < 0 || ((BinderC0276d0) iBinder).f3153d == i2) && ((BinderC0276d0) iBinder).f.isEmpty())) {
                E4.b.execute(new X(iBinder, 0));
                return true;
            }
            return true;
        } catch (Exception unused) {
            return false;
        }
    }

    @Override
    public final void H(int i2, IBinder iBinder, IntentFilter intentFilter) {
        Object w2;
        try {
            C0290f2 c0290f2 = S.f3061a;
            synchronized (c0290f2) {
                w2 = c0290f2.f3170t.w(i2);
            }
            C0388w c0388w = (C0388w) w2;
            if (c0388w != null && ((K3) c0388w.f3298m.g).f3024v < 100) {
                ConcurrentHashMap concurrentHashMap = f3116e;
                W1 w12 = (W1) concurrentHashMap.get(iBinder);
                if (w12 == null) {
                    w12 = new W1(iBinder, c0388w);
                    concurrentHashMap.put(iBinder, w12);
                    ((K3) c0388w.f3298m.g).v(iBinder.hashCode(), iBinder);
                }
                if (w12.a(intentFilter)) {
                    return;
                }
                V4 v4 = new V4(intentFilter, w12, c0388w.f3289a);
                w12.add(v4);
                f3115d.f(v4);
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public final void I(String str, String str2) {
        try {
            C0290f2 c0290f2 = S.f3061a;
            c0290f2.getClass();
            C0260a2 c0260a2 = new C0260a2(c0290f2);
            while (c0260a2.hasNext()) {
                C0388w c0388w = (C0388w) c0260a2.next();
                if (str != null && str.length() != 0 && !o1.h.a(c0388w.f3289a, str)) {
                }
                int i2 = c0388w.f3294i;
                if (i2 > 0) {
                    Process.killProcess(i2);
                } else {
                    P3 p3 = c0388w.f3293h;
                    if (p3 != null) {
                        p3.v();
                    }
                }
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public final boolean L0(IBinder iBinder) {
        try {
            BinderC0276d0 binderC0276d0 = (BinderC0276d0) f3114c.remove(iBinder);
            if (binderC0276d0 == null) {
                return false;
            }
            E4.b.execute(new RunnableC0358q4(binderC0276d0, 3, iBinder));
            return true;
        } catch (Exception unused) {
            return false;
        }
    }

    public final void Q0(C0388w c0388w) {
        try {
            Iterator it = c0388w.f3296k.iterator();
            while (true) {
                E3 e3 = (E3) it;
                if (!e3.hasNext()) {
                    break;
                }
                f3114c.remove((IBinder) e3.next());
            }
            for (IBinder iBinder : (IBinder[]) c0388w.f3298m.toArray(new IBinder[0])) {
                p(iBinder);
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public final ComponentName R(Intent intent, String str) {
        try {
            ServiceInfo N02 = N0(intent);
            if (N02 == null) {
                return null;
            }
            C0290f2 c0290f2 = S.f3061a;
            C0388w c2 = S.c(N02.packageName, N02.processName, str);
            if (c2 == null) {
                return null;
            }
            E4.b.execute(new androidx.emoji2.text.j(c2, N02, intent, 7));
            return new ComponentName(((ComponentInfo) N02).packageName, ((ComponentInfo) N02).name);
        } catch (Exception unused) {
            return null;
        }
    }

    @Override
    public final IBinder Z(String str, String str2, ProviderInfo[] providerInfoArr, String[] strArr, int i2) {
        ProviderInfo S2;
        Object w2;
        IBinder J02;
        try {
            S2 = BinderC0364s.b.S(str, 0L);
        } catch (Exception unused) {
        }
        if (S2 == null) {
            try {
                S2 = AbstractC0321k3.f3200a.getPackageManager().resolveContentProvider(str, 512);
            } catch (Exception unused2) {
                S2 = null;
            }
            if (S2 == null || !BinderC0364s.N0(S2.packageName)) {
                S2 = null;
            }
            if (S2 == null) {
                return null;
            }
        }
        C0290f2 c0290f2 = S.f3061a;
        synchronized (c0290f2) {
            w2 = c0290f2.f3170t.w(i2);
        }
        C0388w c0388w = (C0388w) w2;
        if (c0388w != null && o1.h.a(c0388w.f3289a, S2.packageName) && (o1.h.a(c0388w.b, S2.processName) || S2.multiprocess)) {
            providerInfoArr[0] = S2;
        } else {
            C0388w c2 = S.c(S2.packageName, S2.processName, str2);
            if (c2 != null) {
                strArr[1] = S2.authority;
                P3 p3 = c2.f3293h;
                if (p3 != null && (J02 = p3.J0(str)) != null) {
                    strArr[0] = AbstractC0321k3.b + ".provider.stub" + c2.f3292e;
                    return J02;
                }
            }
        }
        return null;
    }

    @Override
    public final int a(Intent intent, String str, int i2) {
        List<ResolveInfo> list;
        try {
            if ((intent.getFlags() & 1073741824) != 1073741824) {
                List C02 = BinderC0364s.b.C0(intent, null, 0L);
                try {
                    list = AbstractC0321k3.f3200a.getPackageManager().queryBroadcastReceivers(intent, 0);
                } catch (Exception unused) {
                    list = null;
                }
                if (list != null) {
                    C02.addAll(list);
                }
                if (!C02.isEmpty()) {
                    Iterator it = C02.iterator();
                    while (it.hasNext()) {
                        ActivityInfo activityInfo = ((ResolveInfo) it.next()).activityInfo;
                        if (str != null && str.length() != 0) {
                            C0290f2 c0290f2 = S.f3061a;
                            C0388w a2 = S.a(activityInfo.packageName, activityInfo.processName, str);
                            if (a2 != null) {
                                String str2 = activityInfo.name;
                                try {
                                    P3 p3 = a2.f3293h;
                                    if (p3 != null) {
                                        p3.X(intent, null, str2);
                                    }
                                } catch (Exception unused2) {
                                }
                            }
                        }
                        C0290f2 c0290f22 = S.f3061a;
                        c0290f22.getClass();
                        C0260a2 c0260a2 = new C0260a2(c0290f22);
                        while (c0260a2.hasNext()) {
                            C0388w c0388w = (C0388w) c0260a2.next();
                            if (o1.h.a(c0388w.f3289a, activityInfo.packageName) && o1.h.a(c0388w.b, activityInfo.processName)) {
                                String str3 = activityInfo.name;
                                try {
                                    P3 p32 = c0388w.f3293h;
                                    if (p32 != null) {
                                        p32.X(intent, null, str3);
                                    }
                                } catch (Exception unused3) {
                                }
                            }
                        }
                    }
                }
                if (intent.getComponent() != null) {
                    return 0;
                }
            }
            ArrayList d2 = f3115d.d(intent, null, false, 0);
            if (!d2.isEmpty()) {
                int size = d2.size();
                int i3 = 0;
                while (i3 < size) {
                    Object obj = d2.get(i3);
                    i3++;
                    V4 v4 = (V4) obj;
                    if (str != null && str.length() != 0 && !o1.h.a(v4.f.g.f3290c, str)) {
                    }
                    W1 w12 = v4.f;
                    C0388w c0388w2 = w12.g;
                    IBinder iBinder = w12.f;
                    P3 p33 = c0388w2.f3293h;
                    if (p33 != null) {
                        p33.X(intent, iBinder, null);
                    }
                }
            }
        } catch (Exception unused4) {
        }
        return 0;
    }

    @Override
    public final boolean b(String str) {
        BinderC0319k1.b.getClass();
        return BinderC0319k1.N0(str, "0");
    }

    @Override
    public final IBinder g(ComponentName componentName, String str) {
        try {
            BinderC0364s.b.getClass();
            ServiceInfo serviceInfo = (ServiceInfo) BinderC0364s.T0(componentName);
            if (serviceInfo == null) {
                try {
                    serviceInfo = AbstractC0321k3.f3200a.getPackageManager().getServiceInfo(componentName, 512);
                } catch (Exception unused) {
                    serviceInfo = null;
                }
                if (serviceInfo == null) {
                    return null;
                }
            }
            C0290f2 c0290f2 = S.f3061a;
            C0388w a2 = S.a(serviceInfo.packageName, serviceInfo.processName, str);
            if (a2 == null) {
                return null;
            }
            return (IBinder) a2.f3297l.w(serviceInfo.name.hashCode());
        } catch (Exception unused2) {
            return null;
        }
    }

    @Override
    public final int k0(Intent intent, String str) {
        BinderC0276d0 binderC0276d0;
        try {
            ServiceInfo N02 = N0(intent);
            if (N02 == null) {
                return -1;
            }
            C0290f2 c0290f2 = S.f3061a;
            C0388w a2 = S.a(N02.packageName, N02.processName, str);
            if (a2 != null && (binderC0276d0 = (BinderC0276d0) a2.f3297l.w(N02.name.hashCode())) != null) {
                binderC0276d0.f3153d = 0;
                if (binderC0276d0.f.isEmpty()) {
                    E4.b.execute(new androidx.emoji2.text.j(a2, binderC0276d0, N02, 4));
                    return 1;
                }
            }
            return 0;
        } catch (Exception unused) {
            return -1;
        }
    }

    @Override
    public final void p(IBinder iBinder) {
        try {
            W1 w12 = (W1) f3116e.remove(iBinder);
            if (w12 == null) {
                return;
            }
            ((K3) w12.g.f3298m.g).t(iBinder.hashCode());
            int size = w12.size();
            int i2 = 0;
            while (i2 < size) {
                Object obj = w12.get(i2);
                i2++;
                V4 v4 = (V4) obj;
                Q q2 = f3115d;
                synchronized (q2) {
                    try {
                        Iterator<String> schemesIterator = v4.schemesIterator();
                        K3 k3 = q2.f3108d;
                        int i3 = 0;
                        if (schemesIterator != null) {
                            while (schemesIterator.hasNext()) {
                                i3++;
                                X1.g(k3, schemesIterator.next(), v4);
                            }
                        }
                        int b2 = q2.b(v4);
                        if (i3 == 0 && b2 == 0) {
                            Iterator<String> actionsIterator = v4.actionsIterator();
                            K3 k32 = q2.f3109e;
                            if (actionsIterator != null) {
                                while (actionsIterator.hasNext()) {
                                    X1.g(k32, actionsIterator.next(), v4);
                                }
                            }
                        }
                        if (b2 != 0) {
                            Iterator<String> actionsIterator2 = v4.actionsIterator();
                            K3 k33 = q2.f;
                            if (actionsIterator2 != null) {
                                while (actionsIterator2.hasNext()) {
                                    X1.g(k33, actionsIterator2.next(), v4);
                                }
                            }
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public final ArrayList q(int i2) {
        Object w2;
        try {
            C0290f2 c0290f2 = S.f3061a;
            synchronized (c0290f2) {
                w2 = c0290f2.f3170t.w(i2);
            }
            C0388w c0388w = (C0388w) w2;
            ArrayList arrayList = new ArrayList();
            C0260a2 c0260a2 = new C0260a2(c0290f2);
            while (c0260a2.hasNext()) {
                C0388w c0388w2 = (C0388w) c0260a2.next();
                if (c0388w == null || (o1.h.a(c0388w.f3290c, c0388w2.f3290c) && o1.h.a(c0388w.f3289a, c0388w2.f3289a))) {
                    ActivityManager.RunningAppProcessInfo runningAppProcessInfo = new ActivityManager.RunningAppProcessInfo();
                    runningAppProcessInfo.processName = c0388w2.b;
                    runningAppProcessInfo.pid = c0388w2.f3294i;
                    runningAppProcessInfo.pkgList = new String[]{c0388w2.f3289a};
                    runningAppProcessInfo.uid = AbstractC0321k3.f3201c;
                    runningAppProcessInfo.importance = 100;
                    arrayList.add(runningAppProcessInfo);
                }
            }
            return arrayList;
        } catch (Exception unused) {
            return new ArrayList(0);
        }
    }

    @Override
    public final boolean q0(IBinder iBinder, Intent intent, IBinder iBinder2) {
        IBinder iBinder3;
        try {
            if ((iBinder instanceof BinderC0276d0) && (iBinder3 = (IBinder) ((BinderC0276d0) iBinder).f3154e.remove(new Intent.FilterComparison(intent))) != null) {
                E4.b.execute(new W(iBinder, intent, iBinder2, iBinder3));
                return true;
            }
            return false;
        } catch (Throwable unused) {
            return false;
        }
    }

    @Override
    public final int s(Intent intent, IBinder iBinder, String str) {
        try {
            ServiceInfo N02 = N0(intent);
            if (N02 == null) {
                return -1;
            }
            C0290f2 c0290f2 = S.f3061a;
            C0388w c2 = S.c(N02.packageName, N02.processName, str);
            if (c2 != null) {
                K3 k3 = c2.f3297l;
                BinderC0276d0 binderC0276d0 = (BinderC0276d0) k3.w(N02.name.hashCode());
                if (binderC0276d0 == null) {
                    binderC0276d0 = new BinderC0276d0(c2, N02);
                    k3.v(N02.name.hashCode(), binderC0276d0);
                    P3 p3 = c2.f3293h;
                    if (p3 != null) {
                        p3.B(N02.name, binderC0276d0, 0, null);
                    }
                }
                C0326l2 c0326l2 = binderC0276d0.f;
                ConcurrentHashMap concurrentHashMap = f3114c;
                if (!concurrentHashMap.containsKey(iBinder)) {
                    int i2 = ((K3) c0326l2.g).f3024v;
                    if (i2 <= 3000) {
                        ((K3) c2.f3296k.g).v(iBinder.hashCode(), iBinder);
                        ((K3) c0326l2.g).v(iBinder.hashCode(), iBinder);
                        concurrentHashMap.put(iBinder, binderC0276d0);
                        if (i2 > 500) {
                            E4.b.execute(new androidx.emoji2.text.j(binderC0276d0, c2, iBinder, 5));
                        }
                    }
                }
                f1.a aVar = binderC0276d0.f3152c;
                if (aVar == null || !((Intent) aVar.f).filterEquals(intent)) {
                    E4.b.execute(new W(binderC0276d0, intent, iBinder, c2));
                    return 1;
                }
                E4.b.execute(new androidx.emoji2.text.j(iBinder, binderC0276d0, aVar, 6));
                return 1;
            }
            return 0;
        } catch (Exception unused) {
            return -1;
        }
    }
}