导航菜单

页面标题

页面副标题

Share Any v2.1.7 - DeviceSenderActivity.java 源代码

正在查看: Share Any v2.1.7 应用的 DeviceSenderActivity.java JAVA 源代码文件

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


package net.shareany.app.activity.mobile;

import a6.g;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import androidx.fragment.app.n;
import androidx.fragment.app.x;
import f.d;
import g.j;
import m5.h;
import md.a;
import md.e;
import n5.l;
import net.shareany.app.activity.ContentSharingActivity;
import net.shareany.app.activity.transfer.TransferProgressActivity;
import net.shareany.app.service.TransferService;
import org.greenrobot.eventbus.ThreadMode;
import x5.i;

public class DeviceSenderActivity extends j {
    public long A;
    public boolean B;
    public e C;
    public md.a D;
    public o5.e E;
    public String F;
    public static final String H = h.a(new byte[]{63, -45, 46, -39, 59, -12, 46, -39, 59, -59, 41, -51, 63, -39, 5, -52, 40, -60, 47, -37, 5, -62, 62}, new byte[]{90, -85});
    public static final String G = "DeviceSenderActivity";

    public class a implements a.d {
        public a() {
        }

        public void a() {
            d.d(h.a(new byte[]{-71, 3, -85, 15, -66, 3, -126, 21, -72, 8, -71, 3, -81, 57, -75, 9, -87, 21, -83, 9, -87, 57, -66, 9, -77, 8, -72, 5, -87, 57, -69, 7, -76, 10}, new byte[]{-35, 102}));
            DeviceSenderActivity.this.x(c.a);
        }

        public void b() {
            d.d(h.a(new byte[]{80, 41, 66, 37, 87, 41, 107, 63, 81, 34, 80, 41, 70, 19, 92, 35, 64, 63, 68, 35, 64, 19, 87, 35, 90, 34, 81, 47, 64, 41, 80}, new byte[]{52, 76}));
            new Thread((Runnable) new gd.b(this, 0)).start();
        }
    }

    public class b implements g.b {
        public b() {
        }

        public void a(pd.a aVar) {
            try {
                aVar.d(DeviceSenderActivity.this.F);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

    public enum c {
        a,
        b
    }

    public void onBackPressed() {
        if (q().H(2131296361) instanceof e) {
            l.b(this, new s0.b(this));
        } else {
            x(c.a);
        }
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.q*/.onCreate(bundle);
        setContentView(2131492897);
        getWindow().addFlags(128);
        ge.b.b().j(this);
        this.A = getIntent().getLongExtra(H, -1L);
        x K = q().K();
        this.C = K.a(getClassLoader(), e.class.getName());
        md.a aVar = (md.a) K.a(getClassLoader(), md.a.class.getName());
        this.D = aVar;
        aVar.f0 = new a();
        x(c.a);
        startService(new Intent((Context) this, (Class<?>) TransferService.class));
        l.a(this);
    }

    public void onDestroy() {
        getWindow().clearFlags(128);
        ge.b.b().l(this);
        stopService(new Intent((Context) this, (Class<?>) TransferService.class));
        if (Build.VERSION.SDK_INT <= 28) {
            new a6.h(this).a();
        }
        super.onDestroy();
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent(ld.d dVar) {
        d.d(h.a(new byte[]{67, 12, 81, 0, 68, 12, 120, 26, 66, 7, 67, 12, 85, 54, 83, 27, 70, 7, 84, 15, 66, 27, 120, 26, 66, 26, 84, 0, 72, 7, 120, 26, 83, 8, 85, 29}, new byte[]{39, 105}));
        h.a(new byte[]{114, 9, 114, 81, 101, 31, 71, 20, 121, 2, 107, 22, 111, 52, 124, 20, 100, 5, 42, 37, 120, 16, 100, 2, 108, 20, 120, 34, 111, 2, 121, 24, 101, 31, 89, 5, 107, 3, 126, 52, 124, 20, 100, 5, 42, 21, 111, 7, 99, 18, 111, 56, 110, 81}, new byte[]{10, 113});
        String str = dVar.a.d;
        if (!this.B || isFinishing()) {
            h.a(new byte[]{10, -91, 10, -3, 23, -81, 0, -78, 0, -3, 26, -68, 28, -71, 30, -72, 82, -119, 0, -68, 28, -82, 20, -72, 0, -114, 23, -82, 1, -76, 29, -77, 33, -87, 19, -81, 6, -104, 4, -72, 28, -87, 94, -3, 7, -82, 23, -81, 82, -85, 27, -82, 27, -65, 30, -72, 82, -76, 1, -3}, new byte[]{114, -35});
            return;
        }
        TransferService.r = dVar.a;
        TransferService.s = dVar.b;
        startService(new Intent((Context) this, (Class<?>) TransferService.class).putExtra(h.a(new byte[]{71, -65, 86, -75, 67, -109, 80, -90, 76, -76, 68, -94, 80, Byte.MIN_VALUE, 80, -88, 87, -73, 107, -93}, new byte[]{34, -57}), this.A).setAction(h.a(new byte[]{54, 24, 56, 89, 50, 18, 59, 24, 59, 21, 48, 3, 52, 89, 1, 5, 48, 21, 57, 18, 6, 31, 58, 3, 123, 22, 54, 3, 60, 24, 59, 89, 7, 50, 4, 34, 16, 36, 1, 40, 1, 37, 20, 57, 6, 49, 16, 37}, new byte[]{85, 119})));
        Intent intent = new Intent((Context) this, (Class<?>) TransferProgressActivity.class);
        intent.putExtra(h.a(new byte[]{58, 5, 43, 15, 62, 41, 45, 28, 49, 14, 57, 24, 45, 58, 45, 18, 42, 13, 22, 25}, new byte[]{95, 125}), this.A);
        intent.putExtra(h.a(new byte[]{70, -33, 87, -43, 66, -12, 75, -58, 81, -62, 115, -53, 66, -45, 69, -56, 81, -54}, new byte[]{35, -89}), ContentSharingActivity.e.b.toString());
        startActivity(intent);
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.MAIN)
    public void onMessageEvent1(u5.a aVar) {
        d.d(h.a(new byte[]{91, -49, 73, -61, 92, -49, 96, -39, 90, -60, 91, -49, 77, -11, 75, -40, 94, -60, 76, -52, 90, -40, 96, -51, 77, -59, 74, -38, 96, -55, 77, -49, 94, -34, 90, -50}, new byte[]{63, -86}));
        h.a(new byte[]{-123, 32, -123, 120, -110, 54, -80, 61, -114, 43, -100, 63, -104, 29, -117, 61, -109, 44, -52, 120, -87, 42, -100, 54, -114, 62, -104, 42, -70, 42, -110, 45, -115, 27, -113, 61, -100, 44, -104, 60, -72, 46, -104, 54, -119, 120}, new byte[]{-3, 88});
        aVar.a.toString();
        h.a(new byte[]{-113, -103}, new byte[]{-93, -71});
        if (aVar.a == i.b.b) {
            startService(new Intent((Context) this, (Class<?>) TransferService.class).putExtra(h.a(new byte[]{109, 80, 124, 90, 105, 124, 122, 73, 102, 91, 110, 77, 122, 111, 122, 71, 125, 88, 65, 76}, new byte[]{8, 40}), aVar.b).setAction(h.a(new byte[]{-110, -47, -100, -112, -106, -37, -97, -47, -97, -36, -108, -54, -112, -112, -91, -52, -108, -36, -99, -37, -94, -42, -98, -54, -33, -33, -110, -54, -104, -47, -97, -112, -93, -5, -96, -21, -76, -19, -91, -31, -91, -20, -80, -16, -94, -8, -76, -20}, new byte[]{-15, -66})));
        }
    }

    @org.greenrobot.eventbus.a(threadMode = ThreadMode.BACKGROUND)
    public void onMessageEvent2(ld.c cVar) {
        d.d(h.a(new byte[]{-67, -33, -81, -45, -70, -33, -122, -55, -68, -44, -67, -33, -85, -27, -83, -56, -72, -44, -86, -36, -68, -56, -122, -55, -68, -55, -86, -45, -74, -44, -122, -33, -73, -34}, new byte[]{-39, -70}));
        h.a(new byte[]{82, 59, 82, 99, 69, 45, 103, 38, 89, 48, 75, 36, 79, 6, 92, 38, 68, 55, 24, 99, 126, 49, 75, 45, 89, 37, 79, 49, 121, 38, 89, 48, 67, 44, 68, 6, 68, 39, 111, 53, 79, 45, 94}, new byte[]{42, 67});
        if (cVar.a) {
            g.a((r5.c) null, true, new b());
        }
        finish();
    }

    public void onPause() {
        this.B = false;
        super/*androidx.fragment.app.q*/.onPause();
    }

    public void onResume() {
        super/*androidx.fragment.app.q*/.onResume();
        this.B = true;
    }

    public void x(c cVar) {
        if (q().D) {
            return;
        }
        n H2 = q().H(2131296361);
        int ordinal = cVar.ordinal();
        n nVar = ordinal != 0 ? ordinal != 1 ? null : this.D : this.C;
        if (H2 == null || nVar != H2) {
            androidx.fragment.app.a aVar = new androidx.fragment.app.a(q());
            if (H2 != null) {
                aVar.o(H2);
            }
            aVar.e(2131296361, nVar, (String) null, 1);
            aVar.h();
        }
    }
}