正在查看: 管控平台 v5.2.3.0. 应用的 RootService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 管控平台 v5.2.3.0. 应用的 RootService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.iflytek.mdmservice.policy.service;
import android.app.IntentService;
import android.content.ComponentName;
import android.content.Intent;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.alibaba.fastjson.JSON;
import com.iflytek.mdmcommon.LogUtil;
import com.iflytek.mdmcommon.SpHelper;
import com.iflytek.mdmcommon.Utils;
import com.iflytek.mdmservice.db.entity.DeviceInfo;
import com.iflytek.mdmservice.o.d.c;
import com.iflytek.mdmservice.o.d.d;
import com.iflytek.mdmservice.utils.q;
import com.iflytek.user.combo.ComboManage;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
public class RootService extends IntentService {
class a extends TimerTask {
a(RootService rootService) {
}
@Override
public void run() {
q.a();
}
}
public RootService() {
this("RootService");
}
@Override
protected void onHandleIntent(@Nullable Intent intent) {
Integer num;
String stringExtra = intent.getStringExtra(DeviceInfo.STATUS);
String stringExtra2 = intent.getStringExtra("adminDevicePolicy");
if (Utils.isEmpty(stringExtra)) {
return;
}
boolean c2 = d.c();
LogUtil.d("lock isRoot: " + c2);
if (c2) {
if (Utils.isToday(SpHelper.getLong("MDM_BURIED_ROOT_TIME", 0L))) {
SpHelper.putLong("MDM_BURIED_ROOT_TIME", new Date().getTime());
return;
}
SpHelper.putLong("MDM_BURIED_ROOT_TIME", new Date().getTime());
if (TextUtils.isEmpty(stringExtra)) {
return;
}
String[] split = stringExtra.split("[-|_]");
if (split.length == 3) {
Intent intent2 = new Intent("com.iflytek.mdm.intent.ACTION_VIOLATION_NOTICE");
intent2.putExtra("type", "1");
intent2.putExtra("dealManner", split);
intent2.setComponent(new ComponentName("com.iflytek.mdmservice", "com.iflytek.mdmservice.receiver.ViolationNoticeReceiver"));
long j = SpHelper.getLong(ComboManage.USER_ID, -1L);
intent2.putExtra("lastSchool", SpHelper.getLong("lastSchool", -1L));
intent2.putExtra(ComboManage.USER_ID, j);
sendBroadcast(intent2);
"1".equals(split[0]);
int i = 1;
if ("1".equals(split[1])) {
LogUtil.d("===mdm===", "ViolationPolicy禁用设备");
if (Utils.isJson(stringExtra2) && (num = (Integer) ((Map) JSON.parseObject(stringExtra2, HashMap.class)).get(1)) != null) {
i = num.intValue();
}
if (i == 0) {
c.c("violation_policy_disable", 0, false);
} else {
c.b("violation_policy_disable", 0);
}
}
if ("1".equals(split[2])) {
LogUtil.d("违规策略:root违规:恢复出厂设置");
new Timer().schedule(new a(this), com.igexin.push.config.c.t);
}
}
}
}
public RootService(String str) {
super(str);
}
}