导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - WidgetInstrumentation.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 WidgetInstrumentation.java JAVA 源代码文件

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


package com.wifitutu.widget.fix;

import android.app.Activity;
import android.app.Instrumentation;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import android.os.UserHandle;
import androidx.annotation.Keep;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.d6;
import lg0.e0;
import os.C1778r0;
import os.C2647f2;
import os.C2662g1;

@Keep
@Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0007\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0001¢\u0006\u0002\u0010\u0003JN\u0010\b\u001a\u0004\u0018\u00010\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\u000f\u001a\u0004\u0018\u00010\u00102\b\u0010\u0011\u001a\u0004\u0018\u00010\u00122\u0006\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0007JN\u0010\b\u001a\u0004\u0018\u00010\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\u000f\u001a\u0004\u0018\u00010\u00172\b\u0010\u0011\u001a\u0004\u0018\u00010\u00122\u0006\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u0016H\u0007JX\u0010\b\u001a\u0004\u0018\u00010\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\r2\b\u0010\u0018\u001a\u0004\u0018\u00010\u00172\b\u0010\u0011\u001a\u0004\u0018\u00010\u00122\u0006\u0010\u0013\u001a\u00020\u00142\b\u0010\u0015\u001a\u0004\u0018\u00010\u00162\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0007R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0005X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0005X\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001b"}, d2 = {"Lcom/wifitutu/widget/fix/WidgetInstrumentation;", "Landroid/app/Instrumentation;", "original", "(Landroid/app/Instrumentation;)V", "execStartActivityMethod1", "Ljava/lang/reflect/Method;", "execStartActivityMethod2", "execStartActivityMethod3", "execStartActivity", "Landroid/app/Instrumentation$ActivityResult;", "who", "Landroid/content/Context;", "contextThread", "Landroid/os/IBinder;", "token", "target", "Landroid/app/Activity;", "intent", "Landroid/content/Intent;", "requestCode", "", "options", "Landroid/os/Bundle;", "", "resultWho", "user", "Landroid/os/UserHandle;", "widget-imp_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class WidgetInstrumentation extends Instrumentation {
    public static ChangeQuickRedirect changeQuickRedirect;
    private Method execStartActivityMethod1;
    private Method execStartActivityMethod2;
    private Method execStartActivityMethod3;
    private final Instrumentation original;

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class a extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Context s;
        public final Intent t;
        public final Instrumentation.ActivityResult u;

        public a(Context context, Intent intent, Instrumentation.ActivityResult activityResult) {
            super(0);
            this.s = context;
            this.t = intent;
            this.u = activityResult;
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36767, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36766, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            C1778r0.a(C2662g1.a(C2647f2.d())).la(this.s, this.t, this.u, "execStartActivity-1");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class b extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Context s;
        public final Intent t;
        public final Instrumentation.ActivityResult u;

        public b(Context context, Intent intent, Instrumentation.ActivityResult activityResult) {
            super(0);
            this.s = context;
            this.t = intent;
            this.u = activityResult;
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36769, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36768, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            C1778r0.a(C2662g1.a(C2647f2.d())).la(this.s, this.t, this.u, "execStartActivity-2");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class c extends p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Context s;
        public final Intent t;
        public final Instrumentation.ActivityResult u;

        public c(Context context, Intent intent, Instrumentation.ActivityResult activityResult) {
            super(0);
            this.s = context;
            this.t = intent;
            this.u = activityResult;
        }

        @Override
        public e0 invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36771, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            invoke2();
            return e0.a;
        }

        public final void invoke2() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36770, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            C1778r0.a(C2662g1.a(C2647f2.d())).la(this.s, this.t, this.u, "execStartActivity-3");
        }
    }

    public WidgetInstrumentation(Instrumentation instrumentation) {
        this.original = instrumentation;
    }

    @Keep
    public final Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, Activity target, Intent intent, int requestCode, Bundle options) {
        Object[] objArr = {who, contextThread, token, target, intent, new Integer(requestCode), options};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 36763, new Class[]{Context.class, IBinder.class, IBinder.class, Activity.class, Intent.class, cls, Bundle.class}, Instrumentation.ActivityResult.class);
        if (proxy.isSupported) {
            return (Instrumentation.ActivityResult) proxy.result;
        }
        if (this.execStartActivityMethod1 == null) {
            Method declaredMethod = Instrumentation.class.getDeclaredMethod("execStartActivity", Context.class, IBinder.class, IBinder.class, Activity.class, Intent.class, cls, Bundle.class);
            declaredMethod.setAccessible(true);
            this.execStartActivityMethod1 = declaredMethod;
        }
        Method method = this.execStartActivityMethod1;
        if (method == null) {
            n.z("execStartActivityMethod1");
            method = null;
        }
        Object invoke = method.invoke(this.original, who, contextThread, token, target, intent, Integer.valueOf(requestCode), options);
        Instrumentation.ActivityResult activityResult = invoke instanceof Instrumentation.ActivityResult ? (Instrumentation.ActivityResult) invoke : null;
        d6.k(new a(who, intent, activityResult));
        return activityResult;
    }

    @Keep
    public final Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, String target, Intent intent, int requestCode, Bundle options) {
        Object[] objArr = {who, contextThread, token, target, intent, new Integer(requestCode), options};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 36764, new Class[]{Context.class, IBinder.class, IBinder.class, String.class, Intent.class, cls, Bundle.class}, Instrumentation.ActivityResult.class);
        if (proxy.isSupported) {
            return (Instrumentation.ActivityResult) proxy.result;
        }
        if (this.execStartActivityMethod2 == null) {
            Method declaredMethod = Instrumentation.class.getDeclaredMethod("execStartActivity", Context.class, IBinder.class, IBinder.class, String.class, Intent.class, cls, Bundle.class);
            declaredMethod.setAccessible(true);
            this.execStartActivityMethod2 = declaredMethod;
        }
        Method method = this.execStartActivityMethod2;
        if (method == null) {
            n.z("execStartActivityMethod2");
            method = null;
        }
        Object invoke = method.invoke(this.original, who, contextThread, token, target, intent, Integer.valueOf(requestCode), options);
        Instrumentation.ActivityResult activityResult = invoke instanceof Instrumentation.ActivityResult ? (Instrumentation.ActivityResult) invoke : null;
        d6.k(new b(who, intent, activityResult));
        return activityResult;
    }

    @Keep
    public final Instrumentation.ActivityResult execStartActivity(Context who, IBinder contextThread, IBinder token, String resultWho, Intent intent, int requestCode, Bundle options, UserHandle user) {
        Object[] objArr = {who, contextThread, token, resultWho, intent, new Integer(requestCode), options, user};
        ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
        Class cls = Integer.TYPE;
        PatchProxyResult proxy = PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 36765, new Class[]{Context.class, IBinder.class, IBinder.class, String.class, Intent.class, cls, Bundle.class, UserHandle.class}, Instrumentation.ActivityResult.class);
        if (proxy.isSupported) {
            return (Instrumentation.ActivityResult) proxy.result;
        }
        if (this.execStartActivityMethod3 == null) {
            Method declaredMethod = Instrumentation.class.getDeclaredMethod("execStartActivity", Context.class, IBinder.class, IBinder.class, String.class, Intent.class, cls, Bundle.class, UserHandle.class);
            declaredMethod.setAccessible(true);
            this.execStartActivityMethod3 = declaredMethod;
        }
        Method method = this.execStartActivityMethod3;
        if (method == null) {
            n.z("execStartActivityMethod3");
            method = null;
        }
        Object invoke = method.invoke(this.original, who, contextThread, token, resultWho, intent, Integer.valueOf(requestCode), options, user);
        Instrumentation.ActivityResult activityResult = invoke instanceof Instrumentation.ActivityResult ? (Instrumentation.ActivityResult) invoke : null;
        d6.k(new c(who, intent, activityResult));
        return activityResult;
    }
}