Android Custom Launcher startActivity() blocks BOOT_COMPLETED intent

后端 未结 1 2026
梦谈多话
梦谈多话 2021-02-06 13:01

I am currently working on a custom ROM (based on CyanogenMod 11.0), which aims to implement a custom \"Kiosk Mode\". To do this, I have three components in one application (with

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-06 13:34

    Root cause: finishBooting() is not called because Home Activity is not on top of stack.

    http://androidxref.com/4.4.4_r1/xref/frameworks/base/services/java/com/android/server/am/ActivityStackSupervisor.java

    Line: 1811 Line: 1883-1886 Line: 1934-1940

    Solution:

    Do not call start Activity Until Boot_Completed is received.

    0 讨论(0)
提交回复
热议问题