导航菜单

页面标题

页面副标题

Uptodown App Store v6.80 - MyAppUpdatedReceiver.java 源代码

正在查看: Uptodown App Store v6.80 应用的 MyAppUpdatedReceiver.java JAVA 源代码文件

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


package com.uptodown.receivers;

import N1.k;
import R2.n;
import R2.s;
import V2.d;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.mbridge.msdk.MBridgeConstans;
import com.uptodown.activities.preferences.a;
import d3.p;
import g2.C0965p;
import g2.P;
import kotlin.coroutines.jvm.internal.l;
import kotlin.jvm.internal.m;
import o3.E0;
import o3.J;
import o3.K;
import o3.L;
import o3.Y;
import o3.g;
import u2.F;
import u2.v;
import u2.z;

public final class MyAppUpdatedReceiver extends BroadcastReceiver {

    static final class a extends l implements p {
        int a;
        final Context b;
        final BroadcastReceiver.PendingResult c;

        static final class C0194a extends l implements p {
            int a;
            final BroadcastReceiver.PendingResult b;

            C0194a(BroadcastReceiver.PendingResult pendingResult, d dVar) {
                super(2, dVar);
                this.b = pendingResult;
            }

            @Override
            public final d create(Object obj, d dVar) {
                return new C0194a(this.b, dVar);
            }

            @Override
            public final Object invokeSuspend(Object obj) {
                W2.b.c();
                if (this.a != 0) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
                this.b.finish();
                return s.a;
            }

            @Override
            public final Object invoke(J j, d dVar) {
                return ((C0194a) create(j, dVar)).invokeSuspend(s.a);
            }
        }

        a(Context context, BroadcastReceiver.PendingResult pendingResult, d dVar) {
            super(2, dVar);
            this.b = context;
            this.c = pendingResult;
        }

        @Override
        public final d create(Object obj, d dVar) {
            return new a(this.b, this.c, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            C0965p b;
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                n.b(obj);
                String packageName = this.b.getPackageName();
                v a = v.v.a(this.b);
                a.a();
                m.b(packageName);
                P C02 = a.C0(packageName);
                if (C02 != null && (b = C02.b(this.b)) != null) {
                    b.g();
                    a.P(packageName);
                    a.x(b);
                }
                a.u(packageName);
                a.r1(0);
                a.i();
                Bundle bundle = new Bundle();
                bundle.putString("packagename", this.b.getPackageName());
                bundle.putString("type", "success");
                bundle.putInt("update", 1);
                new z(this.b).d("install", bundle);
                E0 c4 = Y.c();
                C0194a c0194a = new C0194a(this.c, null);
                this.a = 1;
                if (g.g(c4, c0194a, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
            }
            return s.a;
        }

        @Override
        public final Object invoke(J j, d dVar) {
            return ((a) create(j, dVar)).invokeSuspend(s.a);
        }
    }

    static final class b extends l implements p {
        int a;
        final Context c;
        final BroadcastReceiver.PendingResult d;

        b(Context context, BroadcastReceiver.PendingResult pendingResult, d dVar) {
            super(2, dVar);
            this.c = context;
            this.d = pendingResult;
        }

        @Override
        public final d create(Object obj, d dVar) {
            return MyAppUpdatedReceiver.this.new b(this.c, this.d, dVar);
        }

        @Override
        public final Object invokeSuspend(Object obj) {
            Object c = W2.b.c();
            int i = this.a;
            if (i == 0) {
                n.b(obj);
                MyAppUpdatedReceiver myAppUpdatedReceiver = MyAppUpdatedReceiver.this;
                Context context = this.c;
                BroadcastReceiver.PendingResult pendingResult = this.d;
                m.b(pendingResult);
                this.a = 1;
                if (myAppUpdatedReceiver.b(context, pendingResult, this) == c) {
                    return c;
                }
            } else {
                if (i != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                n.b(obj);
            }
            return s.a;
        }

        @Override
        public final Object invoke(J j, d dVar) {
            return ((b) create(j, dVar)).invokeSuspend(s.a);
        }
    }

    public final Object b(Context context, BroadcastReceiver.PendingResult pendingResult, d dVar) {
        Object g = g.g(Y.b(), new a(context, pendingResult, null), dVar);
        return g == W2.b.c() ? g : s.a;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        m.e(context, "context");
        m.e(intent, "intent");
        Context a4 = k.g.a(context);
        if (m.a(intent.getAction(), "android.intent.action.MY_PACKAGE_REPLACED")) {
            a.C0191a c0191a = com.uptodown.activities.preferences.a.a;
            c0191a.t0(context, null);
            c0191a.I0(a4, "0");
            c0191a.X0(a4, false);
            c0191a.c1(a4, false);
            c0191a.h1(a4, null);
            F.a.g(a4);
            String j = c0191a.j(a4);
            if (!m3.m.p(j, "0", true) && !m3.m.p(j, "1", true) && !m3.m.p(j, MBridgeConstans.API_REUQEST_CATEGORY_APP, true)) {
                c0191a.x0(a4, MBridgeConstans.API_REUQEST_CATEGORY_APP);
            }
            g.d(K.a(Y.b()), (V2.g) null, (L) null, new b(a4, goAsync(), null), 3, (Object) null);
        }
    }
}