Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.silentservices.hushsms;
- import android.app.Activity;
- import android.app.AlertDialog.Builder;
- import android.app.PendingIntent;
- import android.content.BroadcastReceiver;
- import android.content.ContentResolver;
- import android.content.ContentValues;
- import android.content.Context;
- import android.content.Intent;
- import android.content.IntentFilter;
- import android.content.SharedPreferences;
- import android.content.SharedPreferences.Editor;
- import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
- import android.content.pm.PackageInfo;
- import android.content.pm.PackageManager;
- import android.content.pm.PackageManager.NameNotFoundException;
- import android.content.res.Resources;
- import android.database.Cursor;
- import android.net.Uri;
- import android.os.Build.VERSION;
- import android.os.Bundle;
- import android.preference.PreferenceManager;
- import android.provider.ContactsContract.CommonDataKinds.Phone;
- import android.provider.ContactsContract.Contacts;
- import android.provider.Settings.Secure;
- import android.telephony.SmsManager;
- import android.telephony.SmsMessage;
- import android.telephony.SmsMessage.SubmitPdu;
- import android.util.Log;
- import android.view.Menu;
- import android.view.MenuInflater;
- import android.view.MenuItem;
- import android.view.View;
- import android.view.View.OnClickListener;
- import android.view.ViewConfiguration;
- import android.view.animation.AccelerateInterpolator;
- import android.view.animation.Animation;
- import android.view.animation.TranslateAnimation;
- import android.widget.Button;
- import android.widget.CheckBox;
- import android.widget.EditText;
- import android.widget.RadioButton;
- import android.widget.Spinner;
- import android.widget.TextView;
- import android.widget.Toast;
- import android.widget.ToggleButton;
- import android.widget.ViewFlipper;
- import java.lang.reflect.InvocationTargetException;
- import java.lang.reflect.Method;
- import java.util.Date;
- public class SMS extends Activity
- {
- public static final String HUSHSMS_PACKAGE;
- public static final String KEY_AUDIO_PREFERENCE = "Pref_Audio";
- public static final String KEY_SHOWALERTNOTIFALL_PREFERENCE = "Pref_Show_AlertNotifAll";
- public static final String KEY_SHOWALERTNOTIF_PREFERENCE = "Pref_Show_AlertNotif";
- public static final String KEY_SHOWNOTIF_PREFERENCE = "Pref_Show_Notif";
- public static final String KEY_STOREALERTMSG_PREFERENCE = "Pref_Store_AlertMessages";
- public static final String KEY_STOREMSG_PREFERENCE = "Pref_Store_Messages";
- public static boolean bXposedModuleLoaded = false;
- public static final String strWho = "android_id";
- EditText A;
- EditText B;
- EditText C;
- EditText D;
- EditText E;
- EditText F;
- EditText G;
- EditText H;
- EditText I;
- EditText J;
- TextView K;
- Button L;
- Button M;
- Button N;
- Button O;
- Button P;
- Button Q;
- Button R;
- Button S;
- Button T;
- Button U;
- Button V;
- RadioButton W;
- RadioButton X;
- RadioButton Y;
- RadioButton Z;
- Boolean a = Boolean.valueOf(true);
- private final int aA = 7;
- private final int aB = 8;
- private final int aC = 9;
- private final int aD = 10;
- private final int aE = 11;
- private final int aF = 12;
- private String aG = "";
- private int aH = 1;
- private final View.OnClickListener aI = new c(this);
- private final View.OnClickListener aJ = new n(this);
- private final View.OnClickListener aK = new y(this);
- private final View.OnClickListener aL = new aj(this);
- private final View.OnClickListener aM = new aq(this);
- private final View.OnClickListener aN = new ar(this);
- private final View.OnClickListener aO = new as(this);
- private final View.OnClickListener aP = new at(this);
- private final View.OnClickListener aQ = new au(this);
- private final View.OnClickListener aR = new d(this);
- private final View.OnClickListener aS = new e(this);
- private final View.OnClickListener aT = new f(this);
- private final View.OnClickListener aU = new g(this);
- private final View.OnClickListener aV = new h(this);
- private final View.OnClickListener aW = new i(this);
- private final View.OnClickListener aX = new j(this);
- private final View.OnClickListener aY = new k(this);
- private final View.OnClickListener aZ = new l(this);
- RadioButton aa;
- RadioButton ab;
- RadioButton ac;
- RadioButton ad;
- RadioButton ae;
- RadioButton af;
- RadioButton ag;
- RadioButton ah;
- RadioButton ai;
- CheckBox aj;
- CheckBox ak;
- Spinner al;
- MenuItem am;
- Date an;
- ToggleButton ao;
- TextView ap;
- String aq = "0";
- String ar = "0";
- ViewFlipper as;
- private final int at = 0;
- private final int au = 1;
- private final int av = 2;
- private final int aw = 3;
- private final int ax = 4;
- private final int ay = 5;
- private final int az = 6;
- Boolean b = Boolean.valueOf(true);
- private final View.OnClickListener ba = new m(this);
- private final View.OnClickListener bb = new o(this);
- private final View.OnClickListener bc = new p(this);
- private final View.OnClickListener bd = new q(this);
- private final View.OnClickListener be = new r(this);
- private final View.OnClickListener bf = new s(this);
- private final View.OnClickListener bg = new t(this);
- private final View.OnClickListener bh = new u(this);
- private final View.OnClickListener bi = new v(this);
- private final View.OnClickListener bj = new w(this);
- private final View.OnClickListener bk = new x(this);
- private final View.OnClickListener bl = new z(this);
- private final View.OnClickListener bm = new aa(this);
- private final View.OnClickListener bn = new ab(this);
- private final View.OnClickListener bo = new ac(this);
- private final View.OnClickListener bp = new ad(this);
- private final View.OnClickListener bq = new ae(this);
- private final View.OnClickListener br = new af(this);
- private final View.OnClickListener bs = new ag(this);
- private final View.OnClickListener bt = new ah(this);
- private final View.OnClickListener bu = new ai(this);
- private final View.OnClickListener bv = new ak(this);
- private final View.OnClickListener bw = new al(this);
- Boolean c = Boolean.valueOf(true);
- Boolean d = Boolean.valueOf(true);
- Boolean e = Boolean.valueOf(true);
- Boolean f = Boolean.valueOf(true);
- Boolean g = Boolean.valueOf(true);
- SharedPreferences.Editor h;
- SharedPreferences i;
- SharedPreferences.OnSharedPreferenceChangeListener j;
- Boolean k = Boolean.valueOf(false);
- Boolean l = Boolean.valueOf(true);
- String m = "SMS_SENT";
- String n = "SMS_DELIVERED";
- BroadcastReceiver o;
- BroadcastReceiver p;
- PendingIntent q;
- PendingIntent r;
- PendingIntent s;
- String t = "";
- String u = "";
- Boolean v;
- Boolean w = Boolean.valueOf(false);
- EditText x;
- EditText y;
- EditText z;
- static
- {
- HUSHSMS_PACKAGE = SMS.class.getPackage().getName();
- }
- private void a(String paramString1, String paramString2, String paramString3)
- {
- int i1 = 0;
- while (true)
- {
- try
- {
- if (!paramString3.equals("Type 1"))
- continue;
- i1 = 65;
- if (!paramString3.equals("Type 2"))
- continue;
- i1 = 66;
- if (!paramString3.equals("Type 3"))
- continue;
- i1 = 67;
- if (!paramString3.equals("Type 4"))
- continue;
- i1 = 68;
- if (!paramString3.equals("Type 5"))
- continue;
- i1 = 69;
- if (!paramString3.equals("Type 6"))
- continue;
- i1 = 70;
- if (paramString3.equals("Type 7"))
- {
- i2 = 71;
- this.t = paramString1;
- this.u = "Replace message successfully sent";
- if (paramString2.length() >= 161)
- continue;
- localSmsManager = SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- localMethod = null;
- if (!this.a.booleanValue())
- continue;
- Class[] arrayOfClass3 = new Class[4];
- arrayOfClass3[0] = arrayOfByte.getClass();
- arrayOfClass3[1] = arrayOfByte.getClass();
- arrayOfClass3[2] = PendingIntent.class;
- arrayOfClass3[3] = PendingIntent.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass3);
- localMethod.setAccessible(true);
- localSubmitPdu = SmsMessage.getSubmitPdu(null, paramString1, paramString2, true);
- int i3 = localSubmitPdu.encodedMessage[2];
- int i4 = i3 / 2 + i3 % 2;
- localSubmitPdu.encodedMessage[(i4 + 4)] = (byte)i2;
- localSubmitPdu.encodedMessage[0] = 33;
- if (!this.a.booleanValue())
- continue;
- Object[] arrayOfObject3 = new Object[4];
- arrayOfObject3[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject3[1] = localSubmitPdu.encodedMessage;
- arrayOfObject3[2] = this.r;
- arrayOfObject3[3] = this.s;
- localMethod.invoke(localSmsManager, arrayOfObject3);
- if (this.w.booleanValue())
- break;
- j();
- break;
- if (!this.b.booleanValue())
- continue;
- Class[] arrayOfClass2 = new Class[5];
- arrayOfClass2[0] = arrayOfByte.getClass();
- arrayOfClass2[1] = arrayOfByte.getClass();
- arrayOfClass2[2] = PendingIntent.class;
- arrayOfClass2[3] = PendingIntent.class;
- arrayOfClass2[4] = String.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass2);
- continue;
- if (!this.c.booleanValue())
- continue;
- Class[] arrayOfClass1 = new Class[6];
- arrayOfClass1[0] = arrayOfByte.getClass();
- arrayOfClass1[1] = arrayOfByte.getClass();
- arrayOfClass1[2] = PendingIntent.class;
- arrayOfClass1[3] = PendingIntent.class;
- arrayOfClass1[4] = Boolean.TYPE;
- arrayOfClass1[5] = Boolean.TYPE;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass1);
- continue;
- boolean bool = this.b.booleanValue();
- if (!bool)
- continue;
- try
- {
- Object[] arrayOfObject2 = new Object[5];
- arrayOfObject2[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject2[1] = localSubmitPdu.encodedMessage;
- arrayOfObject2[2] = this.r;
- arrayOfObject2[3] = this.s;
- arrayOfObject2[4] = null;
- localMethod.invoke(localSmsManager, arrayOfObject2);
- }
- catch (Exception localException2)
- {
- Log.e("HushSMS", "Error: " + localException2);
- localException2.printStackTrace();
- }
- continue;
- }
- }
- catch (SecurityException localSecurityException)
- {
- SmsManager localSmsManager;
- Method localMethod;
- SmsMessage.SubmitPdu localSubmitPdu;
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- break;
- if (!this.c.booleanValue())
- continue;
- Object[] arrayOfObject1 = new Object[6];
- arrayOfObject1[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject1[1] = localSubmitPdu.encodedMessage;
- arrayOfObject1[2] = this.r;
- arrayOfObject1[3] = this.s;
- arrayOfObject1[4] = Boolean.valueOf(true);
- arrayOfObject1[5] = Boolean.valueOf(true);
- localMethod.invoke(localSmsManager, arrayOfObject1);
- continue;
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- Log.e("HushSMS", "Error: " + localNoSuchMethodException);
- localNoSuchMethodException.printStackTrace();
- break;
- Toast.makeText(getBaseContext(), "Sorry, only 160 characters per message possible.", 1).show();
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- catch (IllegalAccessException localIllegalAccessException)
- {
- Log.e("HushSMS", "Error: " + localIllegalAccessException);
- localIllegalAccessException.printStackTrace();
- }
- catch (InvocationTargetException localInvocationTargetException)
- {
- Log.e("HushSMS", "Error: " + localInvocationTargetException);
- localInvocationTargetException.printStackTrace();
- }
- catch (Exception localException1)
- {
- Log.e("HushSMS", "Error: " + localException1);
- localException1.printStackTrace();
- }
- int i2 = i1;
- }
- }
- private void b(String paramString1, String paramString2)
- {
- try
- {
- this.t = paramString1;
- this.u = "Class0 message successfully sent";
- if (paramString2.length() < 161)
- {
- localSmsManager = SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- localMethod = null;
- if (this.a.booleanValue())
- {
- Class[] arrayOfClass3 = new Class[4];
- arrayOfClass3[0] = arrayOfByte.getClass();
- arrayOfClass3[1] = arrayOfByte.getClass();
- arrayOfClass3[2] = PendingIntent.class;
- arrayOfClass3[3] = PendingIntent.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass3);
- localMethod.setAccessible(true);
- localSubmitPdu = SmsMessage.getSubmitPdu(null, paramString1, paramString2, true);
- int i1 = localSubmitPdu.encodedMessage[2];
- int i2 = i1 / 2 + i1 % 2;
- localSubmitPdu.encodedMessage[(i2 + 5)] = 24;
- if (!this.a.booleanValue())
- break label370;
- Object[] arrayOfObject3 = new Object[4];
- arrayOfObject3[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject3[1] = localSubmitPdu.encodedMessage;
- arrayOfObject3[2] = this.r;
- arrayOfObject3[3] = this.s;
- localMethod.invoke(localSmsManager, arrayOfObject3);
- }
- while (true)
- {
- if (this.w.booleanValue())
- return;
- j();
- return;
- if (this.b.booleanValue())
- {
- Class[] arrayOfClass2 = new Class[5];
- arrayOfClass2[0] = arrayOfByte.getClass();
- arrayOfClass2[1] = arrayOfByte.getClass();
- arrayOfClass2[2] = PendingIntent.class;
- arrayOfClass2[3] = PendingIntent.class;
- arrayOfClass2[4] = String.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass2);
- break;
- }
- if (!this.c.booleanValue())
- break;
- Class[] arrayOfClass1 = new Class[6];
- arrayOfClass1[0] = arrayOfByte.getClass();
- arrayOfClass1[1] = arrayOfByte.getClass();
- arrayOfClass1[2] = PendingIntent.class;
- arrayOfClass1[3] = PendingIntent.class;
- arrayOfClass1[4] = Boolean.TYPE;
- arrayOfClass1[5] = Boolean.TYPE;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass1);
- break;
- label370: boolean bool = this.b.booleanValue();
- if (!bool)
- break label512;
- try
- {
- Object[] arrayOfObject2 = new Object[5];
- arrayOfObject2[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject2[1] = localSubmitPdu.encodedMessage;
- arrayOfObject2[2] = this.r;
- arrayOfObject2[3] = this.s;
- arrayOfObject2[4] = null;
- localMethod.invoke(localSmsManager, arrayOfObject2);
- }
- catch (Exception localException2)
- {
- Log.e("HushSMS", "Error: " + localException2);
- localException2.printStackTrace();
- }
- }
- }
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- SmsManager localSmsManager;
- Method localMethod;
- SmsMessage.SubmitPdu localSubmitPdu;
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- break;
- if (!this.c.booleanValue())
- continue;
- Object[] arrayOfObject1 = new Object[6];
- arrayOfObject1[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject1[1] = localSubmitPdu.encodedMessage;
- arrayOfObject1[2] = this.r;
- arrayOfObject1[3] = this.s;
- arrayOfObject1[4] = Boolean.valueOf(true);
- arrayOfObject1[5] = Boolean.valueOf(true);
- localMethod.invoke(localSmsManager, arrayOfObject1);
- }
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- Log.e("HushSMS", "Error: " + localNoSuchMethodException);
- localNoSuchMethodException.printStackTrace();
- return;
- Toast.makeText(getBaseContext(), "Sorry, only 160 characters per message possible.", 1).show();
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- catch (IllegalAccessException localIllegalAccessException)
- {
- Log.e("HushSMS", "Error: " + localIllegalAccessException);
- localIllegalAccessException.printStackTrace();
- }
- catch (InvocationTargetException localInvocationTargetException)
- {
- Log.e("HushSMS", "Error: " + localInvocationTargetException);
- localInvocationTargetException.printStackTrace();
- }
- catch (Exception localException1)
- {
- label512: Log.e("HushSMS", "Error: " + localException1);
- localException1.printStackTrace();
- }
- }
- private void b(String paramString1, String paramString2, String paramString3)
- {
- int i1 = 0;
- while (true)
- {
- try
- {
- if (!paramString3.equals("Type 1"))
- continue;
- i1 = 72;
- if (!paramString3.equals("Type 2"))
- continue;
- i1 = 73;
- if (!paramString3.equals("Type 3"))
- continue;
- i1 = 74;
- if (!paramString3.equals("Type 4"))
- continue;
- i1 = 75;
- if (!paramString3.equals("Type 5"))
- continue;
- i1 = 76;
- if (!paramString3.equals("Type 6"))
- continue;
- i1 = 77;
- if (paramString3.equals("Type 7"))
- {
- i2 = 78;
- this.t = paramString1;
- this.u = "Unicode Replace message successfully sent";
- if (paramString2.length() >= 161)
- continue;
- localSmsManager = SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- localMethod = null;
- if (!this.a.booleanValue())
- continue;
- Class[] arrayOfClass3 = new Class[4];
- arrayOfClass3[0] = arrayOfByte.getClass();
- arrayOfClass3[1] = arrayOfByte.getClass();
- arrayOfClass3[2] = PendingIntent.class;
- arrayOfClass3[3] = PendingIntent.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass3);
- localMethod.setAccessible(true);
- localSubmitPdu = SmsMessage.getSubmitPdu(null, paramString1, paramString2, true);
- int i3 = localSubmitPdu.encodedMessage[2];
- int i4 = i3 / 2 + i3 % 2;
- localSubmitPdu.encodedMessage[(i4 + 4)] = (byte)i2;
- localSubmitPdu.encodedMessage[(i4 + 5)] = 8;
- localSubmitPdu.encodedMessage[0] = 33;
- if (!this.a.booleanValue())
- continue;
- Object[] arrayOfObject3 = new Object[4];
- arrayOfObject3[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject3[1] = localSubmitPdu.encodedMessage;
- arrayOfObject3[2] = this.r;
- arrayOfObject3[3] = this.s;
- localMethod.invoke(localSmsManager, arrayOfObject3);
- if (this.w.booleanValue())
- break;
- j();
- break;
- if (!this.b.booleanValue())
- continue;
- Class[] arrayOfClass2 = new Class[5];
- arrayOfClass2[0] = arrayOfByte.getClass();
- arrayOfClass2[1] = arrayOfByte.getClass();
- arrayOfClass2[2] = PendingIntent.class;
- arrayOfClass2[3] = PendingIntent.class;
- arrayOfClass2[4] = String.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass2);
- continue;
- if (!this.c.booleanValue())
- continue;
- Class[] arrayOfClass1 = new Class[6];
- arrayOfClass1[0] = arrayOfByte.getClass();
- arrayOfClass1[1] = arrayOfByte.getClass();
- arrayOfClass1[2] = PendingIntent.class;
- arrayOfClass1[3] = PendingIntent.class;
- arrayOfClass1[4] = Boolean.TYPE;
- arrayOfClass1[5] = Boolean.TYPE;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass1);
- continue;
- boolean bool = this.b.booleanValue();
- if (!bool)
- continue;
- try
- {
- Object[] arrayOfObject2 = new Object[5];
- arrayOfObject2[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject2[1] = localSubmitPdu.encodedMessage;
- arrayOfObject2[2] = this.r;
- arrayOfObject2[3] = this.s;
- arrayOfObject2[4] = null;
- localMethod.invoke(localSmsManager, arrayOfObject2);
- }
- catch (Exception localException2)
- {
- Log.e("HushSMS", "Error: " + localException2);
- localException2.printStackTrace();
- }
- continue;
- }
- }
- catch (SecurityException localSecurityException)
- {
- SmsManager localSmsManager;
- Method localMethod;
- SmsMessage.SubmitPdu localSubmitPdu;
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- break;
- if (!this.c.booleanValue())
- continue;
- Object[] arrayOfObject1 = new Object[6];
- arrayOfObject1[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject1[1] = localSubmitPdu.encodedMessage;
- arrayOfObject1[2] = this.r;
- arrayOfObject1[3] = this.s;
- arrayOfObject1[4] = Boolean.valueOf(true);
- arrayOfObject1[5] = Boolean.valueOf(true);
- localMethod.invoke(localSmsManager, arrayOfObject1);
- continue;
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- Log.e("HushSMS", "Error: " + localNoSuchMethodException);
- localNoSuchMethodException.printStackTrace();
- break;
- Toast.makeText(getBaseContext(), "Sorry, only 160 characters per message possible.", 1).show();
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- catch (IllegalAccessException localIllegalAccessException)
- {
- Log.e("HushSMS", "Error: " + localIllegalAccessException);
- localIllegalAccessException.printStackTrace();
- }
- catch (InvocationTargetException localInvocationTargetException)
- {
- Log.e("HushSMS", "Error: " + localInvocationTargetException);
- localInvocationTargetException.printStackTrace();
- }
- catch (Exception localException1)
- {
- Log.e("HushSMS", "Error: " + localException1);
- localException1.printStackTrace();
- }
- int i2 = i1;
- }
- }
- private void c(String paramString1, String paramString2)
- {
- try
- {
- this.t = paramString1;
- this.u = "Class0 message successfully sent";
- String str = "allyourmessagesarebelongtous|0|" + paramString2;
- SmsManager.getDefault().sendTextMessage(paramString1, null, str, this.r, this.s);
- if (!this.w.booleanValue())
- j();
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- }
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- }
- catch (Exception localException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localException);
- localException.printStackTrace();
- }
- }
- }
- private void c(String paramString1, String paramString2, String paramString3)
- {
- int i1 = 0;
- try
- {
- if (paramString3.equals("Type 1"))
- i1 = 65;
- if (paramString3.equals("Type 2"))
- i1 = 66;
- if (paramString3.equals("Type 3"))
- i1 = 67;
- if (paramString3.equals("Type 4"))
- i1 = 68;
- if (paramString3.equals("Type 5"))
- i1 = 69;
- if (paramString3.equals("Type 6"))
- i1 = 70;
- if (paramString3.equals("Type 7"))
- i1 = 71;
- this.t = paramString1;
- this.u = "Replace Type0 message successfully sent";
- String str = "allyourmessagesarebelongtous|" + i1 + "|" + paramString2;
- SmsManager.getDefault().sendTextMessage(paramString1, null, str, this.r, this.s);
- if (!this.w.booleanValue())
- j();
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- }
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- }
- catch (Exception localException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localException);
- localException.printStackTrace();
- }
- }
- }
- private void d()
- {
- this.q = PendingIntent.getActivity(this, 0, new Intent(this, SMS.class), 0);
- this.r = PendingIntent.getBroadcast(this, 0, new Intent(this.m), 0);
- this.s = PendingIntent.getBroadcast(this, 0, new Intent(this.n), 0);
- IntentFilter localIntentFilter1 = new IntentFilter(this.m);
- IntentFilter localIntentFilter2 = new IntentFilter(this.n);
- this.o = new am(this);
- registerReceiver(this.o, localIntentFilter1);
- this.p = new an(this);
- registerReceiver(this.p, localIntentFilter2);
- }
- private void d(String paramString1, String paramString2)
- {
- try
- {
- this.t = paramString1;
- this.u = "Class0 message successfully sent";
- String str = "allyourmessagesarebelongtous|7|" + paramString2;
- SmsManager.getDefault().sendTextMessage(paramString1, null, str, this.r, this.s);
- if (!this.w.booleanValue())
- j();
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- }
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- }
- catch (Exception localException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localException);
- localException.printStackTrace();
- }
- }
- }
- private void d(String paramString1, String paramString2, String paramString3)
- {
- int i1 = 0;
- try
- {
- if (paramString3.equals("Type 1"))
- i1 = 72;
- if (paramString3.equals("Type 2"))
- i1 = 73;
- if (paramString3.equals("Type 3"))
- i1 = 74;
- if (paramString3.equals("Type 4"))
- i1 = 75;
- if (paramString3.equals("Type 5"))
- i1 = 76;
- if (paramString3.equals("Type 6"))
- i1 = 77;
- if (paramString3.equals("Type 7"))
- i1 = 78;
- this.t = paramString1;
- this.u = "Replace Type0 message successfully sent";
- String str = "allyourmessagesarebelongtous|" + i1 + "|" + paramString2;
- SmsManager.getDefault().sendTextMessage(paramString1, null, str, this.r, this.s);
- if (!this.w.booleanValue())
- j();
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- }
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- }
- catch (Exception localException)
- {
- while (true)
- {
- Log.e("HushSMS", "Error: " + localException);
- localException.printStackTrace();
- }
- }
- }
- private void e()
- {
- try
- {
- this.d = Boolean.valueOf(false);
- SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- Class[] arrayOfClass = new Class[4];
- arrayOfClass[0] = arrayOfByte.getClass();
- arrayOfClass[1] = arrayOfByte.getClass();
- arrayOfClass[2] = PendingIntent.class;
- arrayOfClass[3] = PendingIntent.class;
- SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass);
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- localSecurityException.printStackTrace();
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- while (true)
- this.a = Boolean.valueOf(false);
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- localIllegalArgumentException.printStackTrace();
- }
- }
- private void f()
- {
- try
- {
- this.d = Boolean.valueOf(false);
- SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- Class[] arrayOfClass = new Class[5];
- arrayOfClass[0] = arrayOfByte.getClass();
- arrayOfClass[1] = arrayOfByte.getClass();
- arrayOfClass[2] = PendingIntent.class;
- arrayOfClass[3] = PendingIntent.class;
- arrayOfClass[4] = String.class;
- SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass);
- Log.e("HushSMS", "Method found and activated");
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- localSecurityException.printStackTrace();
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- while (true)
- this.b = Boolean.valueOf(false);
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- localIllegalArgumentException.printStackTrace();
- }
- }
- private void g()
- {
- try
- {
- this.d = Boolean.valueOf(false);
- SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- Class[] arrayOfClass = new Class[6];
- arrayOfClass[0] = arrayOfByte.getClass();
- arrayOfClass[1] = arrayOfByte.getClass();
- arrayOfClass[2] = PendingIntent.class;
- arrayOfClass[3] = PendingIntent.class;
- arrayOfClass[4] = Boolean.TYPE;
- arrayOfClass[5] = Boolean.TYPE;
- SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass);
- return;
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- localSecurityException.printStackTrace();
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- while (true)
- this.c = Boolean.valueOf(false);
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- while (true)
- localIllegalArgumentException.printStackTrace();
- }
- }
- private static Animation h()
- {
- TranslateAnimation localTranslateAnimation = new TranslateAnimation(2, 1.0F, 2, 0.0F, 2, 0.0F, 2, 0.0F);
- localTranslateAnimation.setDuration(400L);
- localTranslateAnimation.setInterpolator(new AccelerateInterpolator());
- return localTranslateAnimation;
- }
- private static Animation i()
- {
- TranslateAnimation localTranslateAnimation = new TranslateAnimation(2, 0.0F, 2, -1.0F, 2, 0.0F, 2, 0.0F);
- localTranslateAnimation.setDuration(400L);
- localTranslateAnimation.setInterpolator(new AccelerateInterpolator());
- return localTranslateAnimation;
- }
- private void j()
- {
- ViewFlipper localViewFlipper1 = this.as;
- TranslateAnimation localTranslateAnimation1 = new TranslateAnimation(2, 0.0F, 2, 1.0F, 2, 0.0F, 2, 0.0F);
- localTranslateAnimation1.setDuration(400L);
- localTranslateAnimation1.setInterpolator(new AccelerateInterpolator());
- localViewFlipper1.setOutAnimation(localTranslateAnimation1);
- ViewFlipper localViewFlipper2 = this.as;
- TranslateAnimation localTranslateAnimation2 = new TranslateAnimation(2, -1.0F, 2, 0.0F, 2, 0.0F, 2, 0.0F);
- localTranslateAnimation2.setDuration(400L);
- localTranslateAnimation2.setInterpolator(new AccelerateInterpolator());
- localViewFlipper2.setInAnimation(localTranslateAnimation2);
- this.as.setDisplayedChild(0);
- this.L.setVisibility(8);
- this.M.setVisibility(8);
- this.x.setVisibility(8);
- this.K.setVisibility(8);
- }
- public final void a()
- {
- this.aG = this.i.getString("Pref_Audio", "DEFAULT_RINGTONE_URI");
- this.l = Boolean.valueOf(this.i.getBoolean("Pref_Show_Notif", true));
- this.k = Boolean.valueOf(this.i.getBoolean("Pref_Store_Messages", false));
- }
- public final void a(Context paramContext, String paramString1, String paramString2, Boolean paramBoolean)
- {
- this.r = PendingIntent.getBroadcast(paramContext, 0, new Intent("SMS_SENT"), 0);
- this.s = PendingIntent.getBroadcast(paramContext, 0, new Intent("SMS_DELIVERED"), 0);
- this.w = Boolean.valueOf(true);
- e();
- f();
- g();
- String str = doCheckXposedModuleLoaded();
- if (str.equals("notloaded"))
- {
- this.f = Boolean.valueOf(false);
- Log.e("HushSMS", "Xposed Module loaded= " + bXposedModuleLoaded);
- }
- try
- {
- if ((paramString1.length() > 0) && (paramString2.length() > 0))
- if (paramString2.length() < 161)
- if ((bXposedModuleLoaded) && (paramBoolean.booleanValue()))
- d(paramString1, paramString2);
- while (true)
- {
- label153: return;
- if (!str.equals("loaded"))
- break;
- bXposedModuleLoaded = true;
- Log.e("HushSMS", "Xposed Module loaded= " + bXposedModuleLoaded);
- break;
- if ((bXposedModuleLoaded) && (!paramBoolean.booleanValue()))
- {
- c(paramString1, paramString2);
- continue;
- }
- if (paramBoolean.booleanValue())
- {
- b(paramString1, paramString2);
- continue;
- }
- a(paramString1, paramString2);
- continue;
- Toast.makeText(getBaseContext(), "Sorry, there is a limit of 160 chars per sms.", 1).show();
- continue;
- Toast.makeText(getBaseContext(), "This might work if you enter a phone number and/or a message first :-)", 1).show();
- }
- }
- catch (Exception localException)
- {
- break label153;
- }
- }
- public final void a(Context paramContext, String paramString1, String paramString2, Boolean paramBoolean, Integer paramInteger)
- {
- this.r = PendingIntent.getBroadcast(paramContext, 0, new Intent("SMS_SENT"), 0);
- this.s = PendingIntent.getBroadcast(paramContext, 0, new Intent("SMS_DELIVERED"), 0);
- this.w = Boolean.valueOf(true);
- e();
- f();
- g();
- String str1 = doCheckXposedModuleLoaded();
- if (str1.equals("notloaded"))
- {
- this.f = Boolean.valueOf(false);
- Log.e("HushSMS", "Xposed Module loaded= " + bXposedModuleLoaded);
- }
- while (true)
- {
- String str2 = "";
- if (paramInteger.intValue() == 1)
- str2 = "Type 1";
- if (paramInteger.intValue() == 2)
- str2 = "Type 2";
- if (paramInteger.intValue() == 3)
- str2 = "Type 3";
- if (paramInteger.intValue() == 4)
- str2 = "Type 4";
- if (paramInteger.intValue() == 5)
- str2 = "Type 5";
- if (paramInteger.intValue() == 6)
- str2 = "Type 6";
- if (paramInteger.intValue() == 7)
- str2 = "Type 7";
- try
- {
- if ((paramString1.length() > 0) && (paramString2.length() > 0))
- if (paramString2.length() < 161)
- if ((this.f.booleanValue()) && (paramBoolean.booleanValue()))
- d(paramString1, paramString2, str2);
- while (true)
- {
- label263: return;
- if (!str1.equals("loaded"))
- break;
- bXposedModuleLoaded = true;
- Log.e("HushSMS", "Xposed Module loaded= " + bXposedModuleLoaded);
- break;
- if ((this.f.booleanValue()) && (!paramBoolean.booleanValue()))
- {
- c(paramString1, paramString2, str2);
- continue;
- }
- if (paramBoolean.booleanValue())
- {
- b(paramString1, paramString2, str2);
- continue;
- }
- a(paramString1, paramString2, str2);
- continue;
- Toast.makeText(getBaseContext(), "Sorry, there is a limit of 160 chars per sms.", 1).show();
- continue;
- Toast.makeText(getBaseContext(), "This might work if you enter a phone number and/or a message first :-)", 1).show();
- }
- }
- catch (Exception localException)
- {
- break label263;
- }
- }
- }
- public final void a(String paramString1, String paramString2)
- {
- try
- {
- this.t = paramString1;
- this.u = "Class0 message successfully sent";
- if (paramString2.length() < 161)
- {
- localSmsManager = SmsManager.getDefault();
- byte[] arrayOfByte = new byte[1];
- localMethod = null;
- if (this.a.booleanValue())
- {
- Class[] arrayOfClass3 = new Class[4];
- arrayOfClass3[0] = arrayOfByte.getClass();
- arrayOfClass3[1] = arrayOfByte.getClass();
- arrayOfClass3[2] = PendingIntent.class;
- arrayOfClass3[3] = PendingIntent.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass3);
- localMethod.setAccessible(true);
- localSubmitPdu = SmsMessage.getSubmitPdu(null, paramString1, paramString2, true);
- int i1 = localSubmitPdu.encodedMessage[2];
- int i2 = i1 / 2 + i1 % 2;
- localSubmitPdu.encodedMessage[(i2 + 5)] = -16;
- if (!this.a.booleanValue())
- break label370;
- Object[] arrayOfObject3 = new Object[4];
- arrayOfObject3[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject3[1] = localSubmitPdu.encodedMessage;
- arrayOfObject3[2] = this.r;
- arrayOfObject3[3] = this.s;
- localMethod.invoke(localSmsManager, arrayOfObject3);
- }
- while (true)
- {
- if (this.w.booleanValue())
- return;
- j();
- return;
- if (this.b.booleanValue())
- {
- Class[] arrayOfClass2 = new Class[5];
- arrayOfClass2[0] = arrayOfByte.getClass();
- arrayOfClass2[1] = arrayOfByte.getClass();
- arrayOfClass2[2] = PendingIntent.class;
- arrayOfClass2[3] = PendingIntent.class;
- arrayOfClass2[4] = String.class;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass2);
- break;
- }
- if (!this.c.booleanValue())
- break;
- Class[] arrayOfClass1 = new Class[6];
- arrayOfClass1[0] = arrayOfByte.getClass();
- arrayOfClass1[1] = arrayOfByte.getClass();
- arrayOfClass1[2] = PendingIntent.class;
- arrayOfClass1[3] = PendingIntent.class;
- arrayOfClass1[4] = Boolean.TYPE;
- arrayOfClass1[5] = Boolean.TYPE;
- localMethod = SmsManager.class.getDeclaredMethod("sendRawPdu", arrayOfClass1);
- break;
- label370: boolean bool = this.b.booleanValue();
- if (!bool)
- break label512;
- try
- {
- Object[] arrayOfObject2 = new Object[5];
- arrayOfObject2[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject2[1] = localSubmitPdu.encodedMessage;
- arrayOfObject2[2] = this.r;
- arrayOfObject2[3] = this.s;
- arrayOfObject2[4] = null;
- localMethod.invoke(localSmsManager, arrayOfObject2);
- }
- catch (Exception localException2)
- {
- Log.e("HushSMS", "Error: " + localException2);
- localException2.printStackTrace();
- }
- }
- }
- }
- catch (SecurityException localSecurityException)
- {
- while (true)
- {
- SmsManager localSmsManager;
- Method localMethod;
- SmsMessage.SubmitPdu localSubmitPdu;
- Log.e("HushSMS", "Error: " + localSecurityException);
- localSecurityException.printStackTrace();
- break;
- if (!this.c.booleanValue())
- continue;
- Object[] arrayOfObject1 = new Object[6];
- arrayOfObject1[0] = localSubmitPdu.encodedScAddress;
- arrayOfObject1[1] = localSubmitPdu.encodedMessage;
- arrayOfObject1[2] = this.r;
- arrayOfObject1[3] = this.s;
- arrayOfObject1[4] = Boolean.valueOf(true);
- arrayOfObject1[5] = Boolean.valueOf(true);
- localMethod.invoke(localSmsManager, arrayOfObject1);
- }
- }
- catch (NoSuchMethodException localNoSuchMethodException)
- {
- Log.e("HushSMS", "Error: " + localNoSuchMethodException);
- localNoSuchMethodException.printStackTrace();
- return;
- Toast.makeText(getBaseContext(), "Sorry, only 160 characters per message possible.", 1).show();
- }
- catch (IllegalArgumentException localIllegalArgumentException)
- {
- Log.e("HushSMS", "Error: " + localIllegalArgumentException);
- localIllegalArgumentException.printStackTrace();
- }
- catch (IllegalAccessException localIllegalAccessException)
- {
- Log.e("HushSMS", "Error: " + localIllegalAccessException);
- localIllegalAccessException.printStackTrace();
- }
- catch (InvocationTargetException localInvocationTargetException)
- {
- Log.e("HushSMS", "Error: " + localInvocationTargetException);
- localInvocationTargetException.printStackTrace();
- }
- catch (Exception localException1)
- {
- label512: Log.e("HushSMS", "Error: " + localException1);
- localException1.printStackTrace();
- }
- }
- protected final void b()
- {
- if (this.k.booleanValue());
- try
- {
- ContentValues localContentValues = new ContentValues();
- localContentValues.put("address", this.t);
- localContentValues.put("body", "HushSMS: " + this.u);
- getContentResolver().insert(Uri.parse("content://sms/sent"), localContentValues);
- return;
- }
- catch (Exception localException)
- {
- while (true)
- localException.printStackTrace();
- }
- }
- protected final void c()
- {
- finish();
- }
- public void doCheckXposedModuleInstalled()
- {
- Log.e("HushSMS", "Xposed Module loaded= " + bXposedModuleLoaded);
- try
- {
- PackageInfo localPackageInfo = getPackageManager().getPackageInfo("com.silentservices.hushsms_exposedhelper", 128);
- if (localPackageInfo.versionName != null)
- this.aq = localPackageInfo.versionName;
- this.ar = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
- }
- catch (PackageManager.NameNotFoundException localNameNotFoundException1)
- {
- try
- {
- while (true)
- {
- getPackageManager().getPackageInfo("com.silentservices.hushsms_exposedhelper", 128);
- Log.e("HushSMS", " Xposed Helper Module Package is found");
- if ((!this.a.booleanValue()) && (!this.b.booleanValue()) && (!this.c.booleanValue()) && (this.f.booleanValue()))
- {
- this.Y.setEnabled(false);
- this.Y.setVisibility(8);
- this.ab.setEnabled(false);
- this.ab.setVisibility(8);
- this.ac.setChecked(true);
- }
- return;
- localNameNotFoundException1 = localNameNotFoundException1;
- this.f = Boolean.valueOf(false);
- localNameNotFoundException1.printStackTrace();
- }
- }
- catch (PackageManager.NameNotFoundException localNameNotFoundException2)
- {
- while (true)
- {
- this.g = Boolean.valueOf(false);
- Log.e("HushSMS", " Xposed Helper Module Package not found");
- localNameNotFoundException2.printStackTrace();
- }
- }
- }
- }
- public String doCheckXposedModuleLoaded()
- {
- return "notloaded";
- }
- public void doLaunchContactPicker(View paramView)
- {
- new Intent("android.intent.action.PICK", ContactsContract.Contacts.CONTENT_URI);
- startActivityForResult(new Intent("android.intent.action.PICK", ContactsContract.Contacts.CONTENT_URI), 1);
- }
- protected void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent)
- {
- label31: Object localObject1;
- if (paramInt2 == -1)
- {
- switch (paramInt1)
- {
- default:
- setResult(-1, paramIntent);
- return;
- case 1:
- }
- localObject1 = "";
- }
- while (true)
- {
- try
- {
- Uri localUri1 = paramIntent.getData();
- Log.v("HushSMS", "Got a contact result: " + localUri1.toString());
- ContentResolver localContentResolver = getContentResolver();
- Cursor localCursor1 = localContentResolver.query(localUri1, null, null, null, null);
- if (localCursor1.getCount() <= 0)
- break label440;
- boolean bool = localCursor1.moveToNext();
- if (bool)
- continue;
- localObject3 = localObject1;
- this.x.setText(localObject3);
- if (localObject3.length() != 0)
- break;
- Toast.makeText(this, "No mobilephone number found for contact.", 1).show();
- break;
- String str1 = localCursor1.getString(localCursor1.getColumnIndex("_id"));
- localCursor1.getString(localCursor1.getColumnIndex("display_name"));
- if ((Integer.parseInt(localCursor1.getString(localCursor1.getColumnIndex("has_phone_number"))) <= 0) || (Integer.parseInt(localCursor1.getString(localCursor1.getColumnIndex("has_phone_number"))) <= 0))
- continue;
- Uri localUri2 = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;
- String[] arrayOfString = new String[1];
- arrayOfString[0] = str1;
- localCursor2 = localContentResolver.query(localUri2, null, "contact_id = ?", arrayOfString, null);
- if (localCursor2.moveToNext())
- continue;
- if (localCursor2 == null)
- continue;
- localCursor2.close();
- continue;
- }
- catch (Exception localException)
- {
- Cursor localCursor2;
- Log.e("HushSMS", "Failed to get phone data", localException);
- this.x.setText((CharSequence)localObject1);
- if (((String)localObject1).length() != 0)
- break;
- Toast.makeText(this, "No mobilephone number found for contact.", 1).show();
- break;
- switch (localCursor2.getInt(localCursor2.getColumnIndex("data2")))
- {
- case 2:
- String str2 = localCursor2.getString(localCursor2.getColumnIndex("data1"));
- localObject1 = str2;
- continue;
- }
- }
- finally
- {
- this.x.setText((CharSequence)localObject1);
- if (((String)localObject1).length() != 0)
- continue;
- Toast.makeText(this, "No mobilephone number found for contact.", 1).show();
- }
- Log.w("HushSMS", "Warning: activity result not ok");
- break label31;
- label440: Object localObject3 = localObject1;
- continue;
- }
- }
- public void onBackPressed()
- {
- if (this.as.getDisplayedChild() == 0)
- finish();
- while (true)
- {
- return;
- j();
- }
- }
- public void onCreate(Bundle paramBundle)
- {
- super.onCreate(paramBundle);
- this.i = PreferenceManager.getDefaultSharedPreferences(this);
- this.j = new ap(this);
- this.i.registerOnSharedPreferenceChangeListener(this.j);
- String str1 = this.i.getString("Pref_Theme", "black");
- this.v = Boolean.valueOf(this.i.getBoolean("bPrefShowDisclaimer", true));
- String str2;
- if (str1.equals("light"))
- {
- setTheme(2131230725);
- this.aG = this.i.getString("Pref_Audio", "DEFAULT_RINGTONE_URI");
- this.l = Boolean.valueOf(this.i.getBoolean("Pref_Show_Notif", true));
- this.k = Boolean.valueOf(this.i.getBoolean("Pref_Store_Messages", false));
- Settings.Secure.getString(getContentResolver(), "android_id");
- this.h = this.i.edit();
- this.an = new Date();
- d();
- if ((Build.VERSION.SDK_INT > 10) && ((Build.VERSION.SDK_INT < 14) || (!ViewConfiguration.get(this).hasPermanentMenuKey())))
- requestWindowFeature(8);
- setContentView(2130903041);
- this.as = ((ViewFlipper)findViewById(2131034140));
- this.as.addView(View.inflate(this, 2130903054, null), 0);
- this.as.addView(View.inflate(this, 2130903042, null), 1);
- this.as.addView(View.inflate(this, 2130903043, null), 2);
- this.as.addView(View.inflate(this, 2130903052, null), 3);
- this.as.addView(View.inflate(this, 2130903053, null), 4);
- this.as.addView(View.inflate(this, 2130903044, null), 5);
- this.as.addView(View.inflate(this, 2130903045, null), 6);
- this.as.addView(View.inflate(this, 2130903046, null), 7);
- this.as.addView(View.inflate(this, 2130903047, null), 8);
- this.as.addView(View.inflate(this, 2130903048, null), 9);
- this.as.addView(View.inflate(this, 2130903049, null), 10);
- this.as.addView(View.inflate(this, 2130903050, null), 11);
- this.as.addView(View.inflate(this, 2130903051, null), 12);
- this.as.setDisplayedChild(0);
- this.ao = ((ToggleButton)findViewById(2131034168));
- this.ao.setOnClickListener(this.bj);
- this.V = ((Button)findViewById(2131034154));
- this.V.setOnClickListener(this.aI);
- ((Button)findViewById(2131034158)).setOnClickListener(this.aK);
- ((Button)findViewById(2131034198)).setOnClickListener(this.aL);
- ((Button)findViewById(2131034205)).setOnClickListener(this.aM);
- ((Button)findViewById(2131034164)).setOnClickListener(this.aN);
- ((Button)findViewById(2131034172)).setOnClickListener(this.aO);
- ((Button)findViewById(2131034176)).setOnClickListener(this.aP);
- ((Button)findViewById(2131034183)).setOnClickListener(this.aQ);
- ((Button)findViewById(2131034185)).setOnClickListener(this.aR);
- ((Button)findViewById(2131034186)).setOnClickListener(this.aS);
- ((Button)findViewById(2131034187)).setOnClickListener(this.aT);
- ((Button)findViewById(2131034191)).setOnClickListener(this.aJ);
- ((Button)findViewById(2131034208)).setOnClickListener(this.aU);
- this.N = ((Button)findViewById(2131034215));
- this.N.setOnClickListener(this.aV);
- ((Button)findViewById(2131034210)).setOnClickListener(this.aW);
- ((Button)findViewById(2131034216)).setOnClickListener(this.aX);
- ((Button)findViewById(2131034211)).setOnClickListener(this.aY);
- this.O = ((Button)findViewById(2131034217));
- this.O.setOnClickListener(this.aZ);
- this.P = ((Button)findViewById(2131034212));
- this.P.setOnClickListener(this.ba);
- this.Q = ((Button)findViewById(2131034209));
- this.Q.setOnClickListener(this.bb);
- this.R = ((Button)findViewById(2131034213));
- this.R.setOnClickListener(this.bc);
- this.S = ((Button)findViewById(2131034220));
- this.S.setOnClickListener(this.bd);
- this.T = ((Button)findViewById(2131034219));
- this.T.setOnClickListener(this.be);
- this.U = ((Button)findViewById(2131034218));
- this.U.setOnClickListener(this.bf);
- this.R.setEnabled(false);
- this.R.setVisibility(8);
- this.S.setEnabled(false);
- this.S.setVisibility(8);
- this.T.setEnabled(false);
- this.T.setVisibility(8);
- this.L = ((Button)findViewById(2131034136));
- this.L.setOnClickListener(this.bi);
- this.L.setVisibility(8);
- this.M = ((Button)findViewById(2131034139));
- this.M.setOnClickListener(this.bg);
- this.M.setVisibility(8);
- ((Button)findViewById(2131034221)).setOnClickListener(this.bh);
- this.x = ((EditText)findViewById(2131034138));
- this.x.setVisibility(8);
- this.J = ((EditText)findViewById(2131034170));
- this.y = ((EditText)findViewById(2131034153));
- this.W = ((RadioButton)findViewById(2131034178));
- this.W.setOnClickListener(this.bk);
- this.X = ((RadioButton)findViewById(2131034179));
- this.X.setOnClickListener(this.bl);
- this.Y = ((RadioButton)findViewById(2131034180));
- this.Y.setOnClickListener(this.bm);
- this.Z = ((RadioButton)findViewById(2131034181));
- this.Z.setOnClickListener(this.bn);
- this.aa = ((RadioButton)findViewById(2131034182));
- this.aa.setOnClickListener(this.bo);
- this.ab = ((RadioButton)findViewById(2131034166));
- this.ab.setOnClickListener(this.bv);
- this.ac = ((RadioButton)findViewById(2131034167));
- this.ac.setOnClickListener(this.bw);
- this.ad = ((RadioButton)findViewById(2131034192));
- this.ad.setOnClickListener(this.bp);
- this.ae = ((RadioButton)findViewById(2131034193));
- this.ae.setOnClickListener(this.bq);
- this.af = ((RadioButton)findViewById(2131034194));
- this.af.setOnClickListener(this.br);
- this.ag = ((RadioButton)findViewById(2131034199));
- this.ag.setOnClickListener(this.bs);
- this.ah = ((RadioButton)findViewById(2131034200));
- this.ah.setOnClickListener(this.bt);
- this.ai = ((RadioButton)findViewById(2131034201));
- this.ai.setOnClickListener(this.bu);
- this.aj = ((CheckBox)findViewById(2131034157));
- this.ak = ((CheckBox)findViewById(2131034190));
- this.z = ((EditText)findViewById(2131034197));
- this.A = ((EditText)findViewById(2131034204));
- this.B = ((EditText)findViewById(2131034155));
- this.C = ((EditText)findViewById(2131034188));
- this.D = ((EditText)findViewById(2131034195));
- this.E = ((EditText)findViewById(2131034202));
- this.F = ((EditText)findViewById(2131034161));
- this.G = ((EditText)findViewById(2131034196));
- this.H = ((EditText)findViewById(2131034203));
- this.I = ((EditText)findViewById(2131034163));
- this.K = ((TextView)findViewById(2131034137));
- this.K.setVisibility(8);
- this.ap = ((TextView)findViewById(2131034135));
- this.al = ((Spinner)findViewById(2131034189));
- e();
- f();
- g();
- doCheckXposedModuleInstalled();
- str2 = doCheckXposedModuleLoaded();
- if (!str2.equals("notloaded"))
- break label2078;
- this.f = Boolean.valueOf(false);
- label1739: if ((!bXposedModuleLoaded) || (!this.g.booleanValue()))
- break label2096;
- this.ap.setVisibility(0);
- this.ap.setText("HushSMS v" + this.ar + " Xposed Module v" + this.aq + " active");
- this.ap.setTextColor(getResources().getColor(2131361795));
- }
- while (true)
- {
- if ((!this.a.booleanValue()) && (!this.b.booleanValue()) && (!this.c.booleanValue()) && (!bXposedModuleLoaded))
- {
- if (this.v.booleanValue())
- {
- new AlertDialog.Builder(this).setMessage(" Your device does not provide the sendRawPdu or Xposed Framework method. Some message types like Class0 will not work. If you need these you can install the xposed framework and activate the module or go to the play store and refund.").setTitle("We are sorry...").setCancelable(true).setPositiveButton(17039370, new ao(this)).show();
- this.h.putBoolean("bPrefShowDisclaimer", false);
- this.h.commit();
- }
- this.N.setEnabled(false);
- this.N.setVisibility(8);
- this.O.setEnabled(false);
- this.O.setVisibility(8);
- this.P.setEnabled(false);
- this.P.setVisibility(8);
- this.R.setEnabled(false);
- this.R.setVisibility(8);
- this.U.setEnabled(false);
- this.U.setVisibility(8);
- this.X.setEnabled(false);
- this.X.setVisibility(8);
- this.Y.setEnabled(false);
- this.Y.setVisibility(8);
- }
- return;
- if (!str1.equals("black"))
- break;
- setTheme(2131230726);
- break;
- label2078: if (!str2.equals("loaded"))
- break label1739;
- bXposedModuleLoaded = true;
- break label1739;
- label2096: if ((bXposedModuleLoaded) || (!this.g.booleanValue()))
- continue;
- this.ap.setVisibility(0);
- this.ap.setText("HushSMS v" + this.ar + " - Warning! Xposed Module NOT active!");
- this.ap.setTextColor(getResources().getColor(2131361794));
- }
- }
- public boolean onCreateOptionsMenu(Menu paramMenu)
- {
- getMenuInflater().inflate(2131427328, paramMenu);
- this.am = paramMenu.findItem(2131034227);
- return true;
- }
- protected void onDestroy()
- {
- super.onDestroy();
- if (this.o != null)
- unregisterReceiver(this.o);
- if (this.p != null)
- unregisterReceiver(this.p);
- }
- public boolean onOptionsItemSelected(MenuItem paramMenuItem)
- {
- switch (paramMenuItem.getItemId())
- {
- default:
- case 2131034227:
- }
- while (true)
- {
- return false;
- startActivity(new Intent(this, Preferences.class));
- }
- }
- protected void onPause()
- {
- super.onPause();
- if (this.o != null)
- {
- unregisterReceiver(this.o);
- this.o = null;
- }
- if (this.p != null)
- {
- unregisterReceiver(this.p);
- this.p = null;
- }
- }
- protected void onResume()
- {
- super.onResume();
- if (this.o == null)
- d();
- if (this.p == null)
- d();
- }
- protected void onStop()
- {
- super.onStop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment