Class AppExitInfoCollector

  • All Implemented Interfaces:

    
    public final class AppExitInfoCollector
    
                        

    ApplicationExitInfo(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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void collectAndReport(Context context) 读取并上报上次水位之后的进程死因。主线程+主进程调用即可(AEI 含全 UID 进程)。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • collectAndReport

         static void collectAndReport(Context context)

        读取并上报上次水位之后的进程死因。主线程+主进程调用即可(AEI 含全 UID 进程)。

        Parameters:
        context - application context