Dhanush Kumar offical
Open in Telegram
Tech Channel join group:- https://t.me/joinchat/PA3i41PKNhC0IrMQdnbZKg subscribe to my YouTube:- https://www.youtube.com/channel/UCP6CqPS2xmzo2roqHumwR3g
Show moreThe country is not specifiedThe category is not specified
1 906
Subscribers
-124 hours
+107 days
+2430 days
Posts Archive
Watch "Floating widget implementation." on YouTube
https://youtu.be/yy64fxbuOAk
}
private void enter() throws Exception {
for (ActivityInfo ai : getPackageManager().getPackageInfo(getPackageName(), 129).activities) {
if (ai.metaData != null) {
if ("entry".equals(ai.metaData.getString("role"))) {
Intent intent = new Intent();
intent.setComponent(new ComponentName(ai.packageName, ai.name));
startActivity(intent);
return;
}
}
}
}
}
package com.example.happypatch;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.Process;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
import android.content.*;
import android.widget.*;
import android.view.*;
import android.app.*;
public class MainActivity extends Activity
{
public static native boolean Check(String var0, String var1);
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
SharedPreferences sharedPreferences = this.getSharedPreferences("SavePref", 0);
String string2 = sharedPreferences.getString("User", (String)null);
String string3 = sharedPreferences.getString("Pass", (String)null);
LinearLayout linearLayout = new LinearLayout(this);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
linearLayout.setLayoutParams((ViewGroup.LayoutParams)layoutParams);
linearLayout.setOrientation(1);
linearLayout.setGravity(Gravity.CENTER);
EditText editText = new EditText(this);
if (string2 != null && !string2.isEmpty()) {
editText.setText((CharSequence)string2);
}
editText.setHint((CharSequence)"Username...");
EditText editText2 = new EditText(this);
if (string3 != null && !string3.isEmpty()) {
editText2.setText((CharSequence)string3);
}
editText2.setHint((CharSequence)"Password...");
editText2.setInputType(129);
CheckBox checkBox = new CheckBox(this);
checkBox.setChecked(true);
checkBox.setText((CharSequence)"Remember me");
Button button = new Button(this);
button.setText((CharSequence)"Login");
Button button2 = new Button(this);
button2.setText((CharSequence)"Cancel");
linearLayout.addView((View)editText);
linearLayout.addView((View)editText2);
linearLayout.addView((View)checkBox);
linearLayout.addView((View)button);
linearLayout.addView((View)button2);
setContentView((View)linearLayout);
login var16_13 = new login(editText, editText2, this, checkBox, sharedPreferences);
button.setOnClickListener((View.OnClickListener)var16_13);
cancel var17_14 = new cancel();
button2.setOnClickListener((View.OnClickListener)var17_14);
}
class login implements View.OnClickListener {
private final CheckBox val$checkBox2;
private final Context val$context;
private final EditText val$editText3;
private final EditText val$editText4;
private final SharedPreferences val$sharedPreferences;
login(EditText editText, EditText editText2, Context context, CheckBox checkBox, SharedPreferences sharedPreferences) {
this.val$editText3 = editText;
this.val$editText4 = editText2;
this.val$context = context;
this.val$checkBox2 = checkBox;
this.val$sharedPreferences = sharedPreferences;
}
public void onClick(View view) {
String string2 = this.val$editText3.getText().toString();
String string3 = this.val$editText4.getText().toString();
if (string2.equals((Object)"Dhanush") && string3.equals((Object)"24122001")) {
Toast.makeText(this.val$context, (CharSequence)"Sucess", (int)1).show();
try
{
enter();
}
catch (Exception e)
{}
boolean bl = this.val$checkBox2.isChecked();
SharedPreferences.Editor editor = this.val$sharedPreferences.edit();
if (bl) {
editor.putString("User", string2);
editor.putString("Pass", string3);
editor.apply();
return;
}
}
else{
Toast.makeText(this.val$context, (CharSequence)"Username or password is incorrect", (int)1).show();
}
}
}
class cancel implements View.OnClickListener {
cancel() {
}
public void onClick(View view) {
Process.killProcess((int)Process.myPid());
}
http://androidcracking.blogspot.com/search/label/smali
http://pallergabor.uw.hu/androidblog/dalvik_opcodes.html
https://github.com/JesusFreke/smali/wiki/TypesMethodsAndFields
https://github.com/JesusFreke/smali/wiki/Registers
https://source.android.com/devices/tech/dalvik/dalvik-bytecode
https://sites.google.com/site/haynesmathew/home/projects/dalvik-notes
https://groups.google.com/g/apktool?pli=1
https://forum.xda-developers.com/t/guide-smali-coding-guide-for-beginners.2193735/
https://www.slideshare.net/paller/understanding-the-dalvik-bytecode-with-the-dedexer-tool
https://www.programmersought.com/article/94154023223/
https://programmer.help/blogs/smali-introduction-manual.html
