version:1.9

fix:
update:增加安装完成后删除文件,修复设备信息上传失败
This commit is contained in:
2022-11-19 17:38:27 +08:00
parent 12f09a81da
commit 81b43f95fa
7 changed files with 114 additions and 9 deletions

View File

@@ -2,6 +2,7 @@ package com.fuying.sn.base;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Environment;
import android.os.Handler;
@@ -9,6 +10,12 @@ import android.os.Looper;
import android.util.Log;
import com.arialyy.aria.core.Aria;
import com.fuying.sn.service.ControlPanelService;
import com.fuying.sn.service.DownloadService;
import com.fuying.sn.service.GuardService;
import com.fuying.sn.service.ManagerService;
import com.fuying.sn.service.StepService;
import com.fuying.sn.service.main.MainService;
import com.tencent.android.tpush.XGIOperateCallback;
import com.tencent.android.tpush.XGPushConfig;
import com.tencent.android.tpush.XGPushManager;
@@ -79,6 +86,16 @@ public class BaseApplication extends Application {
NetInterfaceManager.init(this);
AppUsedTimeUtils.init(this);
JGYUtils.hookWebView();
startService();
}
private void startService() {
startService(new Intent(this, MainService.class));
startService(new Intent(this, GuardService.class));
startService(new Intent(this, StepService.class));
startService(new Intent(this, DownloadService.class));
startService(new Intent(this, ManagerService.class));
startService(new Intent(this, ControlPanelService.class));
}
private void catchException() {