version:2.4
fix:修复无法删除,无法显示应用信息,系统报错问题 update:
This commit is contained in:
@@ -426,7 +426,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
}
|
||||
|
||||
private void show(Context context, String text) {
|
||||
Toast.makeText(context, text, Toast.LENGTH_SHORT).show();
|
||||
// Toast.makeText(context, text, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
|
||||
private int changeNum(int paramInt) {
|
||||
@@ -452,12 +452,15 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
break;
|
||||
case MSG_DELETE:
|
||||
ToastUtil.betaShow("收到管控:应用删除");
|
||||
if (!TextUtils.isEmpty(title)) {
|
||||
if (SaveListUtils.getlist().contains(title)) {
|
||||
SaveListUtils.getlist().remove(title);
|
||||
if (!TextUtils.isEmpty(extras)) {
|
||||
JSONObject jsonObject = JSON.parseObject(extras);
|
||||
String pkg = jsonObject.getString("package_name");
|
||||
if (TextUtils.isEmpty(pkg)) return;
|
||||
if (SaveListUtils.getlist().contains(pkg)) {
|
||||
SaveListUtils.getlist().remove(pkg);
|
||||
}
|
||||
SaveListUtils.sendForceAPP(mContext);
|
||||
ApkUtils.UninstallAPP(mContext, title);
|
||||
ApkUtils.UninstallAPP(mContext, pkg);
|
||||
}
|
||||
HTTPInterface.getAppLimit(mContext);
|
||||
HTTPInterface.getNetAndLaunchSetting(mContext);
|
||||
@@ -1312,9 +1315,8 @@ public class MessageReceiver extends XGPushBaseReceiver {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsonString
|
||||
* "is_log": 1,//是否开启运行日志 0关闭 1开启
|
||||
* "is_log_type": 1 //获取运行日志类型 0即时 1定时
|
||||
* @param jsonString "is_log": 1,//是否开启运行日志 0关闭 1开启
|
||||
* "is_log_type": 1 //获取运行日志类型 0即时 1定时
|
||||
*/
|
||||
private void senSNLogFile(String jsonString) {
|
||||
JSONObject jsonObject = JSON.parseObject(jsonString);
|
||||
|
||||
Reference in New Issue
Block a user