Package io.rong.imlib.crash
Class AppExitInfoCollector
-
- All Implemented Interfaces:
public final class AppExitInfoCollectorApplicationExitInfo(AEI,API 30+)兜底读取器。
定位:xCrash 私有化为主干(实时捕获 Java/Native/ANR,tombstone 细节更全), AEI 只兜底 xCrash 结构上抓不到的死亡——进程被 OS 杀死(SIGKILL / LMK 低内存杀,无进程内 handler 可拦)。 CRASH/CRASH_NATIVE/ANR 不再由 AEI 上报(交给 xCrash,避免 AEI↔xCrash 重叠双报)。
getHistoricalProcessExitReasons(null,...)覆盖 :ipc 子进程退出 (读到:remote进程的 SIGNALED)——兜底 RongService 所在 :ipc 进程成立(design D170 gating 前提)。- SIGKILL(REASON_SIGNALED=2) / LMK(REASON_LOW_MEMORY=3) 正确读到并映射 kill 族 tag; CRASH/CRASH_NATIVE/ANR → tag=null(跳过)。
- Since:
5.42.0
-
-
Method Summary
Modifier and Type Method Description static voidcollectAndReport(Context context)读取并上报上次水位之后的进程死因。主线程+主进程调用即可(AEI 含全 UID 进程)。 -
-
Method Detail
-
collectAndReport
static void collectAndReport(Context context)
读取并上报上次水位之后的进程死因。主线程+主进程调用即可(AEI 含全 UID 进程)。
- Parameters:
context- application context
-
-
-
-