diff --git a/recovery/src/main/java/com/zxy/recovery/core/RecoveryHandler.java b/recovery/src/main/java/com/zxy/recovery/core/RecoveryHandler.java index 6dc4029095c887da3b505a264412b0da7cb5921d..8a72f125ba57bb28028c44bcbcdd50518be21616 100644 --- a/recovery/src/main/java/com/zxy/recovery/core/RecoveryHandler.java +++ b/recovery/src/main/java/com/zxy/recovery/core/RecoveryHandler.java @@ -204,8 +204,6 @@ final class RecoveryHandler implements Thread.UncaughtExceptionHandler { private void killProcess() { ProcessManager.kill(ProcessManager.getPid()); - // finbug 有异常,但是该程序必须使用这个来关闭进程 - System.exit(NUM10); } public void restart() { diff --git a/recovery/src/main/java/com/zxy/recovery/core/RecoveryService.java b/recovery/src/main/java/com/zxy/recovery/core/RecoveryService.java index a3a20ee589b5b25796a755bf351d6b04e75935be..a8ecc2674abde019d9cd65c8c89572c47eea9162 100644 --- a/recovery/src/main/java/com/zxy/recovery/core/RecoveryService.java +++ b/recovery/src/main/java/com/zxy/recovery/core/RecoveryService.java @@ -87,8 +87,6 @@ public class RecoveryService extends Ability { */ private void killProcess() { getAbilityManager().killProcessesByBundleName("com.zxy.recovery.test"); - // finbug 有异常,但是该程序必须使用这个来关闭进程 - System.exit(NUM10); } private Recovery.SilentMode getRecoverySilentMode(Intent intent) { diff --git a/recovery/src/main/java/com/zxy/recovery/core/slice/DebugAbilitySlice.java b/recovery/src/main/java/com/zxy/recovery/core/slice/DebugAbilitySlice.java index 3f5b77a0846a6107a9a15573264946f2095d6509..0136271e5e3012e4eb523418460edffef56ad7dd 100644 --- a/recovery/src/main/java/com/zxy/recovery/core/slice/DebugAbilitySlice.java +++ b/recovery/src/main/java/com/zxy/recovery/core/slice/DebugAbilitySlice.java @@ -175,6 +175,10 @@ public class DebugAbilitySlice extends AbilitySlice { .show(); } + /** + * 保存报错信息 + * @return 是否保存成功,true:成功,false:失败 + */ private boolean saveCrashData() { String date = RecoveryUtil.getDateFormat().format(new Date(System.currentTimeMillis())); File dir = new File(getExternalFilesDir(null) + File.separator + RecoveryAbility.DEFAULT_CRASH_FILE_DIR_NAME); diff --git a/recovery/src/main/java/com/zxy/recovery/core/slice/RecoveryAbilitySlice.java b/recovery/src/main/java/com/zxy/recovery/core/slice/RecoveryAbilitySlice.java index 150d7ba710d1ddc9fdaafbc963da189500dc13de..6ff61346e79e3ae76d0b1688c5dda7ef54a464dc 100644 --- a/recovery/src/main/java/com/zxy/recovery/core/slice/RecoveryAbilitySlice.java +++ b/recovery/src/main/java/com/zxy/recovery/core/slice/RecoveryAbilitySlice.java @@ -264,10 +264,6 @@ public class RecoveryAbilitySlice extends AbilitySlice { private void killProcess() { ProcessManager.kill(ProcessManager.getPid()); - /** - * finbug 有异常,但是该程序必须使用这个来关闭进程 - */ - System.exit(NUM10); } @Override