Velasquez_V4 v3.0.0版本的 MD5 值为:f925d3b85f8d5849bcc8f37caec6acf7
以下内容为反编译后的 ActivityC0148.java 源代码,内容仅作参考
package com.applisto.appcloner.classes;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ActivityInfo;
import android.hardware.fingerprint.FingerprintManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.text.method.PasswordTransformationMethod;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.swift.sandhook.utils.FileUtils$FileMode;
import java.util.ArrayList;
import java.util.List;
import obfuse4.obfuse.NPStringFog4;
public class ActivityC0148 extends Activity {
public static boolean f375;
private EditText f377;
private boolean f378;
private String f379;
private String f380;
private boolean f381;
private SharedPreferences f382;
private boolean f383;
private boolean f384;
private static final String f374 = ActivityC0148.class.getSimpleName();
public static final String f373 = ActivityC0148.class.getName() + NPStringFog4.decode("3B14541541425B1756755E4254400754");
private List<Dialog> f376 = new ArrayList();
private Handler mHandler = new Handler();
@Override
protected void onCreate(Bundle savedInstanceState) {
String decode = NPStringFog4.decode("171050075E415C285D5455");
super.onCreate(savedInstanceState);
try {
this.f382 = PreferenceManager.getDefaultSharedPreferences(this);
ActivityInfo activityInfo = getPackageManager().getActivityInfo(getComponentName(), 129);
Bundle metaData = activityInfo.metaData;
if (metaData != null) {
this.f379 = metaData.getString(NPStringFog4.decode("070B5848534544095B4344591F53124002550B0A54414A5D435E5F5858585B7307105C105B414D2B535D55"));
if (this.f379 != null && this.f379.startsWith(NPStringFog4.decode("4A"))) {
this.f379 = getPackageName() + this.f379;
}
C0065 m364 = C0065.m364(this);
this.f381 = m364.m368(NPStringFog4.decode("14054615455A460162425F42545116711149"), false).booleanValue();
this.f380 = m364.m375(NPStringFog4.decode("05144536534647125D4254"), null);
if (m364.m378(decode)) {
this.f383 = m364.m368(decode, false).booleanValue();
} else {
this.f383 = m364.m368(NPStringFog4.decode("05144536534647125D4254654557035C1551290B5556"), false).booleanValue();
}
this.f384 = m364.m368(NPStringFog4.decode("171050075E415C285D545563425724590F5E011641410D5C45"), false).booleanValue();
this.f378 = m364.m368(NPStringFog4.decode("0C0D510362544716455F4252725A0342005A10014340"), false).booleanValue();
boolean askOnlyOnce = !TextUtils.isEmpty(this.f380) && m364.m368(NPStringFog4.decode("05144536534647125D42547742592D5E0D402B0A5256"), false).booleanValue();
if (askOnlyOnce) {
boolean passwordEntered = this.f382.getBoolean(f373, false);
String str = f374;
Log.i(str, NPStringFog4.decode("0B0A761457544000091040574241155F135D210A45561657550D18") + passwordEntered);
if (passwordEntered) {
m490();
return;
}
}
}
} catch (Exception e) {
Log.w(f374, e);
m485();
}
showDialog();
}
private void showDialog() {
String decode = NPStringFog4.decode("1710470F5C52");
String decode2 = NPStringFog4.decode("050A51145D5C50");
try {
boolean material = Build.VERSION.SDK_INT >= 21;
Context context = material ? new ContextThemeWrapper(this, 16974123) : new ContextThemeWrapper(this, 16974120);
int padding = C0193.m538(context, 24.0f);
FrameLayout frameLayout = new FrameLayout(context);
frameLayout.setPadding(padding, padding, padding, material ? 0 : padding);
String positiveLabel = getString(17039370);
AlertDialog.Builder builder = new AlertDialog.Builder(context);
if (this.f383) {
TextView textView = new TextView(context);
String str = NPStringFog4.decode("310A53094041410B5344555A481E42") + C0193.m543(context) + NPStringFog4.decode("440C54151246400A424055521F");
int aerrApplicationId = getResources().getIdentifier(NPStringFog4.decode("050147146D5444155E595357455B0D5E"), decode, decode2);
String message = getString(aerrApplicationId, new Object[]{C0193.m543(context)});
int aerrCloseId = getResources().getIdentifier(NPStringFog4.decode("050147146D56580A4155"), decode, decode2);
positiveLabel = getString(aerrCloseId);
if (Build.VERSION.SDK_INT >= 24) {
try {
int styleId = getResources().getIdentifier(NPStringFog4.decode("050147146D595D16466F5942545F"), NPStringFog4.decode("17104C0A57"), decode2);
textView = new TextView(new ContextThemeWrapper(context, styleId));
} catch (Exception e) {
Log.w(f374, e);
}
builder.setTitle(message);
int aerrRestartId = getResources().getIdentifier(NPStringFog4.decode("050147146D47511646514242"), decode, decode2);
message = getString(aerrRestartId);
positiveLabel = null;
int icRefreshId = getResources().getIdentifier(NPStringFog4.decode("0D076A14575346004158"), NPStringFog4.decode("0016541153575800"), decode2);
textView.setCompoundDrawablesRelativeWithIntrinsicBounds(icRefreshId, 0, 0, 0);
textView.setCompoundDrawablePadding(C0193.m538(context, 32.0f));
textView.setPadding(0, 0, 0, C0193.m538(context, 20.0f));
textView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ActivityC0148.this.lambda$showDialog$0$PasswordActivity(view);
}
});
textView.setBackground(null);
}
textView.setText(message);
if (material) {
textView.setTextSize(16.0f);
textView.setTextColor(-16777216);
} else {
textView.setTextAppearance(context, 16973892);
}
frameLayout.addView(textView);
} else if (!TextUtils.isEmpty(this.f380)) {
this.f377 = new EditText(context);
this.f377.setInputType(524288 | (TextUtils.isDigitsOnly(this.f380) ? 2 : 1) | FileUtils$FileMode.MODE_IWUSR);
this.f377.setImeOptions(2);
this.f377.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public final boolean onEditorAction(TextView textView2, int i, KeyEvent keyEvent) {
return ActivityC0148.this.m491(textView2, i, keyEvent);
}
});
if (this.f378) {
PasswordTransformationMethod passwordTransformationMethod = (PasswordTransformationMethod) C0193.m556(context).loadClass(NPStringFog4.decode("070B5848534544095B4344591F53124002550B0A54414A515D564B42534A194101075A085654461C1C45445F5D1C2C5F245A0C0B6152174146584A55624B565C17025A145F54400C5D5E7D53455A0D54")).newInstance();
this.f377.setTransformationMethod(passwordTransformationMethod);
}
frameLayout.addView(this.f377);
builder.setTitle(NPStringFog4.decode("210A410340154404414347594356")).setNegativeButton(17039360, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
ActivityC0148.this.m492(dialogInterface, i);
}
});
} else {
m490();
return;
}
if (!TextUtils.isEmpty(positiveLabel)) {
builder.setPositiveButton(positiveLabel, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
ActivityC0148.this.m493(dialogInterface, i);
}
});
}
AlertDialog alertDialog = builder.setView(frameLayout).setCancelable(false).create();
this.f376.add(alertDialog);
if (this.f383) {
alertDialog.setOnShowListener(new DialogInterface$OnShowListenerC0149(this, alertDialog, context));
}
alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public final void onDismiss(DialogInterface dialogInterface) {
ActivityC0148.this.m494(dialogInterface);
}
});
try {
alertDialog.getWindow().setDimAmount(1.0f);
alertDialog.getWindow().setWindowAnimations(0);
alertDialog.getWindow().setSoftInputMode(5);
int targetSdkVersion = C0193.m557(context);
if (targetSdkVersion < 23) {
alertDialog.getWindow().setType(2003);
}
} catch (Exception e2) {
Log.w(f374, e2);
}
alertDialog.show();
C0193.m565(alertDialog);
} catch (Throwable t) {
Log.w(f374, t);
m485();
}
}
public void lambda$showDialog$0$PasswordActivity(View v) {
m485();
}
public boolean m491(TextView v, int actionId, KeyEvent event) {
m489();
return false;
}
public void m492(DialogInterface dialog, int which) {
m485();
}
public void m493(DialogInterface dialog, int which) {
m489();
}
public void m494(DialogInterface dialog) {
if (!f375) {
m485();
}
}
public void m487(Context context) {
FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(NPStringFog4.decode("020D5B01574744175B5E44"));
if (fingerprintManager != null && fingerprintManager.isHardwareDetected()) {
fingerprintManager.authenticate(null, null, 0, new C0153(this, context), null);
}
}
public Runnable m486() {
return new RunnableC0154(this);
}
public void m488() {
if (!this.f381 || TextUtils.isEmpty(this.f380)) {
m490();
return;
}
this.f383 = false;
showDialog();
}
private void m489() {
boolean z;
boolean unlocked = false;
try {
} catch (Exception e) {
Log.w(f374, e);
}
if (this.f377 != null) {
if (this.f380.equals(this.f377.getText().toString())) {
z = true;
unlocked = z;
if (!unlocked) {
try {
this.f382.edit().putBoolean(f373, true).apply();
} catch (Exception e2) {
Log.w(f374, e2);
}
m490();
return;
}
m485();
return;
}
}
z = false;
unlocked = z;
if (!unlocked) {
}
}
private void m490() {
f375 = true;
try {
for (Dialog dialog : this.f376) {
dialog.dismiss();
}
} catch (Exception e) {
Log.w(f374, e);
}
try {
Intent i = new Intent(getIntent());
i.setComponent(new ComponentName(this, Class.forName(this.f379)));
i.setFlags(268435456);
startActivity(i);
} catch (Exception e2) {
Log.w(f374, e2);
}
finish();
}
private void m485() {
if (Build.VERSION.SDK_INT >= 21) {
finishAndRemoveTask();
} else {
finish();
}
new C0155(this).start();
}
}