|
@@ -9,6 +9,7 @@ import com.hh.arome.activity.MainActivity;
|
|
|
import com.hh.lib_base.Constants;
|
|
|
import com.hh.lib_base.log.AppLogUtils;
|
|
|
import com.hh.lib_base.log.LogType;
|
|
|
+import com.hh.lib_base.log.UploadLogUtils;
|
|
|
import com.hh.lib_base.manager.ActivityManager;
|
|
|
import com.hh.lib_base.utils.device.DeviceUtils;
|
|
|
import com.hh.lib_common.local.AppLocalConfigHandler;
|
|
@@ -30,7 +31,7 @@ public class AutoStartBroadReceiver extends BroadcastReceiver {
|
|
|
|
|
|
|
|
|
boolean firstStart = localConfig.isFirstStart();
|
|
|
- AppLogUtils.e("firstStart--" + firstStart);
|
|
|
+ UploadLogUtils.sendLogs(false,"开机广播"," ","","收到开机广播:"+firstStart);
|
|
|
if (!firstStart) {
|
|
|
localConfig.setFirstStart(true);
|
|
|
|
|
@@ -60,14 +61,12 @@ public class AutoStartBroadReceiver extends BroadcastReceiver {
|
|
|
mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
|
context.startActivity(mainIntent);
|
|
|
String logLine= (new Throwable().getStackTrace())[0].toString();
|
|
|
- // 开始保存本地日志
|
|
|
- AppLogUtils.saveLog(
|
|
|
- LogType.Logcat, new StringBuilder()
|
|
|
- .append(Constants.LogcatValue.LINE)
|
|
|
- .append(logLine).append(Constants.LogcatValue.WARP)
|
|
|
- .append(Constants.LogcatValue.NODE)
|
|
|
- .append("HHArome 开机广播 启动MainActivity ")
|
|
|
- .toString());
|
|
|
+ UploadLogUtils.sendLogs(false,"开机广播"," ",logLine,new StringBuilder()
|
|
|
+ .append(Constants.LogcatValue.LINE)
|
|
|
+ .append(logLine).append(Constants.LogcatValue.WARP)
|
|
|
+ .append(Constants.LogcatValue.NODE)
|
|
|
+ .append("HHArome 开机广播 启动MainActivity ")
|
|
|
+ .toString());
|
|
|
}catch (Exception e){
|
|
|
|
|
|
}
|
|
@@ -99,6 +98,8 @@ public class AutoStartBroadReceiver extends BroadcastReceiver {
|
|
|
AppLogUtils.e("startApp--onReceive: 启动了。。。");
|
|
|
|
|
|
boolean autoApp = localConfig.isAutoApp();
|
|
|
+ UploadLogUtils.sendLogs(false,"开机广播"," ","",
|
|
|
+ "收到开机广播-是否自启动:"+autoApp);
|
|
|
AppLogUtils.e("autoApp--" + autoApp);
|
|
|
if (autoApp) {
|
|
|
AppLogUtils.e("autoApp--自启动");
|