导航菜单

页面标题

页面副标题

VivaMoneda v1.4 - Wolfe.java 源代码

正在查看: VivaMoneda v1.4 应用的 Wolfe.java JAVA 源代码文件

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


package com.moneda.cloud.usgbbi.onlooker;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.graphics.YuvImage;
import android.hardware.Camera;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import b6.q;
import com.gyf.immersionbar.m;
import com.moneda.cloud.iotdqkynjet.k;
import com.moneda.cloud.iqplrcjvl.pefbor.mstt.yugoslavian.Uprightness;
import com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.Cajoling;
import com.moneda.cloud.iqplrcjvl.xuqyslbdid.xfre.millennium.kotwp.Brackets;
import com.vivamoneda.mx.R;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import me.jessyan.autosize.internal.CancelAdapt;

public class Wolfe extends Uprightness implements View.OnClickListener, CancelAdapt {
    public Bitmap D;
    public Brackets E;
    public View F;
    public View G;
    public View H;
    public View I;
    public String J;
    public ImageView K;
    public boolean L = false;

    public class a implements View.OnClickListener {
        public a() {
        }

        @Override
        public void onClick(View view) {
            Wolfe.this.onBackPressed();
        }
    }

    public class b implements View.OnClickListener {
        public b() {
        }

        @Override
        public void onClick(View view) {
            Wolfe.this.w0();
        }
    }

    public class c implements Camera.PreviewCallback {

        public class a implements Runnable {

            public final Camera.Size f8266c;

            public final byte[] f8267e;

            public a(Camera.Size size, byte[] bArr) {
                this.f8266c = size;
                this.f8267e = bArr;
            }

            @Override
            public void run() {
                Camera.Size size = this.f8266c;
                Wolfe.this.l0(Wolfe.this.m0(this.f8267e, size.width, size.height));
            }
        }

        public c() {
        }

        @Override
        public void onPreviewFrame(byte[] bArr, Camera camera) {
            Camera.Size previewSize = camera.getParameters().getPreviewSize();
            camera.stopPreview();
            new Thread(new a(previewSize, bArr)).start();
        }
    }

    public class d implements Runnable {
        public d() {
        }

        @Override
        public void run() {
            Wolfe.this.t0();
        }
    }

    @Override
    public void V() {
        ((TextView) findViewById(R.id.dad)).setText(k.a("Lm9jcmFtIGxlZCBvcnRuZWQgbsOzaWNhY2lmaXRuZWRpIHVzIGVkIG90b2YgYW51IGVtb1Q="));
        m.p0(this).g0(R.color.exterminates).j0(findViewById(R.id.htcgmcxo)).E();
        this.E = (Brackets) findViewById(R.id.yellowish);
        this.F = findViewById(R.id.chore);
        try {
            x0(Cajoling.b());
        } catch (Exception unused) {
        }
        try {
            p0(null);
        } catch (Exception unused2) {
        }
        this.G = findViewById(R.id.ikrendwrzqk);
        this.H = findViewById(R.id.yelp);
        this.I = findViewById(R.id.mi);
        this.K = (ImageView) findViewById(R.id.hhygezq);
        o0();
    }

    @Override
    public int X() {
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        try {
            p0(null);
            return R.layout.waiters;
        } catch (Exception unused2) {
            return R.layout.waiters;
        }
    }

    @Override
    public void Y() {
        Intent intent = getIntent();
        try {
            p0(null);
        } catch (Exception unused) {
        }
        try {
            x0(Cajoling.b());
        } catch (Exception unused2) {
        }
        if (intent != null) {
            this.J = intent.getStringExtra("ZXB5dF9kaV9odHVhX2VweXRfeGlmZXJw");
        }
    }

    public final void j0() {
        Camera camera = this.E.getCamera();
        if (camera == null) {
            return;
        }
        try {
            p0(null);
        } catch (Exception unused) {
        }
        Camera.Parameters parameters = camera.getParameters();
        if (parameters != null && "torch".equals(parameters.getFlashMode())) {
            parameters.setFlashMode("off");
            camera.setParameters(parameters);
            this.K.setImageResource(R.drawable.image_24_03);
        }
    }

    public final void k0() {
        String str = n0() + File.separator + System.currentTimeMillis() + ".jpg";
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        try {
            x0(Cajoling.b());
        } catch (Exception unused2) {
        }
        if (q.f(this.D, new File(str), Bitmap.CompressFormat.JPEG, false)) {
            Intent intent = new Intent();
            intent.putExtra("aHRhcF9lZ2FtaV95ZWs=", str);
            intent.putExtra("ZXB5dF9kaV9odHVhX2VweXRfeGlmZXJw", this.J);
            setResult(-1, intent);
            finish();
        }
    }

    public final void l0(Bitmap bitmap) {
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        float left = this.I.getLeft();
        float top = this.I.getTop();
        float width = left / this.E.getWidth();
        float height = top / this.E.getHeight();
        this.D = Bitmap.createBitmap(bitmap, (int) (bitmap.getWidth() * width), (int) (bitmap.getHeight() * height), (int) (((this.I.getRight() / this.E.getWidth()) - width) * bitmap.getWidth()), (int) (((this.I.getBottom() / this.E.getBottom()) - height) * bitmap.getHeight()));
        runOnUiThread(new d());
    }

    public Bitmap m0(byte[] bArr, int i9, int i10) {
        YuvImage yuvImage = new YuvImage(bArr, 17, i9, i10, null);
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(bArr.length);
        if (!yuvImage.compressToJpeg(new Rect(0, 0, i9, i10), 100, byteArrayOutputStream)) {
            return null;
        }
        byte[] byteArray = byteArrayOutputStream.toByteArray();
        return BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length);
    }

    public String n0() {
        File cacheDir = getCacheDir();
        File file = new File(getCacheDir().getPath() + "/auth");
        try {
            x0(Cajoling.b());
        } catch (Exception unused) {
        }
        if (!file.exists()) {
            file.mkdir();
        }
        return cacheDir.getAbsolutePath();
    }

    public final void o0() {
        this.E.setOnClickListener(this);
        this.F.setOnClickListener(this);
        this.G.setOnClickListener(this);
        this.H.setOnClickListener(this);
        findViewById(R.id.naindwko).setOnClickListener(new a());
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        findViewById(R.id.jhwubgrqkfc).setOnClickListener(new b());
    }

    @Override
    public void onClick(View view) {
        try {
            p0(null);
        } catch (Exception unused) {
        }
        int id = view.getId();
        if (id == R.id.yellowish) {
            this.E.c();
            return;
        }
        if (id == R.id.chore) {
            v0();
            return;
        }
        if (id == R.id.yelp) {
            k0();
        } else if (id == R.id.ikrendwrzqk) {
            this.E.setEnabled(true);
            this.E.a();
            this.E.l();
            u0();
        }
    }

    @Override
    public void onConfigurationChanged(@NonNull Configuration configuration) {
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        super.onConfigurationChanged(configuration);
    }

    @Override
    public void onStart() {
        super.onStart();
        try {
            s0(null);
        } catch (Exception unused) {
        }
        Brackets brackets = this.E;
        if (brackets != null) {
            brackets.i();
        }
    }

    @Override
    public void onStop() {
        super.onStop();
        Brackets brackets = this.E;
        if (brackets != null) {
            brackets.j();
        }
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        j0();
    }

    public void p0(Activity activity) {
        InputMethodManager inputMethodManager;
        if (activity == null || (inputMethodManager = (InputMethodManager) activity.getSystemService("input_method")) == null) {
            return;
        }
        View currentFocus = activity.getCurrentFocus();
        if (currentFocus == null) {
            currentFocus = new View(activity);
        }
        inputMethodManager.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0);
    }

    public boolean q0(Context context) {
        return context != null && context.getResources().getConfiguration().orientation == 2;
    }

    public final void r0() {
        Camera.Parameters parameters;
        Camera camera = this.E.getCamera();
        try {
            x0(Cajoling.b());
        } catch (Exception unused) {
        }
        if (camera == null || (parameters = camera.getParameters()) == null || !"off".equals(parameters.getFlashMode())) {
            return;
        }
        parameters.setFlashMode("torch");
        camera.setParameters(parameters);
        this.K.setImageResource(R.drawable.image_25_02);
    }

    public final String s0(InputStream inputStream) {
        StringBuilder sb = new StringBuilder();
        BufferedReader bufferedReader = null;
        try {
            try {
                try {
                    BufferedReader bufferedReader2 = new BufferedReader(new InputStreamReader(inputStream));
                    while (true) {
                        try {
                            String readLine = bufferedReader2.readLine();
                            if (readLine == null) {
                                break;
                            }
                            sb.append(readLine);
                        } catch (IOException e9) {
                            e = e9;
                            bufferedReader = bufferedReader2;
                            e.printStackTrace();
                            if (bufferedReader != null) {
                                bufferedReader.close();
                            }
                            return sb.toString();
                        } catch (Throwable th) {
                            th = th;
                            bufferedReader = bufferedReader2;
                            if (bufferedReader != null) {
                                try {
                                    bufferedReader.close();
                                } catch (IOException e10) {
                                    e10.printStackTrace();
                                }
                            }
                            throw th;
                        }
                    }
                    bufferedReader2.close();
                } catch (Throwable th2) {
                    th = th2;
                }
            } catch (IOException e11) {
                e = e11;
            }
        } catch (IOException e12) {
            e12.printStackTrace();
        }
        return sb.toString();
    }

    public final void t0() {
        this.E.setVisibility(0);
        this.F.setVisibility(8);
        this.G.setVisibility(0);
        try {
            x0(Cajoling.b());
        } catch (Exception unused) {
        }
        this.H.setVisibility(0);
    }

    public final void u0() {
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        this.G.setVisibility(8);
        this.H.setVisibility(8);
        try {
            q0(Cajoling.b());
        } catch (Exception unused2) {
        }
        this.E.setVisibility(0);
        this.E.c();
        this.F.setVisibility(0);
    }

    public final void v0() {
        this.E.setEnabled(false);
        try {
            s0(null);
        } catch (Exception unused) {
        }
        Camera a9 = z5.c.a();
        if (a9 == null) {
            return;
        }
        try {
            s0(null);
        } catch (Exception unused2) {
        }
        a9.setOneShotPreviewCallback(new c());
    }

    public final void w0() {
        try {
            q0(Cajoling.b());
        } catch (Exception unused) {
        }
        if (z5.c.c(this)) {
            if (this.L) {
                j0();
            } else {
                r0();
            }
            try {
                p0(null);
            } catch (Exception unused2) {
            }
            this.L = !this.L;
        }
    }

    public boolean x0(Context context) {
        return context != null && context.getResources().getConfiguration().orientation == 1;
    }
}