ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c

以下内容为反编译后的 FiledecoActivity.java 源代码,内容仅作参考


package com.zackiestudios.zstore;

import android.app.DownloadManager;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.View;
import android.view.Window;
import android.view.animation.ScaleAnimation;
import android.webkit.MimeTypeMap;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.exifinterface.media.ExifInterface;
import com.applovin.mediation.MaxAd;
import com.applovin.mediation.MaxError;
import com.applovin.mediation.MaxReward;
import com.applovin.mediation.MaxRewardedAdListener;
import com.applovin.mediation.ads.MaxRewardedAd;
import com.bumptech.glide.Glide;
import com.google.firebase.FirebaseApp;
import com.zackiestudios.zstore.RequestNetwork;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;

public class FiledecoActivity extends AppCompatActivity {
    private TimerTask T;
    private RequestNetwork.RequestListener _net_request_listener;
    private LinearLayout background;
    private LinearLayout button1;
    private TextView count;
    private ImageView imageview1;
    private ImageView imageview4;
    private ImageView imageview5;
    private ImageView imageview6;
    private ImageView imageview7;
    private LinearLayout linear1;
    private LinearLayout linear16;
    private LinearLayout linear2;
    private LinearLayout linear21;
    private LinearLayout linear22;
    private LinearLayout linear23;
    private LinearLayout linear24;
    private LinearLayout linear25;
    private LinearLayout linear27;
    private LinearLayout linear3;
    private LinearLayout linear4;
    private LinearLayout linear5;
    private LinearLayout linear6;
    private LinearLayout linear7;
    private LinearLayout linear9;
    private RequestNetwork net;
    MaxRewardedAd rewarded;
    private TextView textview1;
    private TextView textview18;
    private TextView textview20;
    private TextView textview21;
    private TextView textview22;
    private TextView textview23;
    private TextView textview24;
    private TextView textview4;
    private TextView textview5;
    private TextView textview6;
    private TimerTask timer;
    private LinearLayout verified;
    private ScrollView vscroll2;
    private Timer _timer = new Timer();
    private double n = 0.0d;
    private String AdsCount = "";
    private String Adstype = "";
    private String YtUrl = "";
    private String FileUrl = "";
    private String FileName = "";

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.filedeco);
        initialize(bundle);
        FirebaseApp.initializeApp(this);
        initializeLogic();
    }

    private void initialize(Bundle bundle) {
        this.linear1 = (LinearLayout) findViewById(R.id.linear1);
        this.linear2 = (LinearLayout) findViewById(R.id.linear2);
        this.linear3 = (LinearLayout) findViewById(R.id.linear3);
        this.verified = (LinearLayout) findViewById(R.id.verified);
        this.vscroll2 = (ScrollView) findViewById(R.id.vscroll2);
        this.imageview5 = (ImageView) findViewById(R.id.imageview5);
        this.imageview4 = (ImageView) findViewById(R.id.imageview4);
        this.textview1 = (TextView) findViewById(R.id.textview1);
        this.imageview1 = (ImageView) findViewById(R.id.imageview1);
        this.count = (TextView) findViewById(R.id.count);
        this.textview20 = (TextView) findViewById(R.id.textview20);
        this.textview21 = (TextView) findViewById(R.id.textview21);
        this.linear9 = (LinearLayout) findViewById(R.id.linear9);
        this.background = (LinearLayout) findViewById(R.id.background);
        this.linear6 = (LinearLayout) findViewById(R.id.linear6);
        this.linear22 = (LinearLayout) findViewById(R.id.linear22);
        this.linear5 = (LinearLayout) findViewById(R.id.linear5);
        this.linear4 = (LinearLayout) findViewById(R.id.linear4);
        this.linear16 = (LinearLayout) findViewById(R.id.linear16);
        this.button1 = (LinearLayout) findViewById(R.id.button1);
        this.textview4 = (TextView) findViewById(R.id.textview4);
        this.textview18 = (TextView) findViewById(R.id.textview18);
        this.textview23 = (TextView) findViewById(R.id.textview23);
        this.linear21 = (LinearLayout) findViewById(R.id.linear21);
        this.linear24 = (LinearLayout) findViewById(R.id.linear24);
        this.linear25 = (LinearLayout) findViewById(R.id.linear25);
        this.textview24 = (TextView) findViewById(R.id.textview24);
        this.linear27 = (LinearLayout) findViewById(R.id.linear27);
        this.imageview6 = (ImageView) findViewById(R.id.imageview6);
        this.textview22 = (TextView) findViewById(R.id.textview22);
        this.linear23 = (LinearLayout) findViewById(R.id.linear23);
        this.imageview7 = (ImageView) findViewById(R.id.imageview7);
        this.textview5 = (TextView) findViewById(R.id.textview5);
        this.textview6 = (TextView) findViewById(R.id.textview6);
        this.linear7 = (LinearLayout) findViewById(R.id.linear7);
        this.net = new RequestNetwork(this);
        this.imageview5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                FiledecoActivity.this.finish();
            }
        });
        this.linear16.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (FiledecoActivity.this.count.getText().toString().equals(FiledecoActivity.this.AdsCount)) {
                    return;
                }
                FiledecoActivity filedecoActivity = FiledecoActivity.this;
                filedecoActivity._clickAnimation(filedecoActivity.linear16);
                FiledecoActivity.this.rewarded.showAd();
                FiledecoActivity.this._Rewarded_Android_By_HarshTek();
            }
        });
        this.button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (SketchwareUtil.isConnected(FiledecoActivity.this.getApplicationContext())) {
                    FiledecoActivity filedecoActivity = FiledecoActivity.this;
                    filedecoActivity._downloadFileToFolder(filedecoActivity.FileName, "/Download/", FiledecoActivity.this.FileUrl);
                } else {
                    SketchwareUtil.showMessage(FiledecoActivity.this.getApplicationContext(), "Erro de Internet");
                }
            }
        });
        this.imageview6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                FiledecoActivity filedecoActivity = FiledecoActivity.this;
                filedecoActivity.getApplicationContext();
                ((ClipboardManager) filedecoActivity.getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText("clipboard", FiledecoActivity.this.textview22.getText().toString()));
                SketchwareUtil.showMessage(FiledecoActivity.this.getApplicationContext(), "Copiado com Sucesso!");
            }
        });
        this._net_request_listener = new RequestNetwork.RequestListener() {
            @Override
            public void onErrorResponse(String str, String str2) {
            }

            @Override
            public void onResponse(String str, String str2, HashMap<String, Object> hashMap) {
            }
        };
    }

    private void initializeLogic() {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(-1);
        gradientDrawable.setCornerRadius(getDip(15));
        this.verified.setElevation(getDip(5));
        this.verified.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{-1}), gradientDrawable, null));
        if (Build.VERSION.SDK_INT > 19) {
            Window window = getWindow();
            window.clearFlags(67108864);
            window.addFlags(Integer.MIN_VALUE);
            window.setStatusBarColor(-14575885);
        }
        this.net.startRequestNetwork("GET", "http://www.google.com", "me", this._net_request_listener);
        this.button1.setVisibility(8);
        this.linear21.setVisibility(8);
        this.textview1.setText(getIntent().getStringExtra(ExifInterface.GPS_DIRECTION_TRUE));
        this.textview21.setText(getIntent().getStringExtra("C"));
        Glide.with(getApplicationContext()).load(Uri.parse(getIntent().getStringExtra("U"))).into(this.imageview4);
        this.button1.setBackground(new GradientDrawable() {
            public GradientDrawable getIns(int i, int i2) {
                setCornerRadius(i);
                setColor(i2);
                return this;
            }
        }.getIns(15, -16738680));
        this.linear16.setBackground(new GradientDrawable() {
            public GradientDrawable getIns(int i, int i2) {
                setCornerRadius(i);
                setColor(i2);
                return this;
            }
        }.getIns(15, -12627531));
        this.textview22.setTextColor(-1);
        this.linear21.setBackground(new GradientDrawable() {
            public GradientDrawable getIns(int i, int i2) {
                setCornerRadius(i);
                setColor(i2);
                return this;
            }
        }.getIns(15, -14043402));
        this.linear24.setBackground(new GradientDrawable() {
            public GradientDrawable getIns(int i, int i2) {
                setCornerRadius(i);
                setColor(i2);
                return this;
            }
        }.getIns(15, -1));
        this.linear22.setBackground(new GradientDrawable() {
            public GradientDrawable getIns(int i, int i2) {
                setCornerRadius(i);
                setColor(i2);
                return this;
            }
        }.getIns(15, -10453621));
        this.textview22.setText(getIntent().getStringExtra("F"));
        Glide.with(getApplicationContext()).load(Uri.parse(getIntent().getStringExtra("Y"))).into(this.imageview7);
        this.textview23.setText("( ".concat(getIntent().getStringExtra(ExifInterface.LATITUDE_SOUTH).concat(" )")));
        this.AdsCount = getIntent().getStringExtra("L");
        this.YtUrl = getIntent().getStringExtra("Y");
        this.FileUrl = getIntent().getStringExtra("F");
        this.FileName = getIntent().getStringExtra("N");
        this.n = 0.0d;
    }

    public void _radius_to(View view, double d, double d2, String str) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor(str));
        gradientDrawable.setCornerRadius((float) d);
        view.setElevation((float) d2);
        view.setBackground(gradientDrawable);
    }

    public void _Icon_Colour(ImageView imageView, String str) {
        imageView.getDrawable().setColorFilter(Color.parseColor(str), PorterDuff.Mode.SRC_IN);
    }

    public void _rippleRoundStroke(View view, String str, String str2, double d, double d2, String str3) {
        GradientDrawable gradientDrawable = new GradientDrawable();
        gradientDrawable.setColor(Color.parseColor(str));
        gradientDrawable.setCornerRadius((float) d);
        gradientDrawable.setStroke((int) d2, Color.parseColor("#" + str3.replace("#", "")));
        view.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor(str2)}), gradientDrawable, null));
    }

    public void _RippleEffects(String str, View view) {
        view.setBackground(new RippleDrawable(new ColorStateList(new int[][]{new int[0]}, new int[]{Color.parseColor(str)}), null, null));
    }

    public void _Rewarded_Android_By_HarshTek() {
        this.rewarded = MaxRewardedAd.getInstance("dbc2b232e2f4481d", this);
        this.rewarded.setListener(new MaxRewardedAdListener() {
            @Override
            public void onAdClicked(MaxAd maxAd) {
            }

            @Override
            public void onAdHidden(MaxAd maxAd) {
            }

            @Override
            public void onAdLoaded(MaxAd maxAd) {
            }

            @Override
            public void onUserRewarded(MaxAd maxAd, MaxReward maxReward) {
            }

            @Override
            public void onAdDisplayed(MaxAd maxAd) {
                FiledecoActivity.this._Rewarded_Android_By_HarshTek();
            }

            @Override
            public void onRewardedVideoStarted(MaxAd maxAd) {
                FiledecoActivity.this.n += 1.0d;
                FiledecoActivity.this.count.setText(String.valueOf((long) FiledecoActivity.this.n));
            }

            @Override
            public void onRewardedVideoCompleted(MaxAd maxAd) {
                if (FiledecoActivity.this.count.getText().toString().equals(FiledecoActivity.this.AdsCount)) {
                    FiledecoActivity.this.button1.setVisibility(0);
                }
            }

            @Override
            public void onAdLoadFailed(String str, MaxError maxError) {
                maxError.getMessage();
                SketchwareUtil.showMessage(FiledecoActivity.this.getApplicationContext(), "Erro ao Exibir Anúncio!");
            }

            @Override
            public void onAdDisplayFailed(MaxAd maxAd, MaxError maxError) {
                maxError.getMessage();
                SketchwareUtil.showMessage(FiledecoActivity.this.getApplicationContext(), "Erro ao Exibir Anúncio!");
            }
        });
        this.rewarded.loadAd();
    }

    public void _clickAnimation(View view) {
        ScaleAnimation scaleAnimation = new ScaleAnimation(0.9f, 1.0f, 0.9f, 1.0f, 1, 0.5f, 1, 0.7f);
        scaleAnimation.setDuration(300L);
        scaleAnimation.setFillAfter(true);
        view.startAnimation(scaleAnimation);
    }

    public void _downloadFileToFolder(String str, String str2, String str3) {
        try {
            String fileExtensionFromUrl = MimeTypeMap.getFileExtensionFromUrl(str3);
            DownloadManager.Request request = new DownloadManager.Request(Uri.parse(str3));
            request.setTitle(str);
            request.setMimeType("/");
            request.allowScanningByMediaScanner();
            request.setAllowedOverMetered(true);
            request.setNotificationVisibility(1);
            request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, String.valueOf(File.separator) + str2 + File.separator + str + "." + fileExtensionFromUrl);
            ((DownloadManager) getSystemService("download")).enqueue(request);
        } catch (Exception e) {
            SketchwareUtil.showMessage(getApplicationContext(), e.toString());
        }
        SketchwareUtil.showMessage(getApplicationContext(), "Baixando...");
    }

    @Deprecated
    public void showMessage(String str) {
        Toast.makeText(getApplicationContext(), str, 0).show();
    }

    @Deprecated
    public int getLocationX(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[0];
    }

    @Deprecated
    public int getLocationY(View view) {
        int[] iArr = new int[2];
        view.getLocationInWindow(iArr);
        return iArr[1];
    }

    @Deprecated
    public int getRandom(int i, int i2) {
        return new Random().nextInt((i2 - i) + 1) + i;
    }

    @Deprecated
    public ArrayList<Double> getCheckedItemPositionsToArray(ListView listView) {
        ArrayList<Double> arrayList = new ArrayList<>();
        SparseBooleanArray checkedItemPositions = listView.getCheckedItemPositions();
        for (int i = 0; i < checkedItemPositions.size(); i++) {
            if (checkedItemPositions.valueAt(i)) {
                arrayList.add(Double.valueOf(checkedItemPositions.keyAt(i)));
            }
        }
        return arrayList;
    }

    @Deprecated
    public float getDip(int i) {
        return TypedValue.applyDimension(1, i, getResources().getDisplayMetrics());
    }

    @Deprecated
    public int getDisplayWidthPixels() {
        return getResources().getDisplayMetrics().widthPixels;
    }

    @Deprecated
    public int getDisplayHeightPixels() {
        return getResources().getDisplayMetrics().heightPixels;
    }
}