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

应用版本信息
应用名称:Ghostify
版本号:4.0
包名称:com.getghostify

MD5 校验值:a9a821418db4ad35214aeeb08c2f5902

反编译源代码说明

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


package com.ghostify;

import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.AlertController;
import androidx.appcompat.app.b;
import androidx.appcompat.widget.ActionBarContainer;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.n;
import com.getghostify.R;
import com.google.firebase.analytics.FirebaseAnalytics;
import d.e;
import d.s;
import e1.a;
import f0.u;
import f0.x;
import f1.j;
import f1.m;
import j1.d;
import j1.f;
import java.util.Objects;
import java.util.WeakHashMap;

public class MainActivity extends e {

    public static boolean f2803x = true;

    @Override
    public void onBackPressed() {
        boolean z8 = false;
        for (n nVar : o().f1644c.k()) {
            if ((nVar instanceof a) && (z8 = ((a) nVar).a0())) {
                break;
            }
        }
        if (z8) {
            return;
        }
        this.f393p.b();
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        View inflate = getLayoutInflater().inflate(R.layout.activity_main, (ViewGroup) null, false);
        Objects.requireNonNull(inflate, "rootView");
        setContentView((ConstraintLayout) inflate);
        ActionBarContainer actionBarContainer = ((s) s()).f3619d;
        WeakHashMap<View, x> weakHashMap = u.f4370a;
        u.i.s(actionBarContainer, 0.0f);
        u();
        m.a(1);
        final m mVar = new m();
        d.a().f5632a.getInt("12", -1);
        if (d.a().f5632a.getInt("12", -1) >= 20 && !d.a().f5632a.getBoolean("11", false)) {
            b.a aVar = new b.a(this);
            AlertController.b bVar = aVar.f493a;
            bVar.f475e = bVar.f471a.getText(R.string.satisfied_title);
            AlertController.b bVar2 = aVar.f493a;
            bVar2.f477g = bVar2.f471a.getText(R.string.empty);
            AlertController.b bVar3 = aVar.f493a;
            bVar3.f473c = R.mipmap.ic_launcher;
            DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() {
                @Override
                public final void onClick(DialogInterface dialogInterface, int i9) {
                    e3.i iVar;
                    m mVar2 = m.this;
                    Context context = this;
                    Objects.requireNonNull(mVar2);
                    Context applicationContext = context.getApplicationContext();
                    if (applicationContext == null) {
                        applicationContext = context;
                    }
                    androidx.appcompat.widget.l lVar = new androidx.appcompat.widget.l(new g4.g(applicationContext));
                    g4.g gVar = (g4.g) lVar.f962k;
                    h4.g gVar2 = g4.g.f5238c;
                    int i10 = 0;
                    gVar2.b("requestInAppReview (%s)", gVar.f5240b);
                    if (gVar.f5239a == null) {
                        Object[] objArr = new Object[0];
                        if (Log.isLoggable("PlayCore", 6)) {
                            Log.e("PlayCore", h4.g.c(gVar2.f5442a, "Play Store app is either not installed or not the official version", objArr));
                        }
                        iVar = e3.l.d(new g4.a(-1));
                    } else {
                        e3.j jVar = new e3.j();
                        h4.n nVar = gVar.f5239a;
                        h4.j jVar2 = new h4.j(gVar, jVar, jVar, 2);
                        synchronized (nVar.f5457f) {
                            nVar.f5456e.add(jVar);
                            jVar.f4208a.b(new d1.a(nVar, jVar));
                        }
                        synchronized (nVar.f5457f) {
                            if (nVar.f5462k.getAndIncrement() > 0) {
                                h4.g gVar3 = nVar.f5453b;
                                Object[] objArr2 = new Object[0];
                                Objects.requireNonNull(gVar3);
                                if (Log.isLoggable("PlayCore", 3)) {
                                    Log.d("PlayCore", h4.g.c(gVar3.f5442a, "Already connected to the service.", objArr2));
                                }
                            }
                        }
                        nVar.a().post(new h4.j(nVar, jVar, jVar2, 0));
                        iVar = jVar.f4208a;
                    }
                    iVar.b(new l(mVar2, lVar, context, i10));
                }
            };
            bVar3.f478h = bVar3.f471a.getText(R.string.satisfied);
            AlertController.b bVar4 = aVar.f493a;
            bVar4.f479i = onClickListener;
            DialogInterface.OnClickListener onClickListener2 = new DialogInterface.OnClickListener() {
                @Override
                public final void onClick(DialogInterface dialogInterface, int i9) {
                    m mVar2 = m.this;
                    final Activity activity = this;
                    Objects.requireNonNull(mVar2);
                    j1.d.a().f5632a.edit().putBoolean("11", true).commit();
                    b.a aVar2 = new b.a(activity);
                    AlertController.b bVar5 = aVar2.f493a;
                    bVar5.f475e = bVar5.f471a.getText(R.string.give_feedback);
                    AlertController.b bVar6 = aVar2.f493a;
                    bVar6.f477g = bVar6.f471a.getText(R.string.give_feedback_desc);
                    DialogInterface.OnClickListener onClickListener3 = new DialogInterface.OnClickListener() {
                        @Override
                        public final void onClick(DialogInterface dialogInterface2, int i10) {
                            Activity activity2 = activity;
                            Intent intent = new Intent("android.intent.action.SENDTO");
                            intent.setData(Uri.parse("mailto:hi@getghostify.com"));
                            intent.putExtra("android.intent.extra.EMAIL", new String[]{"hi@getghostify.com"});
                            intent.putExtra("android.intent.extra.SUBJECT", "Feedback about Ghostify");
                            activity2.startActivity(intent);
                        }
                    };
                    AlertController.b bVar7 = aVar2.f493a;
                    bVar7.f478h = bVar7.f471a.getText(R.string.give_feedback);
                    AlertController.b bVar8 = aVar2.f493a;
                    bVar8.f479i = onClickListener3;
                    j jVar = j.f4410m;
                    bVar8.f480j = bVar8.f471a.getText(R.string.cancel);
                    aVar2.f493a.f481k = jVar;
                    aVar2.a().show();
                }
            };
            bVar4.f480j = bVar4.f471a.getText(R.string.not_good);
            AlertController.b bVar5 = aVar.f493a;
            bVar5.f481k = onClickListener2;
            j jVar = j.f4409l;
            bVar5.f482l = bVar5.f471a.getText(R.string.later);
            AlertController.b bVar6 = aVar.f493a;
            bVar6.f483m = jVar;
            bVar6.f484n = new DialogInterface.OnDismissListener() {
                @Override
                public final void onDismiss(DialogInterface dialogInterface) {
                    j1.d.a().f5632a.edit().putBoolean("11", true).commit();
                }
            };
            aVar.a().show();
        }
    }

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

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem menuItem) {
        Intent intent;
        if (menuItem.getItemId() == R.id.menu_shop) {
            FirebaseAnalytics.getInstance(f.f5639a).a("buy_subscription_clicked", new Bundle());
            new i1.d().e0(o(), "ModalBottomSheet");
        } else {
            if (menuItem.getItemId() == R.id.menu_privacy) {
                intent = new Intent("android.intent.action.VIEW", Uri.parse("https://getghostify.com/privacy-policy"));
            } else if (menuItem.getItemId() == R.id.menu_terms) {
                intent = new Intent("android.intent.action.VIEW", Uri.parse("https://getghostify.com/terms"));
            }
            startActivity(intent);
        }
        return super.onOptionsItemSelected(menuItem);
    }

    public void u() {
        d.a s;
        int i9;
        if (d.a().f5632a.getBoolean("3", false)) {
            s = s();
            i9 = f2803x ? R.string.ghost_mode_active : R.string.ghost_mode_deactive;
        } else {
            s = s();
            i9 = R.string.empty;
        }
        s sVar = (s) s;
        sVar.f3620e.setTitle(sVar.f3616a.getString(i9));
    }
}