APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Airplanes Mod
版本号:.1.0.25
包名称:com.robodevmods.AirplanesMod

MD5 校验值:f8da89ec7f90fdb8ce78785d72a105bc

反编译源代码说明

Gops5avg.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.robodevmods.AirplanesMod;

import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RatingBar;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import com.google.ads.consent.ConsentForm;
import com.google.ads.consent.ConsentFormListener;
import com.google.ads.consent.ConsentStatus;
import com.google.ads.mediation.admob.AdMobAdapter;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.RequestConfiguration;
import com.google.android.gms.ads.interstitial.InterstitialAd;
import com.google.android.gms.ads.interstitial.InterstitialAdLoadCallback;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Random;

public class Gops5avg extends AppCompatActivity {
    private static final String SHARED_pqhf7gm1e4pyq_SHWD = "lsaxoogipsd";
    public static final String ck52civu6lqm119 = "egda1wzldyxx";
    private static final String g4821k9 = "Xllmiruqmqwzt2";
    public static final String pqhf7gm1e4pyq = "Aw55bfdvqf";
    String Eierw18r6o42kihq;
    private InterstitialAd Gczpzzlic;
    private Button Ojd6xjop;
    private boolean Uw7ydvkj2moch2e5y;
    String Ynvq2oftrgnd67gw;
    private TextView Znigzdtxbe3ysp;
    private ProgressBar Ztt1zvgeno1svwht;
    private Button gp6jczigp;
    private ConsentForm kncy2otljsass;
    private AdView o5vrjqff2ronqmnb;
    private TextView vmnqnatv1g9;
    private boolean y62ktk47;
    String yhbptucuitbfczq;
    private int wubxwnquetk1 = 0;
    private final Handler oifewdvmolftplbla = new Handler();

    static int access$608(Gops5avg gops5avg) {
        int i = gops5avg.wubxwnquetk1;
        gops5avg.wubxwnquetk1 = i + 1;
        return i;
    }

    public void Ipoeezm(boolean z) {
        Boolean bool = true;
        if (z) {
            bool = false;
        }
        getSharedPreferences("egda1wzldyxx", 0).edit().putBoolean(g4821k9, bool.booleanValue()).commit();
    }

    private void tkboh4mss3df0elq() {
        URL url;
        try {
            url = new URL(getString(R.string.Urnyugzydream));
        } catch (MalformedURLException unused) {
            url = null;
        }
        ConsentForm build = new ConsentForm.Builder(this, url).withListener(new ConsentFormListener() {
            @Override
            public void onConsentFormError(String str) {
            }

            @Override
            public void onConsentFormOpened() {
            }

            @Override
            public void onConsentFormClosed(ConsentStatus consentStatus, Boolean bool) {
                if (consentStatus.equals(ConsentStatus.PERSONALIZED)) {
                    Gops5avg.this.Ipoeezm(true);
                } else {
                    Gops5avg.this.Ipoeezm(false);
                }
            }

            @Override
            public void onConsentFormLoaded() {
                Gops5avg.this.kncy2otljsass.show();
            }
        }).withPersonalizedAdsOption().withNonPersonalizedAdsOption().build();
        this.kncy2otljsass = build;
        build.load();
    }

    public void rq7uwpmbqlaniel7t() {
        AdRequest build;
        if (this.y62ktk47) {
            build = new AdRequest.Builder().build();
        } else {
            Bundle bundle = new Bundle();
            bundle.putString("npa", "1");
            build = new AdRequest.Builder().addNetworkExtrasBundle(AdMobAdapter.class, bundle).build();
        }
        this.o5vrjqff2ronqmnb.loadAd(build);
        this.o5vrjqff2ronqmnb.setAdListener(new AdListener() {
            @Override
            public void onAdFailedToLoad(LoadAdError loadAdError) {
            }

            @Override
            public void onAdLoaded() {
                Gops5avg.this.o5vrjqff2ronqmnb.setVisibility(0);
            }
        });
    }

    public void pdyxnkxzslo() {
        this.o5vrjqff2ronqmnb.setVisibility(8);
        InterstitialAd interstitialAd = this.Gczpzzlic;
        if (interstitialAd != null) {
            interstitialAd.show(this);
        } else {
            atdjsi8hr0m();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        if (this.Gczpzzlic == null) {
            oh3wzkp();
        }
    }

    private void oh3wzkp() {
        AdRequest build;
        if (this.y62ktk47) {
            build = new AdRequest.Builder().build();
        } else {
            Bundle bundle = new Bundle();
            bundle.putString("npa", "1");
            build = new AdRequest.Builder().addNetworkExtrasBundle(AdMobAdapter.class, bundle).build();
        }
        InterstitialAd.load(this, getString(R.string.Cy64yser), build, new InterstitialAdLoadCallback() {
            @Override
            public void onAdFailedToLoad(LoadAdError loadAdError) {
                Gops5avg.this.Gczpzzlic = null;
                Gops5avg.this.rq7uwpmbqlaniel7t();
            }

            @Override
            public void onAdLoaded(InterstitialAd interstitialAd) {
                Gops5avg.this.Gczpzzlic = interstitialAd;
                Gops5avg.this.Gczpzzlic.setFullScreenContentCallback(new FullScreenContentCallback() {
                    @Override
                    public void onAdShowedFullScreenContent() {
                        Gops5avg.this.Gczpzzlic = null;
                    }

                    @Override
                    public void onAdDismissedFullScreenContent() {
                        Gops5avg.this.atdjsi8hr0m();
                    }

                    @Override
                    public void onAdFailedToShowFullScreenContent(AdError adError) {
                        Gops5avg.this.atdjsi8hr0m();
                    }
                });
                Gops5avg.this.rq7uwpmbqlaniel7t();
            }
        });
    }

    @Override
    public void finish() {
        this.Uw7ydvkj2moch2e5y = false;
        this.o5vrjqff2ronqmnb.setVisibility(8);
        InterstitialAd interstitialAd = this.Gczpzzlic;
        if (interstitialAd != null) {
            interstitialAd.show(this);
        } else {
            super.finish();
        }
    }

    public void atdjsi8hr0m() {
        if (this.Uw7ydvkj2moch2e5y) {
            Intent intent = new Intent(this, (Class<?>) Rh6vjjrtqtvak2k.class);
            intent.putExtra("Tki2wqs28vvj", this.Ynvq2oftrgnd67gw);
            intent.putExtra("Ehp5yizp", this.Eierw18r6o42kihq);
            intent.putExtra("qwrnziqltkzkj5ll", this.yhbptucuitbfczq);
            startActivity(intent);
            return;
        }
        finish();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.nuqxsis0s23ho, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        int itemId = menuItem.getItemId();
        try {
            if (itemId != R.id.pnast9v8xom99unft) {
                if (itemId == R.id.uz8agtl1rnzl) {
                    tkboh4mss3df0elq();
                }
                return true;
            }
            startActivity(new Intent("android.intent.action.VIEW", Uri.parse(getString(R.string.Urnyugzydream))));
            return true;
        } catch (Exception unused) {
            return true;
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.l7kd1cpk);
        if (getSharedPreferences("egda1wzldyxx", 0).getBoolean(g4821k9, false)) {
            this.y62ktk47 = false;
        } else {
            this.y62ktk47 = true;
        }
        this.o5vrjqff2ronqmnb = (AdView) findViewById(R.id.bannerAdView);
        this.Ynvq2oftrgnd67gw = getIntent().getStringExtra("Tki2wqs28vvj");
        this.Eierw18r6o42kihq = getIntent().getStringExtra("Ehp5yizp");
        this.yhbptucuitbfczq = getIntent().getStringExtra("qwrnziqltkzkj5ll");
        ((ImageView) findViewById(R.id.Denpsnecvgrfk3d3m)).setImageResource(getResources().getIdentifier("mioe1txbydk2p4" + this.yhbptucuitbfczq + "one", "drawable", getPackageName()));
        ((TextView) findViewById(R.id.Fveywhv)).setText(this.Eierw18r6o42kihq);
        long currentTimeMillis = System.currentTimeMillis() / 1000;
        this.Ztt1zvgeno1svwht = (ProgressBar) findViewById(R.id.X7ivqvjvgrmxkt8);
        this.vmnqnatv1g9 = (TextView) findViewById(R.id.Cfruuoui4);
        this.Znigzdtxbe3ysp = (TextView) findViewById(R.id.n8nzc5sbovxcrig);
        Button button = (Button) findViewById(R.id.ueiutcexbl6czahr);
        this.Ojd6xjop = button;
        button.setVisibility(4);
        this.gp6jczigp = (Button) findViewById(R.id.j4erxeaxvjb33v0t2);
        if (currentTimeMillis > Long.parseLong(getString(R.string.zeyuxeg8dbt)) && !getSharedPreferences(pqhf7gm1e4pyq, 0).getBoolean(SHARED_pqhf7gm1e4pyq_SHWD, false)) {
            try {
                AlertDialog.Builder builder = new AlertDialog.Builder(this);
                View inflate = ((LayoutInflater) getSystemService("layout_inflater")).inflate(R.layout.h273g5o1cg2alwv, (ViewGroup) null);
                final RatingBar ratingBar = (RatingBar) inflate.findViewById(R.id.O5vnw3pee2);
                builder.setCancelable(false);
                builder.setTitle(getString(R.string.Zzpjzqfyoa));
                builder.setMessage(getString(R.string.abgotcut1omr));
                builder.setPositiveButton(getString(R.string.wm2yenvg9msmrshh), new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialogInterface, int i) {
                        if (ratingBar.getRating() < 4.0f) {
                            Gops5avg gops5avg = Gops5avg.this;
                            Toast.makeText(gops5avg, gops5avg.getString(R.string.clrrbrro5cga), 1).show();
                            return;
                        }
                        try {
                            Gops5avg.this.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + Gops5avg.this.getApplicationContext().getPackageName())));
                        } catch (ActivityNotFoundException unused) {
                            Gops5avg.this.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://play.google.com/store/apps/details?id=" + Gops5avg.this.getApplicationContext().getPackageName())));
                        }
                    }
                });
                builder.setView(inflate);
                builder.show();
            } catch (Exception e) {
                e.printStackTrace();
            }
            getSharedPreferences(pqhf7gm1e4pyq, 0).edit().putBoolean(SHARED_pqhf7gm1e4pyq_SHWD, true).commit();
        }
        final Runnable runnable = new Runnable() {
            @Override
            public void run() {
                SystemClock.sleep(1524L);
                while (Gops5avg.this.wubxwnquetk1 < 100) {
                    Random random = new Random();
                    Gops5avg.access$608(Gops5avg.this);
                    SystemClock.sleep(random.nextInt(470) + 1 + 9);
                    Gops5avg.this.oifewdvmolftplbla.post(new Runnable() {
                        @Override
                        public void run() {
                            Gops5avg.this.vmnqnatv1g9.setText(String.valueOf(Gops5avg.this.wubxwnquetk1) + "%");
                        }
                    });
                }
                Gops5avg.this.oifewdvmolftplbla.post(new Runnable() {
                    @Override
                    public void run() {
                        Gops5avg.this.vmnqnatv1g9.setText("100%");
                        Gops5avg.this.wubxwnquetk1 = 0;
                        Gops5avg.this.Znigzdtxbe3ysp.setText(Gops5avg.this.getString(R.string.bldzlbo3goi));
                        Gops5avg.this.Ztt1zvgeno1svwht.setVisibility(4);
                        Gops5avg.this.Ojd6xjop.setVisibility(0);
                    }
                });
            }
        };
        this.Ojd6xjop.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Gops5avg.this.Ojd6xjop.setVisibility(4);
                Gops5avg.this.Ztt1zvgeno1svwht.setVisibility(4);
                Gops5avg.this.vmnqnatv1g9.setText(RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED);
                Gops5avg.this.gp6jczigp.setEnabled(true);
                Gops5avg.this.wubxwnquetk1 = 0;
                Gops5avg.this.vmnqnatv1g9.setVisibility(4);
                Gops5avg.this.Znigzdtxbe3ysp.setVisibility(4);
                Gops5avg.this.Uw7ydvkj2moch2e5y = true;
                Gops5avg.this.pdyxnkxzslo();
            }
        });
        this.gp6jczigp.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Gops5avg.this.gp6jczigp.setEnabled(false);
                Gops5avg.this.Ojd6xjop.setVisibility(4);
                Gops5avg.this.vmnqnatv1g9.setVisibility(0);
                Gops5avg.this.Ztt1zvgeno1svwht.setVisibility(0);
                Gops5avg.this.Znigzdtxbe3ysp.setVisibility(0);
                Gops5avg.this.Znigzdtxbe3ysp.setText(Gops5avg.this.getString(R.string.Kfj93jtwcabk));
                new Thread(runnable).start();
            }
        });
    }
}