Aim tool v1.1版本的 MD5 值为:8f28d172c6a4ed09e3fd87451f459a8f
以下内容为反编译后的 HomeActivity.java 源代码,内容仅作参考
package com.aimtool.user;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.RippleDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.SparseBooleanArray;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ScrollView;
import android.widget.Switch;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Random;
import java.util.Timer;
import java.util.TimerTask;
public class HomeActivity extends AppCompatActivity {
private Button button1;
private LinearLayout linear1;
private LinearLayout linear10;
private LinearLayout linear11;
private LinearLayout linear12;
private LinearLayout linear13;
private LinearLayout linear14;
private LinearLayout linear16;
private LinearLayout linear2;
private LinearLayout linear4;
private LinearLayout linear6;
private LinearLayout linear7;
private LinearLayout linear8;
private LinearLayout linear9;
private AlertDialog loading;
private AlertDialog no;
private Switch switch1;
private Switch switch3;
private Switch switch4;
private Switch switch5;
private TimerTask t;
private TimerTask t2;
private TextView textview1;
private TextView textview10;
private TextView textview11;
private TextView textview12;
private TextView textview3;
private TextView textview4;
private TextView textview5;
private TextView textview6;
private TextView textview7;
private TextView textview8;
private TextView textview9;
private ViewPager viewpager1;
private ScrollView vscroll1;
private Timer _timer = new Timer();
private String fontName = "";
private String typeace = "";
private double slidpos = 0.0d;
private ArrayList<HashMap<String, Object>> listmap = new ArrayList<>();
private Intent i = new Intent();
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.home);
initialize(bundle);
initializeLogic();
}
private void initialize(Bundle bundle) {
this.linear1 = (LinearLayout) findViewById(R.id.linear1);
this.linear2 = (LinearLayout) findViewById(R.id.linear2);
this.linear4 = (LinearLayout) findViewById(R.id.linear4);
this.linear14 = (LinearLayout) findViewById(R.id.linear14);
this.textview1 = (TextView) findViewById(R.id.textview1);
this.linear6 = (LinearLayout) findViewById(R.id.linear6);
this.vscroll1 = (ScrollView) findViewById(R.id.vscroll1);
this.viewpager1 = (ViewPager) findViewById(R.id.viewpager1);
this.linear7 = (LinearLayout) findViewById(R.id.linear7);
this.linear8 = (LinearLayout) findViewById(R.id.linear8);
this.linear9 = (LinearLayout) findViewById(R.id.linear9);
this.textview3 = (TextView) findViewById(R.id.textview3);
this.textview4 = (TextView) findViewById(R.id.textview4);
this.textview5 = (TextView) findViewById(R.id.textview5);
this.textview6 = (TextView) findViewById(R.id.textview6);
this.textview7 = (TextView) findViewById(R.id.textview7);
this.textview8 = (TextView) findViewById(R.id.textview8);
this.linear16 = (LinearLayout) findViewById(R.id.linear16);
this.linear10 = (LinearLayout) findViewById(R.id.linear10);
this.linear11 = (LinearLayout) findViewById(R.id.linear11);
this.linear12 = (LinearLayout) findViewById(R.id.linear12);
this.linear13 = (LinearLayout) findViewById(R.id.linear13);
this.switch1 = (Switch) findViewById(R.id.switch1);
this.textview9 = (TextView) findViewById(R.id.textview9);
this.switch3 = (Switch) findViewById(R.id.switch3);
this.textview10 = (TextView) findViewById(R.id.textview10);
this.switch4 = (Switch) findViewById(R.id.switch4);
this.textview11 = (TextView) findViewById(R.id.textview11);
this.switch5 = (Switch) findViewById(R.id.switch5);
this.textview12 = (TextView) findViewById(R.id.textview12);
this.button1 = (Button) findViewById(R.id.button1);
this.textview8.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HomeActivity.this.i.setAction("android.intent.action.VIEW");
HomeActivity.this.i.setData(Uri.parse("https://aimtool.just4u.pw/"));
HomeActivity.this.startActivity(HomeActivity.this.i);
}
});
this.switch1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!HomeActivity.this.switch1.isChecked()) {
HomeActivity.this.switch1.setChecked(false);
return;
}
final AlertDialog create = new AlertDialog.Builder(HomeActivity.this).create();
View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.popup, (ViewGroup) null);
create.getWindow().setBackgroundDrawableResource(17170445);
create.setView(inflate);
TextView textView = (TextView) inflate.findViewById(R.id.textview1);
TextView textView2 = (TextView) inflate.findViewById(R.id.textview2);
ImageView imageView = (ImageView) inflate.findViewById(R.id.img);
HomeActivity.this._CardView("#000000", 10.0d, 15.0d, (LinearLayout) inflate.findViewById(R.id.linear1));
textView.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/eng.ttf"), 1);
textView2.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/eng.ttf"), 1);
HomeActivity.this._RippleEffects("#e0e0e0", textView);
HomeActivity.this._RippleEffects("#e0e0e0", textView2);
textView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
HomeActivity.this.switch1.setChecked(true);
create.dismiss();
}
});
textView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
HomeActivity.this.switch1.setChecked(false);
create.dismiss();
}
});
imageView.setImageResource(R.drawable.aaa);
create.setCancelable(false);
create.show();
}
});
this.switch3.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
if (z) {
HomeActivity.this.textview10.setText("Accelerated Record");
} else {
HomeActivity.this.textview10.setText("Compatibility Record");
}
}
});
this.switch5.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean z) {
if (z) {
HomeActivity.this.textview12.setText("Facebook Login(App Method)");
} else {
HomeActivity.this.textview12.setText("Facebook Login(Wep Method)");
}
}
});
this.button1.setOnClickListener(new AnonymousClass5());
}
public class AnonymousClass5 implements View.OnClickListener {
AnonymousClass5() {
}
@Override
public void onClick(View view) {
final AlertDialog create = new AlertDialog.Builder(HomeActivity.this).create();
View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.popup02, (ViewGroup) null);
create.getWindow().setBackgroundDrawableResource(17170445);
create.setView(inflate);
TextView textView = (TextView) inflate.findViewById(R.id.textview1);
TextView textView2 = (TextView) inflate.findViewById(R.id.textview2);
EditText editText = new EditText(HomeActivity.this);
editText.setLayoutParams(new LinearLayout.LayoutParams(-1, -2));
((LinearLayout) inflate.findViewById(R.id.b2)).addView(editText);
editText.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/eng.ttf"), 0);
editText.setTextColor(Color.parseColor("#FFFFFFFF"));
HomeActivity.this._CardView("#1F242D", 10.0d, 15.0d, (LinearLayout) inflate.findViewById(R.id.linear1));
textView.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/eng.ttf"), 1);
textView2.setTypeface(Typeface.createFromAsset(HomeActivity.this.getAssets(), "fonts/eng.ttf"), 1);
HomeActivity.this._RippleEffects("#e0e0e0", textView);
HomeActivity.this._RippleEffects("#e0e0e0", textView2);
textView.setOnClickListener(new AnonymousClass1(editText, create));
textView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
HomeActivity.this.i.setAction("android.intent.action.VIEW");
HomeActivity.this.i.setData(Uri.parse("https://aimtool.just4u.pw/get-code/"));
HomeActivity.this.startActivity(HomeActivity.this.i);
create.dismiss();
}
});
create.setCancelable(false);
create.show();
}
class AnonymousClass1 implements View.OnClickListener {
private final AlertDialog val$dialog;
private final EditText val$edittext1;
AnonymousClass1(EditText editText, AlertDialog alertDialog) {
this.val$edittext1 = editText;
this.val$dialog = alertDialog;
}
@Override
public void onClick(View view) {
if (this.val$edittext1.getText().toString().equals("")) {
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "Enter The Code Please!");
return;
}
this.val$dialog.dismiss();
HomeActivity.this.loading = new AlertDialog.Builder(HomeActivity.this).create();
View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.loading02, (ViewGroup) null);
HomeActivity.this.loading.setView(inflate);
HomeActivity.this._rippleRoundStroke((LinearLayout) inflate.findViewById(R.id.linear1), "#1F242D", "#FFFFFF", 40.0d, 0.0d, "#FFFFFF");
HomeActivity.this.loading.getWindow().setBackgroundDrawable(new ColorDrawable(0));
HomeActivity.this.loading.setCancelable(false);
HomeActivity.this.loading.show();
HomeActivity.this.t = new C00061();
HomeActivity.this._timer.schedule(HomeActivity.this.t, 3000L);
}
class C00061 extends TimerTask {
C00061() {
}
class RunnableC00071 implements Runnable {
RunnableC00071() {
}
@Override
public void run() {
HomeActivity.this.loading.dismiss();
SketchwareUtil.showMessage(HomeActivity.this.getApplicationContext(), "The code is wrong or used!");
HomeActivity.this.no = new AlertDialog.Builder(HomeActivity.this).create();
View inflate = HomeActivity.this.getLayoutInflater().inflate(R.layout.false0, (ViewGroup) null);
HomeActivity.this.no.setView(inflate);
HomeActivity.this._rippleRoundStroke((LinearLayout) inflate.findViewById(R.id.linear1), "#1F242D", "#FFFFFF", 40.0d, 0.0d, "#FFFFFF");
HomeActivity.this.no.getWindow().setBackgroundDrawable(new ColorDrawable(0));
HomeActivity.this.no.setCancelable(false);
HomeActivity.this.no.show();
HomeActivity.this.t2 = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this.no.dismiss();
SketchwareUtil.showKeyboard(HomeActivity.this.getApplicationContext());
SketchwareUtil.hideKeyboard(HomeActivity.this.getApplicationContext());
}
});
}
};
HomeActivity.this._timer.schedule(HomeActivity.this.t2, 2000L);
}
}
@Override
public void run() {
HomeActivity.this.runOnUiThread(new RunnableC00071());
}
}
}
}
private void initializeLogic() {
_changeActivityFont("eng");
this.textview1.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/eng.ttf"), 1);
this.textview4.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/eng.ttf"), 1);
this.textview6.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/eng.ttf"), 1);
this.textview8.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/eng.ttf"), 1);
this.textview3.setTypeface(Typeface.createFromAsset(getAssets(), "fonts/eng.ttf"), 1);
Window window = getWindow();
window.clearFlags(67108864);
window.addFlags(Integer.MIN_VALUE);
window.setStatusBarColor(Color.parseColor("#1F242D"));
this.textview4.setPaintFlags(this.textview1.getPaintFlags() | 8);
this.textview6.setPaintFlags(this.textview1.getPaintFlags() | 8);
this.textview8.setPaintFlags(this.textview1.getPaintFlags() | 8);
_advancedCorners(this.linear6, "#1F242D", 20.0d, 20.0d, 20.0d, 20.0d);
this.switch3.setChecked(true);
this.switch4.setChecked(true);
_rippleRoundStroke(this.button1, "#A60000", "#e0e0e0", 15.0d, 0.0d, "#000000");
HashMap<String, Object> hashMap = new HashMap<>();
hashMap.put("a", "b");
this.listmap.add(hashMap);
HashMap<String, Object> hashMap2 = new HashMap<>();
hashMap2.put("c", "d");
this.listmap.add(hashMap2);
HashMap<String, Object> hashMap3 = new HashMap<>();
hashMap3.put("e", "f");
this.listmap.add(hashMap3);
HashMap<String, Object> hashMap4 = new HashMap<>();
hashMap4.put("g", "h");
this.listmap.add(hashMap4);
HashMap<String, Object> hashMap5 = new HashMap<>();
hashMap5.put("i", "j");
this.listmap.add(hashMap5);
this.viewpager1.setAdapter(new Viewpager1Adapter(this.listmap));
this.t = new TimerTask() {
@Override
public void run() {
HomeActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
HomeActivity.this.slidpos = HomeActivity.this.viewpager1.getCurrentItem() + 1;
if (HomeActivity.this.slidpos > 4.0d) {
HomeActivity.this.slidpos = 0.0d;
HomeActivity.this.viewpager1.setCurrentItem((int) HomeActivity.this.slidpos);
return;
}
HomeActivity.this.viewpager1.setCurrentItem((int) HomeActivity.this.slidpos);
}
});
}
};
this._timer.scheduleAtFixedRate(this.t, 4000L, 4000L);
}
public void _advancedCorners(View view, String str, double d, double d2, double d3, double d4) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor(str));
gradientDrawable.setCornerRadii(new float[]{(int) d, (int) d, (int) d2, (int) d2, (int) d4, (int) d4, (int) d3, (int) d3});
view.setBackground(gradientDrawable);
}
public void _changeActivityFont(String str) {
this.fontName = "fonts/".concat(str.concat(".ttf"));
overrideFonts(this, getWindow().getDecorView());
}
private void overrideFonts(Context context, View view) {
try {
Typeface createFromAsset = Typeface.createFromAsset(getAssets(), this.fontName);
if (view instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) view;
for (int i = 0; i < viewGroup.getChildCount(); i++) {
overrideFonts(context, viewGroup.getChildAt(i));
}
} else if (view instanceof TextView) {
((TextView) view).setTypeface(createFromAsset);
} else if (view instanceof EditText) {
((EditText) view).setTypeface(createFromAsset);
} else if (view instanceof Button) {
((Button) view).setTypeface(createFromAsset);
}
} catch (Exception e) {
}
}
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 _CardView(String str, double d, double d2, View view) {
GradientDrawable gradientDrawable = new GradientDrawable();
gradientDrawable.setColor(Color.parseColor(str));
gradientDrawable.setCornerRadius((int) d);
view.setBackground(gradientDrawable);
try {
if (Build.VERSION.SDK_INT >= 21) {
view.setElevation((int) d2);
}
} catch (Exception e) {
}
}
public class Viewpager1Adapter extends PagerAdapter {
Context _context;
ArrayList<HashMap<String, Object>> _data;
public Viewpager1Adapter(Context context, ArrayList<HashMap<String, Object>> arrayList) {
this._context = context;
this._data = arrayList;
}
public Viewpager1Adapter(ArrayList<HashMap<String, Object>> arrayList) {
this._context = HomeActivity.this.getApplicationContext();
this._data = arrayList;
}
@Override
public int getCount() {
return this._data.size();
}
@Override
public boolean isViewFromObject(View view, Object obj) {
return view == obj;
}
@Override
public void destroyItem(ViewGroup viewGroup, int i, Object obj) {
viewGroup.removeView((View) obj);
}
@Override
public int getItemPosition(Object obj) {
return super.getItemPosition(obj);
}
@Override
public CharSequence getPageTitle(int i) {
return "page " + String.valueOf(i);
}
@Override
public Object instantiateItem(ViewGroup viewGroup, int i) {
View inflate = LayoutInflater.from(this._context).inflate(R.layout.page, viewGroup, false);
CardView cardView = (CardView) inflate.findViewById(R.id.cardview1);
ImageView imageView = (ImageView) inflate.findViewById(R.id.imageview1);
if (i == 0) {
imageView.setImageResource(R.drawable.img_4);
}
if (i == 1) {
imageView.setImageResource(R.drawable.img_5);
}
if (i == 2) {
imageView.setImageResource(R.drawable.img_6);
}
if (i == 3) {
imageView.setImageResource(R.drawable.img_7);
}
if (i == 4) {
imageView.setImageResource(R.drawable.img_8);
}
if (i == 5) {
imageView.setImageResource(R.drawable.img_9);
}
viewGroup.addView(inflate);
return inflate;
}
}
@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;
}
}